joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416a40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x416a5a
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
je 0x416a64
mov eax, 0x1000000
jmp 0x416b3e
mov edx, dword [ebp - 0x18]
add edx, 0x244
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0x244
push eax
call fcn.0040234b
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dx, word [ecx + eax*2 + 0x242]
mov word [ebp - 8], dx
movzx eax, word [ebp - 8]
cmp eax, 0x5c
je 0x416ac2
movzx ecx, word [ebp - 8]
cmp ecx, 0x2f
je 0x416ac2
push 0x427560
mov edx, dword [ebp - 0x18]
add edx, 0x244
push edx
call fcn.0040139a
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x416af6
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x10], eax
xor ecx, ecx
cmp dword [ebp - 0x10], 0xffffffff
setne cl
mov byte [ebp - 0x11], cl
movzx edx, byte [ebp - 0x11]
test edx, edx
jne 0x416af6
mov eax, 0x2000000
jmp 0x416b3e
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004107d0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x416b1c
mov eax, dword [ebp - 0xc]
jmp 0x416b3e
mov ecx, dword [ebp - 4]
push ecx
call fcn.00415d20
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x416b3c
mov eax, 0x200
jmp 0x416b3e
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x417720
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0040ea30
mov eax, dword [0x42b044]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1014], 0
mov dword [0x42d784], 0
push 0x428160
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.004019c9
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x417774
xor eax, eax
jmp 0x41781a
push 0
push 4
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x417794
xor eax, eax
jmp 0x41781a
mov edx, dword [ebp - 0x1014]
cmp edx, dword [ebp - 0xc]
jae 0x4177fa
push 0
push 0x1000
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4177c4
jmp 0x4177fa
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
lea edx, [ebp - 0x1010]
push edx
call fcn.004022be
add esp, 0x10
mov eax, dword [ebp - 0x1014]
add eax, dword [ebp - 4]
mov dword [ebp - 0x1014], eax
mov ecx, dword [ebp - 0x1014]
mov dword [0x42d784], ecx
jmp 0x417794
mov edx, dword [ebp - 8]
push edx
call fcn.00402128
add esp, 4
mov eax, dword [ebp - 0x1014]
cmp eax, dword [ebp - 0xc]
jae 0x417815
xor eax, eax
jmp 0x41781a
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004012d2
mov esp, ebp
pop ebp
ret
Function at 0x417af0
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 0x417b24
jmp 0x417be0
mov dword [ebp - 0x18], 0
jmp 0x417b36
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jge 0x417b53
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 0x417b2d
mov eax, dword [ebp + 0x10]
add eax, 7
push eax
call fcn.00403d0f
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 0x42c120
mov ecx, dword [ebp - 0xc]
add ecx, 2
push ecx
call fcn.004014c0
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.004014c0
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 0x417bd5
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
je 0x417bd9
jmp 0x417be0
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x417bf8
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.00403b09
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x418370
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 0x419dc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1074
call fcn.0040ea30
mov eax, dword [0x42b044]
xor eax, ebp
mov dword [ebp - 0x70], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1074], 0
push 0x428168
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.004019c9
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x419e1a
push 0x14
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.004012f0
add esp, 0xc
xor eax, eax
jmp 0x419ee0
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00401aa0
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401cbd
add esp, 4
mov dword [ebp - 0x6c], eax
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00401aa0
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call fcn.00418370
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
push 0x1000
push 1
lea edx, [ebp - 0x1070]
push edx
call fcn.0040209a
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x419ea0
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x1070]
push edx
call fcn.00419cb0
add esp, 0xc
mov eax, dword [ebp - 0x1074]
add eax, dword [ebp - 4]
mov dword [ebp - 0x1074], eax
jmp 0x419e55
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00419b20
add esp, 8
mov eax, dword [ebp - 8]
push eax
call fcn.00402128
add esp, 4
mov ecx, dword [ebp - 0x1074]
cmp ecx, dword [ebp - 0x6c]
jae 0x419edb
push 0x14
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.004012f0
add esp, 0xc
xor eax, eax
jmp 0x419ee0
mov eax, 1
mov ecx, dword [ebp - 0x70]
xor ecx, ebp
call fcn.004012d2
mov esp, ebp
pop ebp
ret
Function at 0x419ef0
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 0x419f3f
jmp 0x41a027
mov dword [ebp - 8], 0xc00
mov eax, dword [ebp - 8]
push eax
call fcn.00403d0f
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 0x419f8a
jmp 0x41a027
mov dword [ebp - 4], 0
jmp 0x419f9c
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x41a00a
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 0x41a008
jg 0x419fd4
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 0x38]
cmp edx, dword [ebp - 0x10]
jbe 0x41a008
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 0x419f93
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.0041de70
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], 0
je 0x41a046
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00403b09
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 0x41a260
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 0x41a293
jmp 0x41a2e4
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.0040a490
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 0x41a2f0
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 0x4297c0
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.00404111
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 0x41a396
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 0x41a4bc
push 0x42c650
call fcn.00402370
add esp, 4
mov esi, eax
lea edx, [ebp - 0x220]
push edx
call fcn.00402370
add esp, 4
imul eax, eax, 3
add esi, eax
lea eax, [ebp - 0x110]
push eax
call fcn.00402370
add esp, 4
lea ecx, [esi + eax + 0x32]
mov dword [ebp - 0x334], ecx
mov edx, dword [ebp - 0x334]
push edx
call fcn.00403d0f
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 0x42c650
mov ecx, dword [ebp - 0x334]
push ecx
mov edx, dword [ebp - 0x114]
push edx
call fcn.0040450d
add esp, 0x1c
push 0
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.00402370
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 0x428e90
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp dword [ebp - 0x114], 0
je 0x41a4ea
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x33c]
push ecx
call fcn.00403b09
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 0x41a580
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 0x41a5e8
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x428fb0
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00401412
add esp, 0xc
jmp 0x41a5fa
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 0x428fb4
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 0x41a630
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 0x41a66e
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x41a69d
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x41a68d
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 0x41a6b0
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 0x41a7aa
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 0x41a75c
cmp dword [ebp - 8], 0
jne 0x41a75c
movzx edx, word [ebp - 0x134]
cmp edx, 4
jl 0x41a75c
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 5
jne 0x41a76f
cmp dword [ebp - 8], 2
jne 0x41a76f
mov dword [ebp - 4], 2
cmp dword [ebp - 0xc], 5
jne 0x41a788
cmp dword [ebp - 8], 2
jae 0x41a781
cmp dword [ebp - 8], 1
jne 0x41a788
mov dword [ebp - 4], 3
cmp dword [ebp - 0xc], 6
jne 0x41a7aa
cmp dword [ebp - 8], 0
jne 0x41a79d
mov dword [ebp - 4], 4
jmp 0x41a7aa
cmp dword [ebp - 8], 1
jne 0x41a7aa
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 0x41a9c0
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 0x41aa0b
jmp 0x41aa8e
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.00403d0f
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.004014c0
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 0x41aea0
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.00401d7a
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 0x41af3f
mov eax, dword [ebp - 4]
push eax
call fcn.00403a7b
add esp, 4
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00401d7a
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 0x41b058
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0
je 0x41b058
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
cmp dword [ebp + 8], 0
je 0x41af8f
push 6
mov eax, dword [ebp - 0x3c]
add eax, 0x194
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004014c0
add esp, 0xc
mov edx, dword [ebp - 0x3c]
add edx, 0x1ac
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x40], 0
je 0x41b043
mov eax, dword [ebp - 0x40]
add eax, 4
push eax
call fcn.00402370
add esp, 4
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x10
jle 0x41afc4
mov dword [ebp - 0x44], 0x10
mov dword [ebp - 0x48], 0
jmp 0x41afd6
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
cmp edx, dword [ebp - 0x44]
jg 0x41b005
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x44]
jne 0x41aff0
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 0x41afcd
lea edx, [ebp - 0x2c]
push edx
call fcn.0041ad60
add esp, 4
test eax, eax
je 0x41b02d
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.00401825
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 0x41af9b
cmp dword [ebp - 8], 0
jle 0x41b04b
jmp 0x41b058
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x3c], edx
jmp 0x41af5f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp - 4], 0
je 0x41b072
mov edx, dword [ebp - 4]
push edx
call fcn.00403a7b
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 0x41b330
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.00401825
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.0041a870
add esp, 8
lea ecx, [ebp - 0x2c]
push ecx
push 0x10
lea edx, [ebp - 0x56]
push edx
call fcn.00401825
add esp, 0xc
lea eax, [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa0], 0
jmp 0x41b3e9
mov ecx, dword [ebp - 0xa0]
add ecx, 1
mov dword [ebp - 0xa0], ecx
cmp dword [ebp - 0xa0], 0x68
jae 0x41b413
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 0x41b3da
push 0x429564
mov edx, dword [ebp + 8]
push edx
call fcn.004019b6
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41b431
jmp 0x41b44f
mov eax, dword [ebp - 8]
push eax
push 0x68
push 1
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.004022be
add esp, 0x10
mov dword [ebp - 4], 1
cmp dword [ebp - 8], 0
je 0x41b461
mov edx, dword [ebp - 8]
push edx
call fcn.00402128
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 0x41b480
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 0x42912c
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.004019c9
add esp, 0xc
test eax, eax
je 0x41b4b4
xor eax, eax
jmp 0x41b583
mov dword [ebp - 0x14], 0
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00401aa0
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.00401cbd
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401aa0
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
push edx
call fcn.00401d7a
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.0040209a
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.00402128
add esp, 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
push edx
call fcn.0041a500
add esp, 8
push 0x429134
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.004019c9
add esp, 0xc
test eax, eax
je 0x41b54e
xor eax, eax
jmp 0x41b583
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.004022be
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.00402128
add esp, 4
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x41b660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
je 0x41b67a
mov eax, dword [ebp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x41b69f
push 0x104
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4290d4
push 0x104
mov edx, dword [ebp + 8]
push edx
call fcn.00401412
add esp, 0xc
pop ebp
ret