joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4038b2
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x408138
call fcn.0040463c
mov edi, 0x94
mov eax, edi
call fcn.004047a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x46c3bc], ecx
mov eax, dword [esi + 4]
mov dword [0x46c3c8], eax
mov edx, dword [esi + 8]
mov dword [0x46c3cc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x46c3c0], esi
cmp ecx, 2
je 0x403912
or esi, 0x8000
mov dword [0x46c3c0], esi
shl eax, 8
add eax, edx
mov dword [0x46c3c4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40394d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40394d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403965
cmp eax, 0x20b
je 0x403952
mov dword [ebp - 0x1c], esi
jmp 0x403979
cmp dword [ecx + 0x84], 0xe
jbe 0x40394d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x403973
cmp dword [ecx + 0x74], 0xe
jbe 0x40394d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004045eb
pop ecx
test eax, eax
jne 0x4039a5
cmp dword [0x46c3ac], 1
jne 0x403992
call fcn.00403da0
push 0x1c
call fcn.00403c29
push 0xff
call fcn.00403a8e
pop ecx
pop ecx
call fcn.00404549
mov dword [ebp - 4], esi
call fcn.0040439e
test eax, eax
jge 0x4039be
push 0x1b
call fcn.0040388d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46c934], eax
call fcn.0040427c
mov dword [0x46c3a4], eax
call fcn.004041da
test eax, eax
jge 0x4039e4
push 8
call fcn.0040388d
pop ecx
call fcn.00403fa7
test eax, eax
jge 0x4039f5
push 9
call fcn.0040388d
pop ecx
push 1
call fcn.00403abe
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x403a0b
push eax
call fcn.0040388d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00403f4a
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x403a2c
movzx eax, word [ebp - 0x40]
jmp 0x403a2f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004010d0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x403a4d
push edi
call fcn.00403be9
call fcn.00403c0b
jmp 0x403a7f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00404677
ret
Function at 0x403b28
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x46c3fc], esi
push edi
jne 0x403b48
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x46c3f8], esi
mov byte [0x46c3f4], al
jne 0x403bae
mov ecx, dword [0x46c928]
test ecx, ecx
je 0x403b8f
mov eax, dword [0x46c924]
sub eax, 4
cmp eax, ecx
jmp 0x403b88
mov eax, dword [eax]
test eax, eax
je 0x403b7a
call eax
mov eax, dword [0x46c924]
sub eax, 4
cmp eax, dword [0x46c928]
mov dword [0x46c924], eax
jae 0x403b72
mov eax, 0x40a01c
mov esi, 0x40a020
cmp eax, esi
mov edi, eax
jae 0x403bae
mov eax, dword [edi]
test eax, eax
je 0x403ba7
call eax
add edi, 4
cmp edi, esi
jb 0x403b9f
mov eax, 0x40a024
mov esi, 0x40a028
cmp eax, esi
mov edi, eax
jae 0x403bcd
mov eax, dword [edi]
test eax, eax
je 0x403bc6
call eax
add edi, 4
cmp edi, esi
jb 0x403bbe
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x403be7
push dword [ebp + 8]
mov dword [0x46c3fc], 1
call fcn.00403a8e
pop ebp
ret

Function at 0x403c29
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x46c270]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x46c140]
je 0x403c5e
inc eax
cmp eax, 0x13
jb 0x403c4f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x46c140]
jne 0x403d84
mov eax, dword [0x46c3ac]
cmp eax, 1
je 0x403d5c
cmp eax, edx
jne 0x403c8e
cmp dword [0x46c138], 1
je 0x403d5c
cmp ecx, 0xfc
je 0x403d84
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403cc4
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00403700
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00404ad0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403cf8
mov eax, edi
push eax
call fcn.00404ad0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x408550
push edi
call fcn.004049a0
add esp, 0x10
push edi
call fcn.00404ad0
push dword [esi + 0x46c144]
mov ebx, eax
call fcn.00404ad0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004047a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00403700
push edi
push ebx
call fcn.00403710
push 0x408530
push ebx
call fcn.00403710
push dword [esi + 0x46c144]
push ebx
call fcn.00403710
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00404899
add esp, 0x2c
jmp 0x403d84
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x46c144]
push dword [esi]
call fcn.00404ad0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00404b8c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x404899
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x46c514], ebx
push esi
push edi
jne 0x404919
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x404954
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x46c514], eax
je 0x404954
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x46c518], eax
call esi
cmp dword [0x46c3bc], 2
mov dword [0x46c51c], eax
jne 0x404919
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x46c524], eax
je 0x404919
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x46c520], eax
mov eax, dword [0x46c520]
test eax, eax
je 0x40495e
call eax
test eax, eax
je 0x404945
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x46c524]
test eax, eax
je 0x404945
test byte [ebp - 8], 1
jne 0x40495e
cmp dword [0x46c3c8], 4
jb 0x404958
or byte [ebp + 0x12], 0x20
jmp 0x40497d
xor eax, eax
jmp 0x40498d
or byte [ebp + 0x12], 4
jmp 0x40497d
mov eax, dword [0x46c518]
test eax, eax
je 0x40497d
call eax
mov ebx, eax
test ebx, ebx
je 0x40497d
mov eax, dword [0x46c51c]
test eax, eax
je 0x40497d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x46c514]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405fde
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40600c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x406013
cmp ebx, dword [eax + 4]
jae 0x406013
xor eax, eax
jmp 0x406203
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x406024
xor eax, eax
inc eax
jmp 0x406202
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40603a
cmp ecx, edx
jae 0x40617f
cmp dword [eax + 4], 0
je 0x406043
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40602b
cmp dword [ebp + 8], 0
je 0x406065
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40617f
cmp eax, esi
jae 0x40617f
mov eax, dword [0x46c530]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40608a
cmp dword [esi*4 + 0x46c538], edi
je 0x406183
inc esi
cmp esi, eax
jl 0x406078
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4061ff
cmp dword [ebp - 8], 0x1000000
jne 0x4061ff
test byte [ebp - 0xc], 0xcc
je 0x406108
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4061ff
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4061ff
cmp word [eax + 0x18], 0x10b
jne 0x4061ff
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4061ff
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x406108
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x406108
test byte [ecx + 0x27], 0x80
jne 0x40617f
push 1
push 0x46c578
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40601c
mov ecx, dword [0x46c530]
test ecx, ecx
mov edx, ecx
jle 0x40613c
lea eax, [ecx*4 + 0x46c534]
cmp dword [eax], edi
je 0x40613c
dec edx
sub eax, 4
test edx, edx
jg 0x406130
test edx, edx
jne 0x40616d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x406149
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x406161
lea eax, [edx*4 + 0x46c538]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40614f
cmp ecx, 0x10
jge 0x40616d
inc ecx
mov dword [0x46c530], ecx
push 0
push 0x46c578
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40601c
xor eax, eax
jmp 0x406202
test esi, esi
jle 0x40601c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x46c578
call ebx
test eax, eax
jne 0x40601c
cmp dword [esi*4 + 0x46c538], edi
je 0x4061d9
mov eax, dword [0x46c530]
lea esi, [eax - 1]
test esi, esi
jl 0x4061c7
cmp dword [esi*4 + 0x46c538], edi
je 0x4061c3
dec esi
jns 0x4061b7
test esi, esi
jge 0x4061d7
cmp eax, 0x10
jge 0x4061d2
inc eax
mov dword [0x46c530], eax
lea esi, [eax - 1]
jmp 0x4061d9
je 0x4061f1
xor ecx, ecx
test esi, esi
jl 0x4061f1
lea eax, [ecx*4 + 0x46c538]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4061df
push 0
push 0x46c578
call ebx
jmp 0x40601c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407029
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004047a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4070c4
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x46c3bc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4070c4
cmp eax, 1
je 0x4070e5
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4070c4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x407091
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4070c0
xor eax, eax
inc eax
jmp 0x407104
cmp edi, eax
jae 0x4070c8
xor eax, eax
jmp 0x407104
cmp eax, esi
jae 0x4070cf
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x46c3bc]
jmp 0x4070e8
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0xc36f5d
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00c36f5d
ret
Function at 0x433001
Capabilities:
Authenticate hmac
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x1af805cc
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x1b7a3b59
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x402090
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 0xc]
test byte [0x407018], 1
jne 0x4020ac
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__d__semi_stub:_no_script_engine_clean_up_n
mov dword [esp + 8], str.Host_Quit
mov dword [esp + 4], 0x407018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x4020a3
Function at 0x4057d0
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 0x405828
cmp byte [esi + ebx - 1], 0xa
je 0x4057fc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4120a4], 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 0x405e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x406028
mov edi, dword [0x4120a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x405f37
test byte [0x4070a8], 8
jne 0x405fd0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x4070b8], 8
jne 0x405f90
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 0x405ed9
cmp esi, 3
jbe 0x405f48
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x405eea
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
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 + 0x40fb60]
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 0x405ed9
mov dword [esp], 0x4070b8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x405eb0
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 0x405eb0
mov dword [esp], 0x4070a8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x405e9b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
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 0x405ea3
mov eax, 0xffffffff
jmp 0x405f37

Function at 0x4060a0
Capabilities:
Accept command line arguments
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 0x406110
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40619b
cmp ax, 9
je 0x406188
cmp ax, 0x20
je 0x406188
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp ax, 0x5c
je 0x4061f0
cmp ax, 0x22
je 0x406200
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40619b
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x406140
test edi, 1
jne 0x406140
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x406188
cmp ax, 0x20
je 0x406188
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x406218
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40615b
and dword [ebp - 0x54], 1
jne 0x406154
xor edi, 1
jmp 0x40615b
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x4061b4
Function at 0x703070a3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + edx*8 + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
jmp 0x703070fb
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
jae 0x70307143
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.70307043
add esp, 8
cmp eax, dword [ebp + 0x10]
jne 0x70307141
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + eax*4]
mov eax, edx
jmp 0x70307145
jmp 0x703070f2
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x70307153
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 0xc
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
je 0x703071b6
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x30]
push ecx
call fcn.70306bc3
add esp, 4
cmp dword [ebp + 8], eax
jne 0x703071ac
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x18]
jmp 0x703071b8
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
jmp 0x70307182
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x70313bae
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x70313bbe
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x4034a0
Capabilities:
Encrypt data using salsa20 or chacha
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0xcd4e74]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x403670
mov eax, dword [esp + 8]
mov dword [eax], 0x61707865
mov dword [eax + 4], 0x61707865
mov dword [eax + 8], 0x61707865
mov dword [eax + 0xc], 0x61707865
mov dword [eax + 0x10], 0x3320646e
mov dword [eax + 0x14], 0x3320646e
mov dword [eax + 0x18], 0x3320646e
mov dword [eax + 0x1c], 0x3320646e
mov dword [eax + 0x20], 0x79622d32
mov dword [eax + 0x24], 0x79622d32
mov dword [eax + 0x28], 0x79622d32
mov dword [eax + 0x2c], 0x79622d32
mov dword [eax + 0x30], 0x6b206574
mov dword [eax + 0x34], 0x6b206574
mov dword [eax + 0x38], 0x6b206574
mov dword [eax + 0x3c], 0x6b206574
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], edx
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0x50], edx
mov dword [eax + 0x54], edx
mov dword [eax + 0x58], edx
mov dword [eax + 0x5c], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x60], edx
mov dword [eax + 0x64], edx
mov dword [eax + 0x68], edx
mov dword [eax + 0x6c], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x70], edx
mov dword [eax + 0x74], edx
mov dword [eax + 0x78], edx
mov dword [eax + 0x7c], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x80], edx
mov dword [eax + 0x84], edx
mov dword [eax + 0x88], edx
mov dword [eax + 0x8c], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x90], edx
mov dword [eax + 0x94], edx
mov dword [eax + 0x98], edx
mov dword [eax + 0x9c], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0xa0], edx
mov dword [eax + 0xa4], edx
mov dword [eax + 0xa8], edx
mov dword [eax + 0xac], edx
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0xb0], ecx
mov dword [eax + 0xb4], ecx
mov dword [eax + 0xb8], ecx
mov dword [eax + 0xbc], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 0xc0], ecx
lea edx, [ecx + 1]
mov dword [eax + 0xc4], edx
lea edx, [ecx + 2]
mov dword [eax + 0xc8], edx
add ecx, 3
mov dword [eax + 0xcc], ecx
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0
mov dword [eax + 0xd8], 0
mov dword [eax + 0xdc], 0
mov dword [eax + 0xe0], 0
mov dword [eax + 0xe4], 0
mov dword [eax + 0xe8], 0
mov dword [eax + 0xec], 0
mov dword [eax + 0xf0], 0
mov dword [eax + 0xf4], 0
mov dword [eax + 0xf8], 0
mov dword [eax + 0xfc], 0
ret
call fcn.00470860
jmp fcn.004034a0