joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f163
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x4c3a10]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [esp + 0x14]
call fcn.0040f3ab
push 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 7
call fcn.00401ce9
and dword [esp + 0x48], 0
push edi
lea ecx, [esp + 0x30]
call fcn.00401a3e
lea eax, [esp + 0x2c]
push eax
call fcn.0040f400
mov ecx, esi
call fcn.0040f220
mov eax, dword [esp + 0x20]
mov esi, eax
cmp eax, dword [esp + 0x24]
jbe 0x40f1c9
call fcn.00476388
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], esi
lea esi, [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.00412040
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x40f213
mov edi, 0x8618000a
push 0
push 1
lea ecx, [esp + 0x34]
call fcn.00401a62
lea esi, [esp + 0x14]
call fcn.0040f3d3
mov ecx, dword [esp + 0x4c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0047674a
mov esp, ebp
pop ebp
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor edi, edi
jmp 0x40f1ea
Function at 0x40f220
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
test eax, 0xffffffe0
jne 0x40f24d
xor eax, eax
inc eax
jmp 0x40f39c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x23c], eax
cmp eax, 0xffffffff
jne 0x40f26b
mov eax, 0x8618000b
jmp 0x40f39c
lea esi, [ebp - 0x250]
call fcn.00411f44
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x248], eax
cmp dword [edi + 0xc], eax
jbe 0x40f289
call fcn.00476388
mov eax, dword [edi]
mov esi, 0x22c
push esi
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.004766d0
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
mov dword [ebp - 0x238], esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40f386
mov edi, dword [ebp - 0x250]
mov ebx, dword [ebp - 0x24c]
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x240], ebx
test edi, edi
je 0x40f2e9
cmp edi, dword [ebp - 0x258]
je 0x40f2ee
call fcn.00476388
cmp ebx, dword [ebp - 0x248]
je 0x40f374
lea esi, [ebp - 0x244]
call fcn.00412040
cmp dword [eax + 0x1c], 0
jne 0x40f353
call fcn.00412040
cmp dword [eax + 0x18], 8
jb 0x40f317
mov eax, dword [eax + 4]
jmp 0x40f31a
add eax, 4
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40f353
lea esi, [ebp - 0x244]
call fcn.00412040
push dword [ebp - 0x230]
mov esi, eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi + 0x1c], eax
test edi, edi
jne 0x40f370
call fcn.00476388
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40f368
call fcn.00476388
add ebx, 0x20
jmp 0x40f2d7
mov eax, dword [edi]
jmp 0x40f35e
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40f2c5
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047674a
leave
ret
Function at 0x411a30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea esi, [ebx + 0x10c]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push edi
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x411c36
mov ecx, esi
call fcn.00411da4
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401922
push esi
push dword [esi + 0xc]
lea ecx, [ebp - 0x4c]
call fcn.0041656d
mov edi, dword [ebp - 0x48]
push edi
push dword [esi + 0x10]
lea eax, [edi + 0x1c]
push eax
call fcn.004131c2
mov eax, dword [esi + 0x10]
add esp, 0xc
push eax
add eax, 0xffffffe4
push eax
mov ecx, esi
call fcn.0041222c
add dword [esi + 0x10], 0xffffffe4
push esi
push edi
lea ecx, [ebp - 0x4c]
call fcn.0041656d
mov eax, dword [ebx + 0x78]
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x50], eax
mov eax, dword [ebx + 0x60]
lea edi, [ebp - 0x54]
lea esi, [ebp - 0x44]
mov dword [ebp - 0x54], eax
call fcn.0041abf0
test al, al
jne 0x411c2a
call fcn.004125c4
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.0040c1fa
test eax, eax
je 0x411af0
call fcn.0041b17b
jmp 0x411ab6
call fcn.004125c4
mov esi, dword [eax + 0x1c]
test esi, esi
je 0x411c2a
lea edi, [ebx + 0xdc]
mov ecx, edi
call fcn.00411e1a
lea ecx, [ebx + 0xf4]
call fcn.00411e1a
push str..exe
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0041318d
add esp, 0xc
push eax
mov ecx, edi
call fcn.00411dbf
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x78]
call fcn.00401a62
push esi
lea ecx, [ebx + 0xf4]
call fcn.00411dbf
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], 7
call fcn.00401ce9
lea eax, [ebp - 0x20]
add esi, 0x16c
push eax
mov dword [ebp - 0x50], esi
call fcn.00410b0b
test eax, eax
je 0x411c04
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x4c]
push eax
lea esi, [ebx + 0x60]
push esi
call fcn.0041a71f
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x58], eax
mov eax, dword [esi]
lea edi, [ebp - 0x5c]
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
call fcn.0041abf0
test al, al
jne 0x411c02
call fcn.004125c4
mov esi, dword [eax + 0x1c]
push str..exe
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [esi + 0x1a8], 5
call fcn.0041318d
add esp, 0xc
push eax
lea ecx, [ebx + 0xdc]
call fcn.00411dbf
push 0
push 1
lea ecx, [ebp - 0x78]
call fcn.00401a62
push esi
lea ecx, [ebx + 0xf4]
call fcn.00411dbf
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x20]
push eax
call fcn.00410b0b
test eax, eax
jne 0x411b78
xor edi, edi
lea eax, [ebp - 0x40]
push eax
push edi
push ebx
push 0x41167d
push edi
push edi
call fcn.00477955
add esp, 0x18
push edi
push 1
lea ecx, [ebp - 0x20]
mov dword [ebx + 0xd8], eax
call fcn.00401a62
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00401a62
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047674a
leave
ret
Function at 0x4138d8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp dword [ebp + 8], ebx
jne 0x4138ea
xor eax, eax
jmp 0x413958
push edi
lea eax, [esi + 0x1bc]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 8]
push eax
lea edi, [esi + 0x28]
call fcn.00413b5b
lea eax, [esi + 0x1bc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
cmp dword [esi + 0x1d4], ebx
jne 0x413938
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x413a69
push ebx
push ebx
mov dword [ebp + 8], ebx
call fcn.00477955
add esp, 0x18
mov dword [esi + 0x1d4], eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x413955
push ebx
push ebx
push 0x720
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 4

Function at 0x413c3a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004766d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.00401a3e
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.0047674a
leave
ret

Function at 0x413e56
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push esi
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x413e7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x80004005
jmp 0x413ec6
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x413e71
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x413ea7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x80004005
jmp 0x413ec5
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
and dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
push ecx
push edi
push dword [ebp + 0x10]
call fcn.00403201
add esp, 0xc
pop edi
pop esi
pop ebp
ret

Function at 0x413ec9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x413ef0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x80004005
jmp 0x413f38
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x413ee3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x413f19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x80004005
jmp 0x413f37
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push edi
push dword [ebp + 0x10]
call fcn.00403201
add esp, 0xc
pop edi
pop esi
leave
ret
Function at 0x414720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [ebp + 8], edi
je 0x414752
lea eax, [ebp + 8]
push eax
push edi
add esi, 0xffffffdc
push esi
push 0x4149c2
push edi
push edi
mov dword [ebp + 8], edi
call fcn.00477955
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41476b
lea eax, [esi - 0x24]
call fcn.004154bc
push 0x64
push edi
push 0x65a
push dword [esi - 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x414a9a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
mov eax, dword [0x4c3a10]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push edi
xor edi, edi
push edi
push 0x1f4
mov ebx, ecx
push 0x64
mov dword [esi + 0xe4], edi
push dword [ebx + 4]
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
push 0x206
mov word [esp + 0x4c], ax
lea eax, [esp + 0x4e]
push edi
push eax
call fcn.004766d0
add esp, 0xc
cmp dword [esi + 0x154], 8
jb 0x414b00
mov ecx, dword [esi + 0x140]
jmp 0x414b06
lea ecx, [esi + 0x140]
cmp dword [esi + 0x138], 8
jb 0x414b17
mov eax, dword [esi + 0x124]
jmp 0x414b1d
lea eax, [esi + 0x124]
push ecx
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
cmp dword [esi + 0xfc], edi
je 0x414b8f
cmp dword [esi + 0x154], 8
jb 0x414b51
mov ecx, dword [esi + 0x140]
jmp 0x414b57
lea ecx, [esi + 0x140]
cmp dword [esi + 0x138], 8
jb 0x414b68
mov edx, dword [esi + 0x124]
jmp 0x414b6e
lea edx, [esi + 0x124]
lea eax, [esi + 0xe8]
cmp dword [eax + 0x18], 8
jb 0x414b7f
mov eax, dword [eax + 4]
jmp 0x414b82
add eax, 4
push ecx
push eax
mov ecx, esi
call fcn.00414faa
cmp eax, edi
je 0x414be9
cmp dword [esi + 0x118], edi
je 0x414be5
cmp dword [esi + 0x154], 8
jb 0x414ba8
mov ebx, dword [esi + 0x140]
jmp 0x414bae
lea ebx, [esi + 0x140]
cmp dword [esi + 0x138], 8
jb 0x414bbf
mov edx, dword [esi + 0x124]
jmp 0x414bc5
lea edx, [esi + 0x124]
lea eax, [esi + 0x104]
cmp dword [eax + 0x18], 8
jb 0x414bd6
mov eax, dword [eax + 4]
jmp 0x414bd9
add eax, 4
push eax
mov ecx, esi
call fcn.00414e85
mov ebx, dword [esp + 0xc]
cmp eax, edi
jne 0x414c51
mov eax, dword [esi + 0xdc]
cmp eax, 1
je 0x414bf8
cmp eax, edi
jne 0x414c07
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x16c]
mov dword [esi + 0x164], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call fcn.0040c9d9
push 0x64
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
lea ecx, [esp + 0x20]
call fcn.0040e792
lea ecx, [esp + 0x14]
call fcn.0040e792
xor eax, eax
jmp 0x414c78
push 0x64
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, esi
call fcn.004154bc
push 0x64
push 1
push 0x65a
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x254]
pop edi
pop ebx
xor ecx, esp
call fcn.0047674a
mov esp, ebp
pop ebp
ret
Function at 0x415a90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x4c3a10]
xor eax, esp
mov dword [esp + 0x138], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov esi, edx
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x415c2c
cmp ebx, edi
je 0x415c2c
cmp ecx, edi
je 0x415c2c
push ebx
mov dword [esi + 8], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415af1
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
push 1
call dword [eax]
xor eax, eax
jmp 0x415c2f
push 0x4b31c8
push dword [esp + 0x10]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x415b0e
mov esi, dword [esi + 8]
mov eax, dword [esi]
push edi
mov ecx, esi
jmp 0x415ae8
lea eax, [esp + 0x58]
push eax
push ebx
call fcn.0047b801
pop ecx
pop ecx
test eax, eax
jne 0x415b04
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.0047b1de
pop ecx
pop ecx
test eax, eax
jne 0x415b04
lea eax, [esp + 0x18]
push eax
call fcn.0047b08a
pop ecx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.0047b448
pop ecx
pop ecx
test eax, eax
jne 0x415b04
cmp dword [esi + 4], edi
jne 0x415ba4
push 0x58
call fcn.00476774
pop ecx
cmp eax, edi
je 0x415b84
mov ecx, eax
call fcn.00429506
jmp 0x415b86
xor eax, eax
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [esi + 4]
push eax
call fcn.0042958e
mov eax, dword [esi + 4]
mov dword [eax + 0x28], esi
mov eax, dword [esi + 4]
mov dword [eax + 0x3c], edi
push 0x70
lea eax, [esp + 0xd4]
push edi
push eax
call fcn.004766d0
add esp, 0xc
lea eax, [esp + 0x88]
push eax
push 0x4b4104
lea eax, [esp + 0xd8]
push 0x38
push eax
call fcn.0047bdec
add esp, 0x10
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x24]
call fcn.00401900
push dword [esp + 0xc]
lea ecx, [esp + 0x40]
call fcn.00401900
lea eax, [esp + 0x3c]
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.00415e47
mov ebx, eax
neg ebx
push edi
sbb bl, bl
push 1
lea ecx, [esp + 0x44]
inc bl
call fcn.00401a62
push edi
push 1
lea ecx, [esp + 0x28]
call fcn.00401a62
xor eax, eax
test bl, bl
setne al
jmp 0x415c2f
xor eax, eax
inc eax
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047674a
mov esp, ebp
pop ebp
ret 8
Function at 0x415ce5
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
push 7
pop esi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov edi, ecx
push 0
lea ecx, [ebp - 0x3c]
mov ebx, edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x24], esi
call fcn.00401ce9
push 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], esi
call fcn.00401ce9
push ebx
lea ebx, [ebp - 0x3c]
mov eax, edi
call fcn.00415c46
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x415d42
lea eax, [ebp - 0x38]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x415d45
mov ecx, dword [ebp - 0x38]
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x24], 8
jae 0x415d5f
lea ecx, [ebp - 0x38]
mov ebx, dword [ebp - 0x48]
push ebx
push eax
push ecx
call fcn.0040b65e
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x415d78
mov edi, dword [edi + 4]
jmp 0x415d7b
add edi, 4
push esi
push str.http:__
push edi
call fcn.0047bef3
add esp, 0xc
test eax, eax
jne 0x415d91
add edi, 0xe
mov esi, 0x4b4148
push esi
push edi
call fcn.00479795
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
test eax, eax
jne 0x415da9
push esi
jmp 0x415daa
push eax
call fcn.00401a3e
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x415dbb
lea eax, [ebp - 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x415dbe
mov ecx, dword [ebp - 0x1c]
sub eax, edx
sar eax, 1
cmp dword [ebp - 8], 8
jae 0x415dd8
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x44]
push eax
push ecx
call fcn.0040b65e
add esp, 0xc
cmp dword [ebx + 0x18], 0x10
lea esi, [ebx + 4]
jb 0x415df2
mov eax, dword [esi]
jmp 0x415df4
mov eax, esi
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x415e10
cmp dword [ebx + 0x18], 0x10
jb 0x415e07
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
jmp 0x415e17
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x40]
push 0
mov dword [ecx], eax
push 1
lea ecx, [ebp - 0x20]
call fcn.00401a62
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00401a62
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0047674a
leave
ret 0xc
Function at 0x4182bf
Capabilities:
Set current directory

Disassembly:
push ebx
push edi
push 0x4d1a50
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [esi + 0x60]
mov eax, dword [esi + 0x60]
xor ebx, ebx
cmp eax, ebx
jle 0x4182ed
xor ebx, ebx
inc ebx
push 0x4d1a50
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, ebx
pop ebx
ret 4
cmp dword [esi + 0x58], ebx
je 0x4182db
lea edi, [esi + 0x3c]
cmp dword [edi + 0x18], 8
jb 0x418300
mov eax, dword [edi + 4]
jmp 0x418303
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, edi
call fcn.00403893
push dword [esp + 0xc]
mov eax, esi
call fcn.0041825d
test eax, eax
jne 0x4182db
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x4182db
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x58], ebx
jmp 0x4182d8

Function at 0x41a1ac
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3bc]
sub esp, 0x43c
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp + 0x3b8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3c4]
push 0x4d0b2c
mov ecx, edi
mov dword [ebp - 0x64], edi
call fcn.00419cf8
lea eax, [ebp + 0x1b0]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x41a209
lea eax, [ebp + 0x1b0]
push eax
push edi
call fcn.0041bd72
push edi
call fcn.0041a4c0
mov ebx, fcn.0041a1ac
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x41a2ac
push 0x1c
lea eax, [ebp - 0x80]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41a2ac
lea eax, [ebp - 0x58]
push eax
lea esi, [ebp - 0x60]
call fcn.0041bc70
mov ebx, dword [ebp - 0x60]
push 0x5c
push ebx
call fcn.0047c010
pop ecx
pop ecx
test eax, eax
je 0x41a2a4
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x41a2a4
lea edi, [eax + 1]
test edi, edi
jge 0x41a26b
xor edi, edi
cmp edi, dword [ebx - 0xc]
lea eax, [ebp - 0x60]
jl 0x41a27e
push eax
lea ecx, [ebp - 0x5c]
call fcn.0041ba9c
jmp 0x41a28e
call fcn.0041a811
push ebx
mov ecx, eax
lea esi, [ebp - 0x5c]
call fcn.0041a7bf
mov edi, dword [ebp - 0x64]
lea eax, [ebp - 0x5c]
call fcn.0041a47d
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffff0
call fcn.00419d1d
lea ecx, [ebx - 0x10]
call fcn.00419d1d
mov ecx, dword [ebp + 0x3b8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047674a
add ebp, 0x3bc
leave
ret
Function at 0x41baba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41bad1
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x41bb06
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x41bb02
cmp edi, eax
jae 0x41bb06
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x41baf4
cmp edi, eax
jb 0x41bb0a
xor eax, eax
jmp 0x41bb13
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x41c38d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x850
mov eax, dword [0x4c3a10]
xor eax, esp
mov dword [esp + 0x84c], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x18]
lea eax, [esi + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
test edi, edi
je 0x41c4b6
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x41c4b6
lea eax, [esp + 0x10]
push eax
push edi
lea ecx, [esp + 0x38]
call fcn.0041ce3d
mov eax, esi
mov ecx, ebx
call fcn.0041c4ca
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x5a]
push eax
call fcn.004766d0
add esp, 0xc
push 0x401
lea eax, [esp + 0x54]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x50]
push eax
lea esi, [esp + 0x10]
call fcn.0041bc70
mov edi, dword [ebx + 0x5c]
add edi, 0x48
mov eax, esi
call fcn.0041a47d
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.00419d1d
mov eax, ebx
call fcn.0041c519
mov ecx, dword [ebx + 0x5c]
push dword [esp + 0x30]
mov esi, ebx
mov dword [ecx + 0x4c], eax
call fcn.00420494
push dword [esp + 0x30]
lea eax, [esp + 0x14]
push dword [ebx + 0x5c]
call fcn.004229bc
cmp dword [ebx + 0x30], 0
je 0x41c4ad
mov eax, dword [esp + 0x10]
add eax, 2
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
add eax, 2
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffffe
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffffe
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x34]
call dword [sym.imp.USER32.dll_DrawFocusRect]
lea ecx, [esp + 0x30]
call fcn.0041cdbb
mov ecx, dword [esp + 0x854]
pop edi
pop esi
xor ecx, esp
call fcn.0047674a
mov esp, ebp
pop ebp
ret