joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c340
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x48c433
lea ecx, [esp + 0x10]
push ecx
push str..htm
push SysReAllocString
mov ecx, edi
call fcn.0048c0a0
test eax, eax
jne 0x48c433
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push SysReAllocString
mov ecx, edi
call fcn.0048c0a0
test eax, eax
jne 0x48c433
lea edx, [esp + 0x10]
push 0x4df4d0
push edx
call fcn.0047e9c5
mov esi, eax
add esp, 8
test esi, esi
jne 0x48c404
lea eax, [esp + 0x10]
push 0x4df4cc
push eax
call fcn.0047d380
mov esi, eax
add esp, 8
test esi, esi
jne 0x48c404
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + ecx + 0xf]
jmp 0x48c407
mov byte [esi], 0
push 0x4d74b8
push esi
call ebx
mov ecx, dword [esp + 0x21c]
push ecx
push esi
call ebx
lea edx, [esp + 0x10]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x48ff60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0047dfe0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x49002b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x49002b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x48ffde
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x48ffe9
or bh, 8
and edi, 0x8000000
je 0x490004
mov eax, dword [0x5562bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x49002b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x490400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x49042b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x49044f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x49046a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x49383e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x493860
cmp dword [edi + 0x3c], 0
jne 0x493860
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004a97be
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0049388d
pop edi
pop esi
pop ebx
ret 8

Function at 0x4938db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004a97be
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49390c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0049391f
pop edi
pop esi
pop ebx
ret 8

Function at 0x494f14
Capabilities:
Get graphical window text

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

Function at 0x494f5c
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x4e1658
mov ecx, edi
call fcn.0049803d
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x494faf
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x494fc2
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0049835b
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00498333
jmp 0x494fc2
mov ecx, esi
call fcn.00497325
test eax, eax
je 0x494fc2
push edi
mov ecx, eax
call fcn.00494f14
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x496b21
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 0x496b63
call fcn.004a97be
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x496b63
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x496b5a
xor eax, eax
jmp 0x496b6b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00496b71
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a8401
Capabilities:
Create http request

Disassembly:
mov eax, 0x4b27cc
call fcn.0047cccc
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4a8439
call fcn.004a97be
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]
test eax, eax
mov dword [esi + 8], eax
jne 0x4a845e
push eax
push dword [esi + 4]
call fcn.004a9041
jmp 0x4a846a
push esi
push eax
mov ecx, 0x4e19c0
call fcn.004a847b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x4a872c
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x4b282b
call fcn.0047cccc
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0049abbb
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x4d95e4]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.0049803d
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.0049803d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x4aa421
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004a97be
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4aa45e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4aa45e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4aa462
xor eax, eax
jmp 0x4aa4e0
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00493630
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4aa49a
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4aa484
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.004aa5d1
push ebx
mov edi, eax
call fcn.00493659
test edi, edi
pop ecx
je 0x4aa4dc
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.004aa39a
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004aa4e5
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x421f30
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00421cb0

Function at 0x432ff0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00432e6f

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x4028f2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x402901
pop dword [ebp - 0x38]
mov eax, 0x81628391
sub eax, 0x81225a90
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x51ac1cdd
sub dword [ebp - 0x48], 0x359d792
mov dword [ebp - 0x44], 0x7f2eb735
add dword [ebp - 0x44], 0xb3049510
mov dword [ebp - 0x40], 0x92ddaa5b
sub dword [ebp - 0x40], 0x4691662d
mov dword [ebp - 0x3c], 0x59f997c9
sub dword [ebp - 0x3c], 0x59f997c9
lea eax, [ebp - 0x48]
push eax
mov eax, 0x6c9823a8
sub eax, 0x6c57535c
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x7502af5b
sub dword [ebp - 0x48], 0x904605
mov dword [ebp - 0x44], 0x40e55305
sub dword [ebp - 0x44], 0xff78f190
mov dword [ebp - 0x40], 0xfb13673b
add dword [ebp - 0x40], 0x685c0531
mov dword [ebp - 0x3c], 0xbd1bc887
sub dword [ebp - 0x3c], 0xbd1bc887
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xd6d98fa1
add eax, 0x296740a7
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3850f
push 0
call eax
mov ecx, 0x4375
xor edx, edx
add edx, eax
mov ebx, 0x37d944ff
sub ebx, 0x379794ff
add ebx, dword [ebp - 0x38]
mov esi, 0x3212921f
sub esi, 0x12b6e411
sub dword [ebp - 0x1c], eax
mov edi, dword [ebx]
xor dword [ebp - 0x10], edi
sub edi, esi
add dword [ebp - 0xc], ecx
mov dword [edx], edi
add dword [ebp - 0x24], esi
add edx, 4
add ebx, 0x46b52ea3
add ebx, 0xb94ad161
loop 0x402a1f
add eax, 0x560c8ee6
add eax, 0xa9f471c1
mov ebx, eax
add eax, 0xb7117657
sub eax, 0xb7117652
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x40118d
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
pop ebx
jmp 0x4011ec
add ebx, 0xfffffdc2

Function at 0x4012ee
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
sub eax, 0xfffffffc
jmp 0x40137d
jmp fcn.00403c51
rol byte [edx + 0x2d4c3b9a], 1
jl 0x4011f2
cld
jne 0x40140e
jae 0x401243
mov byte [ebp - 0x6c], ch
inc ebp
mov ah, 0x16
push edx
and al, 7
mov ah, bh
push 0x1f6518be
invalid
jmp 0x401397
push ebx
pop edi
jb 0x4013f1
stosd dword es:[edi], eax
stosb byte es:[edi], al
pop edx
push 0x4a8d0352
jb 0x4011bf
imul ebp, dword [esp + ebx - 0x61], 0x50
lds edi, [esp + eax]
adc esp, eax
std
leave
call 0x8562e672
test eax, 0xd383f9c1
pop es
stc
adc ebx, 7
jmp 0x4013a7
call fcn.0040141f
jmp 0x4012b9
jne 0x4013e3
jae 0x401263
push 0xffffffffffffffef
std
xchg ebx, eax
inc ecx
salc
push 0x28
das
inc ebx
ret 0x3183
pop ecx
pop esi
pop eax
pop edi
pop ebx
pop edx
clc
jmp 0x40119d
push edx
or edx, 0xffffffc3
push ebx
push edi
push eax
push esi
push ecx
jne 0x40135d
invalid
xor al, 0x48
std
push dword [ebx + 4]
pop edx
jae 0x40140e
ret 0xd2cf
call fcn.0040118d
xor dword [edx - 0x2d], edx
adc al, 0xb6
mov ecx, dword [0x705323c1]
std
xlatb
cmp ebx, esi
adc edi, esp
salc
cmp byte [edx], dh
adc dword [ebp - 0x2f], edi
not byte [edi + 0x38]
cmp byte [edx - 8], cl
dec edx
clc
jae 0x4011c8
sub eax, esp
mov ebp, 0xc3dc9375
mov dh, 0x17
mov ebx, 0xdcd2ae2c
adc ah, byte [edx - 0x38]
add al, 0x83
cmp eax, dword [eax]
cmp dword [ebx], 0
stc
jb 0x4013d2
push esi
jp 0x401326
sal ch, 0xb8
dec dword [edi]
clc
jae 0x40128c
xor esi, dword [edi + 0x63714cd0]
fidivr dword [edi]
mov eax, dword [0xaa9bf9f6]
retf 0xa3ef
je 0x4012b9
jb 0x40121e
mov byte [0xffaa0da7], al
xor ebx, dword [eax - 0x17]
push ss
add byte [eax], al
add byte [edi + 0x3c], cl
pop ebx
fistp word [eax - 0x247c062d]
sti
push dword [ebx]
pop eax
jmp 0x401401
stc
sbb ebx, 0xfffffffb
jmp 0x4013e3
add eax, ebx
clc
jmp 0x401329
add dword [eax], 0xf0480a0
jmp 0x401160

Function at 0x40153b
Capabilities:
Encode data using xor

Disassembly:
push 1
pop ecx
cmp dword [esp + 8], ecx
jl 0x40155b
mov eax, dword [esp + 4]
mov edx, ecx
and edx, 3
mov dl, byte [esp + edx + 0xc]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [esp + 8]
jle 0x401548
ret
Function at 0x4051d5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x409688
cmp edx, dword [eax]
je 0x4051f7
add eax, 8
inc ecx
cmp eax, 0x409718
jl 0x4051e8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x409688]
jne 0x405325
mov eax, dword [0x409a48]
cmp eax, 1
je 0x4052ff
test eax, eax
jne 0x405228
cmp dword [0x4095d4], 1
je 0x4052ff
cmp edx, 0xfc
je 0x405325
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40525f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004036e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004037d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4052a2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004037d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4075d0
push edi
call fcn.00405b10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004036e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004036f0
lea eax, [ebp - 0xa0]
push 0x4075b0
push eax
call fcn.004036f0
push dword [esi + 0x40968c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004036f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405a87
add esp, 0x2c
pop edi
jmp 0x405325
lea eax, [ebp + 8]
lea esi, [esi + 0x40968c]
push 0
push eax
push dword [esi]
call fcn.004037d0
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 0x417fa0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47a08b
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.0046e5c2
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x418022
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046c3e2
mov eax, dword [eax]
push 0x493224
push eax
call fcn.0045e884
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046e84d
test bl, bl
je 0x418022
push 0x493224
lea ecx, [esp + 0xc]
call fcn.0046ebdd
push 0x496d9c
lea ecx, [esp + 0xc]
call fcn.0046ebdd
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 0x41805e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046e84d
jmp 0x418129
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 0x4180e2
lea edx, [esp + 0x7c]
push 0x496d98
push edx
call fcn.0045e884
add esp, 8
test eax, eax
je 0x4180e2
lea eax, [esp + 0x7c]
push 0x496d94
push eax
call fcn.0045e884
add esp, 8
test eax, eax
je 0x4180e2
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 0x418072
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.0046e84d
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 0x418920
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 0x418982
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 0x418990
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47a10b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a014c]
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 0x418ac8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4189f6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046e84d
xor eax, eax
jmp 0x418b3f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046e98a
push esi
lea ecx, [esp + 0xc]
call fcn.0046ec19
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 0x418b1d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00418920
test eax, eax
jne 0x418b1d
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 closesocket
mov ecx, edi
call fcn.00418920
test eax, eax
jne 0x418b1d
lea eax, [esp + 0x14]
push 0x496db0
push eax
call fcn.0045f8c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x418afc
lea ecx, [esp + 0x14]
push 0x496dac
push ecx
call fcn.0045f840
mov esi, eax
add esp, 8
test esi, esi
jne 0x418afc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x418aff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046e93a
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x418a0e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046e84d
xor eax, eax
jmp 0x418b3f
mov byte [esi], 0
push 0x496da8
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.0046e84d
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