joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449180
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.004492d0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x4491a0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x449181
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.004492d0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x4491a0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x4491d0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x449227
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44923d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.00449260
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x449260
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x4492f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x449339
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x4497b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46bd30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00449360
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004493e0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004493e0
lea ecx, [esi + 0xc]
call fcn.0045da16
lea ecx, [esi + 0x10]
call fcn.0045da16
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044bc10
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044bc10
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044bc10
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0045da8b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0045da8b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44a458
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46bf58
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44a468
call fcn.0044a980
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44a54b
cmp byte [edi], 0
je 0x44a54b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44a48d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00449180
test eax, eax
jne 0x44a4ad
push 0x494440
lea ecx, [esi + 0x38]
call fcn.0045dbc8
jmp 0x44a54b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.004491d0
test eax, eax
jne 0x44a4dc
mov ecx, esi
call fcn.004492d0
push edi
add esi, 0x38
push 0x49441c
push esi
call fcn.0045ba27
add esp, 0xc
jmp 0x44a54b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044b200
test eax, eax
je 0x44a544
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044a620
test eax, eax
jne 0x44a560
push edi
lea eax, [esi + 0x38]
push 0x4943f8
push eax
call fcn.0045ba27
add esp, 0xc
mov ecx, esi
call fcn.0044a980
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44a608
mov ecx, dword [0x4946b0]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0045ba27
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00449280
test eax, eax
jne 0x44a5ca
push 0x4943dc
lea ecx, [esi + 0x38]
call fcn.0045dbc8
jmp 0x44a5da
push 0xfa
mov ecx, esi
call fcn.0044b200
test eax, eax
jne 0x44a5f7
mov ecx, esi
call fcn.0044a980
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045da8b
jmp 0x44a54b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045da8b
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x45fe2f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45fe67
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045dee6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045debe
jmp 0x45fe73
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46151d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46155f
call fcn.0046709e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46155f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x461556
xor eax, eax
jmp 0x461567
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046156d
pop edi
pop esi
pop ebx
ret 4

Function at 0x4675ce
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4675fc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46761a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00467534
jmp 0x46761a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46761a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00467534
test edi, edi
mov eax, edi
jne 0x467604
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4026e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40400c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402778
push 0x80000002
call fcn.00401068
test eax, eax
jne 0x402758
xor eax, eax
push ebp
push 0x402751
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402794
mov eax, dword [ebp - 4]
push eax
call fcn.00401070
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402758
mov eax, dword [ebp - 4]
push eax
call fcn.00401060
ret
mov ax, word [0x40400c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40400c], ax
mov esp, ebp
pop ebp
ret
Function at 0x405a60
Capabilities:
Reference alidns dns server
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x45906c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x118], 0x448b18
mov dword [ebp - 0x120], 1
mov dword [ebp - 0x124], 0
mov eax, 1
mov word [ebp - 0x108], ax
mov ecx, dword [str.223.5.5.5]
mov dword [ebp - 0x104], ecx
mov edx, dword [0x448b28]
mov dword [ebp - 0x100], edx
mov ax, word [0x448b2c]
mov word [ebp - 0xfc], ax
push 8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
mov dword [ecx], 1
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + edx + 4], eax
push 0
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x10c]
push eax
push 8
movzx ecx, word [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.DNSAPI.dll_DnsQuery_A]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x405b7c
movzx eax, word [ebp - 0x108]
cmp eax, 1
jne 0x405b66
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x118]
push edx
push str.Failed_to_query_the_host_record_for__s_and_the_error_is__d__n
call fcn.00401450
add esp, 0xc
jmp 0x405b7a
mov eax, dword [ebp - 0x114]
push eax
push str.Failed_to_query_the_PTR_record_and_the_error_is__d__n
call fcn.00401450
add esp, 8
jmp 0x405bf0
movzx ecx, word [ebp - 0x108]
cmp ecx, 1
jne 0x405bca
mov edx, dword [ebp - 0x110]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov edx, dword [ebp - 0x118]
push edx
push str.The_IP_address_of_the_host__s_is__s__n
call fcn.00401450
add esp, 0xc
push 1
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.DNSAPI.dll_DnsFree]
jmp 0x405bf0
mov ecx, dword [ebp - 0x110]
mov edx, dword [ecx + 0x18]
push edx
push str.The_host_name_is__s__n
call fcn.00401450
add esp, 8
push 1
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.DNSAPI.dll_DnsFree]
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004151bc
mov esp, ebp
pop ebp
ret
Function at 0x406060
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x45906c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x198], ecx
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x406097
xor eax, eax
jmp 0x40613c
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x19c], eax
mov ecx, dword [ebp - 0x198]
mov edx, dword [ebp - 0x19c]
mov dword [ecx + 4], edx
cmp dword [ebp - 0x19c], 0xffffffff
jne 0x4060c5
xor eax, eax
jmp 0x40613c
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ecx, dword [ebp - 0x198]
mov dword [ecx + 8], eax
push 1
mov edx, dword [ebp - 0x198]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x198]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x4381a9
push 0x10f
call fcn.004154d6
add esp, 8
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x198]
mov ecx, dword [ebp - 0x1a0]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x198]
cmp dword [edx + 0x10], 0
jne 0x406127
xor eax, eax
jmp 0x40613c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x198]
mov word [ecx + 0xc], ax
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004151bc
mov esp, ebp
pop ebp
ret
Function at 0x406250
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c], ecx
push 0x10f
push 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00417ec0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
mov ax, word [edx + 0xc]
mov word [ecx], ax
push 0x100
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x20]
mov word [ecx + 2], ax
push 1
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp - 0x20]
mov word [edx + 4], ax
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov word [ecx + 6], ax
xor edx, edx
mov eax, dword [ebp - 0x20]
mov word [eax + 8], dx
xor ecx, ecx
mov edx, dword [ebp - 0x20]
mov word [edx + 0xa], cx
push 1
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x10], ax
push 1
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x14], ax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x24]
mov al, byte [edx]
mov byte [ebp - 1], al
add dword [ebp - 0x24], 1
cmp byte [ebp - 1], 0
jne 0x4062eb
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov dx, word [ebp - 0x38]
mov word [ebp - 0xc], dx
movzx eax, word [ebp - 0xc]
add eax, 2
push eax
call fcn.0041e120
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40632e
xor eax, eax
jmp 0x406410
movzx ecx, word [ebp - 0xc]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.004068b0
test eax, eax
jne 0x406351
xor eax, eax
jmp 0x406410
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x28]
mov cl, byte [eax]
mov byte [ebp - 2], cl
add dword [ebp - 0x28], 1
cmp byte [ebp - 2], 0
jne 0x406360
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
add eax, 1
mov word [ebp - 8], ax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xc
mov dword [ebp - 0x1c], ecx
movzx edx, word [ebp - 8]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004173c0
add esp, 0xc
movzx edx, word [ebp - 8]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov cx, word [ebp - 0x10]
mov word [eax], cx
mov edx, dword [ebp - 0x1c]
add edx, 2
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov cx, word [ebp - 0x14]
mov word [eax], cx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0041e11b
add esp, 4
movzx eax, word [ebp - 8]
add eax, 0x10
mov word [ebp - 0x18], ax
push 0x10
lea ecx, [ebp + 8]
push ecx
push 0
movzx edx, word [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x40640b
xor eax, eax
jmp 0x406410
mov eax, 1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x408ea0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0xbb8
push 0
push 0
push 0xbb8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov ecx, 1
test ecx, ecx
je 0x408ef9
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x408eee
jmp 0x408ef9
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
jmp 0x408ed0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40b490
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
call fcn.0041fdc9
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call fcn.0041fdc9
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0041ec93
add esp, 0x10
fstp qword [ebp - 0x18]
sub esp, 8
movsd xmm0, qword [ebp - 0x18]
movsd qword [esp], xmm0
push str.time:__.0f_s_n
call fcn.00401450
add esp, 0xc
movsd xmm0, qword [ebp - 0x18]
comisd xmm0, xmmword [0x4543a8]
jb 0x40b530
movsd xmm0, qword [0x4543b0]
comisd xmm0, xmmword [ebp - 0x18]
jbe 0x40b530
push str.success__n
call fcn.00401450
add esp, 4
push 1
push 0x44af7c
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x40b53d
push 0x44af88
call fcn.00401450
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x40b550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 1], 0
push 0x44b118
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40b59b
jmp 0x40b5ea
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40b5b4
jmp 0x40b5ea
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b5cd
jmp 0x40b5ea
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40b5e2
jmp 0x40b5ea
mov byte [ebp - 1], 1
xor edx, edx
jne 0x40b57c
cmp dword [ebp - 0x14], 0
je 0x40b619
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.004071f0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
mov ecx, dword [ebp + 0x14]
call fcn.00407240
push eax
call fcn.004173c0
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x40b629
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x40b630
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436b56
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x45906c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x120], str.SOFTWAREMicrosoftOffice15.0CommonInstallRoot
mov dword [ebp - 0x11c], str.SOFTWAREMicrosoftOffice16.0CommonInstallRoot
mov dword [ebp - 0x118], str.SOFTWAREMicrosoftOfficeClickToRun
xor eax, eax
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x16c], eax
lea ecx, [ebp - 0x18c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx edx, word [ebp - 0x18c]
cmp edx, 9
je 0x40b6cf
jmp 0x40b8a8
push 0x104
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.00417ec0
add esp, 0xc
mov dword [ebp - 0x160], 0x104
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x164], 1
mov byte [ebp - 0x151], 0
mov dword [ebp - 0x15c], 0
jmp 0x40b725
mov ecx, dword [ebp - 0x15c]
add ecx, 1
mov dword [ebp - 0x15c], ecx
cmp dword [ebp - 0x15c], 3
jae 0x40b7e6
lea edx, [ebp - 0x158]
push edx
push 0x20119
push 0
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp + eax*4 - 0x120]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b7e1
lea edx, [ebp - 0x160]
push edx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x164]
push ecx
push 0
push str.Path
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b797
mov byte [ebp - 0x151], 1
jmp 0x40b7e6
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x164]
push edx
push 0
push str.InstallPath
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b7e1
push str._rootOffice16
lea ecx, [ebp - 0x114]
push ecx
call fcn.004104d0
add esp, 8
mov byte [ebp - 0x151], 1
jmp 0x40b7e6
jmp 0x40b716
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x19c], 0
lea ecx, [ebp - 0x150]
call fcn.00403690
mov dword [ebp - 4], 0
push 0x44b1d0
lea ecx, [ebp - 0x138]
call fcn.00403620
mov byte [ebp - 4], 1
lea edx, [ebp - 0x150]
push edx
lea eax, [ebp - 0x138]
push eax
push 0x66
mov ecx, dword [ebp - 0x168]
push ecx
call fcn.0040b550
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x138]
call fcn.00403550
lea edx, [ebp - 0x114]
push edx
push str._s__n
call fcn.00401450
add esp, 8
cmp dword [ebp - 0x158], 0
je 0x40b896
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.00403550
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004151bc
mov esp, ebp
pop ebp
ret
Function at 0x40bb60
Capabilities:
Hide graphical window
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x45906c]
xor eax, ebp
mov dword [ebp - 4], eax
push str.MouseRawWnd
lea ecx, [ebp - 0x1c]
call fcn.00403620
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0x1e0
push 0x280
push 0
push 0
push 0
push str.ABCD
lea ecx, [ebp - 0x1c]
call fcn.00403470
push eax
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40bbcd
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x1c]
call fcn.00403550
mov eax, dword [ebp - 0x24]
jmp 0x40bc42
push 5
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 0xc
imul ecx, eax, 0
mov edx, 1
mov word [ebp + ecx - 0x34], dx
mov eax, 0xc
imul ecx, eax, 0
mov edx, 2
mov word [ebp + ecx - 0x32], dx
mov eax, 0xc
imul ecx, eax, 0
mov dword [ebp + ecx - 0x30], 0x30
mov edx, 0xc
imul eax, edx, 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp + eax - 0x2c], ecx
push 0xc
push 1
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004151bc
mov esp, ebp
pop ebp
ret