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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x417ae4
jmp 0x417ba0
mov dword [ebp - 0x18], 0
jmp 0x417af6
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jge 0x417b13
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
not ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x18]
mov byte [edx], cl
jmp 0x417aed
mov eax, dword [ebp + 0x10]
add eax, 7
push eax
call fcn.00403ccf
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
movzx edx, word [ebp + 0x10]
add edx, 5
mov eax, dword [ebp - 0xc]
mov word [eax], dx
push 5
push str.AS101
mov ecx, dword [ebp - 0xc]
add ecx, 2
push ecx
call fcn.00401460
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 7
push ecx
call fcn.00401460
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, 7
mov dword [ebp + 0x10], edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x417b95
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
je 0x417b99
jmp 0x417ba0
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x417bb8
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.00403ac9
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x418330
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0xc3d2e1f0
pop ebp
ret

Function at 0x419d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1074
call fcn.0040e9f0
mov eax, dword [0x42b044]
xor eax, ebp
mov dword [ebp - 0x70], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1074], 0
push 0x428170
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00401969
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x419dda
push 0x14
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.004012f0
add esp, 0xc
xor eax, eax
jmp 0x419ea0
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00401a40
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401c5d
add esp, 4
mov dword [ebp - 0x6c], eax
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00401a40
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call fcn.00418330
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
push 0x1000
push 1
lea edx, [ebp - 0x1070]
push edx
call fcn.0040203a
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x419e60
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x1070]
push edx
call fcn.00419c70
add esp, 0xc
mov eax, dword [ebp - 0x1074]
add eax, dword [ebp - 4]
mov dword [ebp - 0x1074], eax
jmp 0x419e15
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00419ae0
add esp, 8
mov eax, dword [ebp - 8]
push eax
call fcn.004020c8
add esp, 4
mov ecx, dword [ebp - 0x1074]
cmp ecx, dword [ebp - 0x6c]
jae 0x419e9b
push 0x14
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.004012f0
add esp, 0xc
xor eax, eax
jmp 0x419ea0
mov eax, 1
mov ecx, dword [ebp - 0x70]
xor ecx, ebp
call fcn.004012d2
mov esp, ebp
pop ebp
ret
Function at 0x419eb0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x419eff
jmp 0x419fe7
mov dword [ebp - 8], 0xc00
mov eax, dword [ebp - 8]
push eax
call fcn.00403ccf
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x24], ecx
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0
push 0x70050
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x419f4a
jmp 0x419fe7
mov dword [ebp - 4], 0
jmp 0x419f5c
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x419fca
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x90
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 0x3c]
cmp edx, dword [ebp - 0xc]
jl 0x419fc8
jg 0x419f94
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 0x38]
cmp edx, dword [ebp - 0x10]
jbe 0x419fc8
mov eax, dword [ebp - 4]
imul eax, eax, 0x90
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax + 0x38]
mov dword [ebp - 0x10], edx
mov eax, dword [ecx + eax + 0x3c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x90
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + ecx + 0x40]
mov dword [ebp - 0x20], eax
mov ecx, dword [edx + ecx + 0x44]
mov dword [ebp - 0x1c], ecx
jmp 0x419f53
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
adc eax, dword [ebp - 0x1c]
push 0
push 0x200
push eax
push edx
call fcn.0041dc90
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], 0
je 0x41a006
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00403ac9
add esp, 4
mov dword [ebp - 0x24], 0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x41a220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x41a253
jmp 0x41a2a4
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
push 0
push 0x200
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040a450
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
shl eax, 9
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x41a2b0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [0x42b044]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x114], 0
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str._uninsep.bat
lea ecx, [ebp - 0x110]
push ecx
call fcn.00401110
add esp, 8
push 0x104
lea edx, [ebp - 0x220]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x220]
push eax
push 0x104
lea ecx, [ebp - 0x330]
push ecx
call fcn.004040d1
add esp, 0xc
push 0x5c
lea edx, [ebp - 0x330]
push edx
call fcn.00401130
add esp, 8
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x41a356
mov eax, dword [ebp - 0x224]
mov byte [eax], 0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x41a47c
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
call fcn.00402330
add esp, 4
mov esi, eax
lea edx, [ebp - 0x220]
push edx
call fcn.00402330
add esp, 4
imul eax, eax, 3
add esi, eax
lea eax, [ebp - 0x110]
push eax
call fcn.00402330
add esp, 4
lea ecx, [esi + eax + 0x32]
mov dword [ebp - 0x334], ecx
mov edx, dword [ebp - 0x334]
push edx
call fcn.00403ccf
add esp, 4
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x338]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x334]
push ecx
push 0
mov edx, dword [ebp - 0x114]
push edx
call fcn.004012f0
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x330]
push ecx
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x220]
push eax
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
mov ecx, dword [ebp - 0x334]
push ecx
mov edx, dword [ebp - 0x114]
push edx
call fcn.004044cd
add esp, 0x1c
push 0
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.00402330
add esp, 4
push eax
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [ebp - 0x110]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp dword [ebp - 0x114], 0
je 0x41a4aa
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x33c]
push ecx
call fcn.00403ac9
add esp, 4
mov dword [ebp - 0x114], 0
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004012d2
mov esp, ebp
pop ebp
ret
Function at 0x41a4c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42b044]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.004012f0
add esp, 0xc
cmp dword [0x42c0a0], 3
jne 0x41a528
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x428fb8
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.004013e0
add esp, 0xc
jmp 0x41a53a
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x210]
push edx
push 0x428fbc
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004012d2
mov esp, ebp
pop ebp
ret

Function at 0x41a570
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
push 0
push 0
push 3
push 0
push 3
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x41a5ae
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x41a5dd
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x41a5cd
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x41a5f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x42b044]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov word [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
push 0x118
push 0
lea eax, [ebp - 0x12c]
push eax
call fcn.004012f0
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea ecx, [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41a6ea
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x128]
mov dword [ebp - 8], eax
mov cx, word [ebp - 0x1c]
mov word [ebp - 0x134], cx
cmp dword [ebp - 0xc], 5
jne 0x41a69c
cmp dword [ebp - 8], 0
jne 0x41a69c
movzx edx, word [ebp - 0x134]
cmp edx, 4
jl 0x41a69c
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 5
jne 0x41a6af
cmp dword [ebp - 8], 2
jne 0x41a6af
mov dword [ebp - 4], 2
cmp dword [ebp - 0xc], 5
jne 0x41a6c8
cmp dword [ebp - 8], 2
jae 0x41a6c1
cmp dword [ebp - 8], 1
jne 0x41a6c8
mov dword [ebp - 4], 3
cmp dword [ebp - 0xc], 6
jne 0x41a6ea
cmp dword [ebp - 8], 0
jne 0x41a6dd
mov dword [ebp - 4], 4
jmp 0x41a6ea
cmp dword [ebp - 8], 1
jne 0x41a6ea
mov dword [ebp - 4], 5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004012d2
mov esp, ebp
pop ebp
ret
Function at 0x41a900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x41a94b
jmp 0x41a9ce
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00403ccf
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004012f0
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00401460
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x41ade0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x42b044]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x40], 0
mov word [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], ax
mov dword [ebp - 8], 0
push 0x288
call fcn.00401d1a
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], 0x288
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x41ae7f
mov eax, dword [ebp - 4]
push eax
call fcn.00403a3b
add esp, 4
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00401d1a
add esp, 4
mov dword [ebp - 4], eax
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x41af98
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0
je 0x41af98
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
cmp dword [ebp + 8], 0
je 0x41aecf
push 6
mov eax, dword [ebp - 0x3c]
add eax, 0x194
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401460
add esp, 0xc
mov edx, dword [ebp - 0x3c]
add edx, 0x1ac
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x40], 0
je 0x41af83
mov eax, dword [ebp - 0x40]
add eax, 4
push eax
call fcn.00402330
add esp, 4
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x10
jle 0x41af04
mov dword [ebp - 0x44], 0x10
mov dword [ebp - 0x48], 0
jmp 0x41af16
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
cmp edx, dword [ebp - 0x44]
jg 0x41af45
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x44]
jne 0x41af30
mov ecx, dword [ebp - 0x48]
mov word [ebp + ecx*2 - 0x2c], 0
mov edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x48]
movsx ax, byte [edx + 4]
mov ecx, dword [ebp - 0x48]
mov word [ebp + ecx*2 - 0x2c], ax
jmp 0x41af0d
lea edx, [ebp - 0x2c]
push edx
call fcn.0041aca0
add esp, 4
test eax, eax
je 0x41af6d
lea eax, [ebp - 0x2c]
push eax
push 0x10
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
call fcn.004017c5
add esp, 0xc
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x41aedb
cmp dword [ebp - 8], 0
jle 0x41af8b
jmp 0x41af98
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x3c], edx
jmp 0x41ae9f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp - 4], 0
je 0x41afb2
mov edx, dword [ebp - 4]
push edx
call fcn.00403a3b
add esp, 4
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004012d2
mov esp, ebp
pop ebp
ret
Function at 0x41b2f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x42b044]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], ax
push 0x68
push 0
lea ecx, [ebp - 0x98]
push ecx
call fcn.004012f0
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push 0x20
lea eax, [ebp - 0x98]
push eax
call fcn.004017c5
add esp, 0xc
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x34], ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041a7b0
add esp, 8
lea ecx, [ebp - 0x2c]
push ecx
push 0x10
lea edx, [ebp - 0x56]
push edx
call fcn.004017c5
add esp, 0xc
lea eax, [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa0], 0
jmp 0x41b3a9
mov ecx, dword [ebp - 0xa0]
add ecx, 1
mov dword [ebp - 0xa0], ecx
cmp dword [ebp - 0xa0], 0x68
jae 0x41b3d3
mov edx, dword [ebp - 0x9c]
add edx, dword [ebp - 0xa0]
movzx eax, byte [edx]
not eax
mov ecx, dword [ebp - 0x9c]
add ecx, dword [ebp - 0xa0]
mov byte [ecx], al
jmp 0x41b39a
push 0x42953c
mov edx, dword [ebp + 8]
push edx
call fcn.00401956
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41b3f1
jmp 0x41b40f
mov eax, dword [ebp - 8]
push eax
push 0x68
push 1
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.0040225e
add esp, 0x10
mov dword [ebp - 4], 1
cmp dword [ebp - 8], 0
je 0x41b421
mov edx, dword [ebp - 8]
push edx
call fcn.004020c8
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004012d2
mov esp, ebp
pop ebp
ret
Function at 0x41b440
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x429108
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00401969
add esp, 0xc
test eax, eax
je 0x41b474
xor eax, eax
jmp 0x41b543
mov dword [ebp - 0x14], 0
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00401a40
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.00401c5d
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401a40
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
push edx
call fcn.00401d1a
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040203a
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.004020c8
add esp, 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
push edx
call fcn.0041b270
add esp, 8
push 0x429110
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00401969
add esp, 0xc
test eax, eax
je 0x41b50e
xor eax, eax
jmp 0x41b543
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040225e
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.004020c8
add esp, 4
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x41b620
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
je 0x41b63a
mov eax, dword [ebp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x41b65f
push 0x104
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4290b0
push 0x104
mov edx, dword [ebp + 8]
push edx
call fcn.004013e0
add esp, 0xc
pop ebp
ret
Function at 0x41ca70
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
mov eax, dword [0x42b044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [0x42d778], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x42d6b0
push 0x42d5e8
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0x7c0], eax
cmp dword [ebp - 0x7c0], 0
jne 0x41cad0
xor eax, eax
jmp 0x41cd36
mov word [ebp - 0xbd8], 0
push 0x206
push 0
lea edx, [ebp - 0xbd6]
push edx
call fcn.004012f0
add esp, 0xc
mov word [ebp - 0x9d0], 0
push 0x206
push 0
lea eax, [ebp - 0x9ce]
push eax
call fcn.004012f0
add esp, 0xc
mov word [ebp - 0x7b8], 0
push 0x206
push 0
lea ecx, [ebp - 0x7b6]
push ecx
call fcn.004012f0
add esp, 0xc
mov word [ebp - 0x3a0], 0
push 0x206
push 0
lea edx, [ebp - 0x39e]
push edx
call fcn.004012f0
add esp, 0xc
mov word [ebp - 0x5b0], 0
push 0x206
push 0
lea eax, [ebp - 0x5ae]
push eax
call fcn.004012f0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x9d0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x198]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x3a4], 0
mov dword [ebp - 0x7c4], 0
push 1
push 0x42df38
call fcn.0040fb60
add esp, 8
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
jne 0x41cc80
mov word [ebp - 0xc14], 0
push 0x3a
push 0
lea eax, [ebp - 0xc12]
push eax
call fcn.004012f0
add esp, 0xc
lea ecx, [ebp - 0xc14]
push ecx
call fcn.0041b910
add esp, 4
lea edx, [ebp - 0xc14]
push edx
push 0x42e0e0
call fcn.004013c4
add esp, 8
push 0x42900c
push 0x42df3c
call fcn.00401030
add esp, 8
mov word [0x42dfbc], 0x51
push 0x429028
push 0x42dfbe
call fcn.00401050
add esp, 8
push 0x429034
push 0x42dfde
call fcn.00401030
add esp, 8
mov word [0x42e05e], 0x2b66
lea eax, [ebp - 0xc14]
push eax
push 0x42e0c0
call fcn.004013c4
add esp, 8
push 0x429050
push 0x42e0c0
call fcn.0040139a
add esp, 8
mov ecx, dword [0x42c634]
mov dword [0x42e100], ecx
call fcn.0041c850
lea edx, [ebp - 0x5b0]
push edx
call fcn.0041b910
add esp, 4
lea eax, [ebp - 0x5b0]
push eax
push 0x42e138
call fcn.004013c4
add esp, 8
push 0x42e138
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x7bc], eax
cmp dword [ebp - 0x7bc], 0
je 0x41ccda
mov ecx, dword [ebp - 0x7bc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41cd36
push 0x42e138
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x7bc], eax
cmp dword [ebp - 0x7bc], 0
jne 0x41ccfe
xor eax, eax
jmp 0x41cd36
push 0x42e5d0
call fcn.0041c8e0
add esp, 4
mov edx, dword [0x42e104]
mov dword [0x42e5d8], edx
push 0
push 0
push 0
push 0x41b670
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42c638], eax
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004012d2
mov esp, ebp
pop ebp
ret