joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c3b0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x590a50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
call fcn.00418883
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403fd6
push 0x80004005
call fcn.00401580
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
fld dword [ebp + 0x14]
sub esp, 8
mov byte [ebp - 4], 3
fstp qword [esp]
lea ecx, [ebp - 0x10]
push 0x569110
push ecx
call fcn.00401650
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 8]
mov edi, dword [ebp + 0x10]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
add esp, 0x10
or eax, ecx
jge 0x40402d
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004014e0
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
push 0x104
push esi
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.005155ce
add esp, 8
test eax, eax
js 0x404114
cmp eax, dword [esi - 8]
jg 0x404114
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call fcn.0051571d
fstp dword [ebp - 0x10]
lea eax, [esi - 0x10]
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404094
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404100
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
fld dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401580
int3
Function at 0x404250
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push esi
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404288
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x404400
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c329
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x590a50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 4
call fcn.00418883
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404450
push 0x80004005
call fcn.00401580
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov edi, dword [ebp + 0x14]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 0x10], 1
jge 0x404488
push 0x104
mov ecx, esi
call fcn.004014e0
mov eax, dword [esi]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push edi
push 0x104
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4044be
push ecx
push eax
call fcn.005155ce
add esp, 8
test eax, eax
js 0x404571
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x404571
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4044f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404518
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40453b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40455e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401580
int3
Function at 0x41679d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0041f66a
call fcn.004165d5
cmp eax, esi
pop esi
jne 0x4167b9
mov ecx, 0x593f50
jmp fcn.0042b822
ret

Function at 0x417359
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.00427de3
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 0x417392
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.00416f9b
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 0x4173f0
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 0x417414
cmp dword [edi + 0x74], 0
jne 0x417414
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00427de3
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.004173b1
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 0x41af71
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.0041aaa2
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41afbb
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041af4c
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004047f0
jmp 0x41afc6
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042c868
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x41afcc
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.00421a9a
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 0x41b009
call fcn.0041aaa2
mov dword [esi + 0xc], 1
jmp 0x41b00e
call fcn.0041aaa2
cmp dword [esi], 0
je 0x41b057
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x41b02f
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041af4c
jmp 0x41b041
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401540
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004047f0
jmp 0x41b07b
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 0x41b07b
push dword [esi]
push dword [ebp + 8]
call fcn.0042c868
pop esi
pop ebp
ret 0xc

Function at 0x4212b2
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 0x4212f9
call fcn.00427de3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4212f9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x421315
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00420db7
mov esi, eax
test edi, edi
je 0x421313
test ebx, ebx
je 0x421313
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4221cb
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x531047
call fcn.0051675f
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4221f0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x422242
call fcn.00418883
push eax
lea ecx, [ebp - 0x10]
call fcn.00401370
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.00516a5f
push eax
call fcn.004149f0
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.004013f0
mov eax, esi
call fcn.00516837
ret 8
Function at 0x424ee4
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 0x424f2c
call fcn.00427de3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x424f2c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x424f6f
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 0x424f58
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 0x424f58
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x424f6c
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 0x47f7ea
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 0x47f804
call fcn.00427de3
mov esi, dword [eax + 0xc]
push dword [0x595c8c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x47f822
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 0x47f81a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x47f84f
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x47f81c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0047f718
mov esi, eax
jmp 0x47f841
Function at 0x4fb318
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 0x4fb330
mov edi, dword [esi + 0xc]
jmp 0x4fb370
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4fb349
call fcn.004190af
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4fb35e
call fcn.004190af
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4fb370
call fcn.004190af
call fcn.00427de3
cmp dword [eax + 0x3c], 0
je 0x4fb385
push edi
mov ecx, ebx
call fcn.004fa14c
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004fb232
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4fb3a3
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4fb3af
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 0x514add
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x590a50]
jne 0x514ae7
repz ret
jmp fcn.0051c674
Function at 0x52a439
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x590a50]
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.0051f637
and dword [ebp - 0x14], 0
cmp dword [0x5985c4], 0
mov dword [ebp - 0x18], eax
jne 0x52a4ec
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x52a594
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x52a594
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x567ae4
push ebx
mov dword [0x5985c4], eax
call edi
push eax
call esi
push 0x567ad0
push ebx
mov dword [0x5985c8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5985cc], eax
call edi
push eax
call esi
mov dword [0x5985d4], eax
test eax, eax
je 0x52a4ec
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5985d0], eax
mov eax, dword [0x5985d0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x52a545
cmp dword [0x5985d4], ecx
je 0x52a545
push eax
call esi
push dword [0x5985d4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x52a545
test ebx, ebx
je 0x52a545
call edi
test eax, eax
je 0x52a53c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x52a53c
test byte [ebp - 8], 1
jne 0x52a545
or dword [ebp + 0x10], 0x200000
jmp 0x52a578
mov eax, dword [0x5985c8]
cmp eax, dword [ebp - 0x18]
je 0x52a578
push eax
call esi
test eax, eax
je 0x52a578
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x52a578
mov eax, dword [0x5985cc]
cmp eax, dword [ebp - 0x18]
je 0x52a578
push eax
call esi
test eax, eax
je 0x52a578
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5985c4]
call esi
test eax, eax
je 0x52a594
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x52a596
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00514add
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x40538b
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x424697
call fcn.004239ba
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
mov dword [ebp - 4], 1
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4053ef
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
push esi
lea ecx, [ebp - 0x10]
push ecx
add eax, eax
push eax
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], esi
jbe 0x4053ef
inc esi
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, esi
call fcn.00423a59
ret 8

Function at 0x40638e
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [eax + 0x28], 2
push ebx
push esi
push edi
jb 0x406442
cmp dword [eax + 0x1c], 5
jb 0x406442
xor ebx, ebx
push str.SYSTEMCurrentControlSetServicesPerfOSPerformance
mov eax, 0x2001f
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.0040691d
test eax, eax
je 0x4063db
cmp dword [ebp - 0xc], ebx
je 0x4063d7
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x406445
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 4]
push eax
push 4
push ebx
mov edi, str.Disable_Performance_Counters
push edi
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call esi
cmp dword [ebp - 0xc], ebx
je 0x406409
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], ebx
push str.SYSTEMCurrentControlSetServicesPerfProcPerformance
mov eax, 0x2001f
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], ebx
call fcn.0040691d
test eax, eax
jne 0x4063c9
push 4
lea eax, [ebp - 4]
push eax
push 4
push ebx
push edi
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call esi
cmp dword [ebp - 0xc], ebx
je 0x406442
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40661e
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x4244ea
call fcn.004239ba
test byte [0x7b4554], 1
jne 0x40665d
or dword [0x7b4554], 1
mov eax, 0x19000
push eax
mov dword [0x7b4550], eax
call dword [sym.imp.MSVCR90.dll_malloc]
mov dword [0x7b454c], eax
mov dword [esp], 0x428a27
call fcn.004231ad
pop ecx
mov eax, dword [0x7b4550]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
call dword [0x4299ec]
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push 0x42b6b0
xor esi, esi
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
push dword [0x7b4550]
push esi
push dword [0x7b454c]
call sub.MSVCR90.dll_memset
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
push dword [0x7b454c]
mov ebx, SysStringLen
push esi
push esi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
call esi
mov edi, 0xea
jmp 0x4066f0
add dword [ebp - 0x10], 0x2800
mov eax, dword [ebp - 0x10]
push eax
push dword [0x7b454c]
mov dword [0x7b4550], eax
call dword [sym.imp.MSVCR90.dll_realloc]
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0
push 0
push dword [ebp - 0x14]
mov dword [0x7b454c], eax
push ebx
call esi
cmp eax, edi
je 0x4066be
mov eax, dword [0x7b454c]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
call fcn.00423a59
ret 8

Function at 0x406a0d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push dword [0x7b4350]
mov dword [ebp - 4], edi
push reloc.OLEAUT32.dll_SysStringLen
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406a8c
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
push dword [0x7b434c]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x406a82
push ebx
push dword [ebp - 8]
call sub.mfc90u.dll_new__
pop ecx
mov ebx, eax
lea eax, [ebp - 8]
push eax
push ebx
push edi
push edi
push dword [0x7b434c]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x406a7a
inc edi
push ebx
call sub.mfc90u.dll_delete__
pop ecx
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
leave
ret
Function at 0x406a91
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push dword [0x7b4354]
mov dword [ebp - 4], edi
push reloc.OLEAUT32.dll_SysStringLen
mov dword [ebp - 8], edi
or ebx, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406aff
push esi
push 4
pop eax
push eax
mov dword [ebp - 8], eax
call sub.mfc90u.dll_new
pop ecx
mov esi, eax
lea eax, [ebp - 8]
push eax
push esi
push edi
push edi
push dword [0x7b434c]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406aee
mov ebx, dword [esi]
push esi
call sub.mfc90u.dll_delete
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret

Function at 0x406b05
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push dword [0x7b4358]
mov dword [ebp - 4], edi
push reloc.OLEAUT32.dll_SysStringLen
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406b84
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
push dword [0x7b434c]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x406b7a
push ebx
push dword [ebp - 8]
call sub.mfc90u.dll_new__
pop ecx
mov ebx, eax
lea eax, [ebp - 8]
push eax
push ebx
push edi
push edi
push dword [0x7b434c]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x406b72
inc edi
push ebx
call sub.mfc90u.dll_delete__
pop ecx
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
leave
ret