joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fc06
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
push 0xa8
mov eax, 0x59a665
call fcn.0055d756
mov edi, edx
mov esi, ecx
push dword [ebp + 8]
xor ebx, ebx
push ebx
push edi
call fcn.0055dbf0
add esp, 0xc
lea ecx, [ebp - 0x2c]
push esi
call fcn.00403e34
push dword [ebp + 8]
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x58], ebx
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x54], ebx
push eax
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x5c], 0xc
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x42fc72
or esi, 0xffffffff
jmp 0x42fdd5
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42fc80
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x2c]
push ebx
sub ecx, edx
cmp dword [ebp - 0x18], 0x10
push ebx
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
push ebx
push 0xfde9
call esi
test eax, eax
jg 0x42fcb2
push 0xfffffffffffffffe
pop esi
jmp 0x42fdd5
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
push ebx
add eax, 0xa
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x48]
call fcn.004307fd
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x42fce1
push dword [ebp - 0x38]
sub edx, ecx
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x34], 8
lea ecx, [ebp - 0x48]
cmovae ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x18], 0x10
push ecx
cmovae eax, dword [ebp - 0x2c]
push edx
push eax
push ebx
push 0xfde9
call esi
test eax, eax
jg 0x42fd19
push 0xfffffffffffffffd
jmp 0x42fdab
push 0x40
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb4], ebx
xorps xmm0, xmm0
push ebx
push eax
movdqu xmmword [ebp - 0x6c], xmm0
call fcn.0055dbf0
add esp, 0xc
mov dword [ebp - 0x88], 0x101
lea ecx, [ebp - 0x6c]
xor eax, eax
cmp dword [ebp - 0x34], 8
mov word [ebp - 0x84], ax
mov eax, dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x74], eax
push ecx
push ebx
push ebx
push ebx
push 1
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x42fd82
push 0xfffffffffffffffc
jmp 0x42fdab
push 0xfa0
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
push eax
push dword [ebp + 8]
push edi
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42fdae
push 0xfffffffffffffffb
pop esi
jmp 0x42fdca
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x50]
call esi
push dword [ebp - 0x6c]
call esi
push dword [ebp - 0x68]
call esi
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0043082b
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004040cf
mov eax, esi
call fcn.0055d705
ret
Function at 0x4314d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp byte [ecx + 0x2d], 0
jne 0x4314e5
cmp byte [ecx + 0x2c], 0
je 0x4314e5
mov byte [ecx + 0x2c], 0
jmp fcn.004314e6
ret
Function at 0x4314e6
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59a8d4
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x60f490]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x60f490]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x2d], 0
jne 0x431730
cmp byte [esi + 0x2c], 0
jne 0x431730
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [esp + 0x4c], 0x10
mov word [esp + 0x52], ax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x54]
push eax
push 0
push dword [esi + 0x7c]
push dword [esi + 0x80]
push dword [esi + 0x28]
call dword [sym.imp.WS2_32.dll_recvfrom]
push dword [esp + 0x54]
mov edi, eax
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [esp + 0x52]
mov ebx, eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [esp + 0x18], eax
test edi, edi
js 0x4315b3
push eax
push ebx
push edi
push dword [esi + 0x80]
push esi
call dword [esi + 4]
add esp, 0x14
jmp 0x431726
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2746
jne 0x431667
lea ecx, [esp + 0x60]
call fcn.00404e82
and dword [esp + 0xb8], 0
lea ecx, [esp + 0x34]
xor ebx, ebx
mov byte [esp + 0x68], 0
mov edx, edi
inc ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], edx
call fcn.00404a5c
push eax
mov edx, str.recvfrom_error:
mov byte [esp + 0xbc], bl
lea ecx, [esp + 0x20]
call fcn.00404bcb
pop ecx
push eax
lea ecx, [esp + 0x70]
call fcn.00407101
push 0
push ebx
lea ecx, [esp + 0x24]
call fcn.004040cf
push 0
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc0], 0
call fcn.004040cf
cmp byte [esi + 0x2d], 0
jne 0x43165e
cmp dword [esi + 8], 0
je 0x43165e
push dword [esp + 0x18]
lea eax, [esp + 0x64]
push dword [esp + 0x14]
sub esp, 0x24
mov ecx, esp
push eax
call fcn.004053ac
push esi
call dword [esi + 8]
add esp, 0x30
lea ecx, [esp + 0x6c]
jmp 0x43171e
cmp edi, 0x2733
je 0x431726
lea ecx, [esp + 0x84]
call fcn.00404e82
mov dword [esp + 0xb8], 2
lea ecx, [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x88], edi
inc ebx
mov edx, edi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x8c], bl
call fcn.00404a5c
push eax
mov edx, str.recvfrom_error:
mov byte [esp + 0xbc], 3
lea ecx, [esp + 0x38]
call fcn.00404bcb
pop ecx
push eax
lea ecx, [esp + 0x94]
call fcn.00407101
push 0
push ebx
lea ecx, [esp + 0x3c]
call fcn.004040cf
push 0
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0xc0], 2
call fcn.004040cf
cmp byte [esi + 0x2d], 0
jne 0x431717
cmp dword [esi + 0xc], 0
je 0x431717
sub esp, 0x24
lea eax, [esp + 0xa8]
mov ecx, esp
push eax
call fcn.004053ac
push esi
call dword [esi + 0xc]
add esp, 0x28
lea ecx, [esp + 0x90]
push 0
push ebx
call fcn.004040cf
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.005597ea
mov esp, ebp
pop ebp
ret
Function at 0x431754
Capabilities:
Send data
Send data on socket

Disassembly:
push 0x74
mov eax, 0x59a912
call fcn.0055d756
mov esi, ecx
cmp byte [esi + 0x2d], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4c], ebx
jne 0x43189d
lea eax, [esi + 0x4c]
push eax
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 2
pop eax
push dword [ebp + 0x14]
mov word [ebp - 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0x10]
mov word [ebp - 0x22], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 0xc]
push ebx
push dword [esi + 0x28]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x431894
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x431810
xor ebx, ebx
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x4c]
push dword [esi + 0x28]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x431894
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x431810
inc ebx
cmp ebx, 0xa
jl 0x4317ce
jmp 0x431894
lea ecx, [ebp - 0x48]
call fcn.00404e82
xor ebx, ebx
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], ebx
mov edx, edi
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], edi
mov byte [ebp - 0x40], 1
call fcn.00404a5c
push eax
mov edx, str.sendto_error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.00404bcb
pop ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00407101
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.004040cf
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], bl
call fcn.004040cf
cmp byte [esi + 0x2d], bl
jne 0x431889
cmp dword [esi + 0xc], ebx
je 0x431889
sub esp, 0x24
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.004053ac
push esi
call dword [esi + 0xc]
add esp, 0x28
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.004040cf
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0055d705
ret 0x10

Function at 0x440e0d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x440e52
call fcn.0044b6d5
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x440e52
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x440e6e
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0044b86e
mov ebx, eax
test edi, edi
je 0x440e6c
test esi, esi
je 0x440e6c
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44712b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0044b6d5
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x447162
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00447183
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4c1f90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0044ab4a
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4c1fcc
call fcn.004c21af
mov dword [esi + 0xc], 1
jmp 0x4c1fd1
call fcn.004c21af
cmp dword [esi], 0
je 0x4c201a
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4c1ff4
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00440ec5
jmp 0x4c2005
push 0xff
mov ecx, esi
call fcn.00409572
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0043edc9
jmp 0x4c203e
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4c203e
push dword [esi]
push dword [ebp - 4]
call fcn.0044e24c
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4c2104
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004c21af
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4c214c
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00440ec5
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0043edc9
jmp 0x4c2157
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0044e24c
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x52490d
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0055555c
call fcn.0044b729
cmp dword [eax + 0x14], 0
jne 0x524928
mov ecx, esi
pop esi
jmp fcn.00523d13
pop esi
ret

Function at 0x53117c
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00404a5b
call fcn.0044b729
cmp dword [eax + 0x14], 0
jne 0x531197
mov ecx, esi
pop esi
jmp fcn.00530a65
pop esi
ret
Function at 0x571a05
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x60f490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00563fae
mov dword [ebp - 0x14], eax
cmp dword [0x61cbe8], esi
jne 0x571af8
push 0x800
push esi
push 0x5d9f00
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x571a85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x571bd8
push esi
push esi
push 0x5d9f00
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x571bd8
push 0x5d9f18
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x571bd8
push eax
call ebx
push 0x5d9f24
push edi
mov dword [0x61cbe8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5d9f34
push edi
mov dword [0x61cbec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x61cbf0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x61cbf8], eax
test eax, eax
je 0x571af5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x61cbf4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x571b1d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x571b10
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x571b32
push 4
pop eax
jmp 0x571bda
cmp dword [ebp - 0x14], esi
je 0x571b32
push dword [0x61cbe8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x571b17
mov eax, dword [0x61cbf4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x571b90
cmp dword [0x61cbf8], edi
je 0x571b90
push eax
call ebx
push dword [0x61cbf8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x571b90
test eax, eax
je 0x571b90
call ecx
test eax, eax
je 0x571b85
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x571b85
test byte [ebp - 8], 1
jne 0x571b90
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x571bc0
mov eax, dword [0x61cbec]
cmp eax, edi
je 0x571bbd
push eax
call ebx
test eax, eax
je 0x571bbd
call eax
mov esi, eax
test esi, esi
je 0x571bbd
mov eax, dword [0x61cbf0]
cmp eax, edi
je 0x571bbd
push eax
call ebx
test eax, eax
je 0x571bbd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x61cbe8]
call ebx
test eax, eax
je 0x571bd8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x571bda
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005597ea
mov esp, ebp
pop ebp
ret
Function at 0x5818c2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4054b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.00401269
push eax
lea ecx, [ebp - 4]
call fcn.00401ace
mov esi, dword [ebp - 4]
xor ecx, ecx
inc ecx
mov edx, 0x104
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x4054e6
push edx
lea ecx, [ebp - 4]
call fcn.00401b9e
mov esi, dword [ebp - 4]
push esi
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40551c
mov ecx, dword [ebp + 8]
push 0x4283f8
call fcn.00401834
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.004026e5
lea ecx, [esi - 0x10]
call fcn.00401251
mov eax, dword [ebp + 8]
jmp 0x405553
push str.GoogleUpdateLog
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4054f8
push edi
lea edi, [esi - 0x10]
mov ecx, edi
call fcn.00401b4b
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add eax, 0x10
push 0xffffffffffffffff
mov dword [esi], eax
call fcn.004026e5
mov ecx, edi
call fcn.00401251
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x405c31
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
test esi, esi
je 0x405cf2
cmp dword [ebp + 8], 0
jne 0x405c56
cmp dword [ebp + 0x10], 2
jg 0x405cf2
call fcn.00401269
push eax
lea ecx, [ebp - 4]
call fcn.00401ace
call fcn.00401269
push eax
lea ecx, [ebp + 0x14]
call fcn.00401ace
xor edi, edi
lea eax, [ebx + 0x58]
inc edi
push 0
mov ecx, eax
call fcn.00404c02
test al, al
jne 0x405c98
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
lea eax, [ebx + 0x58]
cmp edi, 0x14
jle 0x405c78
jmp 0x405cbc
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
mov ecx, ebx
push esi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405b5d
lea ecx, [ebx + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
cmp edi, 0x14
jle 0x405cdc
push str.LOG_SYSTEM:_Couldnt_acquire_lock__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x42a0c0
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401251
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.00401251
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x406004
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx], fcn.004061b2
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.00401269
push eax
lea ecx, [ebx + 0xc]
call fcn.00401ace
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.00401834
mov dword [ebx + 0x18], edi
call fcn.00401269
push eax
lea ecx, [ebx + 0x1c]
call fcn.00401ace
movzx eax, byte [0x42ec89]
neg eax
sbb eax, eax
and eax, 0x42ebb0
mov dword [ebp + 8], eax
je 0x4060d7
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.00405f17
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x4060b3
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0x989680
push str.MaxLogFileSize
push str.LoggingSettings
call edi
mov dword [ebx + 4], eax
xor eax, eax
push esi
inc eax
push eax
push str.LogFileWide
push str.LoggingSettings
call edi
test eax, eax
setne al
jmp 0x4060bd
xor eax, eax
mov dword [ebx + 4], 0x989680
inc eax
mov byte [ebx + 0xb], al
lea ecx, [ebx + 0x1c]
mov eax, dword [ebp + 8]
add eax, 0x54
push eax
call fcn.004017e6
lea ecx, [esi - 0x10]
call fcn.00401251
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x4062a3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x42d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea edx, [ebp - 0x6c]
push edi
xor edi, edi
mov dword [ebp - 0x6c], edi
mov ecx, dword [esi + 0x14]
call fcn.00404f02
mov eax, dword [ebp - 0x6c]
cmp eax, dword [esi + 4]
jbe 0x4062da
mov ecx, esi
call fcn.0040640c
xor eax, eax
cmp byte [esi + 0xa], al
push edi
setne al
push 0x80
lea eax, [eax*2 + 2]
push eax
push edi
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
jne 0x406313
mov dword [esi + 0x18], edi
xor al, al
jmp 0x4063a4
lea ecx, [ebp - 0x8c]
call fcn.00402f99
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x68]
push 0x4297fc
push eax
call fcn.00402af9
add esp, 0x10
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x8c]
push 0xc0010000
push eax
call fcn.00403016
lea ecx, [ebp - 0x68]
mov bl, al
call fcn.00402be2
test bl, bl
je 0x40636c
push ecx
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x8c]
push eax
call fcn.00403895
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406397
cmp byte [esi + 0xb], 0
je 0x406397
push edi
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], edi
push eax
push 2
push 0x429558
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x8c]
call fcn.00402fdf
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004093f2
leave
ret
Function at 0x4063b3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 0x80
push 5
push ebx
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x18], 0xffffffff
mov edi, eax
jne 0x4063e3
xor al, al
jmp 0x406407
cmp byte [esi + 0xb], bl
je 0x4063fe
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x429558
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40648b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x42d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x74], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
push 0x80000002
movsw word es:[edi], word [esi]
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4065b3
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x6c]
push 7
pop esi
push eax
push ebx
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
push eax
push ebx
push 0x429b80
push dword [ebp - 0x70]
mov dword [ebp - 0x78], esi
call edi
test eax, eax
jne 0x4065b3
cmp dword [ebp - 0x78], esi
jne 0x4065b3
push dword [ebp - 0x6c]
call fcn.00419c9d
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
call fcn.00409f70
add esp, 0x10
lea eax, [ebp - 0x6c]
push eax
push esi
push ebx
push ebx
push 0x429b80
push dword [ebp - 0x70]
call edi
test eax, eax
jne 0x4065a4
mov edi, dword [ebp - 0x6c]
shr edi, 1
mov dword [ebp - 0x7c], edi
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x4065a4
cmp word [esi + edi*2 - 4], bx
jne 0x4065a4
cmp word [esi + edi*2 - 2], bx
jne 0x4065a4
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x74]
add eax, 0x14
mov edx, str.___
push eax
call fcn.004067b7
test edi, edi
mov edi, dword [ebp - 0x74]
pop ecx
je 0x406593
lea eax, [esi + ebx*2]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x406596
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add ebx, eax
cmp ebx, dword [ebp - 0x7c]
jb 0x406572
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [edi - 0x10]
setne bl
call fcn.00401251
test esi, esi
je 0x4065af
push esi
call fcn.00409dfb
pop ecx
mov al, bl
jmp 0x4065b5
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004093f2
leave
ret