joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4444d3
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x5ac]
sub esp, 0x62c
mov eax, dword [0x4a0ee0]
xor eax, ebp
mov dword [ebp + 0x5a8], eax
mov eax, dword [ebp + 0x5b4]
push ebx
push esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x5b8]
push edi
mov dword [ebp - 0x7c], eax
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp + 0x39c], ax
xor edi, edi
lea eax, [ebp + 0x39e]
push edi
push eax
mov ebx, ecx
call fcn.00467850
xor eax, eax
push 0x410
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push edi
push eax
call fcn.00467850
push 0x2f
push ebx
call fcn.00465d41
add esp, 0x20
mov ebx, 0x105
cmp eax, edi
je 0x444570
push 0xffffffffffffffff
add eax, 2
push eax
lea eax, [ebp + 0x39c]
push ebx
push eax
call fcn.00465c6e
add esp, 0x10
lea eax, [ebp + 0x39c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_PathCleanupSpec]
cmp word [ebp + 0x39c], di
jne 0x444590
push 0xffffffffffffffff
push str.unknown
lea eax, [ebp + 0x39c]
push ebx
push eax
call fcn.00465c6e
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Download
lea eax, [ebp - 0x78]
push eax
call esi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4445c6
push edi
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp + 0x39c]
push eax
lea eax, [ebp - 0x78]
push eax
call esi
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
call fcn.00408c1f
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp + 0x39c]
push eax
call fcn.00408c1f
mov ecx, dword [ebp + 0x5a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045fbf1
add ebp, 0x5ac
leave
ret

Function at 0x444931
Capabilities:
Check if file exists
Copy file
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a0ee0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
xor ebx, ebx
lea eax, [ebp - 0x20e]
push ebx
push eax
mov esi, ecx
call fcn.00467850
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004601d9
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4449ab
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [esi + 0x48], 8
jb 0x4449b6
mov eax, dword [esi + 0x34]
jmp 0x4449b9
lea eax, [esi + 0x34]
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
cmp dword [ebp + 0xc], ebx
je 0x4449de
cmp dword [esi + 0x48], 8
jb 0x4449d4
mov esi, dword [esi + 0x34]
jmp 0x4449d7
add esi, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045fbf1
leave
ret 8
Function at 0x444a71
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x4a0ee0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x118
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00467850
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x444ab7
inc eax
jmp 0x444ae0
xor eax, eax
inc eax
cmp dword [ebp - 0x7c], 5
jne 0x444adc
cmp dword [ebp - 0x78], eax
jne 0x444ace
cmp word [ebp + 0x94], ax
jmp 0x444adc
cmp dword [ebp - 0x78], 0
jne 0x444ae0
cmp word [ebp + 0x94], 3
jae 0x444ae0
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.0045fbf1
add ebp, 0xa0
leave
ret
Function at 0x445690
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x2c
call fcn.00460299
mov esi, eax
pop ecx
test esi, esi
je 0x4456ae
mov ecx, esi
call fcn.004088c0
jmp 0x4456b0
xor esi, esi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00408c1f
mov dword [esi + 0x28], 2
xor eax, eax
lea ebx, [esi + 0x1c]
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x445603
push edi
push edi
mov dword [ebp - 4], edi
call fcn.004613c7
add esp, 0x18
mov dword [ebp + 0xc], eax
cmp eax, edi
jne 0x4456f3
call fcn.00444b84
jmp 0x445726
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x445718
cmp dword [ebx], 3
jne 0x445718
push 0xc
push ebx
push 0x26
push dword [ebp + 8]
call fcn.004459b1
add esp, 0x10
call fcn.00444b84
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x44572d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a0ee0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [0x4a5b44], eax
jne 0x4457a7
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00467850
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x48f17c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
test eax, eax
setne cl
mov dword [0x4a5b44], eax
mov eax, ecx
jmp 0x4457a8
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045fbf1
leave
ret
Function at 0x445a64
Capabilities:
Check http status code
Check internet connectivity via wininet
Create http request
Get http content length
Reference http user-agent string

Disassembly:
push ebp
lea ebp, [esp - 0x230]
sub esp, 0x230
push 0xfffffffffffffffe
push 0x494dc0
push 0x46b220
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a0ee0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x22c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edx, ecx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 0x238]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0x23c]
mov dword [ebp - 0x3c], ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
push 8
pop ecx
mov esi, str.Accept:___r_n_r_n
lea edi, [ebp + 0x20c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x30], ebx
xor esi, esi
xor edi, edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], 4
cmp eax, ebx
jne 0x445af6
xor eax, eax
jmp 0x445c10
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test byte [ebp - 0x30], 0x20
jne 0x445bf7
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x445b35
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x445b1f
sub eax, edx
sar eax, 1
je 0x445b35
push 3
pop esi
mov edi, dword [ebp - 0x3c]
push ebx
push ebx
push edi
push esi
push 0x48f0b0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x445bf7
push ebx
push 0x84000100
push 0xffffffffffffffff
lea ecx, [ebp + 0x20c]
push ecx
push dword [ebp - 0x40]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, ebx
je 0x445bf7
xor eax, eax
mov word [ebp], ax
mov esi, 0x208
push esi
push ebx
lea eax, [ebp + 2]
push eax
call fcn.00467850
add esp, 0xc
mov dword [ebp - 0x44], esi
push ebx
lea eax, [ebp - 0x44]
push eax
push dword [ebp]
push 0x2f
push edi
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
call esi
mov dword [ebp - 0x38], ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x20000013
push edi
call esi
test eax, eax
je 0x445bf7
cmp dword [ebp - 0x38], 0xc8
jne 0x445bf7
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x20000005
push edi
call esi
test eax, eax
je 0x445be3
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x28], eax
mov dword [ebp - 0x1c], 1
jmp 0x445bf7
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.0045fbf1
add ebp, 0x230
leave
ret 8
Function at 0x4501ac
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x47c953
call fcn.00466686
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x4502be
cmp byte [esi + 0x42], bl
je 0x4502be
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp di, ax
jne 0x4501e8
xor al, al
jmp 0x4502c0
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.00419c14
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a8c6
mov ecx, eax
call fcn.0041a002
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a8c6
mov ecx, eax
call fcn.0041a002
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x450258
dec eax
je 0x45025c
dec eax
dec eax
je 0x4502ba
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00408bd4
mov al, bl
jmp 0x4502c0
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a8c6
mov ecx, eax
call fcn.0041a002
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x45029c
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a8c6
mov ecx, eax
call fcn.0041a002
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004607c7
add esp, 0x10
cmp edi, eax
jne 0x450246
cmp byte [esi + 0x42], 0
je 0x4502ba
test edi, edi
jne 0x4501f6
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004127f6
jmp 0x4501f6
mov bl, 1
jmp 0x450248
mov al, 1
call fcn.00466709
ret
Function at 0x450367
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x47c980
call fcn.00466686
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x450391
lea eax, [ebp + 8]
push eax
call fcn.0041aabd
pop ecx
jmp 0x45050c
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x4503bf
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x4503bf
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x45050c
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x450507
cmp dword [esi + 0x3c], ebx
jne 0x4503e8
push eax
push edi
call fcn.0044fbf2
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x45050c
jmp 0x450507
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
call fcn.00419c14
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040a8c6
mov ecx, eax
call fcn.0041a002
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a8c6
mov ecx, eax
call fcn.0041a002
lea edx, [ebp - 0x38]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x4504d9
cmp eax, 1
jg 0x450514
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a8c6
mov ecx, eax
call fcn.0041a002
mov edi, dword [ebp - 0x38]
sub edi, eax
je 0x45047e
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a8c6
mov ecx, eax
call fcn.0041a002
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004607c7
add esp, 0x10
cmp edi, eax
jne 0x4504fb
lea eax, [ebp - 0x30]
mov byte [esi + 0x42], 1
cmp dword [ebp - 0x3c], eax
jne 0x450544
test edi, edi
ja 0x4504a4
cmp dword [ebp - 0x18], 0x20
push 0
lea ecx, [ebp - 0x2c]
jae 0x450500
push 8
call fcn.004127f6
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a8c6
mov ecx, eax
call fcn.0041a002
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a8c6
mov ecx, eax
call fcn.0041a002
lea edx, [ebp - 0x38]
push edx
mov edx, dword [ebp - 0x40]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x2e]
push edx
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x34], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x450435
push 0
lea ecx, [ebp - 0x2c]
push 1
call fcn.00408bd4
mov eax, 0xffff
call fcn.00466709
ret 4
cmp eax, 3
jne 0x4504fb
push dword [esi + 0x4c]
push dword [ebp - 0x30]
call fcn.0044fbf2
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x450533
mov esi, 0xffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00408bd4
mov ax, si
jmp 0x45050c
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00408bd4
mov ax, word [ebp + 8]
jmp 0x45050c

Function at 0x45fbf1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a0ee0]
jne 0x45fbfb
repz ret
jmp fcn.0046a8cf
Function at 0x4764ce
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0046ab4a
and dword [ebp - 4], 0
cmp dword [0x4a57d8], 0
mov ebx, eax
jne 0x47657f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x476630
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x476630
push eax
call fcn.0046aad8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4a57d8], eax
call esi
push eax
call fcn.0046aad8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4a57dc], eax
call esi
push eax
call fcn.0046aad8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a57e0], eax
call esi
push eax
call fcn.0046aad8
pop ecx
mov dword [0x4a57e8], eax
test eax, eax
je 0x47657f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046aad8
pop ecx
mov dword [0x4a57e4], eax
mov eax, dword [0x4a57e4]
cmp eax, ebx
je 0x4765d7
cmp dword [0x4a57e8], ebx
je 0x4765d7
push eax
call fcn.0046ab53
push dword [0x4a57e8]
mov esi, eax
call fcn.0046ab53
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4765d7
test edi, edi
je 0x4765d7
call esi
test eax, eax
je 0x4765ce
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4765ce
test byte [ebp - 0xc], 1
jne 0x4765d7
or dword [ebp + 0x10], 0x200000
jmp 0x476610
mov eax, dword [0x4a57dc]
cmp eax, ebx
je 0x476610
push eax
call fcn.0046ab53
pop ecx
test eax, eax
je 0x476610
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x476610
mov eax, dword [0x4a57e0]
cmp eax, ebx
je 0x476610
push eax
call fcn.0046ab53
pop ecx
test eax, eax
je 0x476610
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a57d8]
call fcn.0046ab53
pop ecx
test eax, eax
je 0x476630
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x476632
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..00cfg
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x2e9a136f
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x2fd17ff2
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4efadf
Capabilities:
Inspect section memory permissions

Disassembly:
or edx, 0x10
jmp 0x519c35
je 0x5769df
test eax, 0x80000000
je 0x42a8a7
or edx, 4
jmp 0x468842
or edx, 2
jmp 0x555e76
pop ebp
ret 4
jmp 0x519c35
jmp 0x519c35
je 0x423357
or edx, 0x80
jmp 0x4a27bd
jmp 0x519c35
or edx, 0x20
jmp 0x4e5530
test eax, 0x40000000
jmp 0x4279da
jmp 0x519c35
jmp 0x519c35
push ebp
dec ebp
shl ah, cl
bsf ebp, ebp
mov ebp, esp
shl ah, cl
mov eax, dword [ebp + 8]
xor edx, edx
cmp di, 0x53e2
test eax, 0x4000000
je 0x4efb05
or edx, 0x200
test eax, 0x20000000
je 0x4d65f6
test eax, 0x40000000
jmp 0x543c92
je 0x519c32
or edx, 8
jmp 0x4e7670
or edx, 1
mov eax, edx
xchg ebp, ebp
jmp 0x433d01
je 0x59378d
test eax, 0x80000000
je 0x4d0b2c
or edx, 0x40
jmp 0x4b90b9
jmp 0x519c35
test eax, 0x80000000
jmp 0x505d8f
test eax, 0x80000000
jmp 0x4ad12d

Function at 0x51e25d
Capabilities:
Parse pe header

Disassembly:
call fcn.00413a8c
mov edx, eax
bswap cx
xchg cx, cx
lea eax, [ebp - 0x14c]
bswap cx
mov ecx, 0xf8
jmp loc.00414ada
lea eax, [ebp - 0x54]
mov ecx, 0x40
movsx dx, ch
jmp 0x444617
mov dword fs:[eax], edx
jmp 0x4947b9
mov edx, edi
call fcn.0040676c
cmp word [ebp - 0x54], 0x5a4d
jmp 0x52ce06
push edx
jmp 0x555648
jmp fcn.004143ea
push ebp
xor ebp, 0x5ea81f69
stc
rol bp, 0xe0
mov ebp, esp
lea esp, [esp - 0x14c]
push ebx
mov bx, 0x6984
push esi
sub bx, bp
ror bh, cl
push edi
mov ebx, ecx
cmovb cx, dx
movzx cx, ah
mov esi, edx
mov edi, eax
cmovp ecx, edi
cmc
sub eax, eax
inc cx
mov dword [ebp - 8], eax
shrd ecx, edi, 0x15
sub eax, eax
mov ch, 0x86
mov dword [esi], eax
rol cl, 0x6a
sub eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov al, 0x9e
push ebp
cbw
movzx eax, di
push 0x47c2eb
not ah
xchg al, cl
lahf
push dword fs:[edx]
mov ax, cx
cmova eax, edx
setg al
mov dword fs:[edx], esp
xchg cl, dh
lahf
jmp 0x42d265
je 0x5891b9
mov eax, 0x418884
jmp 0x571f52
push eax
bswap eax
mov eax, edi
jmp 0x41da32
call fcn.004043cc
xor eax, eax
bswap dx
movzx cx, ch
pop edx
pop ecx
xchg cl, cl
pop ecx
jmp 0x436852
mov eax, dword [ebp - 0x18]
sete dh
cdq
jmp 0x48b543

Function at 0x401000
Capabilities:
Check for vm using instruction vpcext

Disassembly:
mov eax, 0xd61fac
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
pop es
fsub dword [ebp + 0x27]
jle 0x4010a3
retf
invalid
invalid
Function at 0x401460
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x16], 0x6c6c6548
mov dword [ebp - 0x12], 0x57202c6f
mov dword [ebp - 0xe], 0x646c726f
mov word [ebp - 0xa], 0x21
mov eax, dword [0x407070]
mov edx, dword [ebp - 0x16]
mov dword [eax], edx
mov edx, dword [ebp - 0x12]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xe]
mov dword [eax + 8], edx
movzx edx, word [ebp - 0xa]
mov word [eax + 0xc], dx
lea eax, [ebp - 0x16]
mov dword [esp + 4], eax
mov dword [esp], str.Data_written_to_memory:__s_n
call sym._printf
mov eax, 0
leave
ret 4

Function at 0x4014ee
Capabilities:
Create thread

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x34
call sym.___main
mov dword [esp + 0x14], str.LocalMyFileMappingObject
mov dword [esp + 0x10], 0x100
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
call sym._CreateFileMappingA_24
sub esp, 0x18
mov dword [0x407074], eax
mov eax, dword [0x407074]
test eax, eax
jne 0x401568
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Could_not_create_file_mapping_object___d_._n
call sym._printf
mov eax, 1
jmp 0x4016b4
mov eax, dword [0x407074]
mov dword [esp + 0x10], 0x100
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf001f
mov dword [esp], eax
call sym._MapViewOfFile_20
sub esp, 0x14
mov dword [0x407070], eax
mov eax, dword [0x407070]
test eax, eax
jne 0x4015d5
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Could_not_map_view_of_file___d_._n
call sym._printf
mov eax, dword [0x407074]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, 1
jmp 0x4016b4
lea eax, [ebp - 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], dbg.WriterThread@4
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], dbg.ReaderThread@4
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
mov dword [ebp - 0x10], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [0x407070]
mov dword [esp], eax
call sym._UnmapViewOfFile_4
sub esp, 4
mov eax, dword [0x407074]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x401d00
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401d4b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401d44
test esi, esi
je 0x401d44
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401d20
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401f30
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401f80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402058
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401fbe
cmp eax, 4
jne 0x401fe0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401fce
cmp edx, 4
je 0x401fce
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401f30