joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403250
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x40327c
jl 0x403270
test ecx, ecx
jne 0x40327c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x403295
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x4032e3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x4032e9
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x4032e9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x403356
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x403312
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x403344
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x403356
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x403320
test edi, edi
je 0x403356
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4036d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x403700
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404e4a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40373c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40373c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404e4a
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x403813
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403764
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x403770
movsx eax, bl
jmp 0x4037a8
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x4037d2
sub eax, 1
je 0x4037d2
sub eax, 2
jne 0x403813
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404e4a
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4037f0
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x403813
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404e4a
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404e4a
mov esp, ebp
pop ebp
ret 4
Function at 0x403df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x403eac
cmp byte [esi + 0x3d], 0
je 0x403eac
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x403e9a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x403e61
sub eax, 1
je 0x403e65
sub eax, 2
jne 0x403e9a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404e4a
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403e83
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x403e9a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404e4a
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404e4a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00404e4a
mov esp, ebp
pop ebp
ret

Function at 0x4057b7
Capabilities:
Parse pe header

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

Disassembly:
xor dword [ebx], edi
push eax
pop edx
mov eax, 0x2ce65104
add ebx, 4
push edx
mov eax, dword [esp]
add esp, 4
cmp ebx, ecx
jne fcn.00414ddb
mov eax, 0x1698c24c
dec esi
ret
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1002aaee
pop dword [ebp - 0x1c]
mov eax, 0x7a5aa783
sub eax, 0x6a57fc95
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x9e21ad34
sub dword [ebp - 0x2c], 0x4fcf67e9
mov dword [ebp - 0x28], 0xad41a71c
add dword [ebp - 0x28], 0x84f1a529
mov dword [ebp - 0x24], 0x2de3bf6d
sub dword [ebp - 0x24], 0xe1977b3f
mov dword [ebp - 0x20], 0xd64de8f6
sub dword [ebp - 0x20], 0xd64de8f6
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xe0d44c49
sub dword [ebp - 0x2c], 0x6c61e2f3
mov dword [ebp - 0x28], 0x1891dd0d
add dword [ebp - 0x28], 0x28da8468
mov dword [ebp - 0x24], 0x1a4a0da8
sub dword [ebp - 0x24], 0xb6daa13c
mov dword [ebp - 0x20], 0x8780fb4b
sub dword [ebp - 0x20], 0x8780fb4b
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x392a8
push 0
call eax
mov ecx, 0x680fcb0c
add ecx, 0x97f087bf
xor edi, edi
add edi, eax
mov ebx, 0xa7288c73
add ebx, 0x68db098d
add ebx, dword [ebp - 0x1c]
mov edx, 0x56b0d5d1
sub edx, 0xfd11ec39
sub dword [ebp - 0xc], 0x9b51c635
mov esi, dword [ebx]
sub dword [ebp - 4], edx
xor esi, edx
sub dword [ebp - 0x18], ecx
mov dword [edi], esi
add edi, 0x664374c8
sub edi, 0x664374c4
add ebx, 0xd24fe21f
sub ebx, 0xd24fe21b
loop 0x1002ac08
add eax, 0xf2f86a04
add eax, 0xd08d3fb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x99af041
sub ecx, 0xf99af041
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x408f00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x42b0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x38], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + ecx + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x30], 0
xor edx, edx
mov word [ebp - 0x20], dx
mov dword [ebp - 0x24], 0
jmp 0x408f72
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x3c]
jae 0x408fee
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00403650
push 0x235
lea edx, [ebp - 0x1c]
push edx
call fcn.00409480
add esp, 8
cmp eax, dword [ebp + 0xc]
jne 0x408fd8
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov edx, dword [ebp - 0x24]
mov ax, word [ecx + edx*2]
mov word [ebp - 0x20], ax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
movzx eax, word [ebp - 0x20]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x1c]
call fcn.00404910
jmp 0x408fee
mov edx, dword [ebp - 0x2c]
add edx, 4
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x1c]
call fcn.00404910
jmp 0x408f69
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e97a
mov esp, ebp
pop ebp
ret

Function at 0x40edb5
Capabilities:
Parse pe header

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

Function at 0x4158a8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423c68
push 0x423c60
push str.FlsAlloc
push 0x1e
call fcn.00415769
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4158dc
push dword [ebp + 8]
mov ecx, esi
call dword [0x421194]
call esi
jmp 0x4158e2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415926
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423c78
push 0x423c70
push str.FlsGetValue
push 0x20
call fcn.00415769
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41595d
push dword [ebp + 8]
mov ecx, esi
call dword [0x421194]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x418a45
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x418ae2
push ebx
push esi
call fcn.00418a0e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00418957
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x418a8f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x418ae1
push edi
push eax
call fcn.004151d5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x418aaf
call fcn.0041519b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x418ae0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00418957
add esp, 0x20
test eax, eax
jne 0x418ace
push edi
call fcn.0041519b
jmp 0x418ad6
push ebx
call fcn.0041519b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x420390
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4203bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4203bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1001d7c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [esi - 0x3a]
test dword [ecx + 0x56fffffc], edi
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.1001cf64
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1001cf19
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.1001cf64
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1001cf19
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.1001cf64
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1001cf19
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.1001cf54
push ds
jbe 0x1001d95f
cld
invalid
sahf
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.1001cf64
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1001cf19
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.1001cf54
mov al, byte [0x80ef639b]
movsd dword es:[edi], dword [esi]
pushfd
stc
invalid
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422004]
jne 0x40100a
repz ret
jmp fcn.0040129c

Function at 0x40324b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x422004]
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.0040223e
and dword [ebp - 0x14], 0
cmp dword [0x424ab0], 0
mov dword [ebp - 0x18], eax
jne 0x4032fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4033a6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4033a6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x424ab0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x424ab4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x424ab8], eax
call edi
push eax
call esi
mov dword [0x424ac0], eax
test eax, eax
je 0x4032fe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x424abc], eax
mov eax, dword [0x424abc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403357
cmp dword [0x424ac0], ecx
je 0x403357
push eax
call esi
push dword [0x424ac0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403357
test ebx, ebx
je 0x403357
call edi
test eax, eax
je 0x40334e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40334e
test byte [ebp - 8], 1
jne 0x403357
or dword [ebp + 0x10], 0x200000
jmp 0x40338a
mov eax, dword [0x424ab4]
cmp eax, dword [ebp - 0x18]
je 0x40338a
push eax
call esi
test eax, eax
je 0x40338a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40338a
mov eax, dword [0x424ab8]
cmp eax, dword [ebp - 0x18]
je 0x40338a
push eax
call esi
test eax, eax
je 0x40338a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x424ab0]
call esi
test eax, eax
je 0x4033a6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4033a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x4054f0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x422b10]
sub esp, 0x10
push esi
mov esi, dword [0x469e78]
push edi
mov edi, dword [0x46a154]
push eax
call fcn.004053e0
add esp, 4
cmp dword [0x46a154], 0x2f
jne 0x405550
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.Bihux_nivew_zuziduzaz_winojego_roli
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push esi
call fcn.00405430
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405810
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x46a154]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
nop
cmp eax, 0x8cf
jne 0x405832
push 0
push 0
call edi
mov eax, dword [0x46a154]
cmp esi, 0x845013
jne 0x405849
mov eax, dword [0x423930]
add eax, 0xa231
mov dword [0x46a154], eax
cmp eax, 0x141
jne 0x405864
mov dword [0x424ff0], 0xec58acac
mov dword [0x424ff4], 0xffffffff
inc esi
cmp esi, 0xbbe2a98
jl 0x405820
call fcn.00405560
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x414de4
Capabilities:
Encode data using xor

Disassembly:
xor dword [edx], edi
add edx, 4
sub ebx, 0xb0d39393
or eax, ecx
sub ebx, ecx
cmp edx, esi
jne fcn.00414de4
mov ecx, ebx
add eax, eax
inc eax
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
jmp 0x4553c2
push 0x14
push 0x4764d0
call fcn.00455750
push 1
call fcn.00454fa8
pop ecx
test al, al
jne 0x455279
push 7
call fcn.00455a6c
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00454f73
mov byte [ebp - 0x24], al
mov eax, dword [0x7a89a4]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x455272
test eax, eax
jne 0x4552e3
mov dword [0x7a89a4], ecx
push 0x467420
push 0x467408
call fcn.0045b0ea
pop ecx
pop ecx
test eax, eax
je 0x4552c6
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4553bc
push 0x467404
push 0x4673b0
call fcn.0045b08e
pop ecx
pop ecx
mov dword [0x7a89a4], 2
jmp 0x4552e8
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00455102
pop ecx
call fcn.00455d5a
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x455318
push esi
call fcn.00455078
pop ecx
test al, al
je 0x455318
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00455747
call esi
call fcn.00455d60
mov esi, eax
cmp dword [esi], edi
je 0x455336
push esi
call fcn.00455078
pop ecx
test al, al
je 0x455336
push dword [esi]
call fcn.0045a4fa
pop ecx
call fcn.00455b87
movzx eax, ax
push eax
call fcn.0045b03b
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00455bba
test al, al
jne 0x455361
push esi
call fcn.0045a532
test bl, bl
jne 0x45536a
call fcn.0045a4d5
push edi
push 1
call fcn.0045511f
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4553bc
call fcn.00455796
ret
call fcn.00455c53
jmp 0x45525a
Function at 0x402810
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
shr edi, 2
xor edx, edx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
add eax, 3
mov dword [ecx], eax
add ecx, 0x10
test edi, edi
je 0x402845
mov eax, dword [esi]
lea esi, [esi + 4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, edi
jb 0x402838
mov ebx, dword [ecx + edi*4 - 4]
lea eax, [edi + 0xe]
lea eax, [edi + eax*2]
lea esi, [ecx + eax*4]
mov dword [ebp + 8], esi
xor esi, esi
mov eax, dword [ebp + 8]
nop word [eax + eax]
test esi, esi
jne 0x4028c1
movzx eax, bl
mov esi, dword [ebp - 4]
movzx edx, byte [eax + 0x467440]
mov eax, ebx
shr eax, 0x18
shl edx, 8
movzx eax, byte [eax + 0x467440]
or edx, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
shr ebx, 8
shl edx, 8
movzx eax, byte [eax + 0x467440]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + 0x467440]
mov eax, 0x1b
xor ebx, esi
add esi, esi
or ebx, edx
test esi, 0x100
cmovne esi, eax
mov dword [ebp - 4], esi
mov esi, edi
jmp 0x40290e
cmp esi, 4
jne 0x402911
cmp edi, 6
jbe 0x402911
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x467440]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x467440]
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x467440]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + 0x467440]
or ebx, edx
mov eax, dword [ebp + 8]
xor ebx, dword [ecx]
dec esi
mov dword [ecx + edi*4], ebx
add ecx, 4
cmp ecx, eax
jne 0x402860
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4