joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e50
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x816948
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x403f79
cmp dword fs:[0xc0], eax
je 0x403e7b
mov dword [0x816944], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x81682c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x816830], eax
movzx edx, word [esi + 0xac]
mov dword [0x816834], edx
mov eax, dword [esi + 0xb0]
mov dword [0x816838], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x403edb
push 0x7f
push eax
push 0x81683c
call fcn.00402560
mov edx, dword [0x816834]
add esp, 0xc
jmp 0x403ee3
xor eax, eax
mov word [0x81683c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x81693c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x81693e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x816940], ax
mov ecx, eax
mov byte [0x816942], 0
cmp byte [0x7ffe0268], 0
je 0x403f2a
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x816942], bl
cmp ebx, 1
pop ebx
jne 0x403f44
and ecx, 0xffef
mov word [0x816940], cx
test edx, edx
jne 0x403f79
call fcn.00403e50
cmp dword [0x81682c], 6
ja 0x403f79
jb 0x403f61
cmp dword [0x816830], 4
jae 0x403f79
call fcn.00403e50
cmp dword [0x81682c], 0xa
jae 0x403f79
mov dword [0x816834], 1
ret

Function at 0x403f80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x403fdb
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x403fa0
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x403fbc
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00402560
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x403ffd
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x40406f
mov esi, dword [ebx]
cmp esi, ebx
je 0x40406f
test esi, esi
je 0x40406f
cmp word [esi + 0x24], 2
jbe 0x404069
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x404069
cmp dword [esi + 0x18], 0
je 0x404069
test ebp, ebp
je 0x404025
cmp ebp, eax
jne 0x404069
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00402560
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x40404a
cmp edx, dword [esi + 0x18]
jne 0x404069
cmp dword [esp + 0x14], eax
je 0x40407c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00401380
add esp, 8
test eax, eax
je 0x40407c
mov esi, dword [esi]
cmp esi, ebx
jne 0x404003
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x419c92
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x6aa01550
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov ebx, dword [ecx]
mov edi, dword [ecx + 4]
mov esi, dword [ecx + 8]
test ebx, ebx
je 0x6aa01581
mov eax, ebx
call sym._strdupAW
mov ebx, eax
test eax, eax
je 0x6aa01640
test edi, edi
je 0x6aa01596
mov eax, edi
call sym._strdupAW
mov edi, eax
test eax, eax
je 0x6aa01650
test byte [0x6aa03018], 1
jne 0x6aa015f0
mov dword [esp + 8], ebx
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
xor eax, eax
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0
mov dword [ebp - 0x1c], eax
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], str.__s___s___Ix__n
mov dword [esp + 8], str.InstallPerfDllW
mov dword [esp + 4], 0x6aa03018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x6aa0159f
mov eax, 0xe
jmp 0x6aa015e2
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, 0xe
sub esp, 0xc
jmp 0x6aa015e2

Function at 0x6aa016f0
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x2c
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
test ebx, ebx
je 0x6aa01719
mov eax, ebx
call sym._strdupAW
mov ebx, eax
test eax, eax
je 0x6aa01790
test byte [0x6aa03018], 1
jne 0x6aa01758
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s___d_:_stub_n
mov dword [esp + 8], str.LoadPerfCounterTextStringsW
mov dword [esp + 4], 0x6aa03018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x6aa01722
mov eax, 0xe
jmp 0x6aa01748
Function at 0x6aa01800
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x2c
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
test ebx, ebx
je 0x6aa01829
mov eax, ebx
call sym._strdupAW
mov ebx, eax
test eax, eax
je 0x6aa018a0
test byte [0x6aa03018], 1
jne 0x6aa01868
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s___d_:_stub_n
mov dword [esp + 8], str.UnloadPerfCounterTextStringsW
mov dword [esp + 4], 0x6aa03018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x6aa01832
mov eax, 0xe
jmp 0x6aa01858
Function at 0x6aa022f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
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 0x6aa0234b
cmp byte [esi + ebx - 1], 0xa
je 0x6aa0231f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6aa03118], 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]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x6aa02470
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x3c
test eax, eax
je 0x6aa02518
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 8], eax
mov ebx, eax
mov dword [esp + 0x14], 0
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
mov edi, eax
sub esp, 0x18
lea ecx, [edi + edi]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x6aa02518
mov dword [esp + 0x14], edi
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
sub esp, 0x18
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x406b73
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebp, 0x2000000
push edi
mov eax, dword [esi]
mov ebx, 0xff0000
mov edi, 0xff00
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
cmp eax, ebp
mov eax, dword [esi + 0x18]
jne 0x406bc0
mov ecx, dword [eax + 8]
mov edx, ecx
mov ebp, ecx
and edx, ebx
shr ebp, 0x10
or edx, ebp
mov ebp, ecx
shl ebp, 0x10
and ecx, edi
or ebp, ecx
shr edx, 8
shl ebp, 8
or edx, ebp
mov ebp, 0x2000000
jmp 0x406bc3
mov edx, dword [eax + 8]
test dl, 1
je 0x406c83
mov ecx, dword [esi]
cmp dword [ecx + 4], ebp
mov ecx, dword [eax]
jne 0x406bfc
mov edx, ecx
mov ebp, ecx
and edx, ebx
shr ebp, 0x10
or edx, ebp
mov ebp, ecx
shl ebp, 0x10
and ecx, edi
or ebp, ecx
shr edx, 8
shl ebp, 8
or edx, ebp
mov ebp, 0x2000000
mov dword [esp + 0x14], edx
jmp 0x406c00
mov dword [esp + 0x14], ecx
mov ecx, dword [esi]
cmp dword [ecx + 4], ebp
jne 0x406c2d
mov ecx, dword [eax + 4]
mov edx, ecx
mov ebp, ecx
and edx, ebx
shr ebp, 0x10
or edx, ebp
mov ebp, ecx
shl ebp, 0x10
and ecx, edi
or ebp, ecx
shr edx, 8
shl ebp, 8
or edx, ebp
mov ebp, 0x2000000
jmp 0x406c30
mov edx, dword [eax + 4]
add eax, 0xc
push edx
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x24]
call fcn.00408e10
add esp, 0x10
test eax, eax
jne 0x406c7c
mov eax, dword [esi]
cmp dword [eax + 4], ebp
mov eax, dword [esi + 0x18]
jne 0x406c74
mov eax, dword [eax]
mov ecx, eax
mov edx, eax
and ecx, ebx
shr edx, 0x10
or ecx, edx
mov edx, eax
shl edx, 0x10
and eax, edi
or edx, eax
shr ecx, 8
shl edx, 8
or ecx, edx
jmp 0x406c76
mov ecx, dword [eax]
cmp dword [esp + 0x14], ecx
je 0x406cc1
xor eax, eax
jmp 0x406d39
cmp dword [esp + 0x14], ebp
jne 0x406cae
mov ecx, dword [eax]
mov edx, ecx
mov ebp, ecx
and edx, ebx
shr ebp, 0x10
or edx, ebp
mov ebp, ecx
shl ebp, 0x10
and ecx, edi
or ebp, ecx
shr edx, 8
shl ebp, 8
or edx, ebp
mov ebp, 0x2000000
jmp 0x406cb0
mov edx, dword [eax]
add eax, 0xc
push edx
push eax
push dword [esp + 0x20]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [esi]
mov esi, dword [esi + 0x18]
mov eax, dword [eax + 4]
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x406cf2
mov eax, dword [esi + 8]
mov ecx, eax
mov edx, eax
and ecx, ebx
shr edx, 0x10
or ecx, edx
mov edx, eax
shl edx, 0x10
and eax, edi
or edx, eax
shr ecx, 8
shl edx, 8
or ecx, edx
jmp 0x406cf5
mov ecx, dword [esi + 8]
test cl, 2
je 0x406d35
cmp dword [esp + 0x14], ebp
mov edx, dword [esp + 0x18]
jne 0x406d24
mov ecx, dword [esi]
mov eax, ecx
mov esi, ecx
and eax, ebx
shr esi, 0x10
or eax, esi
mov esi, ecx
shl esi, 0x10
and ecx, edi
or esi, ecx
shr eax, 8
shl esi, 8
or eax, esi
jmp 0x406d26
mov eax, dword [esi]
mov ecx, eax
dec eax
test ecx, ecx
je 0x406d35
inc eax
xor byte [edx], 0xea
inc edx
dec eax
jne 0x406d2e
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x406f2f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_time]
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_srand]
pop ecx
pop ecx
call dword [sym.imp.MSVCRT.dll_rand]
mov edi, eax
mov eax, dword [ebp + 8]
and edi, 0x7f
add edi, 0x20
and edi, 0xfffffffc
cmp dword [eax + 4], 0x2000000
jne 0x406f90
mov eax, dword [eax + 8]
mov ebx, eax
mov ecx, eax
and ebx, 0xff0000
shr ecx, 0x10
or ebx, ecx
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
or ecx, eax
shr ebx, 8
shl ecx, 8
or ebx, ecx
jmp 0x406f93
mov ebx, dword [eax + 8]
mov ecx, dword [ebp + 0xc]
add ebx, edi
lea eax, [ebx + 0xc]
push eax
mov dword [ecx], eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x40701e
push 0x10
mov dword [esi + 4], 2
pop eax
mov word [esi + 0xc], di
cmp edi, eax
mov dword [esi + 8], ebx
mov dword [ebp + 0xc], eax
jbe 0x406fd7
call dword [sym.imp.MSVCRT.dll_rand]
mov ecx, dword [ebp + 0xc]
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], edi
mov byte [ecx + esi], al
jb 0x406fc3
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ecx + 8], eax
jbe 0x406ff3
add edi, esi
mov edx, dword [eax + ecx]
xor edx, ebx
mov dword [edi + eax], edx
add eax, 4
cmp eax, dword [ecx + 8]
jb 0x406fe3
push 4
push 0x40d1bc
push esi
call sub.MSVCRT.dll_memcpy
push 0xc
lea eax, [esi + ebx]
push esi
push eax
call sub.MSVCRT.dll_memcpy
push 4
push 0x40d1b4
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0x24
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407023
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0x18
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x4070e8
mov eax, dword [esp + 0xc]
and dword [esi + 0xc], 0
test eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], 1
je 0x407059
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
pop ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x407069
push esi
call dword [sym.imp.MSVCRT.dll_free]
jmp 0x4070e7
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x407088
push 2
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
je 0x4070cd
push 0x40d1c8
push 0x40d1c4
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4070b2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4070b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi], eax
push esi
call fcn.004070ed
test eax, eax
pop ecx
je 0x4070cd
push dword [esi]
call fcn.004068a8
test eax, eax
pop ecx
je 0x4070cd
mov eax, esi
jmp 0x4070ea
cmp dword [esi + 0xc], 0
mov edi, dword [sym.imp.MSVCRT.dll_free]
je 0x4070de
push dword [esi]
call edi
pop ecx
push dword [esi + 4]
call edi
push esi
call edi
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
ret
Function at 0x4070ed
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, dword [ebx]
test esi, esi
je 0x4071a6
push 4
push 0x40d1b4
push esi
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4071a6
mov eax, dword [esi + 4]
mov edx, 0x2000000
cmp eax, edx
jne 0x40714c
mov ecx, dword [esi + 8]
mov eax, ecx
mov edi, ecx
and eax, 0xff0000
shr edi, 0x10
or eax, edi
mov edi, ecx
shl edi, 0x10
and ecx, 0xff00
or edi, ecx
shr eax, 8
shl edi, 8
or eax, edi
jmp 0x40714f
mov eax, dword [esi + 8]
cmp dword [esi + 4], edx
jne 0x407169
mov cx, word [esi + 0xc]
xor edx, edx
movzx edi, cx
mov dh, cl
movzx ecx, dx
shr edi, 8
or edi, ecx
jmp 0x40716d
movzx edi, word [esi + 0xc]
sub eax, edi
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov dword [ebx], eax
xor ecx, ecx
cmp eax, ecx
jne 0x407186
xor eax, eax
jmp 0x4071a9
cmp dword [ebp + 8], ecx
mov dword [ebx + 0xc], 1
jbe 0x4071a6
lea edx, [edi + esi]
mov edi, dword [edx + ecx]
xor edi, dword [esi + 8]
mov dword [ecx + eax], edi
add ecx, 4
cmp ecx, dword [ebp + 8]
jb 0x407195
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x408cca
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d1d0
push 0x408e02
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x40f858], 0xffffffff
or dword [0x40f85c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40f7b4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40f7b0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40f854], eax
call fcn.00408e01
cmp dword [0x40e290], 0
jne 0x408d4d
push 0x408dfe
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00408dec
push 0x40e00c
push 0x40e008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x40f7ac]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40f7a8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x40e004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x401118
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x812004]
jne 0x401122
repz ret
jmp fcn.00401388

Function at 0x403ccb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x812004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004024f0
and dword [ebp - 0x14], 0
cmp dword [0x8149ec], 0
mov dword [ebp - 0x18], eax
jne 0x403d7e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403e26
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403e26
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x8149ec], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x8149f0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x8149f4], eax
call edi
push eax
call esi
mov dword [0x8149fc], eax
test eax, eax
je 0x403d7e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x8149f8], eax
mov eax, dword [0x8149f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403dd7
cmp dword [0x8149fc], ecx
je 0x403dd7
push eax
call esi
push dword [0x8149fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403dd7
test ebx, ebx
je 0x403dd7
call edi
test eax, eax
je 0x403dce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x403dce
test byte [ebp - 8], 1
jne 0x403dd7
or dword [ebp + 0x10], 0x200000
jmp 0x403e0a
mov eax, dword [0x8149f0]
cmp eax, dword [ebp - 0x18]
je 0x403e0a
push eax
call esi
test eax, eax
je 0x403e0a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x403e0a
mov eax, dword [0x8149f4]
cmp eax, dword [ebp - 0x18]
je 0x403e0a
push eax
call esi
test eax, eax
je 0x403e0a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x8149ec]
call esi
test eax, eax
je 0x403e26
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403e28
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401118
leave
ret
Function at 0x801760
Capabilities:
Create pipe

Disassembly:
mov eax, dword [0x812b30]
sub esp, 0x14
push ebx
mov ebx, dword [0x2fb7fbc]
push edi
mov edi, dword [0x2fba43c]
call fcn.008016d0
cmp dword [0x2fba43c], 0x2f
jne 0x8017c2
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00801700
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x801ac0
Capabilities:
Get disk information
Manipulate console buffer
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x812004]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
jmp 0x801ae5
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1519a5
jge 0x801b2e
mov dword [0x2fba0a4], 0x8e46a6f0
cmp dword [0x2fba43c], 0x3dc
jne 0x801b2c
xor ecx, ecx
mov word [ebp - 8], cx
xor edx, edx
mov word [ebp - 6], dx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
jmp 0x801adc
mov dword [ebp - 0x10], 0
jmp 0x801b40
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x12cad2a
jge 0x801bdb
cmp dword [0x2fba43c], 0xa5f
jne 0x801b92
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x820]
push ecx
push str.xonatoyuhejigoriramadiguyo
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp dword [ebp - 0x10], 0x84620b
jne 0x801bb6
mov edx, dword [0x813950]
mov dword [0x2fba43c], edx
mov eax, dword [0x2fba43c]
add eax, 0xa231
mov dword [0x2fba43c], eax
cmp dword [0x2fba43c], 0x141
jne 0x801bd6
mov dword [0x814f28], 0xec58acac
mov dword [0x814f2c], 0xffffffff
jmp 0x801b37
call fcn.008017d0
jmp dword [0x2fb7fbc]