joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4047b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x26c
mov eax, dword [0x4792b0]
xor eax, esp
mov dword [esp + 0x264], eax
xor eax, eax
push 0x40
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0xc], 0
call fcn.0044e9d0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x6e]
push edx
mov word [esp + 0x70], cx
call fcn.0044e9d0
lea eax, [esp + 0x70]
add esp, 0x18
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404810
sub eax, edx
lea ecx, [esp]
push ecx
xor ecx, ecx
sar eax, 1
lea edx, [esp + 0x14]
push edx
cmp ecx, eax
sbb edx, edx
lea eax, [esp + 0x60]
and edx, eax
push edx
push ecx
push ecx
push ecx
push ecx
push ecx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40485b
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.004493ec
add esp, 0x26c
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x264]
mov eax, dword [esp]
xor ecx, esp
call fcn.004493ec
add esp, 0x26c
ret

Function at 0x404880
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x238
mov eax, dword [0x4792b0]
xor eax, esp
mov dword [esp + 0x234], eax
push esi
push edi
xor edi, edi
push 0x228
lea eax, [esp + 0x18]
mov esi, ecx
push edi
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
call fcn.0044e9d0
add esp, 0xc
mov dword [esp + 8], edi
cmp esi, edi
jne 0x4048d6
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.004493ec
add esp, 0x238
ret
push ebp
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40496f
lea ecx, [esp + 0x14]
push ecx
push ebp
mov dword [esp + 0x1c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x404968
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x404914
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push esi
push edx
call fcn.0044ad7c
add esp, 8
test eax, eax
jne 0x404958
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
je 0x404958
push ecx
push 0
push 0x411
call edi
mov esi, eax
test esi, esi
je 0x404958
push 0
push esi
call ebx
test eax, eax
je 0x404951
inc dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push eax
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x404910
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x240]
mov eax, dword [esp + 0xc]
pop ebp
pop edi
pop esi
xor ecx, esp
call fcn.004493ec
add esp, 0x238
ret
Function at 0x404a90
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [eax]
sub esp, 0xc
test eax, eax
jne 0x404aa1
xor al, al
add esp, 0xc
ret 4
cmp dword [ecx + 0x18], 8
mov edx, 4
mov dword [esp], 0
mov dword [esp + 4], edx
mov dword [esp + 8], edx
jb 0x404ac0
mov ecx, dword [ecx + 4]
jmp 0x404ac2
add ecx, edx
lea edx, [esp + 4]
push edx
lea edx, [esp + 4]
push edx
lea edx, [esp + 0x10]
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404a99
mov eax, dword [esp]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov al, 1
add esp, 0xc
ret 4

Function at 0x404af0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x464ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4792b0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebp
push edi
mov eax, dword [0x4792b0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
test eax, eax
je 0x404bf4
cmp dword [esi + 0x18], 8
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 1
lea edi, [esi + 4]
jb 0x404b4f
mov ecx, dword [edi]
jmp 0x404b51
mov ecx, edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0xc]
push edx
push 0
lea edx, [esp + 0x18]
push edx
push 0
push ecx
push eax
call ebp
xor ecx, ecx
cmp eax, ecx
jne 0x404bf4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ecx
mov word [esp + 0x1c], ax
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0xc]
shr eax, 1
jne 0x404ba0
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x20]
call fcn.004033a0
jmp 0x404bab
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00404160
mov ecx, dword [esp + 0x1c]
mov eax, 8
cmp dword [esp + 0x30], eax
jae 0x404bbe
lea ecx, [esp + 0x1c]
cmp dword [esi + 0x18], eax
jb 0x404bc7
mov eax, dword [edi]
jmp 0x404bc9
mov eax, edi
lea edx, [esp + 0xc]
push edx
mov edx, dword [ebx]
push ecx
lea ecx, [esp + 0x18]
push ecx
push 0
push eax
push edx
call ebp
test eax, eax
je 0x404bf8
cmp dword [esp + 0x30], 8
jb 0x404bf4
mov eax, dword [esp + 0x1c]
push eax
call fcn.004493e1
add esp, 4
xor al, al
jmp 0x404c4b
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
shr eax, 1
dec eax
cmp eax, ecx
ja 0x404c15
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x20]
call fcn.004033a0
jmp 0x404c23
sub eax, ecx
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.00404160
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004036c0
cmp dword [esp + 0x30], 8
jb 0x404c49
mov edx, dword [esp + 0x1c]
push edx
call fcn.004493e1
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004493ec
add esp, 0x38
ret 4
Function at 0x404ce0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov esi, eax
call fcn.00404d60
test al, al
je 0x404d4c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x38]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x404d4c
xor eax, eax
test ebp, ebp
je 0x404d4f
cmp dword [esp + 0x24], eax
jle 0x404d4f
xor edi, edi
cmp dword [esi + 0x24], eax
jle 0x404d4f
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x38]
push 0
push eax
push ebp
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x404d4f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, dword [esi + 0x24]
jl 0x404d28
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10

Function at 0x404d60
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x10
cmp dword [esi + 0x38], 0
push edi
je 0x404d71
mov al, 1
pop edi
add esp, 0x10
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x38], eax
test eax, eax
je 0x404e35
mov ecx, dword [esi + 0x24]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 8
lea edx, [esp + 0xc]
push edx
push 0x1005
push 0xffff
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0
call edi
cmp eax, 0xffffffff
je 0x404e24
mov ecx, dword [esi + 0x38]
push 8
lea eax, [esp + 0xc]
push eax
push 0x1006
push 0xffff
push ecx
call edi
cmp eax, 0xffffffff
je 0x404e24
mov edx, 2
lea edi, [esi + 0x28]
push esi
mov word [edi], dx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 0x2c], eax
movzx eax, word [esi + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x38]
push 0x10
push edi
push ecx
mov word [esi + 0x2a], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x404d6a
mov edx, dword [esi + 0x38]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x38], 0
xor al, al
pop edi
add esp, 0x10
ret
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x38], 0
xor al, al
pop edi
add esp, 0x10
ret

Function at 0x406580
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4648a3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4792b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.00412e68
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x4065d1
mov eax, dword [esi + 0x1c]
push eax
call fcn.004493e1
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4066a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x464b58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4792b0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
inc dword [0x47bb40]
mov dword [edi + 0x18], vtable.HString.0
xor ebx, ebx
xor eax, eax
mov dword [edi + 0x34], 7
mov dword [edi + 0x30], ebx
mov word [edi + 0x20], ax
mov dword [esp + 0x1c], ebx
lea esi, [edi + 0x1c]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
call fcn.00405de0
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x408dc0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x468
mov eax, dword [0x4792b0]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x26a]
push ecx
xor bl, bl
mov word [esp + 0x26c], ax
call fcn.0044e9d0
push esi
lea edx, [esp + 0x270]
push 0x104
push edx
call fcn.0044aaf8
lea eax, [esp + 0x278]
add esp, 0x18
lea edx, [eax + 2]
jmp 0x408e20
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408e20
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp cx, word [esp + eax*2 + 0x25e]
je 0x408e52
push 0x472ad8
push 0x104
lea edx, [esp + 0x268]
push edx
jmp 0x408e64
push 0x472abc
push 0x104
lea eax, [esp + 0x268]
push eax
call fcn.0044ab67
add esp, 0xc
push 0x24c
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x1c], 0
call fcn.0044e9d0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408f37
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea esp, [esp]
lea ecx, [esp + 0x3c]
push 0x472acc
push ecx
call fcn.0044ad7c
add esp, 8
test eax, eax
je 0x408f24
lea edx, [esp + 0x3c]
push 0x472ad0
push edx
call fcn.0044ad7c
add esp, 8
test eax, eax
je 0x408f24
test dword [esp + 0x10], 0x10
jne 0x408f24
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408ef0
sub eax, edx
sar eax, 1
lea eax, [esp + eax*2 + 0x34]
push str..exe
push eax
call fcn.0044ad7c
add esp, 8
test eax, eax
jne 0x408f24
lea ecx, [esp + 0x3c]
call fcn.00404880
test eax, eax
je 0x408f24
mov bl, 1
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x408eb0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x46c]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.004493ec
add esp, 0x468
ret

Function at 0x408fd0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x4792b0]
xor eax, esp
mov dword [esp + 0x194], eax
xor eax, eax
push 0x18e
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.0044e9d0
add esp, 0xc
lea edx, [esp]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x194]
xor ecx, esp
mov eax, 0x47bb56
call fcn.004493ec
mov esp, ebp
pop ebp
ret
Function at 0x4097c0
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x464748
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4792b0]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4792b0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp]
mov edx, dword [eax + 8]
push 0x4b0
lea ebx, [ebp + 0x48]
push ebx
call edx
mov edi, eax
lea eax, [edi - 1]
cmp eax, 0x4af
ja 0x4098db
mov ecx, dword [ebp + 0x44]
movzx edx, word [ebp + 0x40]
push ecx
push edx
lea eax, [ebp + 0x20]
push eax
lea esi, [esp + 0x20]
call fcn.00404c70
cmp byte [esp + 0x64], 0
mov dword [esp + 0x5c], 0
je 0x40987f
test edi, edi
jle 0x40984b
mov eax, ebx
mov ecx, edi
xor byte [eax], 0x33
inc eax
sub ecx, 1
jne 0x409842
push 0x4b0
push ebx
push edi
push ebx
lea eax, [esp + 0x24]
call fcn.00404ce0
mov esi, eax
test esi, esi
jle 0x4098bb
mov eax, ebx
mov ecx, esi
xor byte [eax], 0x33
inc eax
sub ecx, 1
jne 0x409866
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
push esi
push ebx
mov ecx, ebp
call eax
mov esi, eax
jmp 0x4098bb
test edi, edi
jle 0x409890
mov eax, ebx
mov ecx, edi
xor byte [eax], 0x33
inc eax
sub ecx, 1
jne 0x409887
lea esi, [esp + 0x14]
call fcn.00404d60
test al, al
jne 0x4098a2
or esi, 0xffffffff
jmp 0x4098bb
mov ecx, dword [esp + 0x4c]
push 0
push edi
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
inc esi
neg esi
sbb esi, esi
neg esi
dec esi
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4098d7
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [esp + 0x4c]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
jmp 0x4098de
or eax, 0xffffffff
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004493ec
add esp, 0x4c
ret 4
Function at 0x40b520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x464d98
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4792b0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x8c]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 4]
mov esi, dword [edi + 0x14]
sub eax, 2
mov ebx, 1
cmp esi, eax
ja 0x40b58a
cmp dword [edi + 0x18], eax
je 0x40b58a
push ebx
push eax
call fcn.00402ba0
test al, al
je 0x40b58a
cmp dword [edi + 0x18], 0x10
mov dword [edi + 0x14], esi
jb 0x40b583
mov eax, dword [edi + 4]
jmp 0x40b586
lea eax, [edi + 4]
mov byte [eax + esi], 0
mov esi, dword [ebp + 4]
mov ecx, dword [ebp + 8]
sub ecx, ebx
add esi, ebx
mov dword [esp + 0x18], ecx
cmp esi, ecx
je 0x40b76b
jmp 0x40b5a6
mov ecx, dword [esp + 0x18]
mov al, byte [esi]
add esi, ebx
mov byte [esp + 0x20], al
cmp al, 0x22
je 0x40b76b
cmp al, 0x5c
jne 0x40b6a7
cmp esi, ecx
je 0x40b6c3
mov al, byte [esi]
movsx eax, al
add esi, ebx
add eax, 0xffffffde
mov dword [esp + 0x8c], esi
cmp eax, 0x53
ja case.0x40b5e7.35
movzx eax, byte [eax + 0x40b7ac]
jmp dword [eax*4 + 0x40b784]
push 0x22
jmp 0x40b6ac
push 0x2f
jmp 0x40b6ac
push 0x5c
jmp 0x40b6ac
push 8
jmp 0x40b6ac
push 0xc
jmp 0x40b6ac
push 0xa
jmp 0x40b6ac
push 0xd
jmp 0x40b6ac
push 9
jmp 0x40b6ac
mov eax, dword [esp + 0x88]
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
lea ecx, [esp + 0x98]
mov edx, ebp
call fcn.0040b800
test al, al
je 0x40b70f
mov ecx, dword [esp + 0x1c]
lea esi, [esp + 0x5c]
call fcn.00409ba0
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov dword [esp + 0x8c], ebx
call fcn.004044f0
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x74], 0x10
jb 0x40b689
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004493e1
add esp, 4
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
jmp 0x40b6b4
mov edx, dword [esp + 0x20]
push edx
push ebx
mov ecx, edi
call fcn.004021c0
cmp esi, dword [esp + 0x18]
jne 0x40b5a2
jmp 0x40b76b
push 0x1f
xor edi, edi
push str.Empty_escape_sequence_in_string
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
call fcn.00402c60
mov edx, dword [esp + 0x88]
push esi
push ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x88], edi
call fcn.0040bab0
cmp dword [esp + 0x3c], 0x10
mov bl, al
jb 0x40b76b
mov eax, dword [esp + 0x28]
push eax
jmp 0x40b763
xor al, al
jmp 0x40b76d
push 0x1d
push str.Bad_escape_sequence_in_string
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
call fcn.00402c60
mov edx, dword [esp + 0x88]
push esi
push ebp
lea ecx, [esp + 0x48]
mov dword [esp + 0x88], 2
call fcn.0040bab0
cmp dword [esp + 0x58], 0x10
mov bl, al
jb 0x40b76b
mov ecx, dword [esp + 0x44]
push ecx
call fcn.004493e1
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 8
Function at 0x40fbc0
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x298
mov eax, dword [0x4792b0]
xor eax, esp
mov dword [esp + 0x294], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2a4]
push esi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
xor ebx, ebx
push ecx
mov dword [esp + 0x1c], ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40fc73
mov edx, dword [esp + 0x14]
push edx
call fcn.00412bc6
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x40fc6a
lea eax, [esp + 0x14]
push eax
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x40fc6a
mov esi, edi
lea ecx, [ecx]
mov eax, dword [esi + 0x190]
cmp eax, 0x400
jae 0x40fc5d
cmp eax, ebx
ja 0x40fc44
mov esi, dword [esi]
cmp esi, ebx
jne 0x40fc20
push edi
call fcn.004493e1
add esp, 4
mov eax, ebx
jmp 0x40fc75
mov ecx, eax
push ecx
lea edx, [esi + 0x194]
push edx
push ebp
call fcn.0044e530
mov ebx, dword [esi + 0x190]
add esp, 0xc
push edi
call fcn.004493e1
add esp, 4
mov eax, ebx
jmp 0x40fc75
push edi
call fcn.004493e1
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2a4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004493ec
add esp, 0x298
ret 4
Function at 0x411720
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, dword [esp + 8]
cmp ebp, 0x1a
jle 0x411897
movzx eax, byte [ebx]
mov byte [esi], al
movzx ecx, byte [ebx + 1]
mov byte [esi + 1], cl
movzx ax, byte [ebx + 3]
shl ax, 8
mov word [esi + 2], ax
movzx edx, byte [ebx + 2]
add dx, ax
mov word [esi + 2], dx
movzx ax, byte [ebx + 5]
shl ax, 8
mov word [esi + 4], ax
movzx ecx, byte [ebx + 4]
add cx, ax
mov word [esi + 4], cx
movzx ax, byte [ebx + 7]
shl ax, 8
mov word [esi + 6], ax
movzx edx, byte [ebx + 6]
add dx, ax
mov word [esi + 6], dx
movzx ax, byte [ebx + 9]
shl ax, 8
mov word [esi + 8], ax
movzx ecx, byte [ebx + 8]
add cx, ax
mov word [esi + 8], cx
movzx ax, byte [ebx + 0xb]
shl ax, 8
mov word [esi + 0xa], ax
movzx edx, byte [ebx + 0xa]
add dx, ax
mov word [esi + 0xa], dx
movzx ax, byte [ebx + 0xd]
shl ax, 8
mov word [esi + 0xc], ax
movzx ecx, byte [ebx + 0xc]
add cx, ax
mov word [esi + 0xc], cx
movzx edx, byte [ebx + 0xe]
mov byte [esi + 0xe], dl
movzx eax, byte [ebx + 0xf]
mov byte [esi + 0xf], al
movzx ecx, byte [ebx + 0x10]
mov byte [esi + 0x10], cl
movzx edx, byte [ebx + 0x11]
mov byte [esi + 0x11], dl
movzx eax, byte [ebx + 0x12]
mov byte [esi + 0x12], al
movzx ax, byte [ebx + 0x14]
shl ax, 8
mov word [esi + 0x14], ax
movzx ecx, byte [ebx + 0x13]
add cx, ax
mov word [esi + 0x14], cx
movzx ax, byte [ebx + 0x16]
shl ax, 8
mov word [esi + 0x16], ax
movzx edx, byte [ebx + 0x15]
add dx, ax
mov word [esi + 0x16], dx
movzx eax, byte [ebx + 0x17]
mov byte [esi + 0x18], al
movzx ecx, byte [ebx + 0x18]
mov byte [esi + 0x19], cl
movzx edx, byte [ebx + 0x19]
mov byte [esi + 0x1a], dl
movzx eax, byte [ebx + 0x1a]
mov dl, byte [esi + 0x18]
push edi
mov byte [esi + 0x1b], al
movzx eax, byte [esi + 1]
mov edi, ebp
sub edi, eax
add eax, ebx
push eax
lea ecx, [esi + 0x20]
push ecx
call fcn.004112b0
movzx eax, byte [esi + 1]
mov dl, byte [esi + 0x19]
mov edi, ebp
sub edi, eax
add eax, ebx
lea ecx, [esi + 0x74]
push eax
push ecx
call fcn.004112b0
movzx eax, byte [esi + 1]
mov edi, ebp
sub edi, eax
add eax, ebx
lea edx, [esi + 0x58]
push eax
push edx
mov dl, byte [esi + 0x1a]
call fcn.004112b0
movzx eax, byte [esi + 1]
mov dl, byte [esi + 0x1b]
mov edi, ebp
sub edi, eax
add eax, ebx
push eax
lea eax, [esi + 0x74]
push eax
call fcn.004112b0
pop edi
pop ebp
ret 4
Function at 0x4118d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x124
mov eax, dword [0x4792b0]
xor eax, esp
mov dword [esp + 0x120], eax
mov ax, word [0x47bb6c]
push esi
mov esi, 0x20
test ax, ax
jne 0x411ab3
push edi
push str.IsWow64Process
xor eax, eax
push str.kernel32
mov word [0x47bb6c], ax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x41193d
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x41193d
cmp dword [esp + 8], 0
je 0x41193d
mov esi, 0x40
push 0x11c
lea edx, [esp + 0x10]
push 0
push edx
call fcn.0044e9d0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
pop edi
test eax, eax
je 0x411aad
mov eax, dword [esp + 0xc]
cmp eax, 4
jne 0x41199d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41198c
cmp eax, 0xa
je 0x41198c
cmp eax, 0x5a
jne 0x411aad
mov ecx, 1
mov word [0x47bb6c], cx
jmp 0x411aad
cmp eax, 5
jne 0x411a1f
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4119bb
mov edx, 2
mov word [0x47bb6c], dx
jmp 0x411aad
cmp eax, 1
jne 0x4119eb
cmp si, 0x20
jne 0x4119d0
mov eax, 4
jmp 0x411aa7
cmp si, 0x40
jne 0x411aad
mov ecx, 8
mov word [0x47bb6c], cx
jmp 0x411aad
cmp eax, 2
jne 0x411aad
cmp si, 0x20
jne 0x411a0b
mov edx, 0x10
mov word [0x47bb6c], dx
jmp 0x411aad
cmp si, 0x40
jne 0x411aad
mov eax, 0x20
jmp 0x411aa7
cmp eax, 6
jne 0x411aad
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x411a83
cmp byte [esp + 0x122], 3
jne 0x411a62
cmp si, 0x20
jne 0x411a4e
mov ecx, pe_nt_image_headers32
mov word [0x47bb6c], cx
jmp 0x411aad
cmp si, 0x40
jne 0x411aad
mov edx, 0x200
mov word [0x47bb6c], dx
jmp 0x411aad
cmp si, 0x20
jne 0x411a6f
mov eax, 0x40
jmp 0x411aa7
cmp si, 0x40
jne 0x411aad
mov ecx, 0x80
mov word [0x47bb6c], cx
jmp 0x411aad
cmp eax, 1
jne 0x411aad
cmp si, 0x20
jne 0x411a9c
mov edx, 0x400
mov word [0x47bb6c], dx
jmp 0x411aad
cmp si, 0x40
jne 0x411aad
mov eax, 0x800
mov word [0x47bb6c], ax
mov ax, word [0x47bb6c]
mov ecx, dword [esp + 0x124]
pop esi
xor ecx, esp
call fcn.004493ec
add esp, 0x124
ret