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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov edi, dword [eax]
cmp edx, 0x1f
mov ebx, dword [edi + 0x160]
jne 0x6b28525f
lea eax, [ebx + 0x1cb0]
mov dword [ebp - 0x2c], eax
lea edx, [ebx + 0x1eb0]
lea eax, [ebx + 0x1cb1]
cmp edx, eax
mov dword [ebx + 0x1eb0], eax
mov byte [ebx + 0x1cb0], 0xff
jbe 0x6b2850b7
lea eax, [ebx + 0x1cb2]
mov dword [ebx + 0x1eb0], eax
mov byte [ebx + 0x1cb1], 0xfa
mov eax, dword [ebx + 0x1eb0]
cmp edx, eax
jbe 0x6b2850cd
lea ecx, [eax + 1]
mov dword [ebx + 0x1eb0], ecx
mov byte [eax], 0x1f
movzx eax, word [ebx + 0x1ca8]
mov dword [ebp - 0x30], edx
mov dword [esp], eax
call sub.ws2_32.dll_htons
mov word [ebp - 0x1c], ax
push edx
movzx eax, word [ebx + 0x1caa]
mov dword [esp], eax
call sub.ws2_32.dll_htons
mov edx, dword [ebp - 0x30]
push ecx
mov word [ebp - 0x1a], ax
mov eax, dword [ebx + 0x1eb0]
cmp edx, eax
jbe 0x6b285113
lea ecx, [eax + 1]
mov dword [ebx + 0x1eb0], ecx
mov cl, byte [ebp - 0x1c]
mov byte [eax], cl
mov eax, dword [ebx + 0x1eb0]
cmp edx, eax
jbe 0x6b28512b
lea ecx, [eax + 1]
mov dword [ebx + 0x1eb0], ecx
mov cl, byte [ebp - 0x1b]
mov byte [eax], cl
mov eax, dword [ebx + 0x1eb0]
cmp edx, eax
jbe 0x6b285143
lea ecx, [eax + 1]
mov dword [ebx + 0x1eb0], ecx
mov cl, byte [ebp - 0x1a]
mov byte [eax], cl
mov eax, dword [ebx + 0x1eb0]
cmp edx, eax
jbe 0x6b28515b
lea ecx, [eax + 1]
mov dword [ebx + 0x1eb0], ecx
mov cl, byte [ebp - 0x19]
mov byte [eax], cl
mov eax, dword [ebx + 0x1eb0]
cmp edx, eax
jbe 0x6b285171
lea ecx, [eax + 1]
mov dword [ebx + 0x1eb0], ecx
mov byte [eax], 0xff
mov eax, dword [ebx + 0x1eb0]
cmp edx, eax
jbe 0x6b285187
lea edx, [eax + 1]
mov dword [ebx + 0x1eb0], edx
mov byte [eax], 0xf0
mov eax, dword [ebx + 0x1eb0]
mov ecx, dword [ebp - 0x2c]
mov dword [ebx + 0x1eb4], eax
mov dword [ebx + 0x1eb0], ecx
cmp dword [edi + 0x35c], 0
je 0x6b2851c0
sub eax, dword [ebp - 0x2c]
mov edx, 0x3e
lea ecx, [ebx + 0x1cb2]
sub eax, 2
mov dword [esp], eax
mov eax, edi
call fcn.6b284cf4
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], eax
mov eax, dword [esi + 0x138]
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
test eax, eax
jns 0x6b285205
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.Sending_data_failed___d_
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.6b24c1c0
lea edx, [ebx + 0x1cb3]
mov ecx, 4
mov eax, esi
add ebx, 0x1cb7
call fcn.6b25b310
mov eax, dword [esi + 0x138]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
test eax, eax
jns 0x6b28525f
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.Sending_data_failed___d_
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.6b24c1c0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401000
Capabilities:
Link many functions at runtime

Disassembly:
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
push edi
mov dword [esi], vtable.CEnumProcess.0
mov byte [esi + 4], bl
push str.Kernel32
mov byte [esi + 5], bl
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x40], eax
cmp eax, ebx
je 0x4010ca
push 0x411f60
push eax
mov dword [esi + 0x44], 0x22c
mov dword [esi + 0x270], 0x428
call edi
push str.Process32First
push dword [esi + 0x40]
mov dword [esi + 0x698], eax
call edi
push str.Process32Next
push dword [esi + 0x40]
mov dword [esi + 0x69c], eax
call edi
push str.Module32First
push dword [esi + 0x40]
mov dword [esi + 0x6a0], eax
call edi
push str.Module32Next
push dword [esi + 0x40]
mov dword [esi + 0x6a4], eax
call edi
mov dword [esi + 0x6a8], eax
cmp dword [esi + 0x698], ebx
je 0x4010ca
cmp dword [esi + 0x69c], ebx
je 0x4010ca
cmp dword [esi + 0x6a0], ebx
je 0x4010ca
cmp dword [esi + 0x6a4], ebx
je 0x4010ca
cmp eax, ebx
je 0x4010ca
mov byte [esi + 5], 1
push str.PSAPI
call ebp
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x40111c
push str.EnumProcesses
push eax
mov dword [esi + 0x10], 0x100
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call edi
push str.EnumProcessModules
push dword [esi + 0xc]
mov dword [esi + 0x2c], eax
call edi
push str.GetModuleFileNameEx
push dword [esi + 0xc]
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
cmp dword [esi + 0x2c], ebx
je 0x40111c
cmp dword [esi + 0x30], ebx
je 0x40111c
cmp eax, ebx
je 0x40111c
mov byte [esi + 4], 1
mov ecx, esi
mov dword [esi + 8], ebx
call fcn.004011c3
push 2
pop ecx
mov edx, eax
pop edi
or edx, ecx
pop ebp
pop ebx
cmp eax, edx
jne 0x401137
mov dword [esi + 8], ecx
xor ecx, ecx
inc ecx
mov edx, eax
or edx, ecx
cmp eax, edx
jne 0x401145
mov dword [esi + 8], ecx
mov eax, esi
ret
Function at 0x401c55
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
sub esp, 0x218
lea ebp, [esp - 4]
mov eax, dword [0x41513c]
xor eax, ebp
mov dword [ebp + 0x218], eax
push 0x48
mov eax, 0x40f12c
call fcn.0040e0ca
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push str._stop__
push eax
lea ecx, [ebp + 0x224]
call fcn.0040312d
lea ecx, [ebp - 0x18]
push str.___y
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004030d5
add esp, 0x10
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004031c1
mov eax, dword [0x41602c]
mov esi, 0x41602c
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
mov eax, dword [0x41602c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
mov esi, 0x4126d0
lea edi, [ebp + 0x208]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x3c
movsd dword es:[edi], dword [esi]
pop esi
xor eax, eax
push esi
lea edi, [ebp + 0x214]
push eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push eax
call fcn.00404860
add esp, 0xc
lea eax, [ebp + 0x208]
mov dword [ebp - 0x48], eax
push 0x104
lea eax, [ebp]
push eax
mov dword [ebp - 0x54], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004013d0
push str.net.exe
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004013d0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], 0x800440
and dword [ebp - 0x38], 0
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x400
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x401da8
cmp dword [ebp - 0x34], 0x20
jl 0x401da8
push 0x1000
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
call fcn.004031c1
lea eax, [ebp - 0x10]
call fcn.004031c1
lea eax, [ebp - 0x18]
call fcn.004031c1
lea eax, [ebp + 0x224]
call fcn.004031c1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x218]
xor ecx, ebp
call fcn.00403b8f
add ebp, 0x21c
leave
ret
Function at 0x401f13
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push SysReAllocString
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x401f88
push ebx
push edi
push 0x85
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, esi
je 0x401f81
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x401f7c
mov eax, dword [ebp - 0x1c]
dec eax
je 0x401f7c
dec eax
je 0x401f77
dec eax
je 0x401f7c
dec eax
je 0x401f77
dec eax
dec eax
je 0x401f77
dec eax
je 0x401f77
sub eax, 0x39
jne 0x401f7e
xor esi, esi
inc esi
jmp 0x401f7e
xor esi, esi
push ebx
call edi
push dword [ebp - 4]
call edi
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret 4

Function at 0x4021b0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push SysReAllocString
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, edi
jne 0x4021d4
xor eax, eax
jmp 0x402234
push ebx
push 0x200000a0
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, edi
jne 0x4021f5
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x402233
mov esi, dword [sym.imp.ADVAPI32.dll_ControlService]
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 8], eax
call edi
lea eax, [ebp - 0x20]
push eax
push 4
push ebx
call esi
push 0
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 4]
call esi
xor eax, eax
cmp dword [ebp + 8], eax
setne al
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x403509
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403520
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x403555
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x403551
cmp edi, eax
jae 0x403555
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x403543
cmp edi, eax
jb 0x403559
xor eax, eax
jmp 0x403562
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x403b8f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41513c]
jne 0x403b99
repz ret
jmp fcn.00405e1c

Function at 0x40a8bd
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.0040582b
and dword [ebp - 4], 0
cmp dword [0x416b08], 0
mov ebx, eax
jne 0x40a96e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40aa1f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40aa1f
push eax
call fcn.004057b9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x416b08], eax
call esi
push eax
call fcn.004057b9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x416b0c], eax
call esi
push eax
call fcn.004057b9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x416b10], eax
call esi
push eax
call fcn.004057b9
pop ecx
mov dword [0x416b18], eax
test eax, eax
je 0x40a96e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004057b9
pop ecx
mov dword [0x416b14], eax
mov eax, dword [0x416b14]
cmp eax, ebx
je 0x40a9c6
cmp dword [0x416b18], ebx
je 0x40a9c6
push eax
call fcn.00405834
push dword [0x416b18]
mov esi, eax
call fcn.00405834
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a9c6
test edi, edi
je 0x40a9c6
call esi
test eax, eax
je 0x40a9bd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a9bd
test byte [ebp - 0xc], 1
jne 0x40a9c6
or dword [ebp + 0x10], 0x200000
jmp 0x40a9ff
mov eax, dword [0x416b0c]
cmp eax, ebx
je 0x40a9ff
push eax
call fcn.00405834
pop ecx
test eax, eax
je 0x40a9ff
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a9ff
mov eax, dword [0x416b10]
cmp eax, ebx
je 0x40a9ff
push eax
call fcn.00405834
pop ecx
test eax, eax
je 0x40a9ff
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x416b08]
call fcn.00405834
pop ecx
test eax, eax
je 0x40aa1f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40aa21
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401670
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
call fcn.004016c0
test al, al
jne 0x4016ac
push 1
push 0
push 0
push str.https:__ogsoft.web.fc2.com_download_lrss.html
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
movzx eax, word [esi + 8]
push 0
push 0x4016b0
push dword [esi + 0xc]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
pop esi
ret
Function at 0x4049a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00409d60
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x1004]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x1000
push 0
push eax
mov dword [ebp - 0x1010], ecx
call fcn.004189f0
xor edi, edi
mov ecx, esi
add esp, 0xc
mov dword [ebp - 0x100c], edi
xor edx, edx
sub ecx, ebx
mov dword [ebp - 0x1008], ecx
lea eax, [ebx + edx]
mov cl, byte [ecx + eax]
mov byte [eax], cl
test cl, cl
je 0x404a3b
mov al, byte [edx + esi + 1]
mov byte [ebx + edx + 1], al
test al, al
je 0x404a3a
mov al, byte [edx + esi + 2]
mov byte [ebx + edx + 2], al
test al, al
je 0x404a35
mov al, byte [edx + esi + 3]
mov byte [ebx + edx + 3], al
test al, al
je 0x404a30
mov ecx, dword [ebp - 0x1008]
add edx, 4
cmp edx, 0x40
jb 0x4049f0
jmp 0x404a3b
add edx, 3
jmp 0x404a3b
add edx, 2
jmp 0x404a3b
inc edx
cmp edx, 0x40
jne 0x404a44
mov byte [ebx + 0x3f], 0
mov eax, dword [ebp - 0x1010]
add eax, 0xd4
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push 0x495fad
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea esi, [ebp - 0x1004]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x404a73
sub esi, ecx
je 0x404b3e
lea ecx, [ebp - 0x1004]
mov dword [ebp - 0x1008], ecx
lea edx, [ebx + 0x40]
xor eax, eax
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
test cl, cl
je 0x404aee
lea ecx, [eax + edi]
mov cl, byte [ebp + ecx - 0x1003]
mov byte [edx + eax + 1], cl
test cl, cl
je 0x404aed
lea ecx, [eax + edi]
mov cl, byte [ebp + ecx - 0x1002]
mov byte [edx + eax + 2], cl
test cl, cl
je 0x404ae8
lea ecx, [eax + edi]
mov cl, byte [ebp + ecx - 0x1001]
mov byte [edx + eax + 3], cl
test cl, cl
je 0x404ae3
mov ecx, dword [ebp - 0x1008]
add eax, 4
cmp eax, 0x40
jb 0x404a93
jmp 0x404aee
add eax, 3
jmp 0x404aee
add eax, 2
jmp 0x404aee
inc eax
cmp eax, 0x40
jne 0x404af7
mov byte [edx + 0x3f], 0
inc dword [ebp - 0x100c]
lea ecx, [ebp - 0x1004]
inc esi
add edx, 0x40
add edi, esi
add ecx, edi
mov esi, ecx
mov dword [ebp - 0x1008], ecx
lea ebx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x404b16
sub esi, ebx
jne 0x404a91
mov eax, dword [ebp - 0x100c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004099c0
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004099c0
mov esp, ebp
pop ebp
ret 8
Function at 0x404b60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], eax
cmp dword [ebx + 0x2c0], edi
jle 0x404baf
lea esi, [ebx + 0x40]
push eax
push esi
call fcn.0041a050
add esp, 8
test eax, eax
jne 0x404bc4
mov eax, dword [ebp - 0x48]
inc edi
add esi, 0x40
cmp edi, dword [ebx + 0x2c0]
jl 0x404b92
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004099c0
mov esp, ebp
pop ebp
ret 0xc
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.004189f0
mov eax, dword [ebp - 0x4c]
add esp, 0xc
add eax, 0xd4
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push 0x495fad
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, dword [ebp - 0x50]
lea esi, [ebp - 0x44]
xor edx, edx
mov ecx, ebx
sub esi, ebx
nop dword [eax]
mov al, byte [esi + ecx]
mov byte [ecx], al
test al, al
je 0x404c10
inc edx
inc ecx
cmp edx, 0x40
jb 0x404c00
cmp edx, 0x40
jne 0x404c19
mov byte [ebx + 0x3f], 0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004099c0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x404c30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebx + 0x2c0], edi
jle 0x404c86
lea esi, [ebx + 0x40]
nop word [eax + eax]
push dword [ebp + 0x10]
push esi
call fcn.0041a050
add esp, 8
test eax, eax
je 0x404c7a
mov eax, dword [ebp - 4]
add eax, 0xd4
push eax
push 0xffffffffffffffff
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x404c91
inc edi
add esi, 0x40
cmp edi, dword [ebx + 0x2c0]
jl 0x404c50
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4052e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
push 0x104
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.004189f0
push esi
push edi
push ebx
push str._s_s_s
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.00401c80
push 0x495fd8
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00428f60
add esp, 0x30
test eax, eax
jne 0x40544b
cmp dword [ebp - 0x21c], eax
je 0x40544b
push 0x100
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004189f0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x20a]
push eax
movzx eax, word [ebp - 0x20c]
push eax
movzx eax, word [ebp - 0x20e]
push eax
movzx eax, word [ebp - 0x210]
push eax
movzx eax, word [ebp - 0x212]
push eax
movzx eax, word [ebp - 0x216]
push eax
movzx eax, word [ebp - 0x218]
push eax
push str._04d__02d__02d__02d:_02d:_02d._03d_
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.00401c80
lea ecx, [ebp - 0x104]
add esp, 0x28
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4053e0
push dword [ebp - 0x21c]
sub ecx, edx
lea eax, [ebp - 0x104]
push ecx
push 1
push eax
call fcn.0042a420
mov edx, dword [ebp - 0x220]
add esp, 0x10
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405410
push dword [ebp - 0x21c]
sub ecx, esi
push ecx
push 1
push edx
call fcn.0042a420
push dword [ebp - 0x21c]
call fcn.004291c0
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004099c0
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004099c0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405460
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
mov ecx, 0x104
push esi
mov byte [ebx + edi], 0x5c
inc edi
sub ecx, edi
push ecx
lea ecx, [ebx + edi]
push ecx
call fcn.00405570
add esp, 0xc
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4054a6
push 0
sub esi, ecx
push ebx
add edi, esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x100
lea eax, [ebp - 0x104]
mov byte [ebx + edi], 0x5c
push 0
push eax
call fcn.004189f0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x10e]
push eax
movzx eax, word [ebp - 0x112]
push eax
movzx eax, word [ebp - 0x114]
push eax
push str._04d_02d_02d
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.00401c80
inc edi
lea esi, [ebp - 0x104]
add edi, ebx
add esp, 0x18
xor edx, edx
mov eax, edi
sub esi, edi
mov cl, byte [esi + eax]
mov byte [eax], cl
test cl, cl
je 0x405534
inc edx
inc eax
cmp edx, 0x104
jb 0x405521
cmp edx, 0x104
jne 0x405543
mov byte [edi + 0x103], 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004099c0
mov esp, ebp
pop ebp
ret 4
Function at 0x406770
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0x100], eax
cmp eax, 0xffffffff
jne 0x4067a4
push eax
jmp 0x40691e
push dword [ebp + 0xc]
mov eax, 2
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
movups xmmword [ebp - 0x38], xmm0
push edi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x34], 2
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x406918
mov ecx, dword [ebp - 0x18]
push ecx
mov eax, dword [ecx + 0x18]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x100]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x406918
push esi
lea esi, [ebx + 0x10c]
mov edx, edi
sub edx, esi
mov dword [ebp - 0x18], edx
lea ecx, [eax + esi]
mov dl, byte [edx + ecx]
mov byte [ecx], dl
test dl, dl
je 0x406871
mov cl, byte [eax + edi + 1]
mov byte [eax + esi + 1], cl
test cl, cl
je 0x406870
mov cl, byte [eax + edi + 2]
mov byte [eax + esi + 2], cl
test cl, cl
je 0x40686b
mov cl, byte [eax + edi + 3]
mov byte [eax + esi + 3], cl
test cl, cl
je 0x406866
mov edx, dword [ebp - 0x18]
add eax, 4
cmp eax, 0x100
jb 0x406827
jmp 0x406871
add eax, 3
jmp 0x406871
add eax, 2
jmp 0x406871
inc eax
cmp eax, 0x100
jne 0x40687f
mov byte [esi + 0xff], 0
push 0
push 0
push 0x200002
call sub.libssl_1_1.dll_OPENSSL_init_ssl
push 0
push 0
push 0
call sub.libssl_1_1.dll_OPENSSL_init_ssl
call sub.libssl_1_1.dll_TLS_client_method
push eax
call sub.libssl_1_1.dll_SSL_CTX_new
push eax
mov dword [ebx + 0x108], eax
call sub.libssl_1_1.dll_SSL_new
push 0x4000
push eax
mov dword [ebx + 0x104], eax
call sub.libssl_1_1.dll_SSL_set_options
push dword [ebx + 0x100]
push dword [ebx + 0x104]
call sub.libssl_1_1.dll_SSL_set_fd
add esp, 0x30
pop esi
test eax, eax
je 0x406924
push dword [ebx + 0x104]
call sub.libssl_1_1.dll_SSL_connect
add esp, 4
cmp eax, 1
jne 0x406924
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
push dword [ebx + 0x100]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004099c0
mov esp, ebp
pop ebp
ret 8
push dword [ebx + 0x100]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
xor ecx, ebp
pop ebx
call fcn.004099c0
mov esp, ebp
pop ebp
ret 8