joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x2fa8], 0
lea esi, [edi + 0x2fac]
je 0x427982
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x42793c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.004294e0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.00416490
mov edx, dword [esi]
mov ecx, 0x466c8c
push dword [edi + 0x2fa8]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x2fb4]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.00416490
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43127a
mov eax, dword [0x466c90]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x43126d
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4312ab
mov eax, dword [0x466c90]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x43129e
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4312dc
mov eax, dword [0x466c90]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x4312cf
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x431329
mov eax, dword [0x466c90]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x43131c
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x43135a
mov eax, dword [0x466c90]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x43134d
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x43138b
mov eax, dword [0x466c90]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x43137e
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.00433ee0
Function at 0x44dd20
Capabilities:
Hash data with crc32

Disassembly:
test dword [ecx + 0xc], 0x100000
push ebx
push esi
push edi
mov ebx, edx
je 0x44dd91
mov cl, byte [ebx]
lea esi, [ebx + 1]
or eax, 0xffffffff
test cl, cl
je 0x44dd68
or edi, 0xffffffff
nop dword [eax]
cmp cl, 0x23
jne 0x44dd4f
cmp byte [esi], cl
jne 0x44dd4f
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x45c408]
test cl, cl
jne 0x44dd40
mov ecx, dword [0x466c90]
not eax
cmp dword [ecx + 0x1be0], eax
jne 0x44dd7e
mov dword [ecx + 0x1be4], eax
cmp dword [ecx + 0x1c1c], eax
jne 0x44ddf3
mov byte [ecx + 0x1c20], 1
pop edi
pop esi
pop ebx
ret
mov edi, dword [0x466c90]
xor edx, edx
mov eax, dword [edi + 0x1ba8]
mov ecx, dword [eax + 0xc4]
mov eax, dword [eax + 0xcc]
push dword [eax + ecx*4 - 4]
mov ecx, ebx
call fcn.00415c40
mov esi, eax
add esp, 4
cmp dword [edi + 0x1be0], esi
jne 0x44ddc9
mov dword [edi + 0x1be4], esi
cmp dword [edi + 0x1c1c], esi
jne 0x44ddd8
mov byte [edi + 0x1c20], 1
cmp dword [edi + 0x1bc8], esi
jne 0x44ddf1
push ecx
push ebx
mov edx, 0xb
mov ecx, esi
call fcn.00428810
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4570bf
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0045709b
pop esi
leave
ret 8

Function at 0x457cbd
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x457cfc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x457cfc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x457cfc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x457cfc
cmp dword [ecx + 0x74], 0xe
jbe 0x457cfc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10008090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1000809f
pop dword [ebp - 0x4c]
mov eax, 0x1000809f
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3b1d1
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x4cc7
xor ebx, ebx
add ebx, eax
mov edx, 0x1002b200
add edx, dword [ebp - 0x4c]
mov edi, 0xc6e747b9
mov esi, dword [edx]
sub dword [ebp - 0x10], edx
add esi, edi
xor dword [ebp - 0x38], 0xd4d5f1e5
mov dword [ebx], esi
add dword [ebp - 0x28], ebx
add ebx, 4
add edx, 0x5c9ee52b
add edx, 0xa3611ad9
loop 0x100080e4
add eax, 0x125ef
xor ebx, ebx
add ebx, eax
add eax, 0x93e81510
add eax, 0x6c17eaf5
mov ecx, 0xdded2f68
add ecx, 0x3212d098
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x10008b40
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
test eax, eax
je 0x10008b50
add eax, 0xffffff80
jmp 0x10008b52
xor eax, eax
mov eax, dword [eax + 0x14]
push esi
mov esi, dword [esp + 0x28]
push edi
mov ecx, 7
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x28], 0
test eax, eax
jne 0x10008b7f
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov eax, 0x80004005
jmp 0x10008b94
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push 0x1001be20
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [esp + 0x28]
test eax, eax
js 0x10008be7
test ecx, ecx
je 0x10008be2
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
xor esi, esi
call edi
test ax, ax
jns 0x10008bb2
mov esi, 1
push 0x11
call edi
test ax, ax
jns 0x10008bbe
add esi, 2
push 0x12
call edi
test ax, ax
jns 0x10008bca
add esi, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push esi
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 0x28]
jmp 0x10008be7
mov eax, 1
xor edx, edx
test eax, eax
setne dl
mov esi, edx
test ecx, ecx
je 0x10008bfc
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
pop edi
mov eax, esi
pop esi
add esp, 0x1c
ret 8
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.SOFTWAREClasses
mov ebx, ecx
mov dword [ebp - 0xc], 0
push 0x80000002
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call esi
test eax, eax
je 0x4013dc
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
call ebx
test esi, esi
jne 0x40141b
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push esi
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
cmp eax, 2
jne 0x401423
push dword [ebp - 4]
call ebx
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x401437
push dword [ebp - 4]
call ebx
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, eax
push edi
push eax
call fcn.0041f424
mov edi, eax
add esp, 4
test edi, edi
jne 0x40145b
push dword [ebp - 4]
call ebx
lea eax, [edi - 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push edi
push 0
push 0
push 0
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, eax
call ebx
test esi, esi
je 0x40148b
push edi
call fcn.0041f3e5
add esp, 4
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], 0
je 0x4014a7
push edi
push dword [ebp - 0x10]
push 0x436bd0
push 0x44a060
call fcn.0041cbe0
add esp, 0x10
push edi
call fcn.0041f3e5
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4037d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x426c
call fcn.00430be0
mov eax, dword [0x43a004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
movzx edx, word [eax + str._S_D_C_]
lea eax, [eax + 2]
mov word [ebp + eax - 0x4212], dx
test dx, dx
jne 0x403800
lea eax, [ebp - 0x214]
mov ecx, esi
push eax
lea edx, [ebp - 0x4202]
call fcn.004157e0
add esp, 4
test eax, eax
jne 0x40385a
lea edx, [eax + 0x6d]
mov ecx, 0x44a020
call fcn.0041cc00
mov dword [0x43bbd4], 1
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
mov dword [eax], 0x22
xorps xmm0, xmm0
lea eax, [ebp - 0x4220]
movlpd qword [ebp - 0x4264], xmm0
push eax
lea eax, [ebp - 0x4268]
movlpd qword [ebp - 0x425c], xmm0
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x4210]
movlpd qword [ebp - 0x4254], xmm0
push eax
lea eax, [ebp - 0x210]
movlpd qword [ebp - 0x424c], xmm0
push eax
movlpd qword [ebp - 0x4244], xmm0
movlpd qword [ebp - 0x423c], xmm0
movlpd qword [ebp - 0x4234], xmm0
movlpd qword [ebp - 0x422c], xmm0
mov dword [ebp - 0x4268], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403900
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d540
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x421c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4220]
xor ecx, ebp
pop esi
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
Function at 0x403ce0
Capabilities:
Accept command line arguments
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x43a004]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
push dword [0x43bc60]
mov esi, ecx
call fcn.0041f3e5
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add esp, 4
mov dword [0x43bc60], 0
push 0
push 0
push esi
call ebx
mov edi, eax
test edi, edi
je 0x403d47
lea ecx, [edi + edi]
push ecx
lfence
call fcn.0041f424
add esp, 4
mov dword [0x43bc60], eax
test eax, eax
je 0x403d54
lea ecx, [edi + 1]
push ecx
push eax
push esi
lfence
call ebx
mov eax, dword [0x43bc60]
test eax, eax
jne 0x403f11
push 0x436cd8
push esi
call fcn.0041f4c2
add esp, 8
test eax, eax
jne 0x403d8d
push 0x43bc68
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, 0x43bc68
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
push str.time
push esi
call fcn.0041f4c2
add esp, 8
test eax, eax
jne 0x403e06
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x1a]
mov eax, 0xcccccccd
movzx esi, word [0x44a1b6]
mul ecx
movzx eax, word [0x44a1b4]
shr edx, 3
push edx
push eax
movzx eax, word [esp + 0x20]
push eax
movzx eax, word [esp + 0x22]
push esi
push eax
movzx eax, word [esp + 0x28]
push esi
push eax
push str._2d_c_02d_c_02d_c_02d
push 0x441f18
call fcn.00402b70
add esp, 0x24
mov eax, 0x441f18
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
push str.date
push esi
call fcn.0041f4c2
add esp, 8
test eax, eax
jne 0x403e2f
call fcn.00411600
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
push str.random
push esi
call fcn.0041f4c2
add esp, 8
test eax, eax
jne 0x403e6d
push 0xa
push 0x43bc68
call fcn.0042008e
push eax
call fcn.00421445
add esp, 0xc
mov eax, 0x43bc68
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
push str.cmdcmdline
push esi
call fcn.0041f4c2
add esp, 8
test eax, eax
jne 0x403e97
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
push str.cmdextversion
push esi
call fcn.0041f4c2
add esp, 8
test eax, eax
jne 0x403ed1
push 0xa
push 0x43bc68
push 2
call fcn.00421445
add esp, 0xc
mov eax, 0x43bc68
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
push str.errorlevel
push esi
call fcn.0041f4c2
add esp, 8
test eax, eax
jne 0x403f0f
push 0xa
push 0x43bc68
push dword [0x43bbd4]
call fcn.00421445
add esp, 0xc
mov eax, 0x43bc68
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
Function at 0x405460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00430be0
mov eax, dword [0x43a004]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1008]
push eax
push 1
push 0
push 0x436d68
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40556c
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x100c], 0x1000
push eax
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x1010]
push eax
push 0
push str.AutoRun
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405560
mov eax, dword [ebp - 0x1010]
cmp eax, 2
je 0x4054e4
cmp eax, 1
jne 0x405560
cmp word [ebp - 0x1004], 0
je 0x405560
push edi
lea ecx, [ebp - 0x1004]
call fcn.00415300
mov edi, eax
test edi, edi
je 0x40555f
mov ecx, edi
call fcn.00403b90
mov ecx, dword [edi]
test ecx, ecx
je 0x405512
call fcn.00415e00
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40551e
call fcn.00415e00
mov eax, dword [edi + 8]
test eax, eax
je 0x405538
push esi
mov esi, dword [eax]
push eax
call fcn.0041f3e5
add esp, 4
mov eax, esi
test esi, esi
jne 0x405526
pop esi
mov al, byte [edi + 0xc]
cmp al, 7
je 0x405543
cmp al, 8
jne 0x405556
push dword [edi + 0x14]
call fcn.0041f3e5
push dword [edi + 0x18]
call fcn.0041f3e5
add esp, 8
push edi
call fcn.0041f3e5
add esp, 4
pop edi
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
Function at 0x405e70
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
push 0x436f04
call esi
cmp eax, 0xffffffff
je 0x405ee7
test al, 0x10
jne 0x405ee7
mov edx, 0x139
mov ecx, 0x44a020
call fcn.0041cc00
mov ecx, 0x436f04
call fcn.00415300
mov edi, eax
test edi, edi
je 0x405f7b
mov ecx, edi
call fcn.00403b90
mov ecx, dword [edi]
test ecx, ecx
je 0x405ebd
call fcn.00415e00
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x405ec9
call fcn.00415e00
mov eax, dword [edi + 8]
test eax, eax
je 0x405f54
mov esi, dword [eax]
push eax
call fcn.0041f3e5
add esp, 4
mov eax, esi
test esi, esi
jne 0x405ed4
jmp 0x405f54
push str.cmdexit.bat
call esi
cmp eax, 0xffffffff
je 0x405f7b
test al, 0x10
jne 0x405f7b
mov edx, 0x139
mov ecx, 0x44a020
call fcn.0041cc00
mov ecx, str.cmdexit.bat
call fcn.00415300
mov edi, eax
test edi, edi
je 0x405f7b
mov ecx, edi
call fcn.00403b90
mov ecx, dword [edi]
test ecx, ecx
je 0x405f30
call fcn.00415e00
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x405f3c
call fcn.00415e00
mov eax, dword [edi + 8]
test eax, eax
je 0x405f54
mov esi, dword [eax]
push eax
call fcn.0041f3e5
add esp, 4
mov eax, esi
test esi, esi
jne 0x405f43
mov al, byte [edi + 0xc]
cmp al, 7
je 0x405f5f
cmp al, 8
jne 0x405f72
push dword [edi + 0x14]
call fcn.0041f3e5
push dword [edi + 0x18]
call fcn.0041f3e5
add esp, 8
push edi
call fcn.0041f3e5
add esp, 4
cmp dword [0x4418a0], 0
je 0x405fc6
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [0x4418a4]
mov eax, dword [ecx + 4]
mov dword [0x4418a4], eax
test eax, eax
je 0x405faa
mov dword [eax], 0
jmp 0x405fb4
mov dword [0x4418a8], 0
push ecx
call fcn.0041f3e5
add esp, 4
sub dword [0x4418a0], 1
jne 0x405f90
call fcn.00410100
push dword [0x43bc60]
call fcn.0041f3e5
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add esp, 4
mov dword [0x43bc60], 0
push 0
push 0
push 0
call edi
mov esi, eax
test esi, esi
je 0x40601b
lea ecx, [esi + esi]
push ecx
lfence
call fcn.0041f424
add esp, 4
mov dword [0x43bc60], eax
test eax, eax
je 0x40601b
lea ecx, [esi + 1]
push ecx
push eax
push 0
lfence
call edi
push 0
push 0x405140
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 7
push dword [0x44a000]
call esi
push 3
push dword [0x44a080]
call esi
push 0x44a1e0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
ret
Function at 0x406050
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43a004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x44a1e0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.00419910
mov dword [0x44a1f8], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call fcn.004215e1
add esp, 4
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov dword [0x44a1cc], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push dword [0x44a1cc]
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 1
push 0xfffffffffffffff6
mov dword [0x44a1d0], eax
call esi
mov edx, eax
mov ecx, 0x449fe0
call fcn.0041cda0
add esp, 8
push dword [0x44a1d0]
push dword [0x43a944]
push 0xfffffffffffffff5
call esi
mov edx, eax
mov ecx, 0x44a060
call fcn.0041cda0
add esp, 8
push dword [0x44a1d0]
push dword [0x43a944]
push 0xfffffffffffffff4
call esi
mov edx, eax
mov ecx, 0x44a020
call fcn.0041cda0
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x44a408], eax
call fcn.00405580
call fcn.004050b0
call fcn.00405e70
push dword [0x44a1f8]
call fcn.0041f3e5
add esp, 4
push dword [0x43bbd4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x406150
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ax, word [ebp + 0xc]
push ebx
mov bx, word [ebp + 8]
push esi
push edi
mov word [ebp + 0xa], ax
mov edi, ecx
mov eax, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov word [ebp + 8], bx
push dword [ebp + 8]
mov dword [ebp - 4], eax
push 0xfffffffffffffff5
call eax
push eax
mov eax, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov dword [ebp - 8], eax
call eax
mov ecx, edi
xor esi, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406190
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x4061e3
lfence
nop word [eax + eax]
push 1
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x20
push eax
push 0x44a060
call fcn.0041c900
mov eax, edi
inc esi
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4061d0
sub eax, edx
sar eax, 1
cmp esi, eax
jl 0x4061b0
push 0x1fff
push 0
push edi
call fcn.004216ce
mov ax, word [ebp + 0xa]
add esp, 0xc
mov word [ebp + 0xe], ax
mov word [ebp + 0xc], bx
push dword [ebp + 0xc]
push 0xfffffffffffffff5
call dword [ebp - 4]
push eax
call dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407900
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, edx
mov dword [ebp - 8], 0
push esi
push edi
mov esi, ecx
lea edi, [ebx - 1]
push edi
call fcn.0041f424
lea ecx, [ebx + ebx]
mov dword [ebp - 0xc], eax
push ecx
push 0
push esi
call fcn.0041e550
add esp, 0x10
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 0
lea eax, [ebp - 8]
push eax
push edi
mov edi, dword [ebp - 0xc]
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebx - 1]
push eax
push esi
push dword [ebp - 8]
push edi
push 0
push dword [0x44a1cc]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call fcn.0041f3e5
movzx eax, word [esi]
add esp, 4
test ax, ax
je 0x4079bc
mov ecx, eax
nop
cmp cx, 0xd
je 0x4079b7
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x407990
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [esi], ax
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret