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

Disassembly:
push 0xffffffffffffffff
push 0xdbe9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xdaa002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00daddff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xdaa002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00da56e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00dae20b
push 0x10
call fcn.00dae1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xda9fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00d9a1c0
jmp 0xda9fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00da9b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xda9ff0
mov ecx, edi
call fcn.00d9a2c0
push edi
call fcn.00dae1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xdaa021
inc ebx
cmp ebx, 0x20
jb 0xda9f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xdab250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xdbf808
push 0xdaf288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xdab329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xdab329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00dae1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xdab329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xdab329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xdab32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00dab351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xdabd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xdabd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xdabd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xdabd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xdabd94
push eax
push esi
call fcn.00dae20b
add esp, 8
pop esi
ret 0x10

Function at 0xdabda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xdabe22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xdabe15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xdc4320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00daddff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xdabdda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xdabe30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xdabec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xdabeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xdc4320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00daddff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xdabeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xdabe6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xdac000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xdac131
push esi
call fcn.00daf145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00d9e080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xdac131
push 0
push ebp
call fcn.00d9e3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00d9e260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xdac08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00d9e2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xdac121
push 0xdc4918
push edi
call fcn.00dad3f0
push eax
push ebx
push esi
call fcn.00dabf60
push 0xdc48f8
push edi
call fcn.00dad3f0
push eax
push ebx
push esi
call fcn.00dabf60
push 0xdc48d8
push edi
call fcn.00dad3f0
push eax
push ebx
push esi
call fcn.00dabf60
push 0xdc48c0
push edi
call fcn.00dad3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00dabf60
push 0xdc48a0
push edi
call fcn.00dad3f0
push eax
push ebx
push esi
call fcn.00dabf60
push 0xdc4888
push edi
call fcn.00dad3f0
push eax
push ebx
push esi
call fcn.00dabf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xdad1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00dad140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00dad140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00dad140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00dad140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xdadbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xdadc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xdbf87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xdadc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xdadc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x40894f
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop esi
and edi, ecx
sub edi, 0x47283158
call fcn.00408971
xor dword [ebx], esi
add edi, edi
inc ebx
sub edi, edi
add ecx, edi
cmp ebx, eax
jne fcn.0040894f
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
jmp 0x50a204
Function at 0x402c70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4784ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov dword [ebp - 0x120], ecx
lea ecx, [ebp - 0x10]
call fcn.00402510
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00470581
push 0x48e804
push 1
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x10]
call fcn.00469246
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x128], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.004048e0
mov byte [ebp - 0x118], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11c]
call fcn.00470444
mov edx, dword [ebp - 0x118]
and edx, 0xff
test edx, edx
je 0x402d2e
push 0x48e808
lea ecx, [ebp - 0x10]
call fcn.004707d4
push 0x48e80c
lea ecx, [ebp - 0x10]
call fcn.004707d4
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402550
push eax
lea ecx, [ebp - 0x10]
call fcn.00402550
push eax
push 1
call fcn.00446c51
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00470444
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40710f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
call fcn.00425ad5
mov dword [ebp - 0x208], eax
cmp dword [0x49ca9c], 1
jne 0x4071de
mov eax, dword [0x49beb8]
cmp dword [eax], 2
jne 0x4071de
mov ecx, 0x49c694
call fcn.00402550
push eax
push 0xa4
push 0x49bf40
push 0x49caa8
push 0xa
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x208]
push edx
call fcn.00448641
add esp, 0xc
push eax
push 0x48e9d0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x4071d7
mov ecx, 0x49c694
call fcn.00402550
push eax
mov eax, dword [ebp - 0x208]
push eax
push 0x65
call fcn.00416903
add esp, 4
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.0044712b
add esp, 0x10
push 0x1010
push 0xc2
call fcn.00416903
add esp, 4
push eax
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.00425adf
jmp 0x4071e3
mov eax, 0x49bf40
jmp 0x4071e3
call fcn.00425adf
mov esp, ebp
pop ebp
ret

Function at 0x4098ff
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4787ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00409ec0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00402510
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.00402510
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.00402510
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call fcn.00402510
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.0046a247
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40998c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478832
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x54]
push ecx
call fcn.00425a5b
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.0046a27a
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call fcn.00470444
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.00470444
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.00470444
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00470444
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00409f1d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x416e41
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
lea ecx, [ebp - 0x10]
call fcn.004097f0
call fcn.00417224
test eax, eax
jne 0x416e74
push 0x10
push 0x48f1d0
push str.Internal_version_error__wrong_INPA_Libraries_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
jmp 0x416fca
mov eax, dword [ebp + 8]
mov dword [0x49fda4], eax
cmp dword [ebp + 8], 0
jne 0x416e98
mov byte [0x49f6b0], 0
push 0
call fcn.00405c9f
add esp, 4
jmp 0x416f49
push 0x50
push 0x49f6b0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [ebp + 8]
push edx
mov ecx, 0x49f720
call fcn.0041877f
mov ecx, 0x49f720
call fcn.0041908c
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x49f720
call fcn.004190ca
push eax
lea ecx, [ebp - 0x10]
call fcn.00417e60
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x18]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, 0x49f638
call fcn.00429443
test eax, eax
jne 0x416f21
mov dword [ebp - 0x24], 0xffffffff
push 5
mov ecx, 0x49f638
call fcn.004700d3
push 0xffffff
mov ecx, 0x49f638
call fcn.004295eb
push 0x49f638
call fcn.00405c9f
add esp, 4
cmp dword [0x48d4e8], 2
je 0x416f57
call fcn.00455705
mov dword [0x48f1b8], 0
call fcn.00416fce
mov dword [ebp - 0x24], eax
mov ecx, 0x4a02d0
call fcn.00426af8
mov edx, dword [0x49beb8]
mov eax, dword [edx]
push eax
call fcn.00416850
add esp, 4
mov ecx, dword [0x49beb8]
cmp dword [ecx + 0x14], 0
jne 0x416f99
cmp dword [0x48d51c], 0
je 0x416fc7
push 0
push 0
push 0x1cb
call fcn.00416903
add esp, 4
push eax
call fcn.00473e77
mov edx, dword [0x49beb8]
mov dword [edx + 0x14], 0
mov dword [0x48d51c], 0
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x417eb0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov dword [0x49fdd4], 0
push 0x104
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x417f6b
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x104]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x417f67
mov ecx, dword [ebp - 0x108]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x49fdd4], eax
mov edx, dword [0x49fdd4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [0x49fdd8], eax
mov eax, dword [0x49fdd8]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
push 0
lea edx, [ebp - 0x104]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x417f59
mov eax, dword [0x49fdd8]
mov dword [0x49fdd0], eax
mov eax, 1
jmp 0x417f6d
mov dword [0x49fdd0], 0
xor eax, eax
jmp 0x417f6d
xor eax, eax
jmp 0x417f6d
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4228ad
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479ac9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x424
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x10], 0
push 0x400
push 0
lea eax, [ebp - 0x410]
push eax
call fcn.004471d0
add esp, 0xc
mov ecx, 0x4a0cd8
call fcn.0042e500
mov ecx, dword [ebp - 0x428]
add ecx, 8
call fcn.00402550
push eax
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push 0x47e884
push str.Codetypes
push str.Types
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x410]
push edx
call fcn.00446520
add esp, 4
test eax, eax
jne 0x422950
push 1
push 5
mov ecx, 0x4a0cd8
call fcn.0042e56a
xor eax, eax
jmp 0x422a9b
push 0x47e8a0
lea eax, [ebp - 0x410]
push eax
call fcn.0044811b
add esp, 8
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
je 0x422a34
push 0x4c
call fcn.0046d018
add esp, 4
mov dword [ebp - 0x41c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x41c], 0
je 0x4229c4
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x414]
push edx
mov ecx, dword [ebp - 0x428]
add ecx, 8
call fcn.00402550
push eax
mov ecx, dword [ebp - 0x41c]
call fcn.00422c92
mov dword [ebp - 0x42c], eax
jmp 0x4229ce
mov dword [ebp - 0x42c], 0
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x428]
cmp dword [edx + 4], 0
jne 0x422a02
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
push 0x47e8a0
mov edx, dword [ebp - 0x414]
push edx
call fcn.00446520
add esp, 4
mov ecx, dword [ebp - 0x414]
lea edx, [ecx + eax + 1]
push edx
call fcn.0044811b
add esp, 8
mov dword [ebp - 0x414], eax
jmp 0x42296a
mov ecx, 0x4a0cd8
call fcn.00429300
test eax, eax
je 0x422a96
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x424], ecx
mov edx, dword [ebp - 0x424]
mov dword [ebp - 0x420], edx
cmp dword [ebp - 0x420], 0
je 0x422a7b
push 1
mov ecx, dword [ebp - 0x420]
call fcn.004251a0
mov dword [ebp - 0x430], eax
jmp 0x422a85
mov dword [ebp - 0x430], 0
mov eax, dword [ebp - 0x428]
mov dword [eax + 4], 0
xor eax, eax
jmp 0x422a9b
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret