joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40126b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4012a2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40129e
jmp 0x401290
cmp esi, eax
jae 0x4012a2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401290
cmp esi, eax
jb 0x4012a9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401ef0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
jb 0x401f0b
mov eax, dword [eax]
push eax
mov eax, dword [esi + 4]
push 0x2712
push eax
call fcn.00623040
add esp, 0xc
push 0x4a
push str.Mozilla_5.0__Windows_NT_6.1__WOW64__rv:13.0__Gecko_20100101_Firefox_13.0.1
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.004024d0
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x401f4a
lea eax, [ebp - 0x20]
mov ecx, dword [esi + 4]
push eax
push 0x2722
push ecx
call fcn.00623040
mov edx, dword [esi + 4]
push 5
push 0x44
push edx
call fcn.00623040
mov eax, dword [esi + 4]
push 1
push 0x34
push eax
call fcn.00623040
mov ecx, dword [esi + 4]
push 1
push 0x63
push ecx
call fcn.00623040
mov edx, dword [esi + 4]
push 0
push 0x2f
push edx
call fcn.00623040
mov eax, dword [esi + 4]
push 0x402100
push 0x4e2b
push eax
call fcn.00623040
mov ecx, dword [esi + 4]
add esp, 0x48
push esi
push 0x2711
push ecx
call fcn.00623040
mov edx, dword [esi + 4]
push 0
push 0x2b
push edx
call fcn.00623040
mov eax, dword [esi + 4]
push esi
push 0x2749
push eax
call fcn.00623040
mov ecx, dword [esi + 4]
push fcn.00553ea0
push 0x4e58
push ecx
call fcn.00623040
mov edx, dword [esi + 4]
push 0
push 0x40
push edx
call fcn.00623040
mov eax, dword [esi + 4]
push 0
push 0x51
push eax
call fcn.00623040
add esp, 0x48
cmp dword [ebp - 0xc], 0x10
jb 0x402010
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00407e01
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
Function at 0x404320
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x404327
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4043fd
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 + 0x6e7560]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6e7560]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6e7560]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6e7560]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6e7560]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6e7560]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6e7560]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6e7560]
add ecx, 8
sub edx, 8
dec esi
jne 0x404340
pop edi
test edx, edx
je 0x40441a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6e7560]
inc ecx
dec edx
jne 0x404401
not eax
pop esi
ret

Function at 0x404420
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 + 0x6e7560]
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 + 0x6e7560]
mov dword [edx + 8], ecx
ret

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

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x6e7560]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x6e7560]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x404be0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x404c16
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404c0c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x404c27
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.005061a0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x404c50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x404c83
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404c7e
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x404cae
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x404c95
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.005061a0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x404cc3
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x404cbd
cmp byte [esi + 8], 0
je 0x404cbd
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x404d60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x404da7
cmp byte [esi + 1], 0
je 0x404daf
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x404dc2
cmp byte [esi + 1], 0
je 0x404db6
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x404dca
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x404d81
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x404dca
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x404ddc
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.0050102f
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x404df9
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x404f0d
jmp 0x404e19
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x404e28
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x404e3f
mov ebx, 0x404
cmp byte [esi], 0
je 0x404e64
cmp byte [esi + 1], 0
je 0x404f0d
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x404e67
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x404e90
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404e8b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x404eb9
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x404ea1
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.005061a0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x404f0d
lea eax, [ebx - 3]
test eax, eax
js 0x404efb
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x404eef
cmp byte [eax + ecx + 1], 0x4b
jne 0x404eef
cmp byte [eax + ecx + 2], 5
jne 0x404eef
cmp byte [eax + ecx + 3], 6
je 0x404ef5
test eax, eax
jns 0x404ed0
jmp 0x404efb
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x404f0d
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x404e10
mov eax, dword [ebp - 0x10]
push eax
call fcn.00500ff5
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405de0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi], 0
push edi
jne 0x405e63
cmp dword [esi + 4], 0xffffffff
jne 0x405e63
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 0x405e07
sub eax, edx
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
je 0x405e31
cmp al, 0x2f
je 0x405e31
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405e20
mov ax, word [0x6e7b84]
mov word [edi], ax
lea ecx, [ebp - 4]
push ecx
call fcn.00404b40
add esp, 4
test eax, eax
jne 0x405e49
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret
call fcn.00404f30
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4064d4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4064d4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x40658e
push esi
mov esi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x4064eb
cmp al, 0x5c
jne 0x4064ed
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4064e3
cmp esi, ebx
je 0x406521
sub esi, ebx
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.005061a0
lea ecx, [ebp - 0x20c]
push ecx
push edi
mov byte [ebp + esi - 0x20c], 0
call fcn.004064a0
add esp, 0x14
mov byte [ebp - 0x108], 0
test edi, edi
je 0x406540
lea edx, [ebp - 0x108]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406536
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406544
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x406554
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x108]
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 0x40658e
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005000ee
mov esp, ebp
pop ebp
ret
Function at 0x4075b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.00406940
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x4075e3
call fcn.00406a30
test eax, eax
je 0x4075f6
mov edi, ebx
call fcn.00406aa0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], al
mov dword [ebp - 0x10], edi
cmp dword [ebx], 1
je 0x407618
mov dword [0x72cb14], 0x80000
jmp 0x4075dc
mov esi, dword [ebx + 4]
mov ecx, dword [esi]
or edx, 0xffffffff
cmp dword [ecx + 4], edx
jg 0x40762c
mov ecx, 0x10000
jmp 0x40766f
cmp dword [esi + 4], edx
je 0x40763d
mov edi, ecx
call fcn.00405c70
or edx, 0xffffffff
xor edi, edi
mov eax, dword [esi]
mov dword [esi + 4], edx
mov eax, dword [eax + 4]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 0
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
xor ecx, ecx
mov dword [0x72cb14], ecx
cmp ecx, edi
jne 0x4075dc
xor ecx, ecx
mov esi, eax
cmp eax, ecx
jle 0x4076f1
jmp 0x407692
xor ecx, ecx
mov dword [ebp - 0x138], ecx
mov byte [ebp - 0x134], 0
mov dword [ebp - 0x10], ecx
cmp dword [ebx], 1
je 0x4076b3
mov dword [0x72cb14], 0x80000
jmp 0x4076c7
mov ecx, dword [ebx + 4]
push edi
lea edx, [ebp - 0x138]
call fcn.00405e70
mov dword [0x72cb14], eax
cmp dword [ebx], 1
je 0x4076d8
mov dword [0x72cb14], 0x80000
jmp 0x4076ec
mov ecx, dword [ebx + 4]
push edi
lea edx, [ebp - 0x134]
call fcn.004065a0
mov dword [0x72cb14], eax
inc edi
cmp edi, esi
jl 0x407690
cmp dword [ebx], 1
je 0x407702
mov dword [0x72cb14], 0x80000
jmp 0x407721
mov esi, dword [ebx + 4]
call fcn.004068e0
mov dword [0x72cb14], eax
test esi, esi
je 0x407718
call fcn.004069e0
push ebx
call fcn.00407e01
add esp, 4
push str.C:UsersPublicL78V3gUKHnOguGe78rW37ilu2km1RgBU.dat
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.005000ee
mov esp, ebp
pop ebp
ret
Function at 0x407750
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor esi, esi
push esi
push str.C:UsersPublicUMlU01F1aIQdPbrxMs6wxZ7WfmfcTo0g.dat
call fcn.006661dd
mov eax, dword [ebp + 8]
add esp, 8
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407770
sub eax, edx
push 0x6e7d10
push str.C:UsersPublicUMlU01F1aIQdPbrxMs6wxZ7WfmfcTo0g.dat
mov dword [ebp - 8], eax
call fcn.00500dcd
push 0x6e60a4
push str.C:UsersPublicL78V3gUKHnOguGe78rW37ilu2km1RgBU.dat
mov edi, eax
call fcn.00500dcd
push edi
mov ebx, eax
call fcn.00502591
add esp, 0x14
test eax, eax
jne 0x4077f9
jmp 0x4077b0
push edi
push 1
lea eax, [ebp - 1]
push 1
push eax
call fcn.0050282b
push edi
call fcn.00502591
add esp, 0x14
test eax, eax
jne 0x4077ec
mov eax, esi
cdq
idiv dword [ebp - 8]
mov ecx, dword [ebp + 8]
push ebx
push 1
lea eax, [ebp - 1]
push 1
push eax
mov dl, byte [edx + ecx]
xor byte [ebp - 1], dl
call fcn.00500f3b
add esp, 0x10
inc esi
push edi
call fcn.00502591
add esp, 4
test eax, eax
je 0x4077b0
push edi
call fcn.00500814
push ebx
call fcn.00500814
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4087f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004155c9
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40882f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00408438
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40888d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x4088b1
cmp dword [edi + 0x74], 0
jne 0x4088b1
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.004155c9
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 [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040884e
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40a3ec
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0040a057
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x40a436
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040a3c7
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040a398
jmp 0x40a441
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041daec
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40a447
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00412735
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x40a484
call fcn.0040a057
mov dword [esi + 0xc], 1
jmp 0x40a489
call fcn.0040a057
cmp dword [esi], 0
je 0x40a4d2
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x40a4aa
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040a3c7
jmp 0x40a4bc
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401980
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040a398
jmp 0x40a4f6
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x40a4f6
push dword [esi]
push dword [ebp + 8]
call fcn.0041daec
pop esi
pop ebp
ret 0xc

Function at 0x41078e
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 0x4107d5
call fcn.004155c9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4107d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4107f1
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00410293
mov esi, eax
test edi, edi
je 0x4107ef
test ebx, ebx
je 0x4107ef
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x412e62
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x6730d0
call fcn.00502ed5
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x412e87
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x412ed9
call fcn.004089b9
push eax
lea ecx, [ebp - 0x10]
call fcn.00401b30
mov ecx, dword [esi + 0x6c]
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.00503138
push eax
call fcn.004092ca
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401b60
mov eax, esi
call fcn.00502fad
ret 8
Function at 0x426f8b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.004155c9
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x426fb8
xor eax, eax
jmp 0x42705f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x426fb1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x426fb1
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00407dd2
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x427010
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 2
cmp eax, edx
jl 0x426ffe
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00426aaa
push edi
mov ebx, eax
call fcn.00407e01
pop ecx
test ebx, ebx
je 0x427052
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00426dfc
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00426eb0
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x431ea9
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00468b3a
call fcn.00414ffa
cmp dword [eax + 0x14], 0
jne 0x431ec6
mov ecx, esi
pop esi
jmp fcn.004319ae
pop esi
ret

Function at 0x43554f
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004b100c
call fcn.00414ffa
cmp dword [eax + 0x14], 0
jne 0x43556c
mov ecx, esi
pop esi
jmp fcn.00434f22
pop esi
ret

Function at 0x46ca20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x46ca3a
call fcn.004155c9
mov esi, dword [eax + 0xc]
push dword [0x728ccc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x46ca58
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x46ca50
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x46ca85
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x46ca52
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0046c94e
mov esi, eax
jmp 0x46ca77