joyce8/EMBER2024-capa huggingface dataset:
Function at 0x556928
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0055627c
xor eax, eax
push ebp
push 0x556a99
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x556a83
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x556973
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x55697d
call fcn.0040422c
jmp 0x556aa0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422424
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x556a78
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x556a2b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x556a18
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403ae4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.005568e0
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x556aac]
cmp dl, byte [eax + 0x28]
je 0x556a7f
call fcn.0040e2e0
jmp 0x556a7f
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422444
jmp 0x556a7f
cmp ecx, ebx
jge 0x556a47
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422444
jmp 0x55697d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422424
cmp edx, dword [esp + 4]
jne 0x556a67
cmp eax, dword [esp]
pop edx
pop eax
jne 0x55697d
push ebp
call fcn.005568e0
pop ecx
jmp 0x556a7f
push ebp
call fcn.005568e0
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x556aa0
mov eax, dword [ebp - 4]
call fcn.00556288
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x557134
Capabilities:
Get socket status

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ecx, edx
mov ebx, eax
mov eax, ecx
mov esi, 0x3e8
cdq
idiv esi
mov dword [esp], eax
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.004c83b4
lea edx, [esp + 8]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
call fcn.004c83a4
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg al
add esp, 0x10c
pop esi
pop ebx
ret
Function at 0x557198
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5572eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0055627c
xor eax, eax
push ebp
push 0x5572c9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x14
call fcn.0040325c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x557270
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x557270
call sub.kernel32.dll_GetLastError
mov ebx, eax
lea edx, [ebp - 0x38]
mov eax, dword [0x56b79c]
call fcn.00406c28
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x3c]
mov eax, ebx
call fcn.0040d978
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea eax, [ebp - 0x34]
push eax
push 2
mov ecx, dword [0x56b8b8]
mov dl, 1
mov eax, dword [0x555514]
call fcn.0040e404
call fcn.00404180
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0043811c
test al, al
je 0x55728c
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x5572b0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_GetOverlappedResult
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00438164
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5572d0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00556288
ret
Function at 0x5572fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x557444
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0055627c
xor eax, eax
push ebp
push 0x557422
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x14
call fcn.0040325c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x5573d4
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x5573d4
call sub.kernel32.dll_GetLastError
mov ebx, eax
lea edx, [ebp - 0x38]
mov eax, dword [0x56b450]
call fcn.00406c28
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x3c]
mov eax, ebx
call fcn.0040d978
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea eax, [ebp - 0x34]
push eax
push 2
mov ecx, dword [0x56b8b8]
mov dl, 1
mov eax, dword [0x555514]
call fcn.0040e404
call fcn.00404180
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0043811c
test al, al
je 0x5573f0
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x557409
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_GetOverlappedResult
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x557429
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00556288
ret

Function at 0x5579b8
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404cbc
xor eax, eax
push ebp
push 0x557a1d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409f10
test al, al
je 0x557a07
mov eax, dword [ebp - 4]
call fcn.00404ccc
mov esi, eax
push esi
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
test ebx, 1
jbe 0x557a07
and ebx, 0xfffffffe
push ebx
push esi
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x557a24
lea eax, [ebp - 4]
call fcn.0040480c
ret
Function at 0x558a6c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe70
push ebx
push esi
push edi
test dl, dl
je 0x558a84
add esp, 0xfffffff0
call fcn.00403c54
mov ebx, edx
mov edi, eax
xor edx, edx
mov eax, edi
call fcn.004038ac
lea eax, [ebp - 0x190]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x558abc
mov ecx, 0x558b68
mov dl, 1
mov eax, dword [0x4083c8]
call fcn.0040e30c
call fcn.00404180
push 0x558b80
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
mov dword [edi + 8], esi
test esi, esi
jne 0x558ae5
mov ecx, 0x558b94
mov dl, 1
mov eax, dword [0x4083c8]
call fcn.0040e30c
call fcn.00404180
push 0x558bb4
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x10], eax
push 0x558bc4
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x14], eax
push 0x558bd4
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x18], eax
call dword [edi + 0x10]
mov esi, eax
mov dword [edi + 0xc], esi
cmp esi, 0xffffffff
jne 0x558b3b
mov ecx, 0x558bec
mov dl, 1
mov eax, dword [0x4083c8]
call fcn.0040e30c
call fcn.00404180
mov dword [edi + 4], 0x3e8
mov eax, edi
test bl, bl
je 0x558b57
call fcn.00403cac
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x558c44
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x558d6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov eax, 0x558d84
call fcn.00404e10
test eax, eax
jne 0x558c90
mov eax, esi
call fcn.00404ccc
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, dword [eax]
jmp 0x558c9f
mov eax, esi
call fcn.00404ccc
push eax
call sub.wsock32.dll_inet_addr
mov edi, eax
mov eax, 0x28
lea esi, [eax + 0x1c]
call fcn.00402b60
mov dword [ebp - 0x18], eax
mov eax, esi
call fcn.00402b60
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x1c
call fcn.0040325c
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x10], edx
lea eax, [ebp - 0x20]
mov edx, 0x558d90
call fcn.004048a4
mov eax, dword [ebp - 0x20]
call fcn.00404ccc
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, 8
call fcn.0040325c
mov byte [ebp - 0xc], 0x40
xor eax, eax
push ebp
push 0x558d4d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 4]
push eax
push esi
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404acc
push eax
mov eax, dword [ebp - 0x14]
push eax
push edi
mov eax, dword [ebx + 0xc]
push eax
call dword [ebx + 0x18]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x558d54
mov eax, dword [ebp - 0x18]
call fcn.00402b90
mov eax, dword [ebp - 0x1c]
call fcn.00402b90
ret
Function at 0x55a880
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x55a91c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 0xc]
call fcn.0040fdec
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 4]
call fcn.0040a114
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x55a930
call fcn.0040aab8
mov eax, dword [ebp - 8]
call fcn.00409f10
test al, al
je 0x55a901
mov byte [0x56d3ac], 1
push 2
mov eax, dword [ebp - 4]
call fcn.00404ccc
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404ccc
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55a923
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404830
ret
Function at 0x405b80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x431110
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
lea eax, [esp + 0xc]
push esi
mov esi, ecx
push eax
call fcn.004237cd
mov ecx, dword [eax]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x14]
call fcn.00429a95
mov esi, dword [esi + 0x64]
push 0
push 0x1001
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0
call fcn.00429ba7
test eax, eax
jne 0x405c03
push eax
push eax
push 0x43f9c0
call fcn.0042c204
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00429aea
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov edx, dword [esp + 0x14]
push ebx
push ebp
push edi
push 2
push 0
lea ecx, [esp + 0x28]
call dword [edx + 0x28]
mov eax, dword [0x43fef0]
mov dword [esp + 0x14], eax
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 1
call fcn.004237e0
mov edi, dword [eax]
push 0
lea ecx, [esp + 0x14]
call fcn.004237e0
mov ebp, dword [eax + 4]
push 0
lea ecx, [esp + 0x14]
call fcn.004237e0
mov ebx, dword [eax + 8]
push 0
lea ecx, [esp + 0x14]
call fcn.004237e0
mov ecx, dword [eax + 0xc]
push 0
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x14]
call fcn.004237e0
mov esi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x14]
inc esi
call fcn.004237e0
mov eax, dword [eax + 0x14]
mov edx, dword [esp + 0x18]
push edi
push ebp
push ebx
add eax, 0x76c
push edx
push esi
push eax
lea eax, [esp + 0x2c]
push 0x43f990
push eax
call fcn.004230fd
mov eax, dword [esp + 0x34]
add esp, 0x20
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00429cfe
lea ecx, [esp + 0x20]
call fcn.00429dc2
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call fcn.00424b24
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.00429aea
mov ecx, dword [esp + 0x30]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x405cf0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x431140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x3c], 0
push eax
call fcn.004237cd
mov ecx, dword [eax]
mov edx, dword [0x43fef0]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 1
call fcn.00429a95
mov esi, dword [esi + 0x64]
push 0
push 1
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 2
call fcn.00429ba7
mov eax, dword [esp + 0x24]
push 2
push 0
lea ecx, [esp + 0x2c]
call dword [eax + 0x28]
mov ecx, dword [0x43fef0]
mov dword [esp + 0x14], ecx
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 3
call fcn.004237e0
mov edi, dword [eax]
push 0
lea ecx, [esp + 0x14]
call fcn.004237e0
mov ebp, dword [eax + 4]
push 0
lea ecx, [esp + 0x14]
call fcn.004237e0
mov ebx, dword [eax + 8]
push 0
lea ecx, [esp + 0x14]
call fcn.004237e0
mov edx, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], edx
call fcn.004237e0
mov esi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x14]
inc esi
call fcn.004237e0
mov ecx, dword [esp + 0x44]
mov eax, dword [eax + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push edi
push ebp
push ebx
add eax, 0x76c
push edx
push esi
push eax
lea eax, [esp + 0x30]
push str._04d__02d__02d__02d:_02d:_02d___s
push eax
call fcn.004230fd
mov eax, dword [esp + 0x38]
add esp, 0x24
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.00429cfe
push 2
push 0x43f168
lea ecx, [esp + 0x2c]
call fcn.00429cfe
lea ecx, [esp + 0x24]
call fcn.00429dc2
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 2
call fcn.00424b24
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 1
call fcn.00429aea
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 0
call fcn.00424b24
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00424b24
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x406c70
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4311f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
mov esi, ecx
mov eax, dword [0x43fef0]
mov dword [esp + 0x1c], 0
mov dword [esp + 8], eax
mov ecx, dword [esi + 0x6c]
lea edi, [esi + 0x6c]
mov byte [esp + 0x1c], 1
mov eax, dword [ecx - 8]
test eax, eax
je 0x406d7e
lea edx, [esp + 0x24]
lea eax, [esi + 0x324]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00424d53
push 0x43f160
lea edx, [esp + 0x10]
push eax
push edx
mov byte [esp + 0x28], 2
call fcn.00424db9
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call fcn.00424c5d
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 2
call fcn.00424b24
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
call fcn.00424b24
mov eax, dword [esp + 8]
push 0
push eax
call fcn.00414d4c
add esp, 8
cmp eax, 0xffffffff
jne 0x406d2a
mov ecx, dword [esp + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esi, 0x154
lea edx, [esp + 8]
push esi
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00424d53
push str..xml
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x28], 4
call fcn.00424db9
push eax
mov ecx, edi
mov byte [esp + 0x20], 5
call fcn.00424c5d
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 4
call fcn.00424b24
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call fcn.00424b24
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call fcn.00424b24
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00424b24
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x408190
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43153c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x204
push ebp
push esi
lea eax, [esp + 0x14]
push edi
mov esi, ecx
push eax
call fcn.00408f20
add esp, 4
push str.Settings.ini
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x224], 0
call fcn.00424db9
lea ecx, [esp + 0x18]
mov byte [esp + 0x218], 2
call fcn.00424b24
push 0x43fd44
lea ecx, [esp + 0x10]
call fcn.00424b92
mov edx, dword [0x43fef0]
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x324]
lea edi, [esi + 0x324]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
lea edx, [esp + 0x20]
push 0x1f4
push edx
push eax
mov eax, dword [esp + 0x1c]
push 0x43fd38
push eax
mov byte [esp + 0x230], 4
call ebp
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00424cad
mov ecx, edi
call fcn.0042315c
mov ecx, edi
call fcn.00423110
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x328]
lea edi, [esi + 0x328]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push 0x1f4
push ecx
push eax
push 0x43fd2c
push edx
call ebp
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.00424cad
mov ecx, edi
call fcn.0042315c
mov ecx, edi
call fcn.00423110
push 0x43fd8c
lea ecx, [esp + 0x10]
call fcn.00424cad
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push 0x1f4
push edx
push 0x4443e8
push 0x43fd84
push eax
call ebp
lea ecx, [esp + 0x1c]
lea edi, [esi + 0xac]
push ecx
mov ecx, edi
call fcn.00424cad
mov ecx, edi
call fcn.0042315c
mov ecx, edi
call fcn.00423110
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x20]
push 0x1f4
push eax
push 0x4443e8
push 0x43fd7c
push ecx
call ebp
lea edi, [esi + 0x70]
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00424cad
mov ecx, edi
call fcn.0042315c
mov ecx, edi
call fcn.00423110
push 0x43fd68
lea ecx, [esp + 0x10]
call fcn.00424cad
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push 0x1f4
push ecx
push 0x4443e8
push 0x43fd60
push edx
call ebp
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
call fcn.00424cad
lea ecx, [esp + 0x14]
call fcn.0042315c
lea ecx, [esp + 0x14]
call fcn.00423110
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004154c0
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0xb0], eax
mov byte [esp + 0x218], 3
call fcn.00424b24
lea ecx, [esp + 0xc]
mov byte [esp + 0x218], 2
call fcn.00424b24
lea ecx, [esp + 0x10]
mov dword [esp + 0x218], 0xffffffff
call fcn.00424b24
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x210
ret
Function at 0x414d4c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x414d6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00416670
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x414d8f
test byte [esp + 8], 2
je 0x414d8f
call fcn.004166e3
mov dword [eax], 0xd
call fcn.004166ec
mov dword [eax], 5
jmp 0x414d68
xor eax, eax
ret
Function at 0x422330
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00414c00
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4223fb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4223fb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4223ae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4223b9
or bh, 8
and edi, 0x8000000
je 0x4223d4
mov eax, dword [0x447d3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4223fb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret