joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10032160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0xffffffff
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp + 8]
call fcn.1000f5a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x1003219d
jmp 0x100321e9
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0xc]
call fcn.100122c0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
call fcn.1000f580
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0xc]
call fcn.100122c0
cmp dword [ebp - 0xc], eax
je 0x100321e1
jmp 0x100321e9
mov byte [ebp - 1], 1
xor ecx, ecx
jne 0x10032171
cmp dword [ebp - 8], 0xffffffff
je 0x10032200
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0xffffffff
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x10032210
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10032236
jmp 0x1003228b
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov dx, word [ecx]
mov word [ebp - 2], dx
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x10032245
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
sar eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
shl ecx, 1
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x10033ef0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 8], 0
jne 0x10033f03
xor eax, eax
jmp 0x10033fb1
mov dword [ebp - 0x24], 0xedb88320
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0xc]
mov al, byte [edx]
mov byte [ebp - 1], al
add dword [ebp - 0xc], 1
cmp byte [ebp - 1], 0
jne 0x10033f20
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0
jmp 0x10033f53
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x20]
jae 0x10033fac
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ebp - 2], al
movzx ecx, byte [ebp - 2]
xor ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], 0
jmp 0x10033f82
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 8
jae 0x10033faa
mov eax, dword [ebp - 8]
and eax, 1
je 0x10033fa0
mov ecx, dword [ebp - 8]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 8], ecx
jmp 0x10033fa8
mov edx, dword [ebp - 8]
shr edx, 1
mov dword [ebp - 8], edx
jmp 0x10033f79
jmp 0x10033f4a
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x1003c170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 1
jl 0x1003c188
cmp dword [ebp + 0xc], 8
jg 0x1003c188
mov byte [ebp - 1], 1
jmp 0x1003c18c
mov byte [ebp - 1], 0
push str.bad_pack_level
movzx eax, byte [ebp - 1]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10038a40
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af78], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af70], 0
jne 0x1003c1d5
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af78], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af70], 0x10000
mov eax, 4
imul ecx, eax, 0x7fff
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 0x4af70], 0
push 0x1fffc
push 0
mov eax, dword [ebp + 8]
add eax, 0x4af70
push eax
call fcn.1004e550
add esp, 0xc
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx*8 + 0x101dd1fa]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af98], edx
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx*8 + 0x101dd1f8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af9c], edx
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx*8 + 0x101dd1fc]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6afa0], edx
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx*8 + 0x101dd1fe]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af94], edx
cmp dword [ebp + 0xc], 2
jg 0x1003c26d
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx]
or edx, 4
mov eax, dword [ebp + 0x10]
mov word [eax], dx
jmp 0x1003c282
cmp dword [ebp + 0xc], 8
jl 0x1003c282
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx]
or edx, 2
mov eax, dword [ebp + 0x10]
mov word [eax], dx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af84], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af74], 0
mov dword [ebp - 8], 0x8000
mov eax, dword [ebp - 8]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x1af70
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af90], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x6af90], 0
je 0x1003c2ed
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0xffffffff
jne 0x1003c309
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af8c], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af90], 0
jmp 0x1003c381
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af8c], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x6af90], 0x106
jae 0x1003c331
mov edx, dword [ebp + 8]
push edx
call fcn.1003b350
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af7c], 0
mov dword [ebp - 8], 0
jmp 0x1003c350
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 2
jae 0x1003c381
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af7c]
shl eax, 5
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x1af70]
xor eax, edx
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
jmp 0x1003c347
mov esp, ebp
pop ebp
ret
Function at 0x1003dfb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x78], 0
je 0x1003e066
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + 0x80]
cmp eax, dword [edx + 0x7c]
jb 0x1003dfde
xor eax, eax
jmp 0x1003e0d6
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + 0x7c]
sub eax, dword [edx + 0x80]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jbe 0x1003dffe
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x78]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x80]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.1004dfd0
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x80]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x80], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x68]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x68], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x6c]
push edx
call fcn.10039f80
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x6c], eax
mov eax, dword [ebp - 8]
jmp 0x1003e0d6
mov edx, dword [ebp - 4]
cmp dword [edx + 0x70], 0
je 0x1003e0ca
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1003e097
xor eax, eax
jmp 0x1003e0d6
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x68]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x68], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x6c]
push edx
call fcn.10039f80
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x6c], eax
mov eax, dword [ebp - 0xc]
jmp 0x1003e0d6
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1003e9d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
imul ecx, eax, 0
movsx edx, byte [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
and edx, 0xff
mov ecx, 4
imul eax, ecx, 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax]
shr eax, 8
xor eax, dword [edx*4 + 0x101dd248]
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax]
and edx, 0xff
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
add edx, dword [ecx + eax]
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], edx
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
imul ecx, dword [eax + edx], 0x8088405
add ecx, 1
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx], ecx
mov ecx, 4
shl ecx, 1
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
and edx, 0xff
mov ecx, 4
shl ecx, 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + ecx]
shr ecx, 8
xor ecx, dword [edx*4 + 0x101dd248]
mov edx, 4
shl edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + edx], ecx
pop ebp
ret
Function at 0x1003eab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x2d]
test edx, edx
je 0x1003eb98
mov eax, dword [ebp - 8]
cmp dword [eax + 0x3c], 0
je 0x1003eb01
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x40]
cmp edx, dword [ebp + 0xc]
jae 0x1003eb01
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.1004947d
add esp, 4
mov eax, dword [ebp - 8]
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x3c], 0
jne 0x1003eb2d
mov edx, dword [ebp + 0xc]
shl edx, 1
push edx
call fcn.10049474
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x3c], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x40], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
push ecx
call fcn.1004dfd0
add esp, 0xc
mov dword [ebp - 0xc], 0
jmp 0x1003eb56
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jae 0x1003eb8f
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 0xc]
movzx ecx, byte [edx + eax]
push ecx
mov edx, dword [ebp - 8]
add edx, 0x30
push edx
call fcn.1003ec30
add esp, 8
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0xc]
mov al, byte [ebp - 1]
mov byte [ecx + edx], al
jmp 0x1003eb4d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x20], 0
je 0x1003ebf3
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
add edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
cmp edx, dword [eax + 0x28]
jb 0x1003ebc0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], 0x30000
xor eax, eax
jmp 0x1003ec28
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
mov eax, dword [ebp - 8]
add edx, dword [eax + 0x24]
push edx
call fcn.1004dfd0
add esp, 0xc
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
add edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], edx
mov eax, dword [ebp + 0xc]
jmp 0x1003ec28
mov ecx, dword [ebp - 8]
cmp dword [ecx + 4], 0
je 0x1003ec1c
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x1c]
jmp 0x1003ec28
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1003f270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003f28c
mov dword [ebp - 4], 1
jmp 0x1003f293
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x100401b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x100401ca
mov ecx, dword [ebp - 8]
cmp dword [ecx + 4], 0xffffffff
je 0x100401d4
mov eax, 0x1000000
jmp 0x100402ef
mov edx, dword [ebp - 8]
add edx, 0x244
push edx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 8]
add eax, 0x244
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0xc]
mov ax, word [edx]
mov word [ebp - 4], ax
add dword [ebp - 0xc], 2
cmp word [ebp - 4], 0
jne 0x100401fd
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x1c]
sar ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx*2 + 0x242]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
cmp eax, 0x5c
je 0x10040267
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
cmp edx, 0x2f
je 0x10040267
mov eax, 2
shl eax, 0
mov ecx, 0x2f
mov edx, dword [ebp - 0x10]
mov word [edx + eax], cx
mov eax, 2
shl eax, 1
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov word [edx + eax], cx
cmp dword [ebp + 0x10], 1
jne 0x100402a7
mov eax, dword [ebp + 8]
push eax
call fcn.10039120
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x1004028b
mov dword [ebp - 0x14], 1
jmp 0x10040292
mov dword [ebp - 0x14], 0
mov cl, byte [ebp - 0x14]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x100402a7
mov eax, 0x2000000
jmp 0x100402ef
lea eax, [ebp - 0x28]
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.100455e0
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x100402cd
mov eax, dword [ebp - 0x28]
jmp 0x100402ef
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.100464c0
add esp, 4
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x100402ed
mov eax, 0x200
jmp 0x100402ef
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10040c40
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
imul ecx, eax, 0
movsx edx, byte [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
and edx, 0xff
mov ecx, 4
imul eax, ecx, 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax]
shr eax, 8
xor eax, dword [edx*4 + 0x101dedb8]
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax]
and edx, 0xff
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
add edx, dword [ecx + eax]
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], edx
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
imul ecx, dword [eax + edx], 0x8088405
add ecx, 1
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx], ecx
mov ecx, 4
shl ecx, 1
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
and edx, 0xff
mov ecx, 4
shl ecx, 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + ecx]
shr ecx, 8
xor ecx, dword [edx*4 + 0x101dedb8]
mov edx, 4
shl edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + edx], ecx
pop ebp
ret

Function at 0x10045760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x100457af
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100457a5
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x10045809
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x18]
jbe 0x100457cf
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
sub edx, dword [ecx + 0x1c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x1c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.1004dfd0
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x10047b90
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x10269114]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
sub eax, 0x704a1a23
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x198], 0
cmp dword [ebp - 0x1a0], 0
je 0x10047bd1
cmp dword [ebp + 0xc], 0
jne 0x10047bdd
mov dword [ebp - 0x198], 1
jmp 0x10047c4f
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x1a0]
mov byte [eax + edx], 0
mov ecx, 0x102
mov word [ebp - 0x19c], cx
lea edx, [ebp - 0x194]
push edx
movzx eax, word [ebp - 0x19c]
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10047c20
mov dword [ebp - 0x198], 2
jmp 0x10047c4f
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1a0]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x10047c41
mov dword [ebp - 0x198], 3
jmp 0x10047c4f
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jne 0x10047bc2
mov eax, dword [ebp - 0x198]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100499a5
mov esp, ebp
pop ebp
ret
Function at 0x10047c70
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x10269114]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
sub eax, 0x704a1a23
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 0x2a0], 0
cmp dword [ebp - 0x2a4], 0
je 0x10047cb1
cmp dword [ebp + 0xc], 0
jne 0x10047cc0
mov dword [ebp - 0x2a0], 1
jmp 0x10047ea6
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x2a4]
mov byte [eax + edx], 0
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2a8], 0
lea ecx, [ebp - 0x2a8]
push ecx
lea edx, [ebp - 0x28c]
push edx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [ebp - 0x2ac], eax
cmp dword [ebp - 0x2ac], 0x6f
je 0x10047d18
mov dword [ebp - 0x2a0], 2
jmp 0x10047ea6
mov eax, dword [ebp - 0x2a8]
mov dword [ebp - 0x2b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x2b4], eax
mov ecx, dword [ebp - 0x2b0]
push ecx
push 0
mov edx, dword [ebp - 0x2b4]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 0
jne 0x10047d64
mov dword [ebp - 0x2a0], 3
jmp 0x10047ea6
lea eax, [ebp - 0x2a8]
push eax
mov ecx, dword [ebp - 0x294]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [ebp - 0x2ac], eax
cmp dword [ebp - 0x2ac], 0
jge 0x10047dac
mov dword [ebp - 0x2a0], 3
mov edx, dword [ebp - 0x294]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10047ea6
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0
je 0x10047e88
mov ecx, dword [ebp - 0x294]
mov edx, dword [ecx + 0x190]
lea eax, [edx + edx + 1]
cmp dword [ebp + 0xc], eax
jbe 0x10047e88
mov dword [ebp - 0x298], 0
jmp 0x10047df9
mov ecx, dword [ebp - 0x298]
add ecx, 1
mov dword [ebp - 0x298], ecx
mov edx, dword [ebp - 0x294]
mov eax, dword [ebp - 0x298]
cmp eax, dword [edx + 0x190]
jae 0x10047e50
mov ecx, dword [ebp - 0x29c]
add ecx, dword [ebp - 0x298]
mov dl, byte [ecx + 0x194]
mov byte [ebp - 0x28d], dl
movzx eax, byte [ebp - 0x28d]
push eax
push 0x101df488
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x298]
mov eax, dword [ebp - 0x2a4]
lea ecx, [eax + edx*2]
push ecx
call fcn.10047ec0
add esp, 0x10
jmp 0x10047dea
mov edx, dword [ebp - 0x29c]
mov eax, dword [edx + 0x190]
shl eax, 1
mov dword [ebp - 0x2b8], eax
mov ecx, dword [ebp - 0x2a4]
add ecx, dword [ebp - 0x2b8]
mov byte [ecx], 0
mov edx, dword [ebp - 0x29c]
mov eax, dword [edx]
mov dword [ebp - 0x29c], eax
jmp 0x10047e88
mov ecx, dword [ebp - 0x294]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor edx, edx
jne 0x10047ca2
mov eax, dword [ebp - 0x2a0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100499a5
mov esp, ebp
pop ebp
ret