joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46cca0
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x569ef3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push ebp
push esi
lea eax, [esp + 0x1c]
push edi
xor edi, edi
push eax
push 0xf003f
push edi
push str.SoftwareClassesCLSID_OBJID.Pro7MR
push SysReAllocStringLen
mov ebp, ecx
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46ce9f
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x34]
push edx
push eax
push edi
push edi
push ecx
mov dword [esp + 0x48], 1
mov dword [esp + 0x44], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46ce84
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x10]
push edx
call fcn.00530bfd
mov eax, dword [esp + 0x10]
mov dword [esp + 0x94], edi
mov ecx, dword [eax - 8]
cmp ecx, edi
je 0x46ce70
xor esi, esi
cmp ecx, edi
jle 0x46cd69
mov cl, byte [esi + eax]
mov eax, esi
cdq
mov ebx, 0xa
idiv ebx
sub cl, dl
push ecx
push esi
lea ecx, [esp + 0x18]
call fcn.005310d5
mov eax, dword [esp + 0x10]
inc esi
cmp esi, dword [eax - 8]
jl 0x46cd45
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x6c]
push ecx
push edx
push str._s__x__x__x
push eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x40], edi
call fcn.00515758
add esp, 0x18
cmp eax, 4
jne 0x46ce70
lea eax, [esp + 0x64]
mov ecx, ebp
push eax
call fcn.0046cec0
test eax, eax
je 0x46ce70
mov ecx, dword [esp + 0x14]
lea edx, [ecx - 0x95e]
mov ecx, dword [esp + 0x24]
lea eax, [ecx + 0x54]
imul edx, eax
mov eax, dword [esp + 0x28]
add edx, 0x22d
cmp eax, edx
jne 0x46ce70
mov eax, dword [0x5d2d10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
push ecx
lea ecx, [esp + 0x20]
mov bl, 2
push 0x5c4d50
push ecx
mov byte [esp + 0xa0], bl
call fcn.00528823
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push edx
push 0x5c4d50
push eax
call fcn.00528823
add esp, 0x14
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00530904
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
mov byte [esp + 0xa0], 3
call fcn.00530904
mov ecx, ebp
mov byte [esp + 0x9c], bl
call fcn.0046e190
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 1
call fcn.00530b8f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x94], 0
call fcn.00530b8f
lea ecx, [esp + 0x10]
mov dword [esp + 0x94], 0xffffffff
call fcn.00530b8f
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareClassesCLSID_OBJID.Pro7MR
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x88
ret
Function at 0x46dfa0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x56a298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [0x5d2d10]
push edi
xor edi, edi
mov dword [esp + 4], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x5c], edi
push ecx
push 0xf003f
push edi
push str.SoftwareClassesCLSID_OBJID.Pro7
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46e144
push ebx
push ebp
lea edx, [esp + 0x24]
push esi
lea eax, [esp + 0x38]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x30]
push eax
push ecx
push edi
push edi
push edx
mov dword [esp + 0x44], 1
mov dword [esp + 0x40], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46e136
lea eax, [esp + 0x38]
lea ecx, [esp + 0x10]
push eax
call fcn.00530d18
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
cmp ecx, edi
je 0x46e136
xor esi, esi
cmp ecx, edi
jle 0x46e067
mov al, byte [esi + eax]
lea ecx, [esp + 0x10]
dec al
push eax
push esi
call fcn.005310d5
mov eax, dword [esp + 0x10]
inc esi
cmp esi, dword [eax - 8]
jl 0x46e04d
lea ecx, [esp + 0x34]
push ecx
call fcn.00515905
mov ebp, dword [esp + 0x78]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push ebp
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
push edx
push str._lx__x__x__lx__x
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x40], edi
call fcn.00515758
add esp, 0x20
cmp eax, 5
jne 0x46e136
mov ebx, dword [esp + 0x18]
cmp ebx, edi
mov edi, dword [esp + 0x20]
jge 0x46e0c5
test edi, edi
jl 0x46e136
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
cmp ecx, eax
jg 0x46e136
cmp dword [ebp], eax
jg 0x46e136
test ebx, ebx
jle 0x46e0ef
mov edx, eax
sub edx, ecx
cmp edx, 0x15180
jle 0x46e0ef
dec ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x70]
test edi, edi
mov dword [esi], 0xffffffff
jle 0x46e11b
sub eax, dword [ebp]
mov ecx, eax
mov eax, 0xc22e4507
imul ecx
add edx, ecx
mov ecx, edi
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add edx, eax
sub ecx, edx
mov dword [esi], ecx
cmp ebx, 0xffffffff
je 0x46e124
test ebx, ebx
jle 0x46e136
cmp edi, 0xffffffff
je 0x46e12e
cmp dword [esi], 0
jle 0x46e136
mov dword [esp + 0x24], 1
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
pop ebx
lea ecx, [esp + 4]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00530b8f
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x18]
pop edi
mov dword fs:[0], ecx
add esp, 0x5c
ret
Function at 0x46e480
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
call fcn.00531c00
add esp, 4
mov ecx, dword [ebp + 0x28]
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push reloc.oledlg.dll_OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
push esi
je 0x46e4da
call fcn.00531c29
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
push ebx
call fcn.004efc10
mov edx, dword [esp + 0x1c]
add esp, 8
push eax
push esi
push 3
push 0
push 0x5c6cfc
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00531c29
add esp, 4
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
sete al
ret 4

Function at 0x46e5c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [ecx + 0x18]
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push reloc.oledlg.dll_OleUIInsertObjectA
mov dword [esp + 0x18], 0x12c
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46e62f
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.RegUserName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46e624
mov ecx, dword [esp + 4]
mov dword [eax], ecx
mov eax, 1
add esp, 0xc
ret 8
xor eax, eax
add esp, 0xc
ret 8

Function at 0x46e640
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [ecx + 0x28]
push esi
lea eax, [esp + 4]
push edi
push eax
push 0x20019
push 0
push ecx
push reloc.oledlg.dll_OleUIInsertObjectA
mov dword [esp + 0x20], 0x12c
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x46e676
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov edx, dword [esp + 0xc]
push eax
push ecx
push 0
push 0x5c6d04
push edx
call edi
mov esi, eax
test esi, esi
je 0x46e6b4
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
cmp dword [esp + 0xc], 0x14
jbe 0x46e6c5
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x20]
test eax, eax
je 0x46e6d3
mov dword [eax], 0x12c
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x46e6f2
mov edx, dword [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x5c6cfc
push edx
call edi
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
add esp, 0xc
ret 0xc
Function at 0x46ef00
Capabilities:
Create thread

Disassembly:
push esi
push 0xc
mov esi, ecx
call fcn.00531c00
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
push 0
push 0x46eaa0
mov dword [eax], esi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
call fcn.005164dc
add esp, 0x10
pop esi
ret 8
Function at 0x46f3d0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x46f40d
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov cx, word [esp + 0x28]
mov dx, word [esp + 0x2a]
mov word [esi], cx
mov word [esi + 2], dx
pop edi
mov eax, 4
pop esi
add esp, 0x24
ret 4

Function at 0x46f420
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
push esi
mov esi, dword [esp + 0x28]
test esi, esi
je 0x46f443
lea eax, [esp + 4]
mov dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0xc]
mov dword [esi], ecx
mov eax, 4
pop esi
add esp, 0x20
ret 4

Function at 0x46f550
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [esp + 0xa8]
test esi, esi
mov dword [esp + 8], 0x19
je 0x46f630
push edi
mov ecx, 6
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x24]
pop edi
cmp eax, 2
jne 0x46f5e9
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46f630
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push esi
push eax
push 0
push str.ProductId
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
jmp 0x46f62a
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46f630
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push esi
push edx
push eax
mov eax, dword [esp + 0x14]
push str.ProductId
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x14
pop esi
add esp, 0xa0
ret 4
Function at 0x46f750
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x56a3e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
add ecx, 0x10
push str.Register
lea eax, [esp + 0xc]
xor esi, esi
push ecx
push eax
mov dword [esp + 0x10], esi
call fcn.00530e24
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push 0x20019
push esi
push edx
push SysReAllocStringLen
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x46f7c8
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00530b8f
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push edi
push 0x400
call fcn.00531c00
mov edx, dword [esp + 0xc]
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
push esi
push str.REGISTERED
push edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46f81b
push 0x5c6d00
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00531c29
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.00530b8f
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x46f950
Capabilities:
Create thread
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 4
mov ecx, dword [ebp + 8]
push ecx
push 0x46f860
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46f98a
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0xfffffffffffffffe
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 8], eax
mov esp, ebp
pop ebp
ret 4
Function at 0x474420
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x475060
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, 0x20000
je 0x475073
mov eax, 1
test ch, 4
je 0x47507a
or al, 2
test ecx, 0x200000
je 0x475084
or al, 4
test cl, 8
je 0x47508b
or al, 8
test ecx, ecx
jns 0x475091
or al, 0x10
test ch, ch
jns 0x475097
or al, 0x20
test ecx, 0x800000
je 0x4750a1
or al, 0x40
test cl, 2
je 0x4750a8
or al, 0x80
test ecx, 0x8000000
je 0x4750b3
or ah, 1
test ch, 0x40
je 0x4750bb
or ah, 2
test ecx, 0x2000000
je 0x4750c6
or ah, 4
test ecx, 0x40000000
je 0x4750d1
or ah, 8
test cl, cl
jns 0x4750d8
or ah, 0x10
test ch, 2
je 0x4750e0
or ah, 0x20
test ch, 0x10
je 0x4750e8
or ah, 0x40
test ecx, 0x80000
je 0x4750f3
or ah, 0x80
test ch, 1
je 0x4750fd
or eax, 0x10000
test cl, 0x10
je 0x475107
or eax, 0x20000
test ecx, 0x400000
je 0x475114
or eax, 0x40000
test ecx, 0x10000
je 0x475121
or eax, 0x80000
test ecx, 0x10000000
je 0x47512e
or eax, 0x100000
test cl, 0x20
je 0x475138
or eax, 0x200000
test ecx, 0x4000000
je 0x475145
or eax, 0x400000
test ch, 8
je 0x47514f
or eax, 0x800000
test cl, 1
je 0x475159
or eax, 0x1000000
test ecx, 0x1000000
je 0x475166
or eax, 0x2000000
test ecx, 0x100000
je 0x475173
or eax, 0x4000000
test ecx, 0x40000
je 0x475180
or eax, 0x8000000
test ecx, 0x20000000
je 0x47518d
or eax, 0x10000000
test cl, 4
je 0x475197
or eax, 0x20000000
test cl, 0x40
je 0x4751a1
or eax, 0x40000000
test ch, 0x20
je 0x4751ab
or eax, 0x80000000
ret
Function at 0x4751b0
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test cl, 1
je 0x4751c0
mov eax, 0x20000
test cl, 2
je 0x4751c8
or ah, 4
test cl, 4
je 0x4751d2
or eax, 0x200000
test cl, 8
je 0x4751d9
or al, 8
test cl, 0x10
je 0x4751e3
or eax, 0x80000000
test cl, 0x20
je 0x4751eb
or ah, 0x80
test cl, 0x40
je 0x4751f5
or eax, 0x800000
test cl, cl
jns 0x4751fb
or al, 2
test ch, 1
je 0x475205
or eax, 0x8000000
test ch, 2
je 0x47520d
or ah, 0x40
test ch, 4
je 0x475217
or eax, 0x2000000
test ch, 8
je 0x475221
or eax, 0x40000000
test ch, 0x10
je 0x475228
or al, 0x80
test ch, 0x20
je 0x475230
or ah, 2
test ch, 0x40
je 0x475238
or ah, 0x10
test ch, ch
jns 0x475241
or eax, 0x80000
test ecx, 0x10000
je 0x47524c
or ah, 1
test ecx, 0x20000
je 0x475256
or al, 0x10
test ecx, 0x40000
je 0x475263
or eax, 0x400000
test ecx, 0x80000
je 0x475270
or eax, 0x10000
test ecx, 0x100000
je 0x47527d
or eax, 0x10000000
test ecx, 0x200000
je 0x475287
or al, 0x20
test ecx, 0x400000
je 0x475294
or eax, 0x4000000
test ecx, 0x800000
je 0x47529f
or ah, 8
test ecx, 0x1000000
je 0x4752a9
or al, 1
test ecx, 0x2000000
je 0x4752b6
or eax, 0x1000000
test ecx, 0x4000000
je 0x4752c3
or eax, 0x100000
test ecx, 0x8000000
je 0x4752d0
or eax, 0x40000
test ecx, 0x10000000
je 0x4752dd
or eax, 0x20000000
test ecx, 0x20000000
je 0x4752e7
or al, 4
test ecx, 0x40000000
je 0x4752f1
or al, 0x40
test ecx, ecx
jns 0x4752f8
or ah, 0x20
ret

Function at 0x4768d0
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x318
push ebx
push ebp
mov ebp, dword [esp + 0x324]
push esi
push edi
lea eax, [esp + 0x1c]
xor esi, esi
push 0x104
push eax
mov byte [ebp], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x120]
push 0x104
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x238]
push 0x104
lea eax, [esp + 0x34]
push edx
push eax
mov byte [esp + 0x3f], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
lea edx, [esp + 0x20]
push 0x5c9e2c
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, ebp
xor ecx, ecx
mov byte [ebp], 0
mov edi, ebp
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov byte [edx + 8], cl
xor eax, eax
mov al, byte [esp + esi + 0x10]
push eax
push str._02x
push edi
call ebx
add esp, 0xc
inc esi
add edi, 2
cmp esi, 4
jl 0x476974
pop edi
mov byte [ebp + 8], 0
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
Function at 0x4769a0
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get hostname
Get local ipv4 addresses
Get socket information
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x340
push ebx
mov ebx, dword [esp + 0x348]
push esi
lea eax, [esp + 0x1b8]
push edi
push eax
push 0x101
mov byte [ebx], 0
call sub.WSOCK32.dll_WSAStartup
mov cl, byte [0x5d7b88]
xor eax, eax
mov byte [esp + 0x38], cl
mov ecx, 0x40
lea edi, [esp + 0x39]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
push edx
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x24], 0
stosb byte es:[edi], al
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
je 0x476aef
lea eax, [esp + 0x38]
lea ecx, [esp + 0x10]
push eax
call fcn.00530bfd
mov ecx, dword [eax]
lea edx, [esp + 0x13c]
push ecx
push str.Local_Host_Name:__s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00530b8f
lea eax, [esp + 0x38]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x476a50
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x476ab7
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
je 0x476aef
push 7
mov word [esp + 0x2c], 2
call sub.WSOCK32.dll_htons
push str.128.127.50.1
mov word [esp + 0x2e], ax
call sub.WSOCK32.dll_inet_addr
lea ecx, [esp + 0x28]
push 0x10
push ecx
push esi
mov dword [esp + 0x38], eax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
je 0x476ab1
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push esi
call sub.WSOCK32.dll_getsockname
push esi
call sub.WSOCK32.dll_closesocket
mov ecx, dword [esp + 0x1c]
push ecx
call sub.WSOCK32.dll_inet_ntoa
push eax
lea ecx, [esp + 0x10]
call fcn.00530bfd
mov edx, dword [esp + 0xc]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0xc]
call fcn.00530b8f
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x340
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x340
ret
Function at 0x4778f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.0054fc30
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x18]
and eax, 0xffff
push 0x17
push eax
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x477977
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
mov ebp, eax
test ebp, ebp
je 0x477966
push ebp
call fcn.00531036
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x477980
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x477980
mov ecx, ebp
mov esi, eax
mov edx, ecx
mov eax, 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
ret 8
call fcn.00530b1a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x479190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56b267
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call fcn.00478d60
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call fcn.00478a20
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x34]
push eax
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
mov eax, dword [esi]
push edx
push eax
mov byte [esp + 0x34], 2
call fcn.00478a80
mov ecx, dword [esi + 4]
mov esi, dword [esp + 0x30]
lea edx, [esp + 8]
mov dword [esp + 0xc], ecx
push edx
mov ecx, esi
call fcn.00478da0
mov dword [esp + 4], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00478450
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.00478e10
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret