joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cd870
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x51e778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0051441b
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004cd210
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00514349
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00510b2d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00510b2d
push 1
push 0
push 0
mov ecx, esi
call fcn.00510ad5
push 1
push 0
push 1
mov ecx, esi
call fcn.00510ad5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0051448d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4cd9f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x51e798
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0051441b
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004cd210
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00514349
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4cdab4
cmp dword [esp + 0x40], 1
jne 0x4cdab2
cmp ecx, eax
jge 0x4cdab4
mov eax, ecx
cmp eax, 0xc8
jge 0x4cdac0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004cd870
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0051448d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4ce230
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x51e803
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0050ef4d
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.005146c3
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00515c5e
test eax, eax
je 0x4ce34c
mov ecx, dword [esp + 0x3c]
call fcn.005146f0
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4ce310
push edi
mov ecx, esi
call fcn.00511ca8
mov ecx, esi
call fcn.004ce4b0
cmp dword [esp + 0x38], 1
jne 0x4ce345
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00511e12
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4d0d70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4d0da3
push esi
call fcn.004d3e80
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4d0d9c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4d0e29
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4d0e12
mov eax, dword [esi + 8]
test eax, eax
je 0x4d0dc7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4d0e0e
cmp eax, 2
je 0x4d0e12
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4d0dba
cmp eax, 3
je 0x4d0ded
cmp eax, 1
jne 0x4d0dba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4d0dba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4d0dba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004d0e50
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4d0e38
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004d0e50
add esp, 4
pop esi
ret

Function at 0x4dcef0
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 0x4dcf93
test eax, eax
jbe 0x4dcf93
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4dcf93
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 0x4dcf3e
xor esi, esi
jmp 0x4dcf44
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4dcf6f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0048b280
add esi, eax
push esi
mov ebx, esi
call fcn.0048b280
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4dcf50
pop ebp
test edi, edi
pop edi
jne 0x4dcf93
test ebx, ebx
je 0x4dcf93
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004fd370
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4dd0d5
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 0x4dd1ed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4dd1ed
mov eax, dword [esi + 0x3c]
push eax
call fcn.0050f39f
mov esi, eax
test esi, esi
je 0x4dd1ed
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 0x4dd1ed
mov ecx, esi
call fcn.004dd040
cmp edi, eax
jge 0x4dd1ed
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 0x4dd173
mov dword [esp + 0x34], 1
jmp 0x4dd1ce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4dd1ed
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.004dc5b0
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 0x4e2e20
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4e2e86
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4e2e86
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4e2e67
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4e3210
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4e3248
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4e3f20
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 0x4e3f69
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 0x4e43e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51f420
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.004e3f90
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004e4010
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004e4010
lea ecx, [esi + 0xc]
call fcn.0050d8b1
lea ecx, [esi + 0x10]
call fcn.0050d8b1
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004e55a0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004e55a0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004e55a0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0050d926
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0050d926
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x50fd43
Capabilities:
Get graphical window text

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

Function at 0x511431
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 0x511473
call fcn.00517420
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x511473
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x51146a
xor eax, eax
jmp 0x51147b
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00511481
pop edi
pop esi
pop ebx
ret 4

Function at 0x517950
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 0x51797e
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x51799c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005178b6
jmp 0x51799c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x51799c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005178b6
test edi, edi
mov eax, edi
jne 0x517986
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x3002663f
Capabilities:
Accept command line arguments

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx ecx, word [eax]
cmp cx, 0x22
push 2
pop edx
jne 0x30026663
add eax, edx
movzx ecx, word [eax]
cmp cx, 0x22
je 0x30026679
test cx, cx
jne 0x30026651
jmp 0x30026683
cmp cx, 0x20
jbe 0x3002667b
add eax, edx
cmp word [eax], 0x20
ja 0x30026669
jmp 0x3002667b
cmp cx, 0x20
ja 0x30026683
add eax, edx
movzx ecx, word [eax]
test cx, cx
jne 0x30026673
and dword [0x300cb640], 0
push eax
call fcn.30034fa3
mov ecx, eax
and ecx, 0x60
je 0x3002669a
mov eax, ecx
ret
test al, 8
je 0x300266a2
push 8
pop eax
ret
push esi
mov esi, 0x1eee
test esi, eax
jne 0x300266b0
xor eax, eax
pop esi
ret
xor ecx, ecx
push ebx
xor edx, edx
inc edx
shl edx, cl
test esi, edx
je 0x300266c8
test eax, edx
je 0x300266c8
mov ebx, eax
sub ebx, edx
test esi, ebx
jne 0x300266d8
inc ecx
cmp ecx, 0x20
jb 0x300266b3
test al, 4
je 0x300266da
test ax, 0x100
jne 0x300266da
xor eax, eax
pop ebx
pop esi
ret

Function at 0x3002a5dd
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.3002a1ff

Function at 0x3002a5e6
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x300cb640]
push esi
xor esi, esi
push esi
push esi
push esi
push 6
push eax
mov dword [0x300bfc5c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [0x300bfc58], eax
jne 0x3002a60c
xor eax, eax
pop esi
ret
push ebx
mov ebx, dword [eax]
mov ecx, 0x9c9c
cmp ebx, ecx
je 0x3002a61c
xor eax, eax
jmp 0x3002a635
mov edx, dword [eax + 4]
push edi
mov edi, 0x20000
cmp edx, edi
mov esi, 0x20001
je 0x3002a638
cmp edx, esi
je 0x3002a63c
xor eax, eax
pop edi
pop ebx
pop esi
ret
cmp edx, esi
jne 0x3002a648
cmp ebx, ecx
jne 0x3002a632
cmp edx, esi
jne 0x3002a648
cmp ebx, ecx
jne 0x3002a632
cmp edx, edi
jne 0x3002a650
cmp ebx, ecx
jne 0x3002a632
push ecx
push eax
push 0x300bfc64
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov dword [0x300bfc68], esi
xor eax, eax
cmp dword [0x300bfc88], eax
je 0x3002a632
cmp dword [0x300bfc7c], eax
je 0x3002a632
cmp dword [0x300bfc84], eax
je 0x3002a632
cmp dword [0x300cb85c], eax
jne 0x3002a68f
cmp dword [0x300bfc8c], eax
je 0x3002a632
xor eax, eax
inc eax
jmp 0x3002a634
Function at 0x3002a790
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x3002226c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov dword [0x300bccd4], ebx
mov dword [0x300cb514], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x2cd8
push ebx
push 0x300bcf80
mov dword [0x300cb51c], eax
mov dword [0x300cb854], ebx
mov dword [0x300bcce4], ebx
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 0xc
push 0x300bcfc4
call esi
call fcn.3002a716
test eax, eax
jne 0x3002a803
push ebx
push 0x30303030
call fcn.30043574
jmp 0x3002a9c1
push edi
push 0xa5a8
push ebx
push 0x300bfc58
call sub.MSVCR80.dll_memset
push 0x60
push ebx
push 0x300d1730
call sub.MSVCR80.dll_memset
push 0x224
push ebx
push 0x300bcd30
call sub.MSVCR80.dll_memset
add esp, 0x24
push 0x300d1738
call esi
push 0x300bcca4
call esi
push 0x300bcc8c
call esi
push 0x300d1ba8
call esi
mov esi, 0x800
push esi
push ebx
push 0x300cace8
call sub.MSVCR80.dll_memset
push esi
push ebx
push 0x300ca4e8
call sub.MSVCR80.dll_memset
push 0x70
push ebx
push 0x300ca478
call sub.MSVCR80.dll_memset
push 0x70
push ebx
push 0x300ca408
call sub.MSVCR80.dll_memset
add esp, 0x30
push 0x300c9db8
call fcn.3003d090
push 0x300c9dc8
call fcn.3003d090
push 0x100
push 0x10
push 4
push 0x300bccd0
call fcn.30059d41
push ebx
push 0x300cb4f0
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0x30002c18
call fcn.3003f6fd
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x3008b484], eax
je 0x3002a903
cmp eax, 0xffffffff
je 0x3002a903
push 0x30002c08
push eax
call esi
cmp eax, ebx
mov dword [0x300bcccc], eax
jne 0x3002a903
push dword [0x3008b484]
call edi
mov dword [0x3008b484], ebx
push 0x30002bfc
call fcn.3003f6fd
cmp eax, ebx
mov dword [0x3008b488], eax
je 0x3002a988
cmp eax, 0xffffffff
je 0x3002a988
push 0x30002be4
push eax
call esi
push 0x30002bd0
push dword [0x3008b488]
mov dword [0x300bccc8], eax
call esi
push 0x30002bc0
push dword [0x3008b488]
mov dword [0x300bccc4], eax
call esi
push 0x30002bb0
push dword [0x3008b488]
mov dword [0x300bccc0], eax
call esi
cmp dword [0x300bccc8], ebx
mov dword [0x300bccbc], eax
je 0x3002a97a
cmp dword [0x300bccc4], ebx
je 0x3002a97a
cmp dword [0x300bccc0], ebx
je 0x3002a97a
cmp eax, ebx
jne 0x3002a988
push dword [0x3008b488]
call edi
mov dword [0x3008b488], ebx
xor eax, eax
mov esi, 0x300bccd8
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
pop edi
je 0x3002a9c1
lea eax, [ebp - 0x210]
push eax
push 4
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.30041057
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.300696c7
leave
ret
Function at 0x3002c8e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x300031d8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x3002c90c
xor eax, eax
jmp 0x3002c940
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 4
push 0
push 0
push 0x30003224
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
leave
ret 4

Function at 0x3002c9a2
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x30003294
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x3002c9d2
xor eax, eax
jmp 0x3002ca01
push edi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push 0x3000325c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x3002c9ce
xor eax, eax
cmp eax, dword [ebp - 8]
sbb eax, eax
neg eax
pop esi
leave
ret
Function at 0x3002ca04
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x3002226c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push 0x40e
lea eax, [ebp - 0x61a]
push esi
push eax
mov dword [ebp - 0x620], esi
mov word [ebp - 0x61c], si
call sub.MSVCR80.dll_memset
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov word [ebp - 0x20c], si
call sub.MSVCR80.dll_memset
mov edi, dword [ebp + 8]
add esp, 0x18
cmp edi, esi
je 0x3002cb70
call fcn.3002c9a2
test eax, eax
je 0x3002ca8b
cmp dword [ebp + 0xc], esi
je 0x3002ca8b
call fcn.3003daba
test eax, eax
je 0x3002cb7b
push 0x300034d0
call fcn.3003db54
jmp 0x3002cb7b
mov eax, dword [edi]
push esi
lea ecx, [ebp - 0x620]
push ecx
push esi
push 0x2001f
and eax, 0x10000000
push esi
neg eax
push esi
sbb eax, eax
push esi
neg eax
add eax, 0x80000001
push 0x30003294
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x3002cad2
call fcn.3003daba
test eax, eax
je 0x3002cb7b
push 0x300034b0
jmp 0x3002ca81
cmp dword [ebp + 0xc], esi
jne 0x3002caed
push 0x30003238
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x3002cb7b
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, esi
je 0x3002cb7b
dec eax
cmp word [ebp + eax*2 - 0x20c], 0x5c
jne 0x3002cb00
push 0x74
mov word [ebp + eax*2 - 0x20c], si
push 0x30003494
lea eax, [ebp - 0x20c]
push eax
push 0x3000347c
lea eax, [ebp - 0x61c]
push 0x208
push eax
call dword [sym.imp.MSVCR80.dll_swprintf_s]
add esp, 0x18
lea eax, [ebp - 0x61c]
push eax
call fcn.30059e93
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x61c]
push eax
push 1
push esi
push 0x30003238
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x3002cb7b
push esi
push 0x30303030
call fcn.30043574
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.300696c7
leave
ret 8

Function at 0x3002e641
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call fcn.3006a861
test eax, eax
je 0x3002e659
xor eax, eax
inc eax
jmp 0x3002e6df
push esi
push edi
xor esi, esi
push esi
push esi
push 0x80
push 2
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.3005ebd1
mov edi, eax
cmp edi, 0xffffffff
jne 0x3002e698
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call fcn.3003daba
test eax, eax
je 0x3002e6d6
push dword [ebp - 4]
push 0x30003950
jmp 0x3002e6cf
push ebx
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
pop ebx
jne 0x3002e6da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call fcn.3003daba
test eax, eax
je 0x3002e6d6
push dword [ebp - 4]
push 0x30003930
call fcn.3003dbd9
pop ecx
pop ecx
xor eax, eax
jmp 0x3002e6dd
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0xc