joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a6ec1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4e3e78]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a6f01
cmp byte [ebx], 0xa
jne 0x4a6f01
or byte [eax + edi + 0x28], 4
jmp 0x4a6f06
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a7004
mov al, byte [edx]
cmp al, 0x1a
je 0x4a6fe6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a6f35
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a6f5a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a6f64
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4a6f17
jmp 0x4a7004
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a6fe1
cmp dword [ebp - 0xc], 0
je 0x4a6fe1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4e3e78]
test byte [eax + edi + 0x28], 0x48
je 0x4a6fbb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a6fa6
mov byte [esi], dl
jmp 0x4a6fb7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e3e78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a7004
cmp byte [ebp - 1], 0xa
jne 0x4a6fca
cmp esi, ebx
jne 0x4a6fca
mov byte [esi], 0xa
jmp 0x4a7003
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401a0a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a7004
mov byte [esi], 0xd
jmp 0x4a7003
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4e3e78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a7000
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a7004
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a7060
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4e3e78]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a70a3
cmp word [esi], dx
jne 0x4a70a3
or byte [edi + eax + 0x28], 4
jmp 0x4a70a8
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a71fb
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a71db
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a70ea
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a7120
cmp eax, edx
jae 0x4a712c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a70c2
jmp 0x4a71fb
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a71d7
cmp dword [ebp - 0x14], 0
je 0x4a71d7
mov eax, dword [ebx*4 + 0x4e3e78]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a71af
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a7178
mov word [esi], cx
jmp 0x4a71ab
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4e3e78]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4e3e78]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4e3e78]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a71fb
pop ebx
cmp word [ebp - 4], bx
jne 0x4a71c0
cmp esi, dword [ebp + 0xc]
jne 0x4a71c0
mov word [esi], bx
jmp 0x4a71f8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401a0a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a71fb
push 0xd
jmp 0x4a71f4
mov ecx, dword [ebx*4 + 0x4e3e78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a71f2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a71fb
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4abfb1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4e0034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4abffc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004ac473
test al, al
jne 0x4abff6
sub edx, 2
cmp edx, edi
jne 0x4abfdc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4ac01e
lea eax, [edi + 2]
cmp edx, eax
je 0x4ac01e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004abbaa
add esp, 0x10
jmp 0x4ac118
push esi
lea ecx, [ebp - 0x255]
call fcn.004ac473
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ac061
push dword [ebp - 0x25c]
jmp 0x4ac00e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4ac09e
cmp word [ebp - 0x226], 0
je 0x4ac0bf
cmp word [ebp - 0x226], ax
jne 0x4ac09e
cmp word [ebp - 0x224], 0
je 0x4ac0bf
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004abbaa
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4ac10b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4ac078
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4ac0f3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4ac118
push 0x4ab592
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405b91
add esp, 0x10
jmp 0x4ac0e8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040333c
leave
ret
Function at 0x42105f
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x44e8a8
call fcn.00422e90
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x420f16
xor ebx, ebx
jmp 0x420f49
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x420f12
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x420f12
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x420f49
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004279ab
test eax, eax
jne 0x420f5d
push 0x1c
call main
pop ecx
call fcn.00427918
test eax, eax
jne 0x420f6e
push 0x10
call main
pop ecx
call fcn.00428296
and dword [ebp - 4], 0
call fcn.004279c0
test eax, eax
jns 0x420f88
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [0x457adc], eax
call main
mov dword [0x455a24], eax
call main
test eax, eax
jns 0x420fae
push 8
call main
pop ecx
call fcn.00427eb1
test eax, eax
jns 0x420fbf
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x420fd2
push eax
call main
pop ecx
call fcn.00428714
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x420ff4
push esi
call main
call fcn.00426cd7
jmp 0x421029
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00422ed5
ret
call main
jmp 0x420ee8
Function at 0x405ed6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232f4], 0
push esi
jne 0x405f0d
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405ee7
mov dword [ecx*4 + 0x4232f0], eax
inc ecx
cmp ecx, 0x100
jl 0x405ee2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f3e
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232f0]
xor eax, esi
inc ecx
dec edx
jne 0x405f20
pop edi
not eax
pop esi
ret 0xc

Function at 0x401031
Capabilities:
Create process on windows

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403220], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [0x403224], eax
push 0xa
push dword [0x403224]
push 0
push dword [0x403220]
call 0x401031
push eax
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xffffffb0
mov eax, dword [ebp + 0x10]
inc eax
mov dl, byte [eax]
cmp dl, 0x20
jne 0x401044
jmp 0x401046
jmp 0x40103a
inc eax
push eax
push 0x403123
call fcn.00401110
push 0xfa
push 0x403029
push 0xffffffffffffffff
push 0x403123
push 0
push 0
call sub.kernel32.dll_MultiByteToWideChar
mov dword [0x403228], 0x44
mov dword [0x403254], 1
mov word [0x403258], 0
push 0x40326c
push 0x403228
push 0
push 0
push 0
push 0x403029
push 0
push 0
push 0x403025
push 0
push str.mima1
call sub.advapi32.dll_CreateProcessWithLogonW
push 0xffffffffffffffff
push dword [0x40326c]
call sub.kernel32.dll_WaitForSingleObject
push dword [0x40326c]
call sub.kernel32.dll_CloseHandle
push dword [0x403270]
call sub.kernel32.dll_CloseHandle
push 0
call sub.kernel32.dll_ExitProcess
mov eax, dword [ebp - 0x44]
leave
ret 0x10
Function at 0x407120
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x40c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x410]
push eax
push ecx
push 0x3ff
push 0x400
push edx
call dword [0x420064]
add esp, 0x14
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x400
ret
Function at 0x4074c0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x40c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x410]
push eax
push ecx
push 0x3ff
push 0x400
push edx
call dword [0x420064]
add esp, 0x14
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x400
ret
Function at 0x407860
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x40c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x410]
push eax
push ecx
push 0x3ff
push 0x400
push edx
call dword [0x420064]
add esp, 0x14
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x400
ret

Function at 0x4078c0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x40c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x410]
push eax
push ecx
push 0x3ff
push 0x400
push edx
call dword [0x420064]
add esp, 0x14
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x400
ret

Function at 0x407920
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x40c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x410]
push eax
push ecx
push 0x3ff
push 0x400
push edx
call dword [0x420064]
add esp, 0x14
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x400
ret
Function at 0x407e70
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov ebx, dword [esp + 0x11c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
push str.Path
push str.Redirect
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x14]
test edx, edx
je 0x407edd
mov al, byte [esp + 0x14]
test al, al
je 0x407edd
cmp al, 0x20
je 0x407ed5
cmp al, 9
jne 0x407f20
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x407ecd
mov esi, dword [esp + 0x120]
test esi, esi
je 0x407f13
mov edx, dword [esp + 0x124]
test edx, edx
jle 0x407f13
test ebx, ebx
je 0x407f13
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jae 0x407f13
push ebx
push edx
push esi
call dword [0x420070]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
lea eax, [esp + 0x14]
push 0x3a
push eax
call fcn.00410b95
add esp, 8
test eax, eax
jne 0x407fe3
cmp byte [esp + 0x14], 0x5c
je 0x407fe3
test ebx, ebx
je 0x407f13
mov edi, dword [esp + 0x120]
test edi, edi
je 0x407f13
mov ebp, dword [esp + 0x124]
test ebp, ebp
jle 0x407f13
push 0x5c
push ebx
call fcn.00410c2c
add esp, 8
test eax, eax
jne 0x407f76
push 0x2f
push ebx
call fcn.00410c2c
add esp, 8
test eax, eax
mov byte [edi], 0
je 0x407fba
sub eax, ebx
inc eax
mov esi, eax
test esi, esi
jle 0x407f9b
cmp ebp, esi
jle 0x407f9b
push esi
push ebx
push ebp
push edi
call dword [0x42006c]
add esp, 0x10
mov byte [esi + edi], 0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebp
push edi
mov ecx, esi
call fcn.0040a530
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
push ebp
push ebx
mov ecx, esi
call fcn.00409dc0
test eax, eax
je 0x407fd3
push ebx
push ebp
push edi
call dword [0x420070]
add esp, 0xc
push 0x42034c
push ebp
push edi
mov ecx, esi
call fcn.0040a530
jmp 0x407f9f
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.00407e70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
Function at 0x408450
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x400
push ebx
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov edx, dword [esp + 0x41c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x410]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x41c]
push 0x400
push ecx
mov ecx, dword [esp + 0x420]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0xc]
xor edi, edi
xor esi, esi
lea edx, [esp + 0xc]
test al, al
lea ecx, [esp + 0xc]
je 0x4084d6
cmp al, 0x20
je 0x4084c7
cmp al, 9
je 0x4084c7
test edi, edi
jne 0x4084ce
mov edi, 1
mov edx, ecx
jmp 0x4084ce
cmp edi, 1
jne 0x4084ce
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4084b2
mov ebx, dword [esp + 0x420]
test edx, edx
mov byte [ebx], 0
je 0x408545
test esi, esi
jne 0x40851f
test ebx, ebx
je 0x408545
mov esi, dword [esp + 0x424]
test esi, esi
jle 0x408545
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
jae 0x408545
push edx
push esi
push ebx
call dword [0x420070]
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0x18
sub esi, edx
test ebx, ebx
je 0x408545
test esi, esi
jle 0x408545
mov eax, dword [esp + 0x424]
cmp eax, esi
jle 0x408545
push esi
push edx
push eax
push ebx
call dword [0x42006c]
add esp, 0x10
mov byte [esi + ebx], 0
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0x18
Function at 0x408560
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov ebx, dword [esp + 0x11c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
push str.Path
push str.Redirect
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x14]
test edx, edx
je 0x4085cd
mov al, byte [esp + 0x14]
test al, al
je 0x4085cd
cmp al, 0x20
je 0x4085c5
cmp al, 9
jne 0x408610
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4085bd
mov esi, dword [esp + 0x120]
test esi, esi
je 0x408603
mov edx, dword [esp + 0x124]
test edx, edx
jle 0x408603
test ebx, ebx
je 0x408603
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jae 0x408603
push ebx
push edx
push esi
call dword [0x420070]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
lea eax, [esp + 0x14]
push 0x3a
push eax
call fcn.00410b95
add esp, 8
test eax, eax
jne 0x4086d3
cmp byte [esp + 0x14], 0x5c
je 0x4086d3
test ebx, ebx
je 0x408603
mov edi, dword [esp + 0x120]
test edi, edi
je 0x408603
mov ebp, dword [esp + 0x124]
test ebp, ebp
jle 0x408603
push 0x5c
push ebx
call fcn.00410c2c
add esp, 8
test eax, eax
jne 0x408666
push 0x2f
push ebx
call fcn.00410c2c
add esp, 8
test eax, eax
mov byte [edi], 0
je 0x4086aa
sub eax, ebx
inc eax
mov esi, eax
test esi, esi
jle 0x40868b
cmp ebp, esi
jle 0x40868b
push esi
push ebx
push ebp
push edi
call dword [0x42006c]
add esp, 0x10
mov byte [esi + edi], 0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebp
push edi
mov ecx, esi
call fcn.0040a600
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
push ebp
push ebx
mov ecx, esi
call fcn.0040a010
test eax, eax
je 0x4086c3
push ebx
push ebp
push edi
call dword [0x420070]
add esp, 0xc
push 0x42034c
push ebp
push edi
mov ecx, esi
call fcn.0040a600
jmp 0x40868f
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.00408560
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
Function at 0x408b40
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov ebx, dword [esp + 0x11c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
push str.Path
push str.Redirect
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x14]
test edx, edx
je 0x408bad
mov al, byte [esp + 0x14]
test al, al
je 0x408bad
cmp al, 0x20
je 0x408ba5
cmp al, 9
jne 0x408bf0
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x408b9d
mov esi, dword [esp + 0x120]
test esi, esi
je 0x408be3
mov edx, dword [esp + 0x124]
test edx, edx
jle 0x408be3
test ebx, ebx
je 0x408be3
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jae 0x408be3
push ebx
push edx
push esi
call dword [0x420070]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
lea eax, [esp + 0x14]
push 0x3a
push eax
call fcn.00410b95
add esp, 8
test eax, eax
jne 0x408cb3
cmp byte [esp + 0x14], 0x5c
je 0x408cb3
test ebx, ebx
je 0x408be3
mov edi, dword [esp + 0x120]
test edi, edi
je 0x408be3
mov ebp, dword [esp + 0x124]
test ebp, ebp
jle 0x408be3
push 0x5c
push ebx
call fcn.00410c2c
add esp, 8
test eax, eax
jne 0x408c46
push 0x2f
push ebx
call fcn.00410c2c
add esp, 8
test eax, eax
mov byte [edi], 0
je 0x408c8a
sub eax, ebx
inc eax
mov esi, eax
test esi, esi
jle 0x408c6b
cmp ebp, esi
jle 0x408c6b
push esi
push ebx
push ebp
push edi
call dword [0x42006c]
add esp, 0x10
mov byte [esi + edi], 0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebp
push edi
mov ecx, esi
call fcn.0040a6d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
push ebp
push ebx
mov ecx, esi
call fcn.0040a260
test eax, eax
je 0x408ca3
push ebx
push ebp
push edi
call dword [0x420070]
add esp, 0xc
push 0x42034c
push ebp
push edi
mov ecx, esi
call fcn.0040a6d0
jmp 0x408c6f
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.00408b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
Function at 0x409120
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x400
push ebx
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov edx, dword [esp + 0x41c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x410]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x41c]
push 0x400
push ecx
mov ecx, dword [esp + 0x420]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0xc]
xor edi, edi
xor esi, esi
lea edx, [esp + 0xc]
test al, al
lea ecx, [esp + 0xc]
je 0x4091a6
cmp al, 0x20
je 0x409197
cmp al, 9
je 0x409197
test edi, edi
jne 0x40919e
mov edi, 1
mov edx, ecx
jmp 0x40919e
cmp edi, 1
jne 0x40919e
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x409182
mov ebx, dword [esp + 0x420]
test edx, edx
mov byte [ebx], 0
je 0x409215
test esi, esi
jne 0x4091ef
test ebx, ebx
je 0x409215
mov esi, dword [esp + 0x424]
test esi, esi
jle 0x409215
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
jae 0x409215
push edx
push esi
push ebx
call dword [0x420070]
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0x18
sub esi, edx
test ebx, ebx
je 0x409215
test esi, esi
jle 0x409215
mov eax, dword [esp + 0x424]
cmp eax, esi
jle 0x409215
push esi
push edx
push eax
push ebx
call dword [0x42006c]
add esp, 0x10
mov byte [esi + ebx], 0
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0x18