joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4961f4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49622c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049427e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00494256
jmp 0x496238
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4978eb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49792d
call fcn.0049d82a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49792d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x497924
xor eax, eax
jmp 0x497935
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049793b
pop edi
pop esi
pop ebx
ret 4

Function at 0x49dd5a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49dd88
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49dda6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049dcc0
jmp 0x49dda6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49dda6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049dcc0
test edi, edi
mov eax, edi
jne 0x49dd90
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x4220377d
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0xe4015d7
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4015de
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
cmp dword [0x89ccd0], 0
push ebx
push esi
push edi
je 0x401604
cmp dword [0x89ccd4], 0
jne 0x4016e2
xor ebx, ebx
mov edi, dword fs:[ebx + 0x30]
mov edi, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edi, eax
add edi, dword [eax + 0x3c]
mov edx, dword [edi + 0x78]
add edx, eax
mov edi, dword [edx + 0x20]
add edi, eax
push ebp
mov ebp, ebx
mov esi, dword [edi + ebp*4]
add esi, eax
inc ebp
push ebx
push ecx
mov ecx, 0x64616f4e
sub ecx, 1
dec ecx
dec ecx
mov ebx, ecx
pop ecx
add ebx, 1
cmp dword [esi], ebx
pop ebx
jne 0x401629
push ebx
pushal
or ch, ch
sbb ax, 0x2a
popal
mov ebx, 0x41797262
sub ebx, 2
add ebx, 1
cmp dword [esi + 8], ebx
pop ebx
jne 0x401629
mov edi, dword [edx + 0x24]
add edi, eax
mov bp, word [edi + ebp*2]
mov edi, dword [edx + 0x1c]
add edi, eax
sub ebp, 1
mov edi, dword [edi + ebp*4]
add edi, eax
pop ebp
mov dword [0x89ccd0], edi
xor ebx, ebx
mov edi, dword fs:[ebx + 0x30]
mov edi, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edi, eax
add edi, dword [eax + 0x3c]
mov edx, dword [edi + 0x78]
add edx, eax
mov edi, dword [edx + 0x20]
add edi, eax
push ebp
mov ebp, ebx
mov esi, dword [edi + ebp*4]
add esi, eax
inc ebp
push eax
mov eax, 0x50746546
add eax, 1
cmp dword [esi], eax
pop eax
jne 0x4016a2
push ebx
mov ebx, 0x73736571
add ebx, 1
cmp dword [esi + 0xa], ebx
pop ebx
jne 0x4016a2
mov edi, dword [edx + 0x24]
add edi, eax
mov bp, word [edi + ebp*2]
mov edi, dword [edx + 0x1c]
add edi, eax
sub ebp, 1
mov edi, dword [edi + ebp*4]
add edi, eax
pop ebp
mov dword [0x89ccd4], edi
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x401704
sub eax, 1
jne 0x401717
mov ecx, dword [str.user32.dll]
mov eax, ecx
push eax
mov eax, dword [0x89ccd0]
call eax
mov dword [ebp - 4], eax
jmp 0x401717
mov ecx, dword [str.kernel32.dll]
mov eax, ecx
push eax
mov eax, dword [0x89ccd0]
call eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x89ccd4]
call eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401fb2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor ecx, ecx
xor edx, edx
mov eax, ecx
push 9
pop esi
div esi
mov al, byte [edx + section..data]
xor byte [ecx + 0x405010], al
inc ecx
cmp ecx, 0x497c00
jb 0x401fb9
push 0x405010
call fcn.00401a75
mov dword [ebp - 4], eax
pop ecx
test eax, eax
je 0x401fee
mov eax, dword [ebp - 4]
call eax
pop esi
leave
ret
Function at 0x402a24
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402a63
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402a63
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402a63
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402a63
cmp dword [ecx + 0x74], 0xe
jbe 0x402a63
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x5b5f5465
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x586b2b24
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401cf9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401d34
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401d30
lea ebx, [ebx]
cmp esi, eax
jae 0x401d34
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401d20
cmp esi, eax
jb 0x401d3a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401e00
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push ebp
push esi
push edi
lea ecx, [ecx + eax + 0x18]
mov dword [esp + 0x10], 0
jbe 0x401ef2
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea esi, [ecx + 0xc]
cmp dword [esi + 4], 0
jne 0x401e87
jmp 0x401e53
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x401ed2
mov eax, dword [esi]
push 4
push 0x1000
push edi
add eax, ebx
push eax
call ebp
test eax, eax
je 0x401efd
mov eax, dword [esi]
push edi
add eax, ebx
push 0
push eax
mov dword [esi - 4], eax
call fcn.0041f900
jmp 0x401ecf
jnp 0x401ea0
jp 0x401ea0
inc ebx
div ch
mov al, byte [0xc1ba04d6]
arpl cx, cx
bound ebp, qword [eax + eax*2]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push 4
push 0x1000
push ecx
add edx, ebx
push edx
call ebp
test eax, eax
je 0x401efd
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
add ecx, dword [esp + 0x18]
mov edi, dword [esi]
push eax
add edi, ebx
push ecx
push edi
call fcn.00423740
mov dword [esi - 4], edi
add esp, 0xc
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
mov eax, dword [esp + 0x10]
movzx edx, word [ecx + 6]
add eax, 1
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x401e32
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x401fe0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, dword [edi]
movzx eax, word [esi + 0x14]
mov edx, dword [edi + 0x30]
mov ecx, dword [eax + esi + 0x20]
sub edx, 1
lea eax, [eax + esi + 0x18]
not edx
and edx, ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
mov dword [esp + 0x18], edx
jne 0x402048
mov ebx, dword [eax + 0x24]
test bl, 0x40
je 0x402041
jae 0x40203a
jb 0x40203a
add byte [esi], al
push es
les ecx, [ecx]
scasb al, byte es:[edi]
invalid
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x20]
jmp 0x402048
test bl, bl
jns 0x402048
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0
add eax, 0x28
jae 0x40207d
jb 0x40207d
xchg esi, eax
cwde
mov bl, 0x2a
jecxz 0x40207f
jne 0x402025
sbb ebp, dword [ecx]
push ds
adc dword [esi], ebp
stosb byte es:[edi], al
mov ah, 0x49
invalid
mov ecx, dword [edi]
mov esi, 1
cmp word [ecx + 6], si
mov dword [esp + 0x10], esi
jbe 0x40218a
lea ebx, [eax + 0x24]
mov esi, dword [edi + 0x30]
mov ebp, dword [ebx - 0x1c]
mov edi, dword [ebx - 0x14]
sub esi, 1
not esi
and esi, ebp
test edi, edi
jne 0x4020e1
mov eax, dword [ebx]
test al, 0x40
je 0x4020da
jmp 0x4020cf
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edi, dword [ecx + 0x20]
jmp 0x4020e1
test al, al
jns 0x4020e1
mov edi, dword [ecx + 0x24]
cmp edx, esi
je 0x402136
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add eax, ecx
cmp eax, esi
ja 0x402136
jne 0x40210f
je 0x40210f
mov bh, 0x1a
wait
int3
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.00401f10
test eax, eax
je 0x4021ab
mov eax, dword [ebx]
mov edx, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
jmp 0x402162
mov eax, dword [ebx]
test eax, 0x2000000
je 0x40214f
test dword [esp + 0x20], 0x2000000
je 0x40214f
or dword [esp + 0x20], eax
jmp 0x40215c
or eax, dword [esp + 0x20]
and eax, 0xfdffffff
mov dword [esp + 0x20], eax
sub edi, dword [esp + 0x14]
add edi, ebp
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx]
mov eax, dword [esp + 0x10]
movzx esi, word [ecx + 6]
add eax, 1
add ebx, 0x28
cmp eax, esi
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
jl 0x402095
lea ecx, [esp + 0x14]
mov edx, edi
mov dword [esp + 0x24], 1
call fcn.00401f10
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x40569b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4056e1
call fcn.0040c683
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 0x4056e1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x405724
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x40570d
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 0x40570d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x405721
mov ecx, dword [esi + 0x4c]
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 0x40bd32
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40bd75
call fcn.0040c683
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40bd75
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40bd90
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040b8e9
test ebx, ebx
mov esi, eax
je 0x40bd8e
test edi, edi
je 0x40bd8e
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40eb91
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40ebbf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40ebdd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040eafb
jmp 0x40ebdd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40ebdd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040eafb
test edi, edi
mov eax, edi
jne 0x40ebc7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x885528]
test ecx, ecx
je 0x40eca0
jmp 0x40eb90
ret 8

Function at 0x41e49d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4425e0]
jne 0x41e4a7
repz ret
jmp fcn.00422f58
Function at 0x42550d
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x442d60]
je 0x425528
inc edi
cmp edi, 0x17
jb 0x425519
cmp edi, 0x17
jae 0x4256a8
push ebp
push 3
call fcn.0042c2dd
cmp eax, 1
pop ecx
je 0x425674
push 3
call fcn.0042c2dd
test eax, eax
pop ecx
jne 0x42555c
cmp dword [0x442450], 1
je 0x425674
cmp ebx, 0xfc
je 0x4256a7
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x885d78
push ebp
call fcn.0041ff73
add esp, 0xc
test eax, eax
je 0x425592
push esi
push esi
push esi
push esi
push esi
call fcn.00423aaf
add esp, 0x14
push 0x104
mov esi, 0x885d91
push esi
push 0
mov byte [0x885e95], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4255d6
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041ff73
add esp, 0xc
test eax, eax
je 0x4255d6
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00423aaf
add esp, 0x14
push esi
call fcn.0041ffe0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42561b
push esi
call fcn.0041ffe0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x88608c
push 0x4378b4
sub ecx, eax
push ecx
push eax
call fcn.00421cca
add esp, 0x14
test eax, eax
je 0x42561b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00423aaf
add esp, 0x14
jmp 0x42561d
xor esi, esi
push 0x4378b0
push ebx
push ebp
call fcn.00420207
add esp, 0xc
test eax, eax
je 0x42563d
push esi
push esi
push esi
push esi
push esi
call fcn.00423aaf
add esp, 0x14
push dword [edi*8 + 0x442d64]
push ebx
push ebp
call fcn.00420207
add esp, 0xc
test eax, eax
je 0x42565f
push esi
push esi
push esi
push esi
push esi
call fcn.00423aaf
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042c120
add esp, 0xc
jmp 0x4256a7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4256a7
cmp ebp, 0xffffffff
je 0x4256a7
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x442d64]
push dword [esi]
call fcn.0041ffe0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x42c120
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00423136
xor ebx, ebx
cmp dword [0x8862cc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42c1f6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42c2d6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x438b2c
push edi
call esi
cmp eax, ebx
je 0x42c2d6
push eax
call fcn.004230c8
mov dword [esp], 0x438b1c
push edi
mov dword [0x8862cc], eax
call esi
push eax
call fcn.004230c8
mov dword [esp], 0x438b08
push edi
mov dword [0x8862d0], eax
call esi
push eax
call fcn.004230c8
mov dword [0x8862d4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041fa23
test eax, eax
pop ecx
pop ecx
je 0x42c1c4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00423aaf
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42c1f6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004230c8
cmp eax, ebx
pop ecx
mov dword [0x8862dc], eax
je 0x42c1f6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004230c8
pop ecx
mov dword [0x8862d8], eax
mov eax, dword [0x8862d8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42c27b
cmp dword [0x8862dc], ecx
je 0x42c27b
push eax
call fcn.0042313f
push dword [0x8862dc]
mov esi, eax
call fcn.0042313f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42c27b
cmp edi, ebx
je 0x42c27b
call esi
cmp eax, ebx
je 0x42c248
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42c248
test byte [ebp - 0x18], 1
jne 0x42c27b
lea eax, [ebp - 0x10]
push eax
call fcn.0041fa5a
test eax, eax
pop ecx
je 0x42c263
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00423aaf
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42c272
or dword [ebp + 0x10], 0x200000
jmp 0x42c2b6
or dword [ebp + 0x10], 0x40000
jmp 0x42c2b6
mov eax, dword [0x8862d0]
cmp eax, dword [ebp - 8]
je 0x42c2b6
push eax
call fcn.0042313f
cmp eax, ebx
pop ecx
je 0x42c2b6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42c2b6
mov eax, dword [0x8862d4]
cmp eax, dword [ebp - 8]
je 0x42c2b6
push eax
call fcn.0042313f
cmp eax, ebx
pop ecx
je 0x42c2b6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x8862cc]
call fcn.0042313f
cmp eax, ebx
pop ecx
je 0x42c2d6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42c2d8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431b24
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4425e0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00431ab9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0041f900
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x431b73
cmp dword [ebp - 0x1c], 5
jb 0x431b8b
jmp 0x431b87
cmp dword [ebp - 0x10], 1
jne 0x431b8b
cmp dword [ebp - 0x1c], 4
ja 0x431b87
jne 0x431b8b
cmp dword [ebp - 0x18], 0
jbe 0x431b8b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4393a0
call fcn.0043198d
test eax, eax
jge 0x431bac
mov byte [0x886434], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041e49d
add ebp, 0x78
leave
ret
Function at 0x402a30
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x446ff0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402ac4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a81
cmp dword [ebp + 0x10], ebx
jne 0x402ab8
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a30
test eax, eax
jne 0x402a93
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a68
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405d6f
cmp eax, ebx
je 0x402acb
push ebx
push dword [0x446ff0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ac4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x446ff0], ebx
jne 0x402ac1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ac1
jmp 0x402ac4
Function at 0x402edc
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f09
mov ecx, dword [0x446f98]
push edi
add eax, ecx
push edi
push eax
mov dword [0x41fcec], eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403007
cmp eax, edi
jl 0x403000
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409018]
call ebx
test eax, eax
je 0x402ffd
cmp dword [ebp - 4], esi
jne 0x402ffd
push dword [ebp + 8]
add dword [0x41fcec], esi
call fcn.00403007
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403000
cmp dword [ebp + 0x10], edi
jne 0x402fcc
cmp dword [ebp + 8], edi
jle 0x402ff8
mov esi, 0x41bca8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402f7c
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409018]
call ebx
test eax, eax
je 0x402ffd
cmp edi, dword [ebp - 4]
jne 0x402ffd
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fc8
cmp dword [ebp + 0x14], edi
jne 0x402fc8
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41fcec], eax
cmp dword [ebp + 8], 0
jg 0x402f6f
jmp 0x402ff8
push 0xfffffffffffffffe
jmp 0x402fff
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x402fd7
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409018]
call ebx
test eax, eax
je 0x402ffd
mov eax, dword [ebp - 4]
add dword [0x41fcec], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403000
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10