joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b20
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x20]
movzx eax, word [esi + 8]
movzx ebx, word [esi + 4]
movzx edx, word [esi + 6]
movzx ecx, word [esi + 0xa]
mov dword [esp + 0x10], eax
push edi
lea edi, [esi + 4]
mov eax, edi
mov byte [eax], bh
mov byte [eax + 1], bl
add eax, 1
mov byte [eax + 1], dh
add eax, 1
mov byte [eax + 1], dl
add eax, 1
add eax, 1
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x14]
mov byte [eax], dh
add eax, 1
mov byte [eax], dl
add eax, 1
test ebp, ebp
mov byte [eax], ch
mov dword [esp + 0x10], ecx
mov byte [eax + 1], cl
je 0x404ba7
push ebp
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
push esi
call fcn.00405cd0
add esp, 0x10
test eax, eax
mov dword [esp + 0x28], eax
jne 0x404bab
pop edi
pop esi
pop ebp
mov eax, 0xfffeffff
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jl 0x404c15
sub eax, esi
movzx eax, ax
mov edx, eax
mov dword [esp + 0x40], eax
mov byte [esp + 0x25], al
push 2
lea eax, [esp + 0x28]
push eax
sar edx, 8
push ecx
mov byte [esp + 0x30], dl
call fcn.00410ea0
add esp, 0xc
cmp eax, 2
jne 0x404bf7
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
push esi
push edx
call fcn.00410ea0
add esp, 0xc
cmp eax, dword [esp + 0x40]
je 0x404c11
push str.mDNSSendDNSMessage:_error_sending_message_over_tcp
call fcn.00410870
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0xfffeffff
pop ebx
add esp, 0xc
ret
xor eax, eax
jmp 0x404c38
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push ecx
push edx
push eax
mov eax, dword [esp + 0x34]
push esi
push eax
call fcn.004108f0
add esp, 0x1c
test ebp, ebp
mov cx, word [esp + 0x18]
mov dx, word [esp + 0x14]
mov word [esi + 6], cx
movzx ecx, word [esp + 0x10]
mov word [edi], bx
mov word [esi + 8], dx
je 0x404c59
sub ecx, 1
pop edi
mov word [esi + 0xa], cx
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x405bf0
Capabilities:
Authenticate hmac
Encode data using add xor sub operations
Encode data using xor
Hash data with md5

Disassembly:
sub esp, 0x70
mov eax, dword [0x437070]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
mov ebx, dword [esp + 0x80]
cmp ebx, 0x40
push ebp
push esi
mov esi, dword [esp + 0x80]
push edi
mov edi, dword [esp + 0x88]
jbe 0x405c71
xor eax, eax
push ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
call fcn.004057b0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x7c]
push edx
call fcn.00405a90
add esp, 0x14
lea edi, [esp + 0x6c]
mov ebx, 0x10
lea ebp, [esi + 0x200]
push 0x40
push ebp
call fcn.00410bf0
add esi, 0x240
push 0x40
push esi
call fcn.00410bf0
push ebx
push ebp
push edi
call fcn.00410b30
push ebx
push esi
push edi
call fcn.00410b30
add esp, 0x28
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, 0x40
mov dl, 0x36
pop ebx
lea ecx, [ecx]
xor byte [eax - 0x40], dl
xor byte [eax], 0x5c
add eax, 1
sub ecx, 1
jne 0x405cb0
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00423888
add esp, 0x70
ret
Function at 0x406210
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
lea eax, [esp + 0x14]
push eax
push 0x42deb0
xor edi, edi
push 1
push edi
push 0x42dea0
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
mov dword [ebp], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x40629b
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40629f
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov esi, eax
cmp esi, edi
jl 0x40629b
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x4062b1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406274
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push ebp
push eax
call edx
mov esi, eax
test esi, esi
je 0x406296
push 0x3e8
call ebx
mov eax, edi
add edi, 1
cmp eax, 0x1e
jl 0x406270
test esi, esi
pop ebx
jl 0x40629b
xor esi, esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
xor edi, edi
cmp ecx, edi
je 0x4062b5
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4062c1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret
Function at 0x4108f0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x437070]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x94]
push ebx
mov bx, word [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa4]
push esi
mov esi, dword [esp + 0xac]
mov edx, dword [esi]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x9c]
sub ecx, eax
cmp edx, 4
push edi
mov edi, dword [esp + 0xa8]
jne 0x410978
test edi, edi
mov edx, dword [esi + 4]
mov word [esp + 0x14], 2
mov word [esp + 0x16], bx
mov dword [esp + 0x18], edx
je 0x410966
mov edi, dword [edi + 0x8c]
jmp 0x41096f
mov edx, dword [esp + 0x10]
mov edx, dword [edx]
mov edi, dword [edx + 0x70]
test ebp, ebp
je 0x4109cb
mov edi, dword [ebp + 4]
jmp 0x4109cb
cmp edx, 6
jne 0x410a88
mov word [esp + 0x16], bx
mov ebx, dword [esi + 4]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esi + 8]
mov dword [esp + 0x20], ebx
mov ebx, dword [esi + 0xc]
xor edx, edx
cmp edi, edx
mov dword [esp + 0x24], ebx
mov ebx, dword [esi + 0x10]
mov word [esp + 0x14], 0x17
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edx
je 0x4109bf
mov edi, dword [edi + 0x8c]
jmp 0x4109cb
mov edx, dword [esp + 0x10]
mov edx, dword [edx]
mov edi, dword [edx + 0x90]
cmp edi, 0xffffffff
je 0x410a93
push 0x80
lea edx, [esp + 0x18]
push edx
push 0
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jg 0x410a93
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x410a81
call edi
mov edi, eax
test edi, edi
je 0x410a8f
mov eax, dword [esi]
cmp eax, 4
jne 0x410a1f
mov ecx, dword [esi + 4]
cmp ecx, dword [0x42dfa8]
je 0x410a8f
cmp eax, 6
jne 0x410a50
mov edx, dword [esi + 4]
cmp edx, dword [0x42dfac]
jne 0x410a50
mov eax, dword [esi + 8]
cmp eax, dword [0x42dfb0]
jne 0x410a50
mov ecx, dword [esi + 0xc]
cmp ecx, dword [0x42dfb4]
jne 0x410a50
mov edx, dword [esi + 0x10]
cmp edx, dword [0x42dfb8]
je 0x410a8f
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2750
je 0x410a7a
call esi
cmp eax, 0x2742
je 0x410a7a
call esi
cmp eax, 0x2751
je 0x410a7a
call esi
cmp eax, 0x2743
jne 0x410a8f
mov eax, 0xfffeffe6
jmp 0x410a95
mov edi, 0xffffe5a5
jmp 0x410a0d
mov eax, 0xfffefffc
jmp 0x410a95
mov eax, edi
jmp 0x410a95
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423888
add esp, 0x88
ret

Function at 0x410e50
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push edi
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jge 0x410e92
push esi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x410e8a
call esi
test eax, eax
je 0x410e8f
call esi
test eax, eax
jne 0x410e8f
pop esi
xor eax, eax
pop edi
ret
mov eax, edi
pop esi
pop edi
ret
Function at 0x410ea0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push edi
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jge 0x410ee2
push esi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x410eda
call esi
test eax, eax
je 0x410edf
call esi
test eax, eax
jne 0x410edf
pop esi
xor eax, eax
pop edi
ret
mov eax, edi
pop esi
pop edi
ret

Function at 0x410ef0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x3f8
mov eax, dword [0x437070]
xor eax, esp
mov dword [esp + 0x3f4], eax
mov eax, dword [esp + 0x3fc]
push esi
push 0x5c
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x10], 0
call fcn.00402820
add esp, 0xc
cmp byte [esp + 8], 0
lea esi, [esp + 8]
je 0x410f53
nop
movsx edx, byte [esi]
push edx
call fcn.004243d0
add esp, 4
cmp byte [esi + 1], 0
mov byte [esi], al
jne 0x410f4b
cmp al, 0x2e
jne 0x410f4b
mov byte [esi], 0
add esi, 1
cmp byte [esi], 0
jne 0x410f30
lea eax, [esp + 4]
push eax
push str.SOFTWAREApple_Inc.BonjourDynDNSStateHostNames
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
pop esi
jne 0x410f9d
xor ecx, ecx
cmp dword [esp + 0x400], ecx
push 4
lea edx, [esp + 0x404]
push edx
push 4
sete cl
push eax
mov eax, dword [esp + 0x10]
push str.Status
push eax
mov dword [esp + 0x418], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
test eax, eax
je 0x410fab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x3f4]
xor ecx, esp
call fcn.00423888
add esp, 0x3f8
ret
Function at 0x411050
Capabilities:
Get hostname

Disassembly:
sub esp, 0x148
mov eax, dword [0x437070]
xor eax, esp
mov dword [esp + 0x144], eax
push ebp
mov ebp, dword [esp + 0x150]
push esi
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x54]
push ecx
push 5
mov byte [esp + 0x5c], 0
mov dword [esp + 0x18], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
je 0x411095
xor edi, edi
jmp 0x4110a9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x411104
call esi
mov edi, eax
test edi, edi
jne 0x4110b0
cmp byte [esp + 0x50], 0
jne 0x4110cd
mov edx, dword [str.My_Computer]
mov eax, dword [0x42f7a4]
mov ecx, dword [0x42f7a8]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
lea eax, [esp + 0x50]
mov byte [esp + 0x14f], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4110e0
sub eax, edx
cmp eax, 0x3f
jae 0x41110b
lea eax, [esp + 0x50]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4110f7
sub eax, edx
jmp 0x41110d
mov edi, 0xffffe5a8
jmp 0x4110b0
mov al, 0x3f
movzx edx, al
mov byte [esp + 0x10], al
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x19]
push ecx
call fcn.004239d0
lea esi, [ebp + 0x8ec]
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.00402890
add esp, 0x14
cmp byte [esi], 0
jne 0x41114b
push str.My_Computer
push esi
call fcn.00402730
add esp, 8
push ebp
call fcn.0040e840
mov ecx, dword [esp + 0x154]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00423888
add esp, 0x148
ret
Function at 0x411b80
Capabilities:
Get routing table

Disassembly:
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [esp + 0xc]
push eax
push ebx
mov dword [esp + 0x14], 0
xor esi, esi
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x411bfb
mov ecx, dword [esp + 8]
push edi
push ecx
call fcn.004236b5
mov edi, eax
add esp, 4
test edi, edi
je 0x411bf4
push ebx
lea edx, [esp + 0x10]
push edx
push edi
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
jne 0x411beb
mov ecx, dword [edi]
test ecx, ecx
jbe 0x411beb
lea eax, [edi + 0x28]
lea ecx, [ecx]
cmp dword [eax - 0x24], 0
jne 0x411be3
test esi, esi
je 0x411bde
cmp dword [eax], ebx
jae 0x411be3
mov esi, dword [eax - 0x14]
mov ebx, dword [eax]
add eax, 0x38
sub ecx, 1
jne 0x411bd0
push edi
call fcn.004237fa
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
mov eax, esi
pop esi
pop ebx
pop ecx
ret

Function at 0x411cc0
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x437070]
xor eax, esp
mov dword [esp + 0x10], eax
push edi
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
setne al
test eax, eax
je 0x411d3b
xor eax, eax
mov dword [esp + 4], eax
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov ax, word [0x42df9c]
push 0
mov word [esp + 0xc], 2
mov word [esp + 0xe], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
lea ecx, [esp + 0xc]
push ecx
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_bind]
mov esi, eax
neg esi
sbb esi, esi
push edi
add esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x14]
pop edi
xor ecx, esp
call fcn.00423888
add esp, 0x14
ret

Function at 0x411d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov dword [esi], 0x3ed
mov dword [eax], 0
xor edi, edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
test eax, eax
je 0x411d83
push eax
call fcn.004237fa
add esp, 4
mov edx, dword [esi]
push edx
call fcn.004236b5
mov ecx, dword [esp + 0x20]
add esp, 4
test eax, eax
mov dword [ecx], eax
je 0x411dbd
push esi
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push 0
push eax
push ebp
call ebx
add edi, 1
cmp eax, 0xea
jne 0x411dc7
cmp edi, 0x64
jl 0x411d70
pop edi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop ebp
mov eax, 0xfffefffd
pop ebx
pop ecx
ret
test eax, eax
jne 0x411df1
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x411df1
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
push eax
push 0x42f7ac
push ebp
mov dword [esp + 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
pop edi
pop ebp
pop ebx
pop ecx
ret
Function at 0x412c80
Capabilities:
Get networking parameters

Disassembly:
sub esp, 0x28
mov eax, dword [0x437070]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x18], esi
xor ebp, ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
call fcn.00411b80
mov edi, eax
cmp edi, esi
je 0x412d04
mov dword [esp + 0x10], esi
xor ebx, ebx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push ecx
push edi
call sub.IPHLPAPI.DLL_GetPerAdapterInfo
cmp eax, 0x6f
jne 0x412cf3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.0042442b
add esp, 8
test eax, eax
mov dword [esp + 0x18], eax
je 0x412dff
add ebx, 1
cmp ebx, 0x64
jl 0x412cb3
jmp 0x412dcc
test eax, eax
jne 0x412dcc
mov eax, dword [esp + 0x18]
add eax, 0xc
jmp 0x412d5d
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x10], 0x248
xor edi, edi
test ebp, ebp
je 0x412d1f
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x10]
push ecx
push 0x40
call ebx
mov ebp, eax
test ebp, ebp
je 0x412dff
lea edx, [esp + 0x10]
push edx
push ebp
call sub.IPHLPAPI.DLL_GetNetworkParams
cmp eax, 0x6f
jne 0x412d4f
add edi, 1
cmp edi, 0x64
jl 0x412d14
jmp 0x412ddd
test eax, eax
jne 0x412ddd
lea eax, [ebp + 0x10c]
test eax, eax
mov edi, eax
je 0x412dcc
lea ecx, [edi + 4]
lea ebx, [esp + 0x20]
mov dword [esp + 0x1c], esi
call fcn.00411e00
test eax, eax
jne 0x412dc6
push 0x18
call fcn.004236b5
mov esi, eax
add esp, 4
test esi, esi
je 0x412dcc
cmp dword [esp + 0x14], 0
mov eax, dword [esp + 0x20]
mov dword [esi], eax
mov ecx, dword [esp + 0x24]
mov dword [esi + 4], ecx
mov edx, dword [esp + 0x28]
mov dword [esi + 8], edx
mov eax, dword [esp + 0x2c]
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 0
jne 0x412dbb
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x412dc6
mov dword [eax + 0x14], esi
mov edi, dword [edi]
test edi, edi
jne 0x412d63
mov eax, dword [esp + 0x18]
test eax, eax
je 0x412ddd
push eax
call fcn.004237fa
add esp, 4
test ebp, ebp
je 0x412de8
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00423888
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423888
add esp, 0x28
ret
Function at 0x412e20
Capabilities:
Get local ipv4 addresses

Disassembly:
sub esp, 0x518
mov eax, dword [0x437070]
xor eax, esp
mov dword [esp + 0x514], eax
push ebx
push ebp
push esi
xor ebx, ebx
xor ebp, ebp
push edi
xor edi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebp
xor esi, esi
lea eax, [esp + 0x1c]
push eax
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x412e9d
mov ecx, dword [esp + 0x1c]
push ecx
push edi
call fcn.0042442b
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x412fe4
add esi, 1
cmp esi, 0x64
jl 0x412e48
mov esi, ebx
cmp edi, ebx
je 0x412e87
push edi
call fcn.004237fa
add esp, 4
cmp ebp, ebx
je 0x412fe6
push ebp
call fcn.004237fa
add esp, 4
jmp 0x412fe6
cmp eax, ebx
jne 0x412e78
call fcn.00411b80
cmp edi, ebx
mov ecx, edi
je 0x412fe4
lea edx, [ecx + 0x1b0]
cmp edx, ebx
je 0x412ed8
cmp byte [edx], bl
je 0x412ed8
lea edx, [ecx + 0x1d8]
cmp edx, ebx
je 0x412ed8
cmp byte [edx], bl
je 0x412ed8
cmp eax, ebx
je 0x412ee0
cmp dword [ecx + 0x19c], eax
je 0x412ee0
mov ecx, dword [ecx]
cmp ecx, ebx
jne 0x412eb0
jmp 0x412e78
add ecx, 8
push ecx
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
push str._s_s
lea edx, [esp + 0x130]
push 0x400
push edx
call fcn.00424705
add esp, 0x14
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x128]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x412e78
mov eax, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x14]
push edx
push str.Domain
push eax
lea esi, [esp + 0x30]
call fcn.00411d50
mov ebp, dword [esp + 0x20]
add esp, 0x10
cmp ebp, ebx
je 0x412f59
cmp byte [ebp], bl
jne 0x412f79
push ebp
call fcn.004237fa
add esp, 4
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x14]
push ecx
push str.DhcpDomain
push edx
lea esi, [esp + 0x30]
call fcn.00411d50
mov ebp, dword [esp + 0x20]
add esp, 0x10
cmp ebp, ebx
je 0x412e78
cmp byte [ebp], bl
je 0x412e78
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.00402770
add esp, 8
test eax, eax
jne 0x412fa6
cmp byte [esp + 0x24], bl
jne 0x412e78
push 0x104
call fcn.004236b5
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x412e7a
lea ecx, [esp + 0x24]
push ecx
call fcn.00402430
movzx eax, ax
push eax
lea edx, [esp + 0x2c]
push edx
push esi
call fcn.004239d0
add esp, 0x10
mov dword [esi + 0x100], ebx
jmp 0x412e7a
mov esi, ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x412ff5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x524]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423888
add esp, 0x518
ret
Function at 0x413010
Capabilities:
Get local ipv4 addresses

Disassembly:
sub esp, 0xc
push ebx
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0x10], ebp
xor esi, esi
mov edi, edi
lea eax, [esp + 0x10]
push eax
push ebp
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov ebx, eax
cmp ebx, 0x6f
mov dword [esp + 0xc], ebx
jne 0x413062
mov ecx, dword [esp + 0x10]
push ecx
push ebp
call fcn.0042442b
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x413054
add esi, 1
cmp esi, 0x64
jl 0x413020
jmp 0x4130d1
mov dword [esp + 0xc], 0xffffe5b8
mov ebx, dword [esp + 0xc]
jmp 0x4130d1
test ebx, ebx
jne 0x4130d1
call fcn.00411b80
test ebp, ebp
mov dword [esp + 0x14], eax
mov esi, ebp
je 0x4130de
push edi
lea ecx, [esi + 0x1b0]
test ecx, ecx
je 0x4130c4
cmp byte [ecx], 0
je 0x4130c4
lea edi, [esi + 0x1d8]
test edi, edi
je 0x4130c4
cmp byte [edi], 0
je 0x4130c4
mov ebx, dword [esp + 0x24]
call fcn.00411e00
test eax, eax
jne 0x4130c0
mov ebx, dword [esp + 0x28]
mov ecx, edi
call fcn.00411e00
test eax, eax
jne 0x4130c0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4130cc
cmp dword [esi + 0x19c], eax
je 0x4130cc
mov ebx, dword [esp + 0x10]
mov esi, dword [esi]
test esi, esi
jne 0x413076
jmp 0x4130d0
mov ebx, dword [esp + 0x10]
pop edi
test ebp, ebp
je 0x4130de
push ebp
call fcn.004237fa
add esp, 4
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
Function at 0x4131d0
Capabilities:
Get hostname
Query or enumerate registry value

Disassembly:
sub esp, 0x408
mov eax, dword [0x437070]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
push ebp
mov ebp, dword [esp + 0x414]
mov eax, dword [ebp]
xor ebx, ebx
push esi
add eax, 0x3c
xor esi, esi
mov byte [esp + 0x110], bl
mov byte [esp + 0x10], bl
cmp dword [eax], ebx
jne 0x41322a
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetServiceslanmanserverparameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
je 0x41322a
mov eax, dword [ebp]
mov dword [eax + 0x3c], ebx
mov eax, dword [ebp]
cmp dword [eax + 0x3c], ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4132a8
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x218]
push edx
push ebx
push ebx
mov dword [esp + 0x20], 0x200
mov eax, dword [eax + 0x3c]
push str.srvcomment
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, ebx
jne 0x4132a4
push ebx
push ebx
push 0x100
lea ecx, [esp + 0x20]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x228]
push edx
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x41328f
xor eax, eax
jmp 0x41329e
call edi
test eax, eax
je 0x413299
call edi
jmp 0x41329e
mov eax, 0xffffe5d4
cmp eax, ebx
mov esi, eax
je 0x4132ac
mov byte [esp + 0x14], bl
cmp esi, ebx
jne 0x4132b2
cmp byte [esp + 0x14], bl
jne 0x413308
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x118]
push ecx
push 5
mov dword [esp + 0x1c], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
jne 0x4132e5
call edi
test eax, eax
je 0x413364
call edi
mov esi, eax
cmp esi, ebx
jne 0x413304
lea edx, [esp + 0x14]
push 0x100
push edx
lea eax, [esp + 0x11c]
call fcn.00411eb0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x41330c
mov byte [esp + 0x14], bl
cmp esi, ebx
jne 0x413312
cmp byte [esp + 0x14], bl
jne 0x41332f
mov eax, dword [str.My_Computer]
mov ecx, dword [0x42f7a4]
mov edx, dword [0x42f7a8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x14]
mov byte [esp + 0x113], bl
lea edx, [eax + 1]
pop edi
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x413340
sub eax, edx
cmp eax, 0x3f
jae 0x41336b
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x413357
sub eax, edx
jmp 0x413370
mov esi, 0xffffe5a8
jmp 0x413304
mov eax, 0x3f
mov byte [ebp + 0x8ac], al
movzx eax, al
push eax
lea ecx, [esp + 0x14]
push ecx
add ebp, 0x8ad
push ebp
call fcn.004239d0
mov ecx, dword [esp + 0x41c]
add esp, 0xc
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423888
add esp, 0x408
ret
Function at 0x414a00
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ecx + 0x38], eax
mov edx, dword [edi]
cmp dword [edx + 0x38], 0
jne 0x414a36
call ebx
test eax, eax
je 0x414aae
call ebx
mov esi, eax
test esi, esi
jne 0x414a8f
mov eax, dword [edi]
lea ecx, [esp + 8]
push ecx
push 0
push edi
push 0x414740
push 0
push 0
mov dword [eax + 0x48], 0xfffefff3
call fcn.00424a84
add esp, 0x18
test eax, eax
jne 0x414a6a
call ebx
test eax, eax
je 0x414aae
call ebx
mov esi, eax
test esi, esi
jne 0x414a8f
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x414a8a
call ebx
test eax, eax
je 0x414aae
call ebx
mov esi, eax
test esi, esi
jne 0x414a8f
mov ecx, dword [edi]
mov esi, dword [ecx + 0x48]
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x414aa8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
mov dword [eax + 0x38], 0
mov eax, esi
pop esi
pop ebx
pop ecx
ret
mov esi, 0xffffe5d4
jmp 0x414a8f