joyce8/EMBER2024-capa huggingface dataset:
Function at 0x570820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e2858
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.00570300
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x28], 0
call fcn.00570370
push 0
mov ecx, esi
call fcn.005707a0
mov ebx, dword [esp + 0x2c]
cmp ebx, 1
jb 0x570958
lea ecx, [esp + 0xc]
call fcn.0056ecd0
cmp eax, 1
jae 0x5708a7
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00570320
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov eax, dword [esp + 0x34]
lea edi, [esi + 0xc]
test eax, eax
jne 0x5708f4
push 0
lea ecx, [esp + 0x10]
call fcn.00570720
push eax
push edi
mov ecx, 0x67eccc
call fcn.0056ff30
test eax, eax
jne 0x5708fc
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00570320
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push eax
mov ecx, edi
call fcn.00570370
push edi
mov ecx, 0x67eccc
call fcn.0056fe90
push 0
push 2
push 2
push 0
push 3
push 0xc0000000
mov ecx, edi
call fcn.00570710
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x570958
push 0
push ebx
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 4], eax
je 0x570958
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 8], eax
jne 0x570988
push 1
mov ecx, esi
call fcn.005707a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00570320
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
lea ecx, [esp + 0xc]
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x24], 0xffffffff
call fcn.00570320
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc

Function at 0x571280
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x110]
call fcn.00570370
pop edi
add esp, 0x104
ret 4
Function at 0x5719f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x571a23
push esi
call fcn.005768e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x571a1c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x571aa9
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x571a92
mov eax, dword [esi + 8]
test eax, eax
je 0x571a47
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x571a8e
cmp eax, 2
je 0x571a92
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x571a3a
cmp eax, 3
je 0x571a6d
cmp eax, 1
jne 0x571a3a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x571a3a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x571a3a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00571ae0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x571ac9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00571ae0
add esp, 4
pop esi
ret

Function at 0x5a25c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x5a25cb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x5a26ce
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x61ef38]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x61ef38]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x61ef38]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x61ef38]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x61ef38]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x61ef38]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x61ef38]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x61ef38]
xor eax, edx
inc ecx
dec edi
jne 0x5a25e6
pop edi
test esi, esi
je 0x5a26f0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x61ef38]
xor eax, edx
inc ecx
dec esi
jne 0x5a26d2
pop esi
pop ebx
not eax
ret
Function at 0x5d5150
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5d5188
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.005d31dd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005d31b5
jmp 0x5d5194
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5d6842
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 0x5d6884
call fcn.005dc5f9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5d6884
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5d687b
xor eax, eax
jmp 0x5d688c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005d6892
pop edi
pop esi
pop ebx
ret 4

Function at 0x5dcb29
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 0x5dcb57
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5dcb75
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005dca8f
jmp 0x5dcb75
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5dcb75
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005dca8f
test edi, edi
mov eax, edi
jne 0x5dcb5f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x25ea1cea
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x4a15ecf
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x43cda0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x31000]
push edi
or ebp, 0xffffffff
jmp 0x43cdc2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43cdc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43cdb8
mov eax, 1
add ebx, ebx
jne 0x43cddb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43cdd0
jne 0x43cdec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43cdd0
xor ecx, ecx
sub eax, 3
jb 0x43ce00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43ce72
mov ebp, eax
add ebx, ebx
jne 0x43ce0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43ce18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43ce3c
inc ecx
add ebx, ebx
jne 0x43ce28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43ce1d
jne 0x43ce39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43ce1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43ce5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43ce4d
jmp 0x43cdbe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43ce5c
add edi, ecx
jmp 0x43cdbe
pop esi
mov edi, esi
mov ecx, 0xa
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43ce7a
cmp byte [edi], 1
jne 0x43ce7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x43ce7f
lea edi, [esi + 0x3a000]
mov eax, dword [edi]
or eax, eax
je 0x43cef7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x56680]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x566bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43ceac
mov ecx, edi
jns 0x43cedb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x566c0]
or eax, eax
je 0x43cef1
mov dword [ebx], eax
add ebx, 4
jmp 0x43cec9
call dword [esi + 0x566d0]
mov ebp, dword [esi + 0x566c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x43cf2b
sub esp, 0xffffff80
jmp 0x401244
Function at 0x401350
Capabilities:
Create service
Print debug messages
Start service

Disassembly:
sub esp, 0x208
mov ecx, dword [esp + 0x210]
push ebp
push esi
lea eax, [esp + 0x10c]
push 0
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 8], ebp
jne 0x4013a8
push str.OpenSCManager_Failed_
xor esi, esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
pop esi
pop ebp
add esp, 0x208
ret 8
push ebx
push edi
push 0
mov edi, dword [esp + 0x220]
push 0
push 0
push 0
lea edx, [esp + 0x124]
push 0
push edx
push 1
push 3
push 1
push 0xf01ff
push edi
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x40148a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x3e5
je 0x40143d
cmp ebx, 0x431
je 0x40143d
push str.CreateService_Failed_
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [esp + 0x18]
push 0x42d170
push eax
call fcn.00409f5f
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4014fb
push 0xf01ff
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40148a
mov ecx, 0x3f
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
xor ebp, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x18]
push str.OpenService_Failed__code__d
push edx
call fcn.00409f5f
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4014fb
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4014f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
cmp edx, 0x3e5
je 0x4014e7
cmp edx, 0x420
je 0x4014f6
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
push edx
lea ecx, [esp + 0x18]
push str.StartService_Failed__code:__d
push ecx
xor ebp, ebp
stosw word es:[edi], ax
call fcn.00409f5f
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4014fb
push str.StartService_Failed__ERROR_IO_PENDING
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4014fb
mov ebp, 1
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x401508
push esi
call edi
mov eax, dword [esp + 0x10]
push eax
call edi
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
add esp, 0x208
ret 8
Function at 0x401520
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
jne 0x401540
pop ebp
add esp, 0x1c
ret 4
mov eax, dword [esp + 0x24]
push ebx
push esi
push edi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40155e
xor edi, edi
jmp 0x401578
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, 1
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x401585
push esi
call ebx
push ebp
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x1c
ret 4

Function at 0x4015a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
push esi
and ecx, 0xffff
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4015c1
pop esi
ret
push ebx
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x42d1ac
push 0x42d1a4
mov edi, eax
call fcn.0040a198
mov esi, eax
add esp, 8
test esi, esi
je 0x401610
push esi
push edi
push 1
push ebx
call fcn.0040a02e
add esp, 0x10
cmp eax, edi
push esi
call fcn.00409fb1
add esp, 4
pop edi
pop ebx
mov eax, 1
pop esi
ret
Function at 0x401620
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x2108
call fcn.00409f30
push esi
push edi
push 0x42d1cc
mov esi, ecx
push 0x83
call fcn.004015a0
add esp, 8
test eax, eax
jne 0x40165b
push eax
push eax
push str.FreeSys_failed_
call fcn.0041e42f
pop edi
xor eax, eax
pop esi
add esp, 0x2108
ret
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x114]
mov dword [esp + 0x110], 0
rep stosd dword es:[edi], eax
mov ecx, 0x3ff
lea edi, [esp + 0x1114]
mov dword [esp + 0x1110], eax
mov byte [esp + 0xc], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0xc]
push str.yck.sys
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0xc]
mov ecx, esi
push edx
push 0x42d100
call fcn.00401350
test eax, eax
push 0x42d1a4
jne 0x4016e8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
xor eax, eax
pop esi
add esp, 0x2108
ret
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push str..yck
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40171d
pop edi
xor eax, eax
pop esi
add esp, 0x2108
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x110], eax
lea eax, [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
push eax
lea ecx, [esp + 0x1118]
push 0x400
push ecx
lea edx, [esp + 0x120]
push 4
push edx
push 0x80012050
push esi
call edi
test eax, eax
jne 0x40176c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x2108
ret
lea eax, [esp + 8]
push 0
push eax
lea ecx, [esp + 0x1118]
push 0x400
push ecx
lea edx, [esp + 0x120]
push 4
push edx
push 0x80012054
push esi
call edi
test eax, eax
push esi
jne 0x4017a8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x2108
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x2108
ret
Function at 0x401b70
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x384
push ebx
mov ebx, ecx
push edi
push 0
mov eax, dword [ebx + 0x78]
push 0
push 0x1009
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x60]
push eax
rep stosd dword es:[edi], eax
push 2
mov dword [esp + 0x64], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x401d68
lea ecx, [esp + 0x5c]
push ebp
xor ebp, ebp
push ecx
push edi
mov dword [esp + 0x14], ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401d27
push esi
mov edx, dword [esp + 0x6c]
mov ecx, ebx
push edx
call fcn.00401eb0
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
je 0x401d13
push str.SYSTEM
push esi
call fcn.004105f0
add esp, 8
test eax, eax
je 0x401d13
push str.LOCAL_SERVICE
push esi
call fcn.004105f0
add esp, 8
test eax, eax
je 0x401d13
push str.NETWORK_SERVICE
push esi
call fcn.004105f0
add esp, 8
test eax, eax
je 0x401d13
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x291]
mov byte [esp + 0x290], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x290]
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x30], eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x290]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0x104
push ecx
push eax
push 0x1007
push edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
lea eax, [esp + 0x88]
lea ebp, [ebx + 0x5c]
push eax
push 0
push esi
mov ecx, ebp
call fcn.00416cef
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x18d]
mov byte [esp + 0x18c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x18c]
stosw word es:[edi], ax
push ecx
push 0x42d170
push edx
stosb byte es:[edi], al
call fcn.00409f5f
add esp, 0xc
lea eax, [esp + 0x18c]
mov ecx, ebp
push eax
push 1
push esi
call fcn.00416cef
mov ecx, dword [esp + 0x14]
push ecx
push 2
push esi
mov ecx, ebp
call fcn.00416cef
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
inc eax
mov dword [esp + 0x10], eax
mov ebp, eax
lea edx, [esp + 0x64]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401bd4
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebp
lea eax, [esp + 0x44]
push 0x42d1e4
push eax
call fcn.00409f5f
add esp, 0xc
lea ecx, [esp + 0x40]
push ecx
push 0x3eb
mov ecx, ebx
call fcn.0041a914
pop ebp
pop edi
pop ebx
add esp, 0x384
ret
Function at 0x40f006
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42f1c8
cmp edx, dword [eax]
je 0x40f028
add eax, 8
inc ecx
cmp eax, 0x42f258
jl 0x40f019
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42f1c8]
jne 0x40f156
mov eax, dword [0x431c24]
cmp eax, 1
je 0x40f130
test eax, eax
jne 0x40f059
cmp dword [0x42e834], 1
je 0x40f130
cmp edx, 0xfc
je 0x40f156
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f090
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040f250
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040f340
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40f0d3
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040f340
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x427090
push edi
call fcn.00411200
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040f250
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040f260
lea eax, [ebp - 0xa0]
push 0x427070
push eax
call fcn.0040f260
push dword [esi + 0x42f1cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040f260
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00411172
add esp, 0x2c
pop edi
jmp 0x40f156
lea eax, [ebp + 8]
lea esi, [esi + 0x42f1cc]
push 0
push eax
push dword [esi]
call fcn.0040f340
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x416410
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00409f30
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4164db
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4164db
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41648e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x416499
or bh, 8
and edi, 0x8000000
je 0x4164b4
mov eax, dword [0x4333bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4164db
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret