joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522d18
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x57cf60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x404c11
cmp byte [edi + 0x49], bl
je 0x404c11
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x404c05
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x404b65
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x404b7d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x404ba6
dec eax
je 0x404baa
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x404c00
jmp 0x404c0c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x404bba
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x404be3
cmp ebx, 0x10
jae 0x404bc9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00507a35
add esp, 0x10
cmp esi, eax
jne 0x404bfd
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x404c09
test esi, esi
jne 0x404b71
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00403db0
jmp 0x404b6b
lea ecx, [ebp - 0x2c]
call fcn.00403610
xor al, al
jmp 0x404c13
lea ecx, [ebp - 0x2c]
call fcn.00403610
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00505fe3
mov esp, ebp
pop ebp
ret
Function at 0x4053a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522de0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x57cf60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x10], 0x531f6f
je 0x4054e2
call fcn.0040f1d3
mov edi, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x405410
call fcn.0040f1d3
mov ecx, dword [ebp + 0xc]
mov edi, dword [eax + 8]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4054e2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4054e2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push str.137
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.004052e0
xor ecx, ecx
test ebx, ebx
setne cl
test ecx, ecx
jne 0x40544f
push 0x80004005
call fcn.00401350
mov eax, dword [eax]
push ebx
push eax
call fcn.0050683a
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40547a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [ebp - 0x28]
mov ebx, eax
call fcn.004187b0
push 0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.00405230
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x3c]
push edx
push 0x1001
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00418c38
test eax, eax
jne 0x4054f6
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00403970
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004188e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
lea ecx, [ebp - 0x28]
call fcn.004184e7
lea ecx, [ebp - 0x28]
call fcn.0041874b
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00403970
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004188e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b91a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0040f1d3
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40b953
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040b55c
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40b9b1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x40b9d5
cmp dword [edi + 0x74], 0
jne 0x40b9d5
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0040f1d3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040b972
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40d0e1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40d129
call fcn.0040f1d3
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40d129
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40d16c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x40d155
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40d155
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x40d169
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x415324
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41536b
call fcn.0040f1d3
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41536b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x415387
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00414e29
mov esi, eax
test edi, edi
je 0x415385
test ebx, ebx
je 0x415385
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x415b5d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x52bb21
call fcn.0050821d
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x415b82
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x415bd4
call fcn.00416072
push eax
lea ecx, [ebp - 0x10]
call fcn.00402aa0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0050a666
push eax
call fcn.00407982
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401500
mov eax, esi
call fcn.005082f5
ret 8

Function at 0x416888
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00416547
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4168d2
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040bddc
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040a0c7
jmp 0x4168dd
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00418f6e
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4168e3
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00415430
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x416920
call fcn.00416547
mov dword [esi + 0xc], 1
jmp 0x416925
call fcn.00416547
cmp dword [esi], 0
je 0x41696e
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x416946
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040bddc
jmp 0x416958
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004035d0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040a0c7
jmp 0x416992
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x416992
push dword [esi]
push dword [ebp + 8]
call fcn.00418f6e
pop esi
pop ebp
ret 0xc

Function at 0x492db2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x492dcc
call fcn.0040f1d3
mov esi, dword [eax + 0xc]
push dword [0x58a6d4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x492dea
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x492de2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x492e17
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x492de4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00492ce0
mov esi, eax
jmp 0x492e09

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004136dc
call fcn.00407ce3
cmp eax, esi
pop esi
jne 0x4e34a0
mov ecx, 0x5885a8
jmp fcn.0041d0ab
ret
Function at 0x4e6d87
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e6d9f
mov edi, dword [esi + 0xc]
jmp 0x4e6ddf
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4e6db8
call fcn.00416cd3
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e6dcd
call fcn.00416cd3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e6ddf
call fcn.00416cd3
call fcn.0040f1d3
cmp dword [eax + 0x3c], 0
je 0x4e6df4
push edi
mov ecx, ebx
call fcn.004e5c4d
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e6ca1
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e6e12
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e6e1e
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x505fe3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x57cf60]
jne 0x505fed
repz ret
jmp fcn.0050f1ec
Function at 0x51da1f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x57cf60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0050ebe6
and dword [ebp - 0x14], 0
cmp dword [0x58cc6c], 0
mov dword [ebp - 0x18], eax
jne 0x51dad2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x51db7a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x51db7a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x559cc0
push ebx
mov dword [0x58cc6c], eax
call edi
push eax
call esi
push 0x559cac
push ebx
mov dword [0x58cc70], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x58cc74], eax
call edi
push eax
call esi
mov dword [0x58cc7c], eax
test eax, eax
je 0x51dad2
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x58cc78], eax
mov eax, dword [0x58cc78]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x51db2b
cmp dword [0x58cc7c], ecx
je 0x51db2b
push eax
call esi
push dword [0x58cc7c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x51db2b
test ebx, ebx
je 0x51db2b
call edi
test eax, eax
je 0x51db22
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x51db22
test byte [ebp - 8], 1
jne 0x51db2b
or dword [ebp + 0x10], 0x200000
jmp 0x51db5e
mov eax, dword [0x58cc70]
cmp eax, dword [ebp - 0x18]
je 0x51db5e
push eax
call esi
test eax, eax
je 0x51db5e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51db5e
mov eax, dword [0x58cc74]
cmp eax, dword [ebp - 0x18]
je 0x51db5e
push eax
call esi
test eax, eax
je 0x51db5e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x58cc6c]
call esi
test eax, eax
je 0x51db7a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x51db7c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00505fe3
leave
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
enter 0x84, 0
sub ebp, 0x82
add byte [eax], 0
add bh, al
inc ebp
inc byte [eax]
add byte [eax], al
add byte [ebp - 0x301781ab], cl
add eax, 0xc3890000
push edx
mov edx, ebx
or dl, 0x40
push edx
mov edx, 0x401e9a
sub edx, fcn.00401665
push edx
xor eax, eax
push fcn.00401665
mov dword [ebp + 0x7e], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x401058
mov eax, ebx

Function at 0x4015eb
Capabilities:
Delete file
Encode data using base64 via winapi

Disassembly:
push ebx
push ecx
push edx
enter 0x324, 0
push 0
call dword [sym.imp.OLE32.DLL_CoInitialize]
push 0
call dword [sym.imp.OLE32.DLL_CoCreateGuid]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 1
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 4], 0x14
mov byte [ebp - 0x11c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringW]
lea eax, [ebp - 0x324]
push eax
movzx ebx, word [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
call dword [sym.imp.OLE32.DLL_CoUninitialize]
lea eax, [ebx - 0x41]
leave
pop edx
pop ecx
pop ebx
ret
Function at 0x402c1f
Capabilities:
Create process on windows
Get common file path
Get disk information
Move file
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12a68
call fcn.00405600
push esi
push edi
lea ecx, [ebp - 0x12a68]
call fcn.004017e3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [0x40a0d8]
xor esi, esi
push 0x40a0dc
lea ecx, [ebp - 0x12a68]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.00401df9
lea ecx, [ebp - 0x12a68]
call fcn.00401e5f
lea eax, [ebp - 0x214]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0xc]
push 0x312
push eax
call fcn.00402abe
push dword [eax]
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea ecx, [ebp - 0xc]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x214]
push str..exe
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push eax
add eax, 0x187
pop eax
push 0xa86
call sub.MSVCRT.dll_abs
lea eax, [ebp - 0x214]
mov dword [esp], 0x40c498
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
je 0x402cfc
push edi
push dword [ebp - 8]
push 1
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fwrite]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
push 0x50
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp ebx, 0x217
nop
push 0x1ed
call dword [sym.imp.MSVCRT.dll_isgraph]
pop ecx
push 5
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x3bd
nop
call dword [sym.imp.KERNEL32.dll_GetVersion]
push 4
push esi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [ebp - 0x12a68]
call fcn.0040188d
pop edi
mov al, 1
pop esi
leave
ret
Function at 0x404a98
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov dword [ebp - 0x10], ecx
push edi
lea ecx, [ebp - 8]
xor edi, edi
call fcn.004053c8
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFileFind::CFileFind
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 4]
call sub.MFC42.DLL_CString::CString_4
push 1
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov esi, 0x40c4b8
push esi
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0xc]
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x404afb
push esi
lea ecx, [ebp - 4]
call sub.MFC42.DLL_CString::operator_1
push 0x40c4c4
lea ecx, [ebp - 4]
call sub.MFC42.DLL_CString::operator_1
push 0
push dword [ebp - 4]
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x404bb7
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov ebx, eax
mov eax, dword [ebp - 0x2c]
push 0x10
lea ecx, [ebp - 0x2c]
call dword [eax + 0x40]
test eax, eax
je 0x404b5c
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x404b5c
push ecx
push esp
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov ecx, dword [ebp - 0x10]
call fcn.00404a98
jmp 0x404baf
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x404baf
mov eax, dword [ebp - 0x2c]
push 0x10
lea ecx, [ebp - 0x2c]
call dword [eax + 0x40]
test eax, eax
jne 0x404baf
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [ebp - 8]
call fcn.00405416
lea ecx, [ebp - 0xc]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 8]
call esi
test eax, eax
jne 0x404baf
and edi, 0xfffffffe
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 8]
call esi
test ebx, ebx
jne 0x404b23
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 4]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
call fcn.00405560
lea ecx, [ebp - 8]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x404f59
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
and dword [esi + 4], 0
and dword [esi + 8], 0
and dword [esi + 0xc], 0
lea eax, [esp + 4]
push eax
push 0x202
mov dword [esi], 0x406908
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x404f91
mov dword [esi + 0x10], 1
jmp 0x404f95
and dword [esi + 0x10], 0
mov eax, esi
pop esi
add esp, 0x190
ret