joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4697c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4b3ad7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.0049f933
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.0049f933
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.0046a2e0
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x46a330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b3bb0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004abc4f
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x46a363
xor al, al
jmp 0x46a48f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x46a385
xor al, al
jmp 0x46a48f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x46a398
xor al, al
jmp 0x46a48f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x46a3ac
xor al, al
jmp 0x46a48f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.0049f9e3
test eax, eax
jne 0x46a3e0
xor al, al
jmp 0x46a48f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x136d5bc
mov dword [esp + 0x20], ebp
call fcn.004abc4f
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004a8846
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004a889d
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x46a474
mov ax, word [ebx]
test ax, ax
je 0x46a466
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.0046a4b0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x46a44a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004a889d
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x46a9f0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004a9f32
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x46aa36
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.0048fb18
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x138bdc4
push ecx
call fcn.004911b1
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x46e570
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 0x46e5d6
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 0x46e5d6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x46e5b7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x46e960
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x46e998
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 0x46f620
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 0x46f669
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 0x46fae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b4630
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.0046f690
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0046f710
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0046f710
lea ecx, [esi + 0xc]
call fcn.004a18b5
lea ecx, [esi + 0x10]
call fcn.004a18b5
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00470ca0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00470ca0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00470ca0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004a192a
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004a192a
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x473cd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x13bc530]
xor edx, edx
cmp eax, edx
jne 0x473cf6
xor eax, eax
mov byte [eax + 0x13bc430], al
inc eax
cmp eax, 0x100
jl 0x473cde
mov dword [0x13bc530], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x13bc430
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x473d87
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x473d5a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x473d28
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x473e00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x473e53
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x473e3a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47a7e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b4a2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0047b100
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x136df44
call fcn.004a166b
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x47a873
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a166b
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x47a86c
push 0
mov ecx, eax
call fcn.00471900
mov dword [esi + 0xc], eax
jmp 0x47a875
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x47a875
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4a3d2c
Capabilities:
Get graphical window text

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

Function at 0x4a552a
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 0x4a556c
call fcn.004abc4f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a556c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a5563
xor eax, eax
jmp 0x4a5574
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a557a
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ac17f
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 0x4ac1ad
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ac1cb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ac0e5
jmp 0x4ac1cb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ac1cb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ac0e5
test edi, edi
mov eax, edi
jne 0x4ac1b5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x10]
xor edi, edi
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea edx, [esp + 8]
mov esi, eax
push edx
push 0x20019
push edi
push str.CLSID7548A939_2776_46CF_8F62_1D1F488DEDF0InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401044
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 4
test esi, esi
je 0x401059
mov eax, dword [0x4d091c]
push 0x4d0620
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x104
push ecx
push edx
push 0
push 0
push str.ThreadingModel
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401088
mov edi, 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x428f3f
Capabilities:
Encode data using xor

Disassembly:
das
and dword fs:[esi], eax
fcmovu st(0), st(7)
push ecx
adc eax, esp
test dword [ebx + 0x6e], esi
pop ebp
mov bl, 0x4c
not dword [ecx - 0x58389cf4]
rcr dh, 0x7c
mov ch, 0x46
mov al, byte [0xc8b563c7]
out 0x23, al
cmpsd dword [esi], dword es:[edi]
xchg edx, eax
in al, dx
out dx, eax
push edx
pushfd
mov ch, al
daa
jns 0x428fdf
push edi
popal
or al, 0xd8
push edi
xchg ebx, eax
adc eax, 0x5f3389f0
xor eax, dword [esi - 0x73bd2033]
cmpsb byte [esi], byte es:[edi]
ja 0x428ff3
iretd
fst dword [esi + 0x7fbf1337]
mov esi, 0xd95ec52c
or eax, 0x3c2576c9
inc ebp
mov esi, 0xb7e3694a
jecxz 0x428f7a
test byte [edi], ch
xchg esp, eax
outsd dx, dword [esi]
inc eax
pop ss
cmp al, 0x46
pop edi
and edx, dword [ecx]
xor al, 0xfd
dec edi
cmp edi, dword [0x9341706d]
out dx, eax
lodsb al, byte [esi]
loopne 0x429016
xchg ecx, eax
mov eax, 0x99f6598b
xchg byte [ebx + eax], ah
dec ebx
pop ecx
neg byte [ecx + 0x4b032486]
push es
dec ebp
mov ebp, 0xe9a1b499
fld qword [ebx - 0x7d7d4e54]
cli
pushal
jne 0x428fad
lahf
and al, 0x80
jge 0x429053
cmc
pushfd
mov cl, 0xa3
dec ecx
pop ebx
Function at 0x4bf773
Capabilities:
Encode data using xor

Disassembly:
nop
sub dword [ecx], eax
mov esp, 0x8fbaa9cd
push ecx
stosb byte es:[edi], al
mov byte [0xb01d6d45], al
mov edx, 0x66aa518f
mov byte [0xb01d6d45], al
add al, byte [ecx + 0x75a898d3]
pop esi
mov dword [0x7d7fccd8], eax
lodsd eax, dword [esi]
fisubr dword [0x4fae6d5b]
push esi
mov ebx, 0x35cc6f9d
and al, 0x9f
lahf
xor byte [eax], ah
out dx, al
pop ebx
add esp, dword [esi]
cmp ebx, dword [ebx]
cmpsb byte [esi], byte es:[edi]
enter 0x2276, 0xffffffffffffffa4
sbb byte [esi], bl
sub al, 0xa2
add eax, 0x913b598a
in eax, 2
and ch, byte [edx + edi*8]
pop ss
pop ss
test byte [edi - 0x59], dl
insd dword es:[edi], dx
pop ecx
dec eax
inc eax
fsubr qword [esp + ebp*8 - 0x744d3140]
add byte [ebx - 0x30e87cf5], cl
inc eax
xchg ecx, eax
xor ecx, esi
or al, 0xec
sub dh, byte [edx + 0x1720bc6e]
jbe 0x4bf720
lodsb al, byte [esi]
lodsb al, byte [esi]
pop ecx
push esi
lahf
xor ecx, eax
ja 0x4bf70f
je 0x4bf792
adc ebp, dword [ecx]
clc
xchg esp, eax
dec ecx
loop 0x4bf709
pop ss
xor byte [edi], bh
add cl, bh
xchg ecx, eax
mov ah, 0xd
push cs
mov ah, 0xa1
or dh, byte [eax - 0x739f9b1]
sub eax, 0x4225619d
push ebx
inc eax
push es
xabort 0x2d
popfd
popal
and eax, 0x40f25342
mov esi, 0x604ef40f
mov edi, 0x9472f67f
mov fs, edi
jae 0x4bf733
sti
mov dword [0x23e913f1], eax
mov ebx, 0xafb8e949
or al, 0xe6
fstp qword [eax]
ljmp 0xc69

Function at 0x4c7ab2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cd4c8
cmp edx, dword [eax]
je 0x4c7ad4
add eax, 8
inc ecx
cmp eax, 0x4cd558
jl 0x4c7ac5
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cd4c8]
jne 0x4c7c02
mov eax, dword [0x4d1bac]
cmp eax, 1
je 0x4c7bdc
test eax, eax
jne 0x4c7b05
cmp dword [0x4cd40c], 1
je 0x4c7bdc
cmp edx, 0xfc
je 0x4c7c02
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c7b3c
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c81d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c8400
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c7b7f
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c8400
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cb5d0
push edi
call fcn.004c9bd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c81d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c81e0
lea eax, [ebp - 0xa0]
push 0x4cb5b0
push eax
call fcn.004c81e0
push dword [esi + 0x4cd4cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c81e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004c9b44
add esp, 0x2c
pop edi
jmp 0x4c7c02
lea eax, [ebp + 8]
lea esi, [esi + 0x4cd4cc]
push 0
push eax
push dword [esi]
call fcn.004c8400
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41eeb0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4823cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00476ba2
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41ef32
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047435a
mov eax, dword [eax]
push 0x49e1e8
push eax
call fcn.00466fb4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00476e2d
test bl, bl
je 0x41ef32
push 0x49e1e8
lea ecx, [esp + 0xc]
call fcn.004771bd
push 0x4a1e9c
lea ecx, [esp + 0xc]
call fcn.004771bd
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41ef6e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00476e2d
jmp 0x41f039
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x41eff2
lea edx, [esp + 0x7c]
push 0x4a1e98
push edx
call fcn.00466fb4
add esp, 8
test eax, eax
je 0x41eff2
lea eax, [esp + 0x7c]
push 0x4a1e94
push eax
call fcn.00466fb4
add esp, 8
test eax, eax
je 0x41eff2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41ef82
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00476e2d
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x41f830
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41f892
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x41f8a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48244b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a90ac]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x41f9d8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41f906
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00476e2d
xor eax, eax
jmp 0x41fa4f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00476f6a
push esi
lea ecx, [esp + 0xc]
call fcn.004771f9
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41fa2d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0041f830
test eax, eax
jne 0x41fa2d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.0041f830
test eax, eax
jne 0x41fa2d
lea eax, [esp + 0x14]
push 0x4a1eb0
push eax
call fcn.004680c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41fa0c
lea ecx, [esp + 0x14]
push 0x4a1eac
push ecx
call fcn.00468040
mov esi, eax
add esp, 8
test esi, esi
jne 0x41fa0c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41fa0f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00476f1a
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41f91e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00476e2d
xor eax, eax
jmp 0x41fa4f
mov byte [esi], 0
push 0x4a1ea8
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00476e2d
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4