joyce8/EMBER2024-capa huggingface dataset:
Function at 0x504838
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5049b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov eax, dword [ebx + 0x488]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [eax + 0x94]
mov eax, dword [ebx + 0x208]
call fcn.00429fa0
mov dword [ebp - 8], eax
mov edx, esi
mov eax, dword [ebx + 0x488]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [eax + 0x94]
mov eax, dword [ebx + 0x208]
call fcn.00429f84
mov edi, eax
mov edx, esi
mov eax, dword [ebx + 0x488]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov al, byte [eax + 0x98]
sub al, 1
jb 0x5048fc
jne 0x50494b
mov edx, esi
mov eax, dword [ebx + 0x488]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 8]
add eax, 2
mov dword [ebp - 0x18], eax
add edi, dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, ebx
call fcn.0050011c
mov edi, eax
mov eax, dword [ebp - 8]
add eax, 2
sub edi, eax
mov dword [ebp - 0x14], edi
add edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
jmp 0x50494b
mov edx, esi
mov eax, dword [ebx + 0x488]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 8]
lea edx, [edi + 2]
sub eax, edx
mov dword [ebp - 0x18], eax
add edi, dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, ebx
call fcn.0050011c
mov dword [ebp - 0x14], eax
mov edx, esi
mov eax, dword [ebx + 0x488]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov edi, dword [ebx + 0x208]
mov eax, dword [edi + 0xc]
mov dl, byte [0x5049c4]
call fcn.00429118
mov eax, dword [edi + 0xc]
mov edx, dword [ebx + 0x46c]
call fcn.00428e4c
mov edx, esi
mov eax, dword [ebx + 0x488]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [eax + 0x94]
lea eax, [ebp - 0x1c]
call fcn.00404a78
mov eax, dword [ebp - 0x1c]
push eax
push 0
xor ecx, ecx
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x208]
call fcn.004f3168
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5049bb
lea eax, [ebp - 0x1c]
call fcn.004048a0
ret
Function at 0x507888
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x5079e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x488]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0xc], eax
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00500058
mov byte [ebp - 5], al
mov eax, dword [ebp - 0xc]
mov edx, dword [edi + 0x208]
mov dword [eax + 0x20], edx
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, edi
mov esi, dword [eax]
call dword [esi + 0x1c0]
mov eax, dword [ebp - 0xc]
push edi
lea esi, [ebp - 0x20]
lea edi, [eax + 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, edi
mov esi, dword [eax]
call dword [esi + 0x108]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, edi
mov si, 0xffb0
call fcn.00403530
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov edx, dword [ebp - 0x10]
call fcn.004048dc
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x488]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [eax + 0x58]
mov eax, dword [edi + 0x208]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov al, byte [ebp - 5]
push eax
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x148]
mov ebx, dword [edi + 0x208]
test byte [ebp - 5], 1
je 0x50798c
mov esi, dword [ebx + 0xc]
mov eax, esi
call fcn.0042910c
mov edx, eax
or dl, byte [0x5079fc]
mov eax, esi
call fcn.00429118
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x20]
mov ebx, eax
mov al, byte [edi + 0x2bc]
sub al, 1
jae 0x5079b6
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x488]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [eax + 0xb0]
jmp 0x5079c9
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x488]
mov ecx, dword [eax]
call dword [ecx + 0x30]
call fcn.00518300
add ebx, 5
cmp eax, ebx
setge al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5079f0
lea eax, [ebp - 0x10]
call fcn.004048a0
ret

Function at 0x530a74
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
test esi, esi
jbe 0x530a98
mov eax, 1
mov ebx, ecx
add ebx, eax
dec ebx
mov bl, byte [ebx]
mov edi, edx
add edi, eax
dec edi
xor byte [edi], bl
inc eax
dec esi
jne 0x530a86
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x530e28
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov esi, eax
lea edi, [esp + 4]
mov eax, dword [edx]
mov dword [edi], eax
add edx, 4
mov eax, dword [edx]
lea edx, [edi + 4]
mov dword [edx], eax
mov ebx, 4
mov eax, edi
mov dx, word [eax]
mov ecx, edx
shl ecx, 8
movzx edx, dx
shr edx, 8
or cx, dx
mov word [eax], cx
add eax, 2
dec ebx
jne 0x530e4d
xor ebx, ebx
mov ebp, ebx
add ebp, ebp
lea ebp, [ebp + ebp*2]
mov dx, word [esi + ebp*2 + 0x14]
mov eax, edi
call fcn.00530de8
mov ax, word [esi + ebp*2 + 0x16]
add word [edi + 2], ax
mov ax, word [esi + ebp*2 + 0x18]
add word [edi + 4], ax
mov dx, word [esi + ebp*2 + 0x1a]
lea eax, [edi + 6]
call fcn.00530de8
mov ax, word [edi + 4]
mov word [esp + 0xc], ax
mov ax, word [edi]
xor word [edi + 4], ax
mov dx, word [esi + ebp*2 + 0x1c]
lea eax, [edi + 4]
call fcn.00530de8
mov ax, word [edi + 2]
mov word [esp + 0xe], ax
mov ax, word [edi + 6]
xor word [edi + 2], ax
mov ax, word [edi + 4]
add word [edi + 2], ax
mov dx, word [esi + ebp*2 + 0x1e]
lea eax, [edi + 2]
call fcn.00530de8
mov ax, word [edi + 2]
add word [edi + 4], ax
mov ax, word [edi + 2]
xor word [edi], ax
mov ax, word [edi + 4]
xor word [edi + 6], ax
mov ax, word [esp + 0xc]
xor word [edi + 2], ax
mov ax, word [esp + 0xe]
xor word [edi + 4], ax
inc ebx
cmp ebx, 8
jne 0x530e69
mov dx, word [esi + 0x74]
mov eax, edi
call fcn.00530de8
mov ax, word [esi + 0x76]
add word [edi + 4], ax
mov ax, word [esi + 0x78]
add word [edi + 2], ax
mov dx, word [esi + 0x7a]
lea eax, [edi + 6]
call fcn.00530de8
mov ax, word [edi]
mov edx, eax
shl edx, 8
movzx eax, ax
shr eax, 8
or dx, ax
mov word [edi], dx
mov ax, word [edi + 4]
mov edx, eax
shl edx, 8
movzx eax, ax
shr eax, 8
or dx, ax
mov word [esp + 0xe], dx
mov ax, word [edi + 2]
mov edx, eax
shl edx, 8
movzx eax, ax
shr eax, 8
or dx, ax
mov word [edi + 4], dx
mov ax, word [edi + 6]
mov edx, eax
shl edx, 8
movzx eax, ax
shr eax, 8
or dx, ax
mov word [edi + 6], dx
mov ax, word [esp + 0xe]
mov word [edi + 2], ax
mov eax, dword [edi]
mov edx, dword [esp]
mov dword [edx], eax
lea eax, [edi + 4]
mov eax, dword [eax]
mov edx, dword [esp]
add edx, 4
mov dword [edx], eax
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x418f40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420de0], ecx
add edx, 1
cmp edx, 0x100
jb 0x418f42
cmp edx, 0x800
jae 0x41902b
mov edi, edi
mov eax, dword [edx*4 + 0x4209e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420de0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x420ddc], eax
jb 0x419000
mov dword [0x420dbc], 0x4196e0
call fcn.00419170
test eax, eax
jne 0x419048
mov dword [0x420dbc], 0x419600
ret

Function at 0x401000
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x401029
mov al, byte [esi + 1]
inc esi
test al, al
je 0x401021
cmp al, 0x22
jne 0x401015
cmp byte [esi], 0x22
jne 0x401033
inc esi
jmp 0x401033
cmp al, 0x20
jle 0x401033
inc esi
cmp byte [esi], 0x20
jg 0x40102d
mov al, byte [esi]
test al, al
je 0x40103d
cmp al, 0x20
jle 0x401026
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402aca
push 0x404004
push section..data
call fcn.00402ab0
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40106d
movzx eax, word [ebp - 0x14]
jmp 0x401070
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00402ae2
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4012a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x404280], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.trast
push str.bask
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4012e8
xor eax, eax
jmp 0x401303
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4ac918
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc30
lea edx, [esp + 0x58]
push edx
push eax
call sub.kernel32.dll_FindNextFileA
push edi
push ebp
push ebx
call sub.kernel32.dll_FindFirstChangeNotificationA
mov eax, dword [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push esi
call sub.user32.dll_OpenWindowStationA
lea eax, [esp + 0x198]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.gdi32.dll_GetTextMetricsA
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
call fcn.0042acd0
mov eax, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_ClearCommError
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push eax
call sub.user32.dll_ReleaseDC
lea eax, [esp + 0x1d0]
push eax
call sub.user32.dll_RegisterClassW
lea eax, [esp + 0x23c]
push eax
lea eax, [esp + 0x1fc]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
call sub.advapi32.dll_CreateProcessAsUserA
lea eax, [esp + 0x24c]
push eax
call sub.gdi32.dll_CreateColorSpaceA
mov eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push eax
call sub.gdi32.dll_GetObjectW
lea eax, [esp + 0x394]
push eax
call sub.gdi32.dll_CreateFontIndirectA
add esp, 0x3d0
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x430002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401170
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 0x401189
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4011c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4011c0
lea ebx, [ebx]
cmp esi, eax
jae 0x4011c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011b0
cmp esi, eax
jb 0x4011ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x406321
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov esi, ecx
call fcn.0049b6d2
mov eax, dword [esi + 0x134]
lea ecx, [esi + 0x238]
push ecx
lea ecx, [esi + 0x234]
mov dword [esi + 0x240], eax
call fcn.00401bf0
lea ecx, [esi + 0x138]
call fcn.00448320
push 1
push 0x446
mov ecx, esi
call fcn.0046b659
mov ecx, eax
call fcn.0046735a
mov ecx, dword [esi + 0x254]
sub ecx, dword [esi + 0x250]
mov eax, 0x2ad5802b
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
xor ebx, ebx
add eax, edx
je 0x4063fa
push ebp
push edi
xor ebp, ebp
lea esp, [esp]
mov ecx, dword [esi + 0x254]
sub ecx, dword [esi + 0x250]
mov eax, 0x2ad5802b
imul ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x4063b6
call fcn.004955c5
mov edi, dword [esi + 0x250]
push ebx
lea ecx, [esi + 0x88]
add edi, ebp
call fcn.0046f5b5
mov byte [edi + 0xbf0], al
mov ecx, dword [esi + 0x254]
sub ecx, dword [esi + 0x250]
mov eax, 0x2ad5802b
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add ebp, 0xbf4
cmp ebx, eax
jb 0x406390
pop edi
pop ebp
cmp dword [esi + 0x240], 0
je 0x406418
mov eax, dword [esi + 0x23c]
cmp dword [eax - 0xc], 2
jle 0x406418
push eax
call fcn.00458e00
add esp, 4
mov eax, dword [esi + 0x260]
cmp dword [eax - 0xc], 0
je 0x40644f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406441
mov ecx, dword [esi + 0x260]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esi + 0x260]
push edx
mov ecx, esi
call fcn.00405990
pop esi
pop ebx
ret
Function at 0x40b7c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x50a360]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x21c]
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.00494750
add esp, 0xc
push edi
push 1
push str.EnableFilter
push str.PortSetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push 0x104
lea edx, [esp + 0x14]
push edx
push 0x4c2558
push str.FilterPort
push str.PortSetting
mov dword [esi + 0x134], eax
call ebx
push 0x2c
lea eax, [esi + 0x138]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0040afc0
push edi
push 0x104
lea edx, [esp + 0x14]
push edx
push 0x4ef7cc
push str.FixPort
push str.PortSetting
call ebx
push 0x2c
lea eax, [esi + 0x154]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0040afc0
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004945a7
add esp, 0x20c
ret 4

Function at 0x40b8a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b45f3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x50a360]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.004794a9
mov dword [esp + 0x18], 0
mov dword [esi], vtable.CDLCmdLine.0
lea edi, [esi + 0x28]
call fcn.0046c2c1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b8f9
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push 0
push 0x4ef7cc
mov ecx, edi
mov byte [esp + 0x20], 1
call fcn.00401860
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 3
mov dword [esi + 0x2c], 0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x411b40
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b5006
mov eax, dword fs:[0]
push eax
mov eax, 0x2020
call fcn.00494d10
mov eax, dword [0x50a360]
xor eax, esp
mov dword [esp + 0x201c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a360]
xor eax, esp
push eax
lea eax, [esp + 0x2034]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x2048]
mov edi, dword [esp + 0x2044]
push 0xffffffffffffffff
mov esi, ecx
push 0
mov ecx, ebx
call fcn.0046e6d1
xor eax, eax
push 0x1ffe
push eax
lea ecx, [esp + 0x3a]
push ecx
mov word [esp + 0x3c], ax
call fcn.00494750
mov esi, dword [esi + 0x1f4]
add esp, 0xc
push esi
push 0x1000
lea edx, [esp + 0x38]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea ecx, [esp + 0x1c]
call fcn.0046e650
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x2044], 0
call fcn.004589d0
mov ebp, eax
add esp, 8
xor edi, edi
test ebp, ebp
jbe 0x411c97
mov eax, 1
mov dword [esp + 0x14], eax
lea esi, [edi + 4]
jmp 0x411c14
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x411cda
cmp eax, dword [esp + 0x24]
jge 0x411cda
mov edx, dword [esp + 0x20]
mov eax, dword [esi + edx]
sub eax, 0x10
push eax
call fcn.00401560
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
cmp dword [eax - 0xc], 0
mov byte [esp + 0x203c], 1
je 0x411c62
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, ebx
call fcn.0046e9cb
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x203c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411c86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x14], 2
inc edi
add esi, 8
cmp edi, ebp
jb 0x411c10
lea ecx, [esp + 0x1c]
mov dword [esp + 0x203c], 0xffffffff
call fcn.0046e87c
mov eax, 1
mov ecx, dword [esp + 0x2034]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x201c]
xor ecx, esp
call fcn.004945a7
add esp, 0x202c
ret 8
call fcn.00464489
int3

Function at 0x4145e0
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
jne 0x414603
mov ecx, dword [esp + 0x10]
push 0x19
push str.Configure_file_is_empty__n
call fcn.00401ab0
pop edi
xor eax, eax
pop esi
ret 8
mov eax, edi
push ebx
lea ecx, [esi + 0x1f4]
lea ebx, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x414610
sub eax, ebx
sar eax, 1
push eax
push edi
call fcn.00401860
lea eax, [esi + 0x1b8]
push eax
push 0x4c3fc0
mov ecx, esi
call fcn.00411b40
lea ecx, [esi + 0x1cc]
push ecx
push str.EraseFlash
mov ecx, esi
call fcn.00411b40
lea edx, [esi + 0x1e0]
push edx
push str.WriteFlash
mov ecx, esi
call fcn.00411b40
push edi
push 0
push str.EraseAll
push 0x4c4258
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop ebx
mov dword [esi + 0x1b4], eax
mov dword [esi + 0x188], eax
pop edi
mov eax, 1
pop esi
ret 8
Function at 0x415590
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x50a360]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x2538]
xor ebx, ebx
cmp eax, ebx
je 0x4155c3
push eax
call fcn.0046436b
add esp, 4
mov dword [edi + 0x2538], ebx
xor eax, eax
push 0x206
lea ecx, [ebp - 0x20a]
push ebx
mov dword [edi + 0x2538], eax
push ecx
mov dword [edi + 0x253c], eax
mov word [ebp - 0x20c], ax
call fcn.00494750
add esp, 0xc
lea ecx, [edi + 0x190]
call fcn.00455eb0
test eax, eax
je 0x4156ed
lea edx, [ebp - 0x20c]
push edx
mov ecx, 0x50b7e0
call fcn.0040aa50
test eax, eax
je 0x4156ed
push 0x40e
lea ecx, [ebp - 0x61a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x61c], ax
call fcn.00494750
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x4ef7cc
push str.Data
push str.Debug
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x61c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x415692
lea esi, [eax + eax]
mov eax, esi
call fcn.004947d0
mov eax, esp
push 3
push esi
lea edx, [ebp - 0x61c]
push edx
push eax
call fcn.00401110
mov ebx, eax
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415697
sub eax, edx
lea esi, [eax + 1]
shr esi, 1
add esi, esi
je 0x4156ed
push esi
call fcn.00464376
add esp, 4
mov dword [edi + 0x2538], eax
test eax, eax
je 0x4156ed
push esi
push 0
push eax
mov dword [edi + 0x253c], esi
call fcn.00494750
mov eax, ebx
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4156d3
sub eax, edx
push eax
mov eax, dword [edi + 0x2538]
push ebx
push eax
call fcn.00494d40
add esp, 0xc
lea esp, [ebp - 0x628]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004945a7
mov esp, ebp
pop ebp
ret

Function at 0x416360
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x18
mov eax, dword [0x50a360]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, ecx
test esi, esi
je 0x4163b6
push ebx
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x4163b5
mov ecx, dword [esp + 0x28]
push 0xa
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00496b98
mov edx, dword [edi + 0x2474]
add esp, 0xc
push edx
push ebx
push esi
push str.Unknown_Error
lea eax, [esp + 0x1c]
push eax
push 0x4c4f38
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop ebx
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.004945a7
add esp, 0x18
ret 0xc