joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003120
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a616e8
push 0x4a48cd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.10019560
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004df0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2820
call fcn.10019950
mov eax, dword [esp + 0x2824]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x20]
push 0x4a69aac
push ecx
call fcn.1001910f
add esp, 0xc
lea edx, [esp + 0x1c]
push 0
push 0
push 3
push 0
push 3
push 0
push edx
call dword [0x4a61318]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004f9d
xor eax, eax
mov ecx, 0x9c4
mov dword [esp + 0x10], eax
lea edi, [esp + 0x11c]
mov dword [esp + 0x14], eax
mov ebx, dword [0x4a6131c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x2710
push edx
lea eax, [esp + 0x20]
push 0xc
push eax
push 0x2d1400
push esi
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
je 0x10004f9d
mov ecx, dword [esp + 0x283c]
mov edx, dword [esp + 0x128]
push ecx
push 0
lea eax, [esp + 0x124]
push edx
push eax
call fcn.10004fb0
mov ecx, dword [esp + 0x2848]
mov edx, dword [esp + 0x13c]
push ecx
push 0
lea eax, [esp + 0x134]
push edx
push eax
call fcn.10004fb0
mov ecx, dword [esp + 0x2860]
mov edx, dword [esp + 0x150]
push ecx
push 0
lea eax, [esp + 0x144]
push edx
push eax
call fcn.10004fb0
mov ecx, dword [esp + 0x2864]
mov edx, dword [esp + 0x164]
push ecx
push 1
lea eax, [esp + 0x154]
push edx
push eax
call fcn.10004fb0
mov ecx, dword [esp + 0x2884]
add esp, 0x40
xor eax, eax
lea edi, [esp + 0x11c]
mov dword [ecx], 1
mov ecx, 0x9c4
lea edx, [esp + 0xc]
push eax
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x124]
push 0x2710
push eax
push 0
push 0
push 0x700a0
push esi
call ebx
test eax, eax
je 0x10004f9d
mov edi, dword [esp + 0x124]
mov edx, dword [esp + 0x2848]
mov eax, dword [esp + 0x284c]
xor ecx, ecx
cmp edi, 0xc
push esi
setne cl
inc ecx
mov dword [edx], ecx
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x13c]
mov dword [eax], ecx
mov dword [eax + 4], edx
call dword [0x4a61320]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2820
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2820
ret
Function at 0x411c60
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x5053c0]
xor eax, ebp
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 1
push 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x411cb0
xor eax, eax
jmp 0x411e24
push 0x44
push 0
lea ecx, [ebp - 0x70]
push ecx
call fcn.00480360
add esp, 0xc
push 0
push 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [ebp - 0x70], 0x44
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x44], pe_nt_image_headers32
mov word [ebp - 0x40], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x411d7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x484], eax
push 0
push 0
lea eax, [ebp - 0x480]
push eax
push 0x400
mov ecx, dword [ebp - 0x484]
push ecx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x480]
push edx
mov eax, dword [ebp + 8]
push eax
push str.::ExecuteCommandLine___failed_at_CreateProcess___nCommand___s_r_nMessage___s_r_n
call fcn.0048590c
add esp, 0xc
mov ecx, dword [ebp - 0x480]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x411e24
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x74], 0x400
mov eax, 1
test eax, eax
je 0x411df1
push 0
lea ecx, [ebp - 0x47c]
push ecx
push 0x3ff
lea edx, [ebp - 0x478]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411dbc
jmp 0x411df1
mov ecx, dword [ebp - 0x47c]
mov byte [ebp + ecx - 0x478], 0
lea edx, [ebp - 0x478]
push edx
push 0x4d6dd0
call fcn.0048590c
add esp, 8
call fcn.00485791
add eax, 0x20
push eax
call fcn.00485735
add esp, 4
jmp 0x411d8c
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0x78]
xor ecx, ebp
call fcn.00480296
mov esp, ebp
pop ebp
ret
Function at 0x41e380
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5053c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x434], ecx
mov eax, dword [ebp - 0x434]
cmp dword [eax + 0x1048], 0
je 0x41e4e4
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx + 0x1040]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x40c], eax
xor ecx, ecx
cmp dword [ebp - 0x40c], 0
sete cl
movzx edx, cl
test edx, edx
jne 0x41e4e4
mov byte [ebp - 0x408], 0
push 0x3ff
push 0
lea eax, [ebp - 0x407]
push eax
call fcn.00480360
add esp, 0xc
mov ecx, dword [ebp - 0x434]
add ecx, 0x1040
mov dword [ebp - 0x420], ecx
mov edx, dword [ebp - 0x420]
mov eax, dword [edx]
sub eax, 0x10
mov dword [ebp - 0x418], eax
mov ecx, dword [ebp - 0x418]
mov edx, 1
sub edx, dword [ecx + 0xc]
mov dword [ebp - 0x410], edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x414], ecx
mov edx, dword [ebp - 0x410]
or edx, dword [ebp - 0x414]
jge 0x41e456
push 0
mov ecx, dword [ebp - 0x420]
call fcn.00402b80
mov eax, dword [ebp - 0x420]
mov ecx, dword [eax]
mov dword [ebp - 0x41c], ecx
cmp dword [0x507514], 0x10
jb 0x41e47b
mov edx, dword [0x507500]
mov dword [ebp - 0x438], edx
jmp 0x41e485
mov dword [ebp - 0x438], 0x507500
mov eax, dword [ebp - 0x41c]
push eax
mov ecx, dword [ebp - 0x438]
push ecx
push str._spara_s.env
lea edx, [ebp - 0x408]
push edx
call fcn.004803da
add esp, 0x10
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax + 0x1044]
mov dword [ebp - 0x424], ecx
push 0
lea edx, [ebp - 0x408]
push edx
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x41e4e4
mov ecx, dword [ebp - 0x434]
add ecx, 0x1040
call fcn.00402ac0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00480296
mov esp, ebp
pop ebp
ret
Function at 0x4249e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x5053c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebp - 0x22c]
call fcn.00424f70
test eax, eax
jne 0x424a0f
xor eax, eax
jmp 0x424bbf
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x198]
push ecx
mov ecx, dword [ebp - 0x22c]
call fcn.00424ec0
test eax, eax
jne 0x424a30
xor eax, eax
jmp 0x424bbf
push 0x4d7834
mov edx, dword [ebp + 8]
push edx
call fcn.00480f2b
add esp, 8
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jne 0x424a57
xor eax, eax
jmp 0x424bbf
lea eax, [ebp - 0x198]
push eax
push 0
push str.COMMENT
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
push 1
mov ecx, dword [ebp - 0x22c]
add ecx, 0x74
call fcn.004459c8
mov dword [ebp - 0x19c], 0
jmp 0x424a96
mov ecx, dword [ebp - 0x19c]
add ecx, 1
mov dword [ebp - 0x19c], ecx
push 0
push 0
push 0x1004
mov edx, dword [ebp - 0x22c]
mov eax, dword [edx + 0x94]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x19c], eax
jge 0x424b9b
push 0x80
push 0
lea ecx, [ebp - 0x88]
push ecx
call fcn.00480360
add esp, 0xc
push 8
lea edx, [ebp - 0x88]
push edx
push 1
mov eax, dword [ebp - 0x19c]
push eax
mov ecx, dword [ebp - 0x22c]
add ecx, 0x74
call fcn.00452317
push 0x78
lea ecx, [ebp - 0x80]
push ecx
push 2
mov edx, dword [ebp - 0x19c]
push edx
mov ecx, dword [ebp - 0x22c]
add ecx, 0x74
call fcn.00452317
mov eax, dword [ebp - 0x8c]
push eax
push 0x80
push 1
lea ecx, [ebp - 0x88]
push ecx
call fcn.0048670d
add esp, 0x10
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0x80
je 0x424b53
mov edx, dword [ebp - 0x8c]
push edx
call fcn.00480c29
add esp, 4
xor eax, eax
jmp 0x424bbf
push 0x81
lea eax, [ebp - 0x228]
push eax
push 4
mov ecx, dword [ebp - 0x19c]
push ecx
mov ecx, dword [ebp - 0x22c]
add ecx, 0x74
call fcn.00452317
lea edx, [ebp - 0x198]
push edx
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x88]
push ecx
push str.COMMENT
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x424a87
mov edx, dword [ebp - 0x8c]
push edx
call fcn.00480c29
add esp, 4
mov eax, dword [ebp - 0x22c]
mov dword [eax + 0xcc], 0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00480296
mov esp, ebp
pop ebp
ret 4
Function at 0x424bd0
Capabilities:
Read .ini file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5053c0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x238], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1a0]
push ecx
mov ecx, dword [ebp - 0x238]
call fcn.00424ec0
test eax, eax
jne 0x424c0a
xor eax, eax
jmp 0x424dfa
push 0x4d8950
mov edx, dword [ebp + 8]
push edx
call fcn.00480f2b
add esp, 8
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jne 0x424c31
xor eax, eax
jmp 0x424dfa
push 0x80
push 0
lea eax, [ebp - 0x88]
push eax
call fcn.00480360
add esp, 0xc
push 0
push 0
push 0x1009
mov ecx, dword [ebp - 0x238]
mov edx, dword [ecx + 0x94]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], 0
mov byte [ebp - 0x94], 0
xor eax, eax
mov dword [ebp - 0x93], eax
mov word [ebp - 0x8f], ax
mov byte [ebp - 0x8d], al
mov ecx, dword [ebp - 0x8c]
push ecx
push 0x80
push 1
lea edx, [ebp - 0x88]
push edx
call fcn.00485de4
add esp, 0x10
cmp eax, 0x80
jne 0x424dd6
mov eax, dword [ebp - 4]
push eax
push 0x4d6e3c
lea ecx, [ebp - 0x94]
push ecx
call fcn.004803da
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [ebp - 0x234], edx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
push 1
mov ecx, dword [ebp - 0x238]
add ecx, 0x74
call fcn.004533f1
mov dword [ebp - 0x1a4], eax
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 0x1a4], 0
jl 0x424dd1
lea eax, [ebp - 0x88]
push eax
push 1
mov ecx, dword [ebp - 0x1a4]
push ecx
mov ecx, dword [ebp - 0x238]
add ecx, 0x74
call fcn.004522ec
lea edx, [ebp - 0x80]
push edx
push 2
mov eax, dword [ebp - 0x1a4]
push eax
mov ecx, dword [ebp - 0x238]
add ecx, 0x74
call fcn.004522ec
lea ecx, [ebp - 0x80]
push ecx
call fcn.0047fdb0
add esp, 4
push eax
push 0x4d6e3c
lea edx, [ebp - 0x94]
push edx
call fcn.004803da
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 3
mov ecx, dword [ebp - 0x1a4]
push ecx
mov ecx, dword [ebp - 0x238]
add ecx, 0x74
call fcn.004522ec
lea edx, [ebp - 0x1a0]
push edx
push 0x81
lea eax, [ebp - 0x230]
push eax
push 0x4d6adc
lea ecx, [ebp - 0x88]
push ecx
push str.COMMENT
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x230]
push edx
push 4
mov eax, dword [ebp - 0x1a4]
push eax
mov ecx, dword [ebp - 0x238]
add ecx, 0x74
call fcn.004522ec
jmp 0x424c86
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.00480c29
add esp, 4
mov edx, dword [ebp - 0x238]
mov dword [edx + 0xcc], 0
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00480296
mov esp, ebp
pop ebp
ret 4
Function at 0x426b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cafa8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5053c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x18]
call fcn.004032a0
mov dword [ebp - 4], 0
push 0x54b3b0
call fcn.0047fdb0
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax + 0x54b3af]
cmp ecx, 0x5c
jne 0x426be0
push str.PCLoader.ini
push 0x54b3b0
push 0x4d8948
lea edx, [ebp - 0x18]
push edx
call fcn.00402d70
add esp, 0x10
jmp 0x426bfb
push str.PCLoader.ini
push 0x54b3b0
push str._s_s
lea eax, [ebp - 0x18]
push eax
call fcn.00402d70
add esp, 0x10
push 0x4d7834
push 0
lea ecx, [ebp - 0x18]
call fcn.0040a8d0
push eax
call fcn.00480f2b
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x426c37
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402970
mov eax, dword [ebp - 0x1c]
jmp 0x426c74
mov ecx, dword [ebp - 0x10]
push ecx
push 0x2177b
push 1
push 0x54b448
call fcn.0048670d
add esp, 0x10
mov edx, dword [ebp - 0x10]
push edx
call fcn.00480c29
add esp, 4
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402970
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x426c90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cafd8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5053c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x18]
call fcn.004032a0
mov dword [ebp - 4], 0
push 0x2177b
push 0
push 0x54b448
call fcn.00480360
add esp, 0xc
mov byte [0x56cbc0], 0
mov byte [0x56cbc1], 6
push 0x54b3b0
call fcn.0047fdb0
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax + 0x54b3af]
cmp ecx, 0x5c
jne 0x426d22
push str.PCLoader.ini
push 0x54b3b0
push 0x4d8948
lea edx, [ebp - 0x18]
push edx
call fcn.00402d70
add esp, 0x10
jmp 0x426d3d
push str.PCLoader.ini
push 0x54b3b0
push str._s_s
lea eax, [ebp - 0x18]
push eax
call fcn.00402d70
add esp, 0x10
push 0x4d8950
push 0
lea ecx, [ebp - 0x18]
call fcn.0040a8d0
push eax
call fcn.00480f2b
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x426db8
push 2
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00485ae7
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call fcn.004864b8
add esp, 4
cmp eax, 0x2177b
jne 0x426dac
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00485ae7
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
push 0x2177b
push 1
push 0x54b448
call fcn.00485de4
add esp, 0x10
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.00480c29
add esp, 4
movzx eax, byte [0x56cbc1]
cmp eax, 1
jg 0x426dcd
mov byte [0x54b446], 4
jmp 0x426de9
movzx ecx, byte [0x56cbc1]
cmp ecx, 4
jg 0x426de2
mov byte [0x54b446], 2
jmp 0x426de9
mov byte [0x54b446], 1
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402970
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x428730
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb288
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5053c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x18]
call fcn.004032a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004032a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004032a0
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 1
jmp 0x42879c
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x100
jge 0x42885d
mov ecx, dword [ebp - 0x24]
push ecx
push str.COM_d
lea edx, [ebp - 0x18]
push edx
call fcn.00402d70
add esp, 0xc
mov eax, dword [ebp - 0x24]
push eax
push str..COM_d
lea ecx, [ebp - 0x20]
push ecx
call fcn.00402d70
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x54], edx
push 0
push 0x80
push 3
push 0
push 0
push 0
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x42880c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 2
jne 0x42880c
jmp 0x428793
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0xc], 0
je 0x42883c
mov edx, dword [ebp - 0x24]
push edx
push 0x4d6e3c
lea eax, [ebp - 0x1c]
push eax
call fcn.00402d70
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0045a2f0
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp + 8]
call fcn.0045a2f0
cmp dword [ebp - 0x14], 0
je 0x428858
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x428793
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00402970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00402970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402970
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x430c70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x5053c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x20], 0
jne 0x430c93
xor eax, eax
jmp 0x430dee
call fcn.00455b4c
mov ecx, dword [eax + 8]
mov dword [ebp - 0x3c], ecx
push 0xf1
movzx edx, word [ebp + 8]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x430cc2
xor eax, eax
jmp 0x430dee
call fcn.00455b4c
mov ecx, dword [eax + 8]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x430ceb
xor eax, eax
jmp 0x430dee
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x430d05
xor eax, eax
jmp 0x430dee
push 0x14
push 0
lea edx, [ebp - 0x28]
push edx
call fcn.00480360
add esp, 0xc
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
jmp 0x430d35
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x30], edx
jge 0x430da0
mov byte [ebp - 0x20], 4
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2 + 8]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jne 0x430d66
mov byte [ebp - 0x1f], 1
mov dword [ebp - 0x28], 0xffffffff
jmp 0x430d79
mov byte [ebp - 0x1f], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x28]
push edx
push 1
push 0x414
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x430d9e
xor eax, eax
jmp 0x430dee
jmp 0x430d2c
cmp dword [ebp - 0xc], 0
je 0x430de1
call fcn.00455b4c
mov edx, dword [eax + 8]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 8]
movzx eax, word [edx + 6]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x48]
push edx
push 0x413
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00480296
mov esp, ebp
pop ebp
ret 4
Function at 0x44223c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x44225c
cmp dword [edi + 0x54], 0
jne 0x44225c
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00455b4c
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 [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00442203
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x447740
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x447779
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00441697
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040a930
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x44973e
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 0x449781
call fcn.00455b4c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x449781
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44979c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004492f5
test ebx, ebx
mov esi, eax
je 0x44979a
test edi, edi
je 0x44979a
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x44a98c
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4cdcb3
call fcn.00489c41
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x44a9b1
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x44a9fd
call fcn.00442305
push eax
lea ecx, [ebp - 0x10]
call fcn.00402920
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.00449f15
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.0040a7a0
mov eax, esi
call fcn.00489d19
ret 8