joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5115d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebp
push esi
mov esi, dword [ecx]
xor ebp, ebp
and esi, 7
cmp eax, 5
jae 0x5115ed
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x14]
push ebx
lea ebx, [edx + eax - 4]
push edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
lea edi, [edx + ebp]
cmp edi, ebx
jae 0x51161d
lea ebx, [ebx]
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x51161d
inc edi
cmp edi, ebx
jb 0x511610
mov ebp, edi
sub ebp, edx
mov eax, ebp
sub eax, dword [esp + 0x10]
cmp edi, ebx
jae 0x511725
cmp eax, 3
jbe 0x511650
xor esi, esi
mov al, byte [edi + 4]
mov dword [esp + 0x10], ebp
test al, al
je 0x51168b
cmp al, 0xff
je 0x51168b
and esi, 3
add esi, esi
or esi, 1
inc ebp
jmp 0x511603
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x511636
movzx ecx, byte [esi + 0x5821b0]
mov eax, edi
sub eax, ecx
cmp byte [esi + 0x5821a8], 0
mov al, byte [eax + 4]
je 0x511679
test al, al
je 0x511679
cmp al, 0xff
jne 0x511636
and esi, 3
add esi, esi
mov dword [esp + 0x10], ebp
or esi, 1
inc ebp
jmp 0x511603
movzx ecx, byte [edi + 3]
movzx edx, al
movzx eax, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
lea esp, [esp]
sub edx, ebp
sub edx, 5
mov eax, edx
test esi, esi
je 0x5116f7
movzx edx, byte [esi + 0x5821b0]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
test bl, bl
je 0x5116dc
cmp bl, 0xff
jne 0x5116f3
mov ebx, dword [esp + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x5116b0
mov ebx, dword [esp + 0x14]
mov edx, eax
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, eax
shr edx, 8
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x1c]
mov byte [edi + 3], cl
mov byte [edi + 1], al
add ebp, 5
jmp 0x511603
pop edi
pop ebx
cmp eax, 3
jbe 0x51173c
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
lea ecx, [eax - 1]
mov eax, dword [esp + 0x18]
shl esi, cl
and esi, 7
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret

Function at 0x51b70a
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x51b735
call fcn.005234fa
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x51b758
push eax
push dword [esi + 4]
call fcn.0051b690
push esi
push eax
mov ecx, 0x5c6f00
call fcn.0051b317
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x51c1be
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x56a93d
call fcn.0053f56b
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.0051c17e
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00410610
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x51c225
push eax
push dword [esi + 8]
call fcn.0051b690
push dword [esi + 0xc]
mov ecx, 0x5c6f00
push eax
call fcn.0051b317
mov eax, esi
call fcn.0053f643
ret 0x1c

Function at 0x520516
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x52055e
call fcn.005234fa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x52055e
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x5205a1
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x52058a
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x52058a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x52059e
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x521f82
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 + 0x58], ebx
test ebx, 0xffff0000
jne 0x521fa6
cmp dword [edi + 0x54], 0
jne 0x521fa6
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.005234fa
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
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.00521f43
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 0x528c07
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 0x528c4e
call fcn.005234fa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x528c4e
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x528c6a
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0052877f
mov esi, eax
test edi, edi
je 0x528c68
test ebx, ebx
je 0x528c68
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x5293a5
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x56b14b
call fcn.0053f56b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x5293ca
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x529410
lea ecx, [ebp - 0x10]
call fcn.00410610
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0051a496
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403400
mov eax, esi
call fcn.0053f643
ret 8

Function at 0x538a54
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5bda40]
jne 0x538a5e
repz ret
jmp fcn.005437a5

Function at 0x538f1c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x538f4d
call fcn.0053c3b9
mov dword [eax], esi
call fcn.0053c3a6
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00538d86
add esp, 0x14
push 0x16
pop eax
jmp 0x538fa2
test dword [ebp + 0xc], 0xfffffff9
jne 0x538f29
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x538f7a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0053c3cc
pop ecx
call fcn.0053c3a6
mov eax, dword [eax]
jmp 0x538fa2
test al, 0x10
jne 0x538fa0
test al, 1
je 0x538fa0
test byte [ebp + 0xc], 2
je 0x538fa0
call fcn.0053c3b9
mov dword [eax], 5
call fcn.0053c3a6
mov dword [eax], 0xd
jmp 0x538f71
xor eax, eax
pop esi
pop ebp
ret
Function at 0x5509f4
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.00543109
and dword [ebp - 4], 0
cmp dword [0x5c99ac], 0
mov ebx, eax
jne 0x550aa5
push 0x57decc
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x550b56
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x550b56
push eax
call fcn.00543097
mov dword [esp], 0x57deb0
push edi
mov dword [0x5c99ac], eax
call esi
push eax
call fcn.00543097
mov dword [esp], 0x57de9c
push edi
mov dword [0x5c99b0], eax
call esi
push eax
call fcn.00543097
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5c99b4], eax
call esi
push eax
call fcn.00543097
pop ecx
mov dword [0x5c99bc], eax
test eax, eax
je 0x550aa5
push 0x57de68
push edi
call esi
push eax
call fcn.00543097
pop ecx
mov dword [0x5c99b8], eax
mov eax, dword [0x5c99b8]
cmp eax, ebx
je 0x550afd
cmp dword [0x5c99bc], ebx
je 0x550afd
push eax
call fcn.00543112
push dword [0x5c99bc]
mov esi, eax
call fcn.00543112
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x550afd
test edi, edi
je 0x550afd
call esi
test eax, eax
je 0x550af4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x550af4
test byte [ebp - 0xc], 1
jne 0x550afd
or dword [ebp + 0x10], 0x200000
jmp 0x550b36
mov eax, dword [0x5c99b0]
cmp eax, ebx
je 0x550b36
push eax
call fcn.00543112
pop ecx
test eax, eax
je 0x550b36
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x550b36
mov eax, dword [0x5c99b4]
cmp eax, ebx
je 0x550b36
push eax
call fcn.00543112
pop ecx
test eax, eax
je 0x550b36
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5c99ac]
call fcn.00543112
pop ecx
test eax, eax
je 0x550b56
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x550b58
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401139
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40114d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40116e
cmp esi, eax
jae 0x401147
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401160
cmp esi, eax
jae 0x401147
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404af0
Capabilities:
Hash data using crc32b

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edx, edx
mov ecx, edx
shl ecx, 0x18
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x4c11db7
shl ecx, 1
mov edi, eax
xor edi, ecx
test edi, edi
jns 0x404b20
add eax, eax
xor eax, 0x4c11db7
jmp 0x404b22
shl eax, 1
shl ecx, 1
mov edi, eax
xor edi, ecx
test edi, edi
jns 0x404b35
add eax, eax
xor eax, 0x4c11db7
jmp 0x404b37
shl eax, 1
shl ecx, 1
mov edi, eax
xor edi, ecx
test edi, edi
jns 0x404b4a
add eax, eax
xor eax, 0x4c11db7
jmp 0x404b4c
shl eax, 1
shl ecx, 1
mov edi, eax
xor edi, ecx
test edi, edi
jns 0x404b5f
add eax, eax
xor eax, 0x4c11db7
jmp 0x404b61
shl eax, 1
shl ecx, 1
mov edi, eax
xor edi, ecx
test edi, edi
jns 0x404b74
add eax, eax
xor eax, 0x4c11db7
jmp 0x404b76
shl eax, 1
shl ecx, 1
mov edi, eax
xor edi, ecx
test edi, edi
jns 0x404b89
add eax, eax
xor eax, 0x4c11db7
jmp 0x404b8b
shl eax, 1
add ecx, ecx
xor ecx, eax
test ecx, ecx
jns 0x404b9c
add eax, eax
xor eax, 0x4c11db7
jmp 0x404b9e
shl eax, 1
mov dword [esi + edx*4], eax
inc edx
cmp edx, 0x100
jb 0x404af8
pop edi
pop esi
ret 4

Function at 0x404bc0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x404be2
push 0x400
call fcn.0044ffe6
add esp, 4
push eax
mov ecx, esi
mov dword [esi + 4], eax
call fcn.00404af0
mov edx, dword [esp + 0xc]
test edx, edx
mov eax, dword [esp + 0x10]
jbe 0x404c0f
mov esi, dword [esi + 4]
mov ecx, dword [esp + 8]
push ebx
push edi
movzx ebx, byte [ecx]
mov edi, eax
shr edi, 0x18
xor edi, ebx
mov ebx, dword [esi + edi*4]
shl eax, 8
xor eax, ebx
inc ecx
dec edx
jne 0x404bf7
pop edi
pop ebx
pop esi
ret 0xc
Function at 0x404c20
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20c
mov eax, dword [0x47c5d0]
push edi
mov dword [esp + 0x20c], eax
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x7f
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x200
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404c79
xor al, al
mov ecx, dword [esp + 0x20c]
call fcn.0043a7a4
pop edi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 1
push eax
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [esp + 0x20c]
neg eax
sbb eax, eax
neg eax
call fcn.0043a7a4
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x404ce0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45e438
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.004037b0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401bd0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x404d72
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x406230
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x45e5bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x47c5d0]
push ebx
push esi
xor esi, esi
push 0x4638ee
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], eax
mov dword [esp + 0x10], esi
call fcn.004018c0
push 0x104
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x134], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, esi
je 0x406321
push edi
push ebx
push 2
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [esp + 0x18]
push edi
push ebx
push eax
lea ecx, [esp + 0x28]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0x463be8
push edi
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x10]
mov edx, eax
and edx, 0xffff
push edx
shr eax, 0x10
push eax
mov eax, ecx
and eax, 0xffff
push eax
shr ecx, 0x10
push ecx
lea ecx, [esp + 0x1c]
push 0x463dc0
push ecx
call fcn.004026d0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
push eax
call fcn.00401bd0
mov esi, dword [esp + 0x134]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x128], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406366
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x118]
pop ebx
call fcn.0043a7a4
add esp, 0x124
ret 4

Function at 0x4098e0
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
push eax
mov eax, dword [esi + 4]
push 0x1000
push eax
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax*2]
push 0
lea edx, [ecx*8 + str.Chip]
push edx
push 0x4645c8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x409926
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push eax
push 0
push ecx
call fcn.0043b593
add esp, 0xc
pop esi
ret 0xc
xor eax, eax
pop esi
ret 0xc
Function at 0x409930
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ebx, ecx
mov eax, dword [ebx]
mov ecx, dword [esp + 0xc]
push eax
mov eax, dword [ebx + 4]
push 0x1000
push eax
push 0
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4099bb
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 4]
push esi
push edi
push edx
push eax
call fcn.0043bbd0
mov byte [eax], 0
inc eax
push 0x7c
push eax
call fcn.0043bb10
add esp, 0x10
inc eax
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409978
mov edi, dword [ebx + 4]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409985
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov ebx, dword [ebx]
mov ecx, dword [esp + 0x14]
push ebx
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
ret 0xc
pop ebp
xor al, al
pop ebx
ret 0xc
Function at 0x409c30
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
mov eax, dword [esi]
push eax
mov eax, dword [esi + 4]
push 0x1000
push eax
push 0
push edi
push str.Segment
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebp, dword [esp + 0x18]
test eax, eax
setne al
test ebp, ebp
jne 0x409ce9
test al, al
je 0x409d45
push edi
push str.BaseAddr
push str.Segment
mov ecx, esi
call fcn.00409930
test al, al
je 0x409d45
mov eax, dword [esi]
push eax
push ebp
push 0x4645e0
push str.Segment
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esi + 4]
push 0xa
dec eax
push ecx
push eax
call fcn.0043b65f
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
push ecx
push eax
push 0x4645e0
push str.Segment
call ebx
test eax, eax
je 0x409d45
mov eax, dword [esi]
push eax
push ebp
push ebp
push edi
call ebx
test eax, eax
je 0x409d45
push ebp
push edi
push str.Segment
mov ecx, esi
call fcn.004098b0
pop edi
pop esi
pop ebp
pop ebx
ret 8
test al, al
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jne 0x409d4e
push edi
push str.BaseAddr
push str.Segment
mov ecx, esi
call fcn.004099d0
test al, al
je 0x409d45
mov eax, dword [esi]
push eax
push 0
push 0x4645e0
push str.Segment
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [esi + 4]
push 0xa
inc eax
push edx
push eax
call fcn.0043b65f
mov ecx, dword [esi]
mov eax, dword [esi + 4]
add esp, 0xc
push ecx
push eax
push 0x4645e0
push str.Segment
call ebx
test eax, eax
jne 0x409d4e
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
mov esi, dword [esi]
push esi
push ebp
push edi
push str.Segment
call ebx
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
ret 8

Function at 0x409d90
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [esp + 0xc]
push eax
mov eax, dword [esi + 4]
push 0x1000
push eax
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x409dbb
xor al, al
pop esi
ret 0xc
push edi
mov edi, dword [esi + 4]
push 0x27
push edi
call fcn.0043bb10
mov esi, eax
add esp, 8
test esi, esi
jne 0x409dd7
pop edi
xor al, al
pop esi
ret 0xc
push ebx
push edi
mov byte [esi], 0
call fcn.0043bcde
mov ebx, dword [esp + 0x1c]
lea edi, [esi + 1]
push 0x7c
push edi
mov byte [ebx + 0x41], al
call fcn.0043bb10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x409e04
pop ebx
pop edi
xor al, al
pop esi
ret 0xc
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_StrTrimA]
push 0x47b284
push edi
mov byte [esi], 0
call ebp
lea edx, [ebx + 0x20]
mov eax, edi
sub edx, edi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x409e20
push 0x47b284
inc esi
push esi
call ebp
mov edx, ebx
mov eax, esi
sub edx, esi
pop ebp
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x409e40
pop ebx
pop edi
mov al, 1
pop esi
ret 0xc
Function at 0x409e60
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
mov eax, dword [esi]
push eax
mov eax, dword [esi + 4]
push 0x1000
push eax
push 0
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, dword [esp + 0x1c]
test eax, eax
setne al
test ebx, ebx
jne 0x409efe
test al, al
je 0x409f52
push ebp
push str.OffsetAddr
push edi
mov ecx, esi
call fcn.00409930
test al, al
je 0x409f52
mov eax, dword [esi]
push eax
push ebx
push 0x4645f4
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esi + 4]
push 0xa
dec eax
push ecx
push eax
call fcn.0043b65f
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
push ecx
push eax
push 0x4645f4
push edi
call ebx
test eax, eax
je 0x409f52
mov esi, dword [esi]
push esi
push 0
push ebp
push edi
call ebx
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
ret 0xc
test al, al
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jne 0x409f5b
mov edx, dword [esp + 0x18]
push edx
push str.OffsetAddr
push edi
mov ecx, esi
call fcn.004099d0
test al, al
je 0x409f52
mov eax, dword [esi]
push eax
push 0
push 0x4645f4
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esi + 4]
push 0xa
inc eax
push ecx
push eax
call fcn.0043b65f
mov ecx, dword [esi]
mov eax, dword [esi + 4]
add esp, 0xc
push ecx
push eax
push 0x4645f4
push edi
call ebp
test eax, eax
jne 0x409f5b
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc
movzx eax, byte [ebx + 0x41]
mov ecx, dword [esi + 4]
push ebx
lea edx, [ebx + 0x20]
push edx
push eax
push str._d_s_t_s
push ecx
call fcn.0043bce3
mov eax, dword [esi + 4]
mov esi, dword [esi]
mov edx, dword [esp + 0x2c]
add esp, 0x14
push esi
push eax
push edx
push edi
call ebp
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
ret 0xc

Function at 0x409fa0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x10
mov eax, dword [0x47c5d0]
push esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push eax
push 0x53
mov esi, ecx
lea ecx, [esp + 0xc]
push str._c_d
push ecx
call fcn.0043bce3
mov eax, dword [esi]
mov edx, dword [esi + 4]
add esp, 0x10
push eax
push 0x1000
push edx
push 0
lea eax, [esp + 0x14]
push eax
push str.Basic
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x409ff9
mov ecx, dword [esi + 4]
push 0x47b284
push ecx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov ecx, dword [esp + 0x10]
xor eax, eax
pop esi
call fcn.0043a7a4
add esp, 0x10
ret 4