joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40af00
Capabilities:
Accept command line arguments
Create thread

Disassembly:
sub esp, 0x1c
mov ecx, 0x40e3f8
call fcn.00404a80
mov ecx, 0x40e3f8
call fcn.00404d90
push 0x1014
mov dword [0x40e600], 0x40e3f8
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x40af3b
mov ecx, eax
call fcn.00409aa0
jmp 0x40af3d
xor eax, eax
push esi
mov esi, eax
test eax, eax
jne 0x40af66
push 0x1014
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x40af5e
mov ecx, eax
call fcn.00409aa0
jmp 0x40af60
xor eax, eax
test eax, eax
mov esi, eax
je 0x40af44
mov ecx, esi
mov dword [0x40e72c], esi
call fcn.00409d00
mov ecx, esi
call fcn.0040a3b0
test eax, eax
je 0x40af91
mov ecx, esi
call fcn.0040a530
mov eax, 1
pop esi
add esp, 0x1c
ret 0x10
mov eax, dword [0x40e600]
push edi
push 0
push 0
push 0
push 0x40a460
push 0
push 0
lea edi, [eax + 0xe0]
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [edi]
mov ecx, esi
call fcn.0040b090
test eax, eax
pop edi
je 0x40afcd
mov eax, 1
pop esi
add esp, 0x1c
ret 0x10
mov ecx, esi
call fcn.0040a620
test eax, eax
je 0x40b029
lea ecx, [esp + 4]
mov al, 0x65
push ecx
mov ecx, esi
mov byte [esp + 8], 0x4e
mov byte [esp + 9], al
mov byte [esp + 0xa], 0x77
mov byte [esp + 0xb], 0x44
mov byte [esp + 0xc], al
mov byte [esp + 0xd], 0x73
mov byte [esp + 0xe], 0x6b
mov byte [esp + 0xf], 0x74
mov byte [esp + 0x10], 0x6f
mov byte [esp + 0x11], 0x70
mov byte [esp + 0x12], 0
call fcn.00409b60
mov ecx, esi
call fcn.00409b80
mov ecx, esi
call fcn.0040aa20
mov eax, dword [0x40d9a0]
test eax, eax
je 0x40b080
mov ecx, esi
call fcn.0040a640
test eax, eax
je 0x40b050
mov ecx, esi
call fcn.0040a7e0
mov eax, 1
pop esi
add esp, 0x1c
ret 0x10
mov eax, dword [0x40e600]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], str.ZqhlmducmojPcbvjsmo_Sl_Yevat
mov dword [esp + 0x18], 0x40ab70
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call dword [eax + 0x144]
xor eax, eax
pop esi
add esp, 0x1c
ret 0x10

Function at 0x40b090
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x11c
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
push 0x40d5b4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, 0x5c
lea ecx, [esp + 0x20]
mov byte [esp + 0x10], al
mov byte [esp + 0x11], al
lea eax, [esp + 8]
mov byte [esp + 8], 0x53
push eax
push ecx
mov byte [esp + 0x11], 0x4f
mov byte [esp + 0x12], 0x46
mov byte [esp + 0x13], 0x54
mov byte [esp + 0x14], 0x57
mov byte [esp + 0x15], 0x41
mov byte [esp + 0x16], 0x52
mov byte [esp + 0x17], 0x45
mov byte [esp + 0x1a], 0x25
mov byte [esp + 0x1b], 0x73
mov byte [esp + 0x1c], 0
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [0x40e600]
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push 1
push 0
push eax
push 0x80000002
call dword [ecx + 0x118]
test eax, eax
pop edi
je 0x40b164
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
mov edx, dword [0x40e600]
push eax
push 0
push 1
push 0
push 0
lea ecx, [esp + 0x30]
push 0
push ecx
push 0x80000002
mov dword [esp + 0x38], 1
call dword [edx + 0x11c]
xor eax, eax
add esp, 0x11c
ret
mov eax, 1
add esp, 0x11c
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x401c66
pop dword [ebp - 4]
mov eax, 0x401c66
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xb5ceb7d2
sub dword [ebp - 0x14], 0x677c7287
mov dword [ebp - 0x10], 0x191c1dc4
add dword [ebp - 0x10], 0x19172e81
mov dword [ebp - 0xc], 0x976470e
add dword [ebp - 0xc], 0x42d5fd20
mov dword [ebp - 8], 0xa7b364e8
add dword [ebp - 8], 0x584c9b18
lea eax, [ebp - 0x14]
push eax
mov eax, 0x72edc4fb
sub eax, 0x72ad94a7
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0xab1b661d
add dword [ebp - 0x14], 0xc9570339
mov dword [ebp - 0x10], 0xd6d9c6d2
sub dword [ebp - 0x10], 0x956d655d
mov dword [ebp - 0xc], 0x9f1d8811
sub dword [ebp - 0xc], 0x3bae1ba5
mov dword [ebp - 8], 0x5b229989
sub dword [ebp - 8], 0x5b229989
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, 0xf519a945
add eax, 0xb2686e7
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x37152
push 0
call eax
mov ecx, 0xf1075790
sub ecx, 0xf1070d28
xor ebx, ebx
add ebx, eax
mov esi, 0x407000
add esi, dword [ebp - 4]
mov edx, 0xfe788eb
add edx, 0x635dfbd7
mov edi, dword [esi]
xor edi, edx
mov dword [ebx], edi
add ebx, 0xa8128dca
sub ebx, 0xa8128dc6
add esi, 0xb6626f1
sub esi, 0xb6626ed
loop 0x401d7f
add eax, 0xa793f9b2
add eax, 0x586d22c1
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 4]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x426200
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x21000]
push edi
jmp 0x42621a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x426221
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x426210
mov eax, 1
add ebx, ebx
jne 0x426233
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x426228
jne 0x426244
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x426228
xor ecx, ecx
sub eax, 3
jb 0x426258
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4262ca
mov ebp, eax
add ebx, ebx
jne 0x426263
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x426270
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x426294
inc ecx
add ebx, ebx
jne 0x426280
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x426275
jne 0x426291
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x426275
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4262b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4262a5
jmp 0x426216
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4262b4
add edi, ecx
jmp 0x426216
pop esi
lea edi, [esi + 0x24000]
mov eax, dword [edi]
or eax, eax
je 0x42631c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3a9dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3aa18]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4262d1
mov ecx, edi
jns 0x426300
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3aa20]
or eax, eax
je 0x426316
mov dword [ebx], eax
add ebx, 4
jmp 0x4262ee
call dword [esi + 0x3aa1c]
mov ebp, dword [esi + 0x3aa24]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x426350
sub esp, 0xffffff80
jmp 0x40155c

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x59e2361
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x20d0704a
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4097b6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x4097fa
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x4097c9
jmp 0x4097fa
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x4097ea
pop esi
pop ebp
ret

Function at 0x40a594
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40a5c9
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40a5f3
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40a5f3
test edi, edi
je 0x40a5c0
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40a5c0
test edi, edi
je 0x40a5fb
mov eax, edi
jmp 0x40a5c2
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40a5c2
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_in_w32_d_0000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.0040da1f
add esp, 0xc
int3
Function at 0x40da53
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestQuickReturn.exe_gMozillaPoisonSize], eax
call fcn.0040a594
pop ecx
mov ecx, dword [sym.TestQuickReturn.exe_gMozillaPoisonSize]
mov dword [sym.TestQuickReturn.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40da8b
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestQuickReturn.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x66205600
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6621b77b
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [edi + 0x178]
call fcn.66207570
cmp dword [edi + 0x160], 0
jne 0x66205743
cmp dword [edi + 4], 0
je 0x66205711
lea ecx, [ebp - 0xf8]
call fcn.66203190
mov dword [ebp - 4], 0
lea eax, [ebp - 0xf8]
push eax
push dword [edi]
call fcn.6620add0
add esp, 8
lea ecx, [ebp - 0xf8]
call fcn.66204330
mov dword [ebp - 0x20], eax
lea ebx, [edi + 0x170]
xor ecx, ecx
mov dword [ebp - 0x28], 0x18
cmp byte [edi + 0x18c], cl
mov eax, 0x20
mov dword [ebp - 0x24], 0
cmovne eax, ecx
mov dword [ebp - 0x1c], 0x40
or eax, 0x40
mov dword [ebp - 0x18], 0
push eax
push 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x188]
push ebx
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x662056ff
mov dword [ebx], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf8]
call fcn.66203210
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf8]
call fcn.66203210
push 5
push 0x18
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [edi + 0x170]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x662057ff
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x168], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x16c], eax
mov ecx, edi
call fcn.662059c0
mov ebx, eax
test ebx, ebx
jns 0x66205777
lea ecx, [edi + 0x178]
call fcn.66207570
mov ecx, edi
call fcn.66204b30
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebp + 8], 0
je 0x66205792
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [edi + 0x178]
mov ecx, esi
call fcn.66204970
test al, al
je 0x6620577d
cmp byte [ebp + 0xc], 0
je 0x6620577d
mov eax, dword [edi + 0x170]
mov dword [edi + 0x174], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x170], 0
test eax, eax
je 0x662057d2
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.662041d0
jmp 0x662057f2
mov ecx, esi
call fcn.66204950
mov ecx, edi
mov esi, eax
call fcn.66203eb0
push 0
push 0
push 0xffffffffffffffff
push esi
push 1
mov ecx, eax
call fcn.662033a0
push 0
push 0
push 1
mov ecx, edi
call fcn.66205600
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4013d8
cmp byte [esi + ebx - 1], 0xa
je 0x4013ac
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4050a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x401980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x4050b4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x401b40
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x4050b4]
movzx eax, al
bt eax, esi
jae 0x401ba0
mov ecx, dword [0x4050a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x401a45
test byte [0x402028], 8
jne 0x401ae0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x402038], 8
jne 0x401a90
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x401a14
cmp esi, 3
jbe 0x401a50
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x40311c]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x401a14
mov ecx, dword [0x4050b4]
test ecx, ecx
je 0x401b80
mov dword [esp], 0x402038
call dword [0x4050b4]
test al, 8
je 0x4019eb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x4019eb
mov ebx, dword [0x4050b4]
test ebx, ebx
je 0x401b60
mov dword [esp], 0x402028
call dword [0x4050b4]
test al, 8
je 0x4019d6
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x4019de
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4050b4
call sym._load_func.part.0
jmp 0x40199d
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4050b4
call sym._load_func.part.0
jmp 0x401aea
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4050b4
call sym._load_func.part.0
jmp 0x401a9e
mov eax, 0xffffffff
jmp 0x401a45
Function at 0x401d00
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x418760
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b4feb
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.004a9989
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4187e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a76cb
mov eax, dword [eax]
push 0x4d7ce4
push eax
call fcn.00498514
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004a9c14
test bl, bl
je 0x4187e2
push 0x4d7ce4
lea ecx, [esp + 0xc]
call fcn.004a9fa4
push 0x4d7cf0
lea ecx, [esp + 0xc]
call fcn.004a9fa4
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 0x41881e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004a9c14
jmp 0x4188e9
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 0x4188a2
lea edx, [esp + 0x7c]
push 0x4d7cec
push edx
call fcn.00498514
add esp, 8
test eax, eax
je 0x4188a2
lea eax, [esp + 0x7c]
push 0x4d7ce8
push eax
call fcn.00498514
add esp, 8
test eax, eax
je 0x4188a2
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 0x418832
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.004a9c14
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 0x4190e0
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 0x419142
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 0x419150
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b506b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4ea240]
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 0x419288
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4191b6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a9c14
xor eax, eax
jmp 0x4192ff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004a9d51
push esi
lea ecx, [esp + 0xc]
call fcn.004a9fe0
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4d7d24
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4192dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.004190e0
test eax, eax
jne 0x4192dd
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 accept
mov ecx, edi
call fcn.004190e0
test eax, eax
jne 0x4192dd
lea eax, [esp + 0x14]
push 0x4d7d00
push eax
call fcn.00499660
mov esi, eax
add esp, 8
test esi, esi
jne 0x4192bc
lea ecx, [esp + 0x14]
push 0x4d7cfc
push ecx
call fcn.004995e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4192bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4192bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004a9d01
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4191ce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a9c14
xor eax, eax
jmp 0x4192ff
mov byte [esi], 0
push 0x4d7cf8
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.004a9c14
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