joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415b24
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.00419854
pop ecx
mov ebx, eax
test eax, eax
jne 0x415b48
xor eax, eax
jmp 0x415bf1
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.dll_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x415b69
cmp esi, 0x104
jb 0x415b74
push ebx
call fcn.0041974c
pop ecx
xor eax, eax
jmp 0x415bf1
cmp byte [ebx + 1], 0x3a
jne 0x415ba4
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.dll_GetDriveTypeA
cmp eax, 2
jae 0x415ba4
push ebx
call fcn.0041974c
pop ecx
xor eax, eax
jmp 0x415bf1
inc esi
test edi, edi
je 0x415be7
cmp esi, dword [ebp + 0x10]
jbe 0x415bb9
push ebx
call fcn.0041974c
pop ecx
xor eax, eax
jmp 0x415bf1
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.0041974c
pop ecx
mov eax, edi
jmp 0x415bf1
push esi
push ebx
call fcn.00419ce8
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x416158
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x416177
mov eax, dword [0x41dad8]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x416184
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4161b1
je 0x4161c3
sub ecx, 0x100
je 0x4161d1
sub ecx, 0x100
je 0x4161d8
sub ecx, 0x100
je 0x4161ca
jmp 0x4161df
sub ecx, 0x600
je 0x4161d8
sub ecx, 0x100
je 0x4161c3
jmp 0x4161df
mov edi, 1
jmp 0x4161e4
mov edi, 2
jmp 0x4161e4
mov edi, 4
jmp 0x4161e4
mov edi, 5
jmp 0x4161e4
mov edi, 3
test byte [ebp + 0xd], 1
je 0x41620b
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x41dfe0]
test al, 0x80
je 0x416204
mov ebx, 0x80
jmp 0x41621d
mov ebx, 1
jmp 0x41621d
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x41621d
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x41622f
je 0x416238
dec eax
je 0x416241
jmp 0x41624a
mov dword [ebp - 4], 0x80000000
jmp 0x416259
mov dword [ebp - 4], 0x40000000
jmp 0x416259
mov dword [ebp - 4], 0xc0000000
jmp 0x416259
push 1
call fcn.00415e9c
pop ecx
mov ebx, eax
jmp 0x416345
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x416275
sub eax, 0x10
je 0x41627c
sub eax, 0x10
je 0x416285
sub eax, 0x10
je 0x41628e
jmp 0x41628e
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x416295
mov dword [ebp - 8], 1
jmp 0x416295
mov dword [ebp - 8], 2
jmp 0x416295
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4162fe
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4162f3
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x4162f3
add ebx, 0xffffffb2
push ebx
call fcn.00415e9c
pop ecx
mov ebx, eax
jmp 0x416345
mov edi, esi
push edi
call fcn.004160c8
pop ecx
test eax, eax
je 0x416312
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x41631e
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00415bf8
add esp, 8
mov ebx, eax
inc eax
jne 0x416345
push 4
call fcn.00415e9c
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419b30
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x419f8c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x41e894], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x41a044
cmp byte [0x41b0ae], 0
je 0x419ffe
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.004190a0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x419fe7
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.004190a0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x419fe7
lea ebx, [ebp - 0x54]
jmp 0x419fe8
inc ebx
call fcn.00419f44
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x41a065
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x41e898
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004110b4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x41e89b
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x41a065
cmp dword [0x41e894], 0xffffffff
je 0x41a065
mov eax, dword [0x41e894]
test eax, eax
je 0x41a065
cmp byte [eax], 0
je 0x41a065
push esi
push eax
call fcn.0041a0f4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41a6a8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 8], 1
mov dword [ebp - 4], edi
cmp esi, 1
jne 0x41a74a
mov eax, dword [0x41f684]
inc dword [0x41f684]
test eax, eax
jne 0x41a777
call sub.KERNEL32.dll_GetEnvironmentStrings
mov dword [0x41f64c], eax
mov eax, dword [ebp + 0x10]
mov dword [0x41b0b7], eax
cmp dword [0x41f688], 0
je 0x41a702
push 0
push esi
push eax
call dword [0x41f688]
cmp dword [0x41e91c], 0
je 0x41a729
call fcn.0041a57c
mov ebx, eax
test eax, eax
je 0x41a729
mov edx, dword [ebx]
cmp dword [ebx + edx*4 + 4], 0xffffffff
je 0x41a729
mov ecx, dword [ebx]
inc dword [ebx]
mov dword [ebx + ecx*4 + 4], edi
jmp 0x41a777
xor eax, eax
mov dword [0x41e91c], eax
jmp 0x41a734
call ebx
push 0
lea edx, [ebp - 8]
push edx
call fcn.0041a584
add esp, 8
mov ebx, eax
test eax, eax
jne 0x41a732
jmp 0x41a777
test esi, esi
jne 0x41a777
dec dword [0x41f684]
jne 0x41a777
cmp dword [0x41e91c], 0
jne 0x41a777
jmp 0x41a763
call ebx
push 1
lea edx, [ebp - 8]
push edx
call fcn.0041a584
add esp, 8
mov ebx, eax
test eax, eax
jne 0x41a761
mov edx, dword [ebp + 0x18]
push edx
push esi
mov ecx, dword [ebp + 0x10]
push ecx
call dword [edi + 0x18]
mov ebx, eax
cmp dword [0x41f688], 0
je 0x41a79d
push 0
push esi
mov eax, dword [0x41b0b7]
push eax
call dword [0x41f688]
test esi, esi
jne 0x41a7c7
cmp dword [0x41f684], 0
jne 0x41a7c7
cmp dword [0x41f64c], 0
je 0x41a7c7
mov edx, dword [0x41f64c]
push edx
call sub.KERNEL32.dll_FreeEnvironmentStringsA
xor ecx, ecx
mov dword [0x41f64c], ecx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x401b70
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 0x401b8b
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 0x401bc2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401bbe
jmp 0x401bb0
cmp esi, eax
jae 0x401bc2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401bb0
cmp esi, eax
jb 0x401bc9
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 0x405950
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e353
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x57bb30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0040c875
xor edi, edi
mov dword [ebp - 4], edi
lea ebx, [esi + 0x14]
mov dword [esi], vtable.JMemDC.0
mov dword [ebx + 4], edi
mov dword [ebx], vtable.CBitmap.0
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x44], eax
xor eax, eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x20], ecx
mov dword [esi + 0x1c], edi
cmp dword [ecx + 0xc], edi
sete al
mov dword [esi + 0x34], eax
cmp eax, edi
je 0x405a11
mov ecx, dword [ecx + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0040ce47
call fcn.004167b1
movzx ecx, word [ebp + 0x10]
mov eax, dword [eax + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
push eax
mov ecx, ebx
call fcn.0040d11b
cmp ebx, edi
je 0x405a02
mov edi, dword [ebx + 4]
mov edx, dword [esi + 4]
push edi
push edx
call fcn.0040d1ac
mov dword [esi + 0x1c], eax
jmp 0x405a23
mov eax, dword [ecx + 0xc]
mov dword [esi + 0xc], eax
mov edx, dword [ecx + 4]
mov dword [esi + 4], edx
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x20]
mov ebx, dword [sym.imp.GDI32.dll_GetObjectA]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edi
cmp eax, 0xffffffff
jne 0x405a58
mov ecx, dword [esi + 0x18]
lea eax, [ebp - 0x24]
push eax
push 0x18
push ecx
call ebx
mov edx, dword [ebp - 0x20]
mov dword [esi + 0x2c], edx
cmp edi, 0xffffffff
jne 0x405a6f
mov ecx, dword [esi + 0x18]
lea eax, [ebp - 0x24]
push eax
push 0x18
push ecx
call ebx
mov edx, dword [ebp - 0x1c]
mov dword [esi + 0x30], edx
mov eax, esi
call fcn.00402290
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x405a90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e323
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x57bb30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0040c875
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x14]
mov dword [esi], vtable.JMemDC.0
mov dword [edi + 4], ebx
mov dword [edi], vtable.CBitmap.0
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
xor ecx, ecx
mov dword [esi + 0x44], 0xff
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ebx
cmp dword [eax + 0xc], ebx
sete cl
mov dword [esi + 0x34], ecx
cmp ecx, ebx
je 0x405b63
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0040ce47
call fcn.004167b1
movzx ecx, word [ebp + 0x10]
mov eax, dword [eax + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
push eax
mov ecx, edi
call fcn.0040d11b
cmp edi, ebx
jne 0x405b51
mov edx, dword [esi + 4]
xor edi, edi
push edi
push edx
call fcn.0040d1ac
mov dword [esi + 0x1c], eax
jmp 0x405b75
mov edi, dword [edi + 4]
mov edx, dword [esi + 4]
push edi
push edx
call fcn.0040d1ac
mov dword [esi + 0x1c], eax
jmp 0x405b75
mov ecx, dword [eax + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
mov edi, dword [sym.imp.GDI32.dll_GetObjectA]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 0x20]
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ecx
cmp eax, 0xffffffff
jne 0x405baa
mov eax, dword [esi + 0x18]
lea edx, [ebp - 0x28]
push edx
push 0x18
push eax
call edi
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0x2c], ecx
cmp dword [ebp + 0x20], 0xffffffff
jne 0x405bc2
mov eax, dword [esi + 0x18]
lea edx, [ebp - 0x28]
push edx
push 0x18
push eax
call edi
mov ecx, dword [ebp - 0x20]
mov dword [esi + 0x30], ecx
mov eax, esi
mov dword [esi + 0x40], 0xff00ff
mov dword [esi + 0x3c], 1
call fcn.00402290
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x408140
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x57bb30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
mov esi, ecx
push SysReAllocString
push esi
mov dword [ebp - 0x318], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4081b2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x310], eax
cmp eax, 0xf00000
jbe 0x4081c4
push 4
push 0x55ab78
push 0x55ab80
mov ecx, edi
call fcn.0040fa50
cmp eax, 7
jne 0x4081c4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050a0de
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x308]
push eax
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x31c]
push eax
push esi
call fcn.0050a9d3
add esp, 0x14
lea ecx, [edi + 0xd84]
test esi, esi
jne 0x4081f7
xor eax, eax
jmp 0x40820f
mov eax, esi
lea edx, [eax + 1]
mov dword [ebp - 0x314], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408202
sub eax, dword [ebp - 0x314]
push eax
push esi
call fcn.004018c0
lea eax, [ebp - 0x108]
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408220
sub eax, ecx
push eax
lea eax, [ebp - 0x108]
push eax
lea ecx, [edi + 0xd80]
call fcn.004018c0
mov ecx, dword [ebp - 0x310]
inc ecx
push ecx
call fcn.0050a660
add esp, 4
push 0
mov esi, eax
mov eax, dword [ebp - 0x310]
lea edx, [ebp - 0x30c]
push edx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x30c]
push ebx
mov byte [ecx + esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x30c]
push edx
push edi
mov dword [edi + 0xdf0], 1
call fcn.00407d40
test esi, esi
je 0x40829b
push esi
call fcn.0050a7a1
add esp, 4
mov eax, dword [ebp - 0x318]
push eax
mov ecx, edi
call fcn.004141c6
mov esi, edi
call fcn.004088c0
call fcn.00409660
mov ecx, dword [edi + 0x20]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0050a0de
mov esp, ebp
pop ebp
ret
Function at 0x4098f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e0eb
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x57bb30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.C:StarBook.ini
push 0
push str.LASTFILEPOS
push str.OPTION
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str.C:StarBook.ini
push 0x200
mov ebx, eax
lea eax, [ebp - 0x210]
push eax
push 0x55ae04
push str.LASTFILE
push str.OPTION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x210]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409968
sub eax, edx
je 0x409a91
call fcn.0040bf81
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409991
push 0x80004005
call fcn.00402060
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x214], eax
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x214]
push 0x55abb8
push edx
mov dword [ebp - 4], 0
call fcn.00402130
mov eax, dword [ebp - 0x214]
add esp, 0xc
push 3
push 0x55aab0
push eax
mov ecx, edi
call fcn.0040fa50
cmp eax, 6
jne 0x409a66
lea ecx, [ebp - 0x210]
call fcn.00408140
test eax, eax
je 0x409a5c
mov eax, dword [edi + 0xdac]
lea edx, [eax + 1]
jmp 0x409a00
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409a00
sub eax, edx
je 0x409a25
mov ecx, dword [edi + 0xdec]
test ecx, ecx
je 0x409a25
mov eax, dword [edi + 0xd9c]
test eax, eax
je 0x409a25
cdq
idiv ecx
inc eax
jmp 0x409a2a
mov eax, 1
mov edx, 1
cmp eax, edx
jle 0x409a5c
mov ecx, dword [edi + 0xdec]
mov esi, ecx
shl ecx, 4
shl esi, 5
add ecx, dword [edi + 0xdf8]
cmp ebx, dword [ecx]
jle 0x409a56
add edx, 2
add ecx, esi
cmp edx, eax
jl 0x409a47
jmp 0x409a5c
mov dword [edi + 0xdf0], edx
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409aa4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x409aa4
push 0
push 0x55aab0
push 0x55abd8
mov ecx, edi
call fcn.0040fa50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050a0de
mov esp, ebp
pop ebp
ret
Function at 0x413f77
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 0x413fbe
call fcn.004167b1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x413fbe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x413fda
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00413a7c
mov esi, eax
test edi, edi
je 0x413fd8
test ebx, ebx
je 0x413fd8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x414807
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x528055
call fcn.0050b5e3
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41482c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41487e
call fcn.0040bf81
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a2c0
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.0050b6ed
push eax
call fcn.0040a830
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.00401ee0
mov eax, esi
call fcn.0050b6bb
ret 8

Function at 0x4172a5
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.004167b1
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 0x4172de
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.00416ee7
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 0x41733c
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 0x417360
cmp dword [edi + 0x74], 0
jne 0x417360
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.004167b1
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.004172fd
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 0x4176f1
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.004173b0
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41773b
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040dc6c
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00401a10
jmp 0x417746
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041ed13
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41774c
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.00414083
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 0x417789
call fcn.004173b0
mov dword [esi + 0xc], 1
jmp 0x41778e
call fcn.004173b0
cmp dword [esi], 0
je 0x4177d7
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x4177af
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040dc6c
jmp 0x4177c1
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00402020
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00401a10
jmp 0x4177fb
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 0x4177fb
push dword [esi]
push dword [ebp + 8]
call fcn.0041ed13
pop esi
pop ebp
ret 0xc

Function at 0x4183ad
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x57bb30]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x4183f5
push 0x534168
push 4
push eax
call fcn.0050d635
push eax
call fcn.0040a830
add esp, 0x10
jmp 0x41840b
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41848e
push edi
call fcn.0050ba2e
mov edi, dword [eax]
call fcn.0050ba2e
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0050bbc1
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.0050ba2e
cmp dword [eax], 0
je 0x418462
call fcn.0050ba2e
push dword [eax]
call fcn.0040b6df
pop ecx
jmp 0x418469
call fcn.0050ba2e
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x41848e
cmp dword [ebp - 0x11c], esi
jae 0x41848e
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x418490
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050a0de
leave
ret