joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406c6f
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x434dc0]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x406d0d
push 0x42a99c
push 4
push eax
call fcn.00412c0d
push eax
call fcn.00401f30
add esp, 0x10
push ebx
push edi
call fcn.00412967
mov edi, dword [eax]
call fcn.00412967
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004120c8
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.00412967
cmp dword [eax], ebx
je 0x406d24
call fcn.00412967
push dword [eax]
call fcn.00406bff
pop ecx
jmp 0x406d2b
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x406cbe
jmp 0x406d9d
call fcn.00412967
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x406d99
cmp dword [ebp - 0x40], esi
jae 0x406d99
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00413de0
add esp, 0xc
push 0x42a6fc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x406d8b
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x406d8b
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x406d8b
push ebx
push ebx
push esi
jmp 0x406d91
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x406d9b
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.00411f67
add ebp, 0x1f4
leave
ret
Function at 0x409643
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x409671
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40968f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004095ad
jmp 0x40968f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40968f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004095ad
test edi, edi
mov eax, edi
jne 0x409679
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x436f5c]
test ecx, ecx
je 0x409752
jmp 0x409642
ret 8

Function at 0x411f67
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434dc0]
jne 0x411f71
repz ret
jmp fcn.004176f8
Function at 0x416402
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x434de0]
je 0x41641d
inc edi
cmp edi, 0x17
jb 0x41640e
cmp edi, 0x17
jae 0x41659d
push ebp
push 3
call fcn.0042042d
cmp eax, 1
pop ecx
je 0x416569
push 3
call fcn.0042042d
test eax, eax
pop ecx
jne 0x416451
cmp dword [0x434c24], 1
je 0x416569
cmp ebx, 0xfc
je 0x41659c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x438e40
push ebp
call fcn.0041cb49
add esp, 0xc
test eax, eax
je 0x416487
push esi
push esi
push esi
push esi
push esi
call fcn.0041310c
add esp, 0x14
push 0x104
mov esi, 0x438e59
push esi
push 0
mov byte [0x438f5d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4164cb
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041cb49
add esp, 0xc
test eax, eax
je 0x4164cb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041310c
add esp, 0x14
push esi
call fcn.0041cbb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x416510
push esi
call fcn.0041cbb0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x439154
push 0x42c33c
sub ecx, eax
push ecx
push eax
call fcn.0042037a
add esp, 0x14
test eax, eax
je 0x416510
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041310c
add esp, 0x14
jmp 0x416512
xor esi, esi
push 0x42c338
push ebx
push ebp
call fcn.00420309
add esp, 0xc
test eax, eax
je 0x416532
push esi
push esi
push esi
push esi
push esi
call fcn.0041310c
add esp, 0x14
push dword [edi*8 + 0x434de4]
push ebx
push ebp
call fcn.00420309
add esp, 0xc
test eax, eax
je 0x416554
push esi
push esi
push esi
push esi
push esi
call fcn.0041310c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042014c
add esp, 0xc
jmp 0x41659c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41659c
cmp ebp, 0xffffffff
je 0x41659c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x434de4]
push dword [esi]
call fcn.0041cbb0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x42014c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00416fc7
xor ebx, ebx
cmp dword [0x439948], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x420222
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x420302
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x420302
push eax
call fcn.00416f59
mov dword [esp], 0x42c600
push edi
mov dword [0x439948], eax
call esi
push eax
call fcn.00416f59
mov dword [esp], 0x42c5ec
push edi
mov dword [0x43994c], eax
call esi
push eax
call fcn.00416f59
mov dword [0x439950], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00413f19
test eax, eax
pop ecx
pop ecx
je 0x4201f0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041310c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x420222
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00416f59
cmp eax, ebx
pop ecx
mov dword [0x439958], eax
je 0x420222
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00416f59
pop ecx
mov dword [0x439954], eax
mov eax, dword [0x439954]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4202a7
cmp dword [0x439958], ecx
je 0x4202a7
push eax
call fcn.00416fd0
push dword [0x439958]
mov esi, eax
call fcn.00416fd0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4202a7
cmp edi, ebx
je 0x4202a7
call esi
cmp eax, ebx
je 0x420274
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x420274
test byte [ebp - 0x18], 1
jne 0x4202a7
lea eax, [ebp - 0x10]
push eax
call fcn.00413f50
test eax, eax
pop ecx
je 0x42028f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041310c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42029e
or dword [ebp + 0x10], 0x200000
jmp 0x4202e2
or dword [ebp + 0x10], 0x40000
jmp 0x4202e2
mov eax, dword [0x43994c]
cmp eax, dword [ebp - 8]
je 0x4202e2
push eax
call fcn.00416fd0
cmp eax, ebx
pop ecx
je 0x4202e2
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4202e2
mov eax, dword [0x439950]
cmp eax, dword [ebp - 8]
je 0x4202e2
push eax
call fcn.00416fd0
cmp eax, ebx
pop ecx
je 0x4202e2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x439948]
call fcn.00416fd0
cmp eax, ebx
pop ecx
je 0x420302
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x420304
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4225d9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x422606
call fcn.0041297a
mov dword [eax], esi
call fcn.00412967
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00413208
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4225e2
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x422635
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041298d
pop ecx
call fcn.00412967
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x42265c
test al, 1
je 0x42265c
test byte [esp + 0xc], 2
je 0x42265c
call fcn.0041297a
mov dword [eax], 5
call fcn.00412967
mov dword [eax], 0xd
jmp 0x42262c
xor eax, eax
pop esi
ret
Function at 0x428d9c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x434dc0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00428d31
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00413de0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x428deb
cmp dword [ebp - 0x1c], 5
jb 0x428e03
jmp 0x428dff
cmp dword [ebp - 0x10], 1
jne 0x428e03
cmp dword [ebp - 0x1c], 4
ja 0x428dff
jne 0x428e03
cmp dword [ebp - 0x18], 0
jbe 0x428e03
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42d814
call fcn.00428c22
test eax, eax
jge 0x428e24
mov byte [0x439b00], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00411f67
add ebp, 0x78
leave
ret
Function at 0x43b64b
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
and edi, ecx
inc ecx
or edi, edi
call fcn.0043b67a
sub ecx, edi
sub ecx, ecx
xor dword [ebx], eax
add ecx, 0x37b98506
inc ebx
and ecx, ecx
sub edi, edi
cmp ebx, esi
jne fcn.0043b64b
or ecx, edi
or ecx, edi
ret
Function at 0x403110
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x200c
call fcn.0040a5d0
mov eax, dword [0x43bb14]
mov ecx, dword [0x43ba88]
shr eax, 3
test eax, eax
jbe 0x403242
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x403160
cmp dword [0x43bb14], 0x959
jne 0x403224
push 0
lea eax, [esp + 0x420]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
lea ecx, [esp + 0xc20]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x1420]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x1820]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0x402b70
push 0x402b80
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.00402f60
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403160
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200c
ret
Function at 0x4071d3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ba30]
jne 0x4071dd
repz ret
jmp fcn.00409f6f

Function at 0x409aff
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004058c8
and dword [ebp - 4], 0
cmp dword [0x42c8e0], 0
mov ebx, eax
jne 0x409bb0
push 0x402378
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409c61
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40236c
push edi
call esi
test eax, eax
je 0x409c61
push eax
call fcn.00405856
mov dword [esp], 0x40235c
push edi
mov dword [0x42c8e0], eax
call esi
push eax
call fcn.00405856
mov dword [esp], 0x402348
push edi
mov dword [0x42c8e4], eax
call esi
push eax
call fcn.00405856
mov dword [esp], 0x40232c
push edi
mov dword [0x42c8e8], eax
call esi
push eax
call fcn.00405856
pop ecx
mov dword [0x42c8f0], eax
test eax, eax
je 0x409bb0
push 0x402314
push edi
call esi
push eax
call fcn.00405856
pop ecx
mov dword [0x42c8ec], eax
mov eax, dword [0x42c8ec]
cmp eax, ebx
je 0x409c08
cmp dword [0x42c8f0], ebx
je 0x409c08
push eax
call fcn.004058d1
push dword [0x42c8f0]
mov esi, eax
call fcn.004058d1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409c08
test edi, edi
je 0x409c08
call esi
test eax, eax
je 0x409bff
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409bff
test byte [ebp - 0xc], 1
jne 0x409c08
or dword [ebp + 0x10], 0x200000
jmp 0x409c41
mov eax, dword [0x42c8e4]
cmp eax, ebx
je 0x409c41
push eax
call fcn.004058d1
pop ecx
test eax, eax
je 0x409c41
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409c41
mov eax, dword [0x42c8e8]
cmp eax, ebx
je 0x409c41
push eax
call fcn.004058d1
pop ecx
test eax, eax
je 0x409c41
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42c8e0]
call fcn.004058d1
pop ecx
test eax, eax
je 0x409c61
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409c63
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404140
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x404159
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404165
sub eax, edi
inc eax
add edx, eax
add esi, eax
cmp eax, 1
jne 0x404160
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4057b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4620e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSize]
mov edi, dword [esi]
mov ecx, edi
lea ebx, [eax - 1]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4057e1
sub ecx, edx
cmp ecx, ebx
jae 0x405803
dec edi
nop
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4057f0
mov ax, word [0x455ba8]
mov word [edi], ax
mov esi, dword [esi]
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405810
sub ecx, edx
mov eax, ebx
sub eax, ecx
mov ecx, esi
mov dword [ebp - 0x18], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405825
sub ecx, edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ecx + esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405852
sub ecx, edx
mov edx, esi
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x405860
movzx eax, word [ebp - 8]
sub edx, edi
push eax
movzx eax, word [ebp - 0xa]
sub ebx, ecx
push eax
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
push str.__04d__02d__02d__02d_02d_02d.dmp
lea eax, [edx + esi]
push ebx
push eax
call fcn.00407f10
mov ecx, dword [ebp - 4]
add esp, 0x24
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004108c8
mov esp, ebp
pop ebp
ret
Function at 0x405e40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4522b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4620e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1000
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0
call fcn.004051b0
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
sub esi, edi
mov ebx, dword [ebp + 0x14]
push ebx
push esi
push edi
push 0x455a11
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esi - 2]
cmp eax, ecx
jne 0x405edf
nop dword [eax]
lea eax, [esi + esi]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407d40
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
sub esi, edi
push ebx
push esi
push edi
push 0x455a11
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esi - 2]
cmp eax, ecx
je 0x405eb0
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edi], 0
jne 0x405efc
xor ecx, ecx
jmp 0x405f0a
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405f01
sub ecx, edx
push ecx
push edi
mov ecx, esi
call fcn.00407a60
lea ecx, [ebp - 0x1c]
call fcn.00407360
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 0x10

Function at 0x4073d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45253b
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x4620e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
push 0x455a30
push 1
push 0
push 0x455a40
mov dword [ebp - 0x114], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x40744a
push eax
lea eax, [ebp - 0x110]
push str.Failed_to_create_debug_stream__hr:_08X._n
push eax
call fcn.00407f50
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x114]
mov dword [ebp - 4], 0
test eax, eax
je 0x407468
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x114]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x407479
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004108c8
mov esp, ebp
pop ebp
ret
Function at 0x4074c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45257b
mov eax, dword fs:[0]
push eax
sub esp, 0x50c
mov eax, dword [0x4620e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x514]
push 0x400
push eax
call fcn.00407f00
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0042c7b0
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
movzx ecx, byte [ebp - 0x115]
xor edx, edx
cmp eax, 0xffffffff
lea eax, [ebp - 0x518]
mov dword [ebp - 0x518], edx
push eax
push 0x455a30
push 1
push edx
cmove ecx, edx
push 0x455a40
mov byte [ebp - 0x115], cl
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test eax, eax
je 0x40757c
push eax
lea eax, [ebp - 0x110]
push str.Failed_to_create_debug_stream__hr:_08X._n
push eax
call fcn.00407f50
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call esi
mov eax, dword [ebp - 0x518]
mov dword [ebp - 4], 0
test eax, eax
je 0x4075a1
mov ecx, dword [eax]
lea edx, [ebp - 0x514]
push edx
push str.TRN_Trace
push eax
call dword [ecx + 0xc]
jmp 0x4075b1
push str.TRN_Trace:
call esi
lea eax, [ebp - 0x514]
push eax
call esi
mov eax, dword [ebp - 0x518]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4075c8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004108c8
mov esp, ebp
pop ebp
ret

Function at 0x4087d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x14]
push esi
push 0x455a11
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push edi
push str._s:__s_n
call fcn.004074c0
add esp, 0xc
lea ecx, [ebp - 1]
push dword [ebp + 0x1c]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push esi
call fcn.004081d0
test eax, eax
jne 0x40882d
push edi
push str.Error_loading_ini_data___s__n
call fcn.004074c0
add esp, 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408840
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x14]
push esi
push 0x455a11
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push edi
push str._s:__s_n
call fcn.004074c0
add esp, 0xc
lea ecx, [ebp - 1]
push dword [ebp + 0x1c]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push esi
call fcn.00408240
test eax, eax
jne 0x40889d
push edi
push str.Error_loading_ini_data___s__n
call fcn.004074c0
add esp, 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4088b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x14]
push esi
push 0x455a11
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push edi
push str._s:__s_n
call fcn.004074c0
add esp, 0xc
lea ecx, [ebp - 1]
push dword [ebp + 0x1c]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push esi
call fcn.004082b0
test eax, eax
jne 0x40890d
push edi
push str.Error_loading_ini_data___s__n
call fcn.004074c0
add esp, 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408920
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x14]
push esi
push 0x455a11
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push edi
push str._s:__s_n
call fcn.004074c0
add esp, 0xc
lea ecx, [ebp - 1]
push dword [ebp + 0x1c]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push esi
call fcn.00408320
test eax, eax
jne 0x40897d
push edi
push str.Error_loading_ini_data___s__n
call fcn.004074c0
add esp, 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408f70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4620e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 1
mov edi, ecx
push 0
push 0xc9
push str.TxImitator
lea ecx, [edi + 4]
mov dword [ebp - 0x108], edi
mov dword [edi + 0x230], 0
call fcn.00408c80
lea eax, [edi + 0x248]
mov dword [edi], vtable.CTXImitatorLink.0
push eax
mov dword [edi + 4], vtable.CTXImitatorLink.1.0
mov dword [edi + 0x234], 0
push 0x455a30
mov dword [edi + 0x238], 0
push 1
mov dword [edi + 0x23c], 0
mov dword [edi + 0x240], 0
push 0
mov dword [edi + 0x244], 0
push 0x455a40
mov dword [eax], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x409033
push eax
lea eax, [ebp - 0x104]
push str.Failed_to_create_debug_stream__hr:_08X._n
push eax
call fcn.00407f50
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004108c8
mov esp, ebp
pop ebp
ret