joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6489e2
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
pushal
mov esi, dword [0x7d2b70]
mov edi, dword [0x7d2b78]
mov ebp, dword [0x7d2ba8]
mov ebx, dword [0x7d2b4c]
test dword [0x7d2b5c], 0xffffffff
je 0x648a22
xor edx, edx
mov eax, dword [0x7d2b5c]
idiv dword [ebx - 4]
mov dword [0x7d2b5c], edx
lea edx, [ebx + edx*4]
mov esi, dword [edx]
add esi, dword [0x7d2b70]
mov ecx, dword [0x7d2b7c]
and ecx, 0xffff
mov edx, dword [0x7d2bac]
test edx, edx
je 0x648ada
xchg ecx, edx
lodsb al, byte [esi]
cmp al, 0xff
jne 0x648a68
lodsb al, byte [esi]
and eax, 0xff
sub ecx, eax
js 0x648a4f
jne 0x648a3e
lea edi, [edi + ecx*2]
neg ecx
sub edx, ecx
je 0x648bd5
jns 0x648ad8
neg edx
lea edi, [edi + edx*2]
jmp 0x648bd5
cmp al, 0xfe
jne 0x648a94
lodsb al, byte [esi]
and eax, 0xff
lea esi, [eax + esi]
sub ecx, eax
js 0x648a7b
jne 0x648a3e
lea edi, [edi + ecx*2]
neg ecx
sub edx, ecx
je 0x648bd5
jns 0x648ad8
neg edx
lea edi, [edi + edx*2]
jmp 0x648bd5
and eax, 0xff
lea esi, [eax + esi]
sub ecx, eax
jns 0x648ad2
lea esi, [ecx + esi]
neg ecx
mov eax, ecx
sub edx, eax
jns 0x648aaf
add eax, edx
xor edx, edx
mov ecx, eax
mov eax, dword [0x7d2b94]
sub edi, 2
mov al, byte [esi]
inc esi
mov ax, word [ebp + eax*2]
mov word [edi + 2], ax
dec ecx
jne 0x648ab1
add ecx, edx
je 0x648bd5
jmp 0x648ada
jne 0x648a3e
mov ecx, edx
lodsb al, byte [esi]
cmp al, 0xff
jne 0x648afe
mov al, byte [esi]
inc esi
and eax, 0xff
neg eax
lea edi, [edi + eax*2]
add ecx, eax
jns 0x648af7
neg ecx
lea edi, [edi + ecx*2]
xor ecx, ecx
jne 0x648ada
jmp 0x648bd5
cmp al, 0xfe
jne 0x648b24
mov al, byte [esi]
and eax, 0xff
lea esi, [eax + esi + 1]
neg eax
lea edi, [edi + eax*2]
add ecx, eax
jns 0x648b1d
neg ecx
lea edi, [edi + ecx*2]
xor ecx, ecx
jne 0x648ada
jmp 0x648bd5
mov edx, dword [0x7d2b94]
shl edx, 1
and eax, 0xff
sub ecx, eax
jns 0x648b39
add eax, ecx
xor ecx, ecx
push ecx
mov ecx, eax
add ebp, edx
cmp ecx, 8
jge 0x648b5c
mov al, byte [esi]
inc esi
and eax, 0xff
sub edi, 2
mov ax, word [ebp + eax*2]
dec ecx
mov word [edi + 2], ax
jne 0x648b43
jmp 0x648bca
sub edi, 2
test edi, 2
je 0x648b7c
mov al, byte [esi]
inc esi
and eax, 0xff
sub edi, 2
mov ax, word [ebp + eax*2]
dec ecx
mov word [edi + 4], ax
sub ecx, 2
mov al, byte [esi]
inc esi
and eax, 0xff
sub edi, 4
mov dx, word [ebp + eax*2]
mov al, byte [esi]
shl edx, 0x10
inc esi
mov dx, word [ebp + eax*2]
sub ecx, 2
mov dword [edi + 4], edx
jns 0x648b7f
add edi, 2
test ecx, 1
je 0x648bc2
mov al, byte [esi]
inc esi
and eax, 0xff
sub edi, 2
mov ax, word [ebp + eax*2]
dec ecx
mov word [edi + 2], ax
mov edx, dword [0x7d2b94]
shl edx, 1
pop ecx
sub ebp, edx
test ecx, ecx
jne 0x648ada
test dword [0x7d2b50], 0xffffffff
jns 0x648c01
mov esi, dword [0x7d2b5c]
dec esi
jns 0x648bee
mov esi, dword [ebx - 4]
dec esi
mov dword [0x7d2b5c], esi
lea esi, [ebx + esi*4]
mov esi, dword [esi]
add esi, dword [0x7d2b70]
jmp 0x648c20
mov esi, dword [0x7d2b5c]
inc esi
cmp esi, dword [ebx - 4]
jne 0x648c0f
xor esi, esi
mov dword [0x7d2b5c], esi
lea esi, [ebx + esi*4]
mov esi, dword [esi]
add esi, dword [0x7d2b70]
add edi, dword [0x7d2b98]
sub dword [0x7d2b7c], 0x10000
jns 0x648a22
popal
ret
Function at 0x64bcb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6ca8b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x774458]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.0062a550
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esi], vtable.ClassDisplayDevice.0
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
mov word [esi + 0x38], ax
mov word [esi + 0x36], ax
mov word [esi + 0x34], ax
mov edx, dword [esi]
mov dword [esp + 0x14], eax
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 8], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
push eax
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x651675
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x774458]
jne 0x65167f
repz ret
jmp fcn.0065cebc
Function at 0x65b498
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x7745d0]
je 0x65b4b3
inc edi
cmp edi, 0x17
jb 0x65b4a4
cmp edi, 0x17
jae 0x65b633
push ebp
push 3
call fcn.00676a1e
cmp eax, 1
pop ecx
je 0x65b5ff
push 3
call fcn.00676a1e
test eax, eax
pop ecx
jne 0x65b4e7
cmp dword [0x774580], 1
je 0x65b5ff
cmp ebx, 0xfc
je 0x65b632
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x7d2d90
push ebp
call fcn.00664833
add esp, 0xc
test eax, eax
je 0x65b51d
push esi
push esi
push esi
push esi
push esi
call fcn.00654cba
add esp, 0x14
push 0x104
mov esi, 0x7d2da9
push esi
push 0
mov byte [0x7d2ead], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x65b561
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00664833
add esp, 0xc
test eax, eax
je 0x65b561
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00654cba
add esp, 0x14
push esi
call fcn.00657f80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x65b5a6
push esi
call fcn.00657f80
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x7d30a4
push 0x6fed74
sub ecx, eax
push ecx
push eax
call fcn.0066d3b6
add esp, 0x14
test eax, eax
je 0x65b5a6
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00654cba
add esp, 0x14
jmp 0x65b5a8
xor esi, esi
push 0x6fed70
push ebx
push ebp
call fcn.0066d2fe
add esp, 0xc
test eax, eax
je 0x65b5c8
push esi
push esi
push esi
push esi
push esi
call fcn.00654cba
add esp, 0x14
push dword [edi*8 + 0x7745d4]
push ebx
push ebp
call fcn.0066d2fe
add esp, 0xc
test eax, eax
je 0x65b5ea
push esi
push esi
push esi
push esi
push esi
call fcn.00654cba
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00676861
add esp, 0xc
jmp 0x65b632
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x65b632
cmp ebp, 0xffffffff
je 0x65b632
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x7745d4]
push dword [esi]
call fcn.00657f80
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x676861
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0065b76b
xor ebx, ebx
cmp dword [0x7d3704], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x676937
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x676a17
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x676a17
push eax
call fcn.0065b6fd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x7d3704], eax
call esi
push eax
call fcn.0065b6fd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x7d3708], eax
call esi
push eax
call fcn.0065b6fd
mov dword [0x7d370c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.006597a4
test eax, eax
pop ecx
pop ecx
je 0x676905
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00654cba
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x676937
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0065b6fd
cmp eax, ebx
pop ecx
mov dword [0x7d3714], eax
je 0x676937
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0065b6fd
pop ecx
mov dword [0x7d3710], eax
mov eax, dword [0x7d3710]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x6769bc
cmp dword [0x7d3714], ecx
je 0x6769bc
push eax
call fcn.0065b774
push dword [0x7d3714]
mov esi, eax
call fcn.0065b774
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x6769bc
cmp edi, ebx
je 0x6769bc
call esi
cmp eax, ebx
je 0x676989
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x676989
test byte [ebp - 0x18], 1
jne 0x6769bc
lea eax, [ebp - 0x10]
push eax
call fcn.00659853
test eax, eax
pop ecx
je 0x6769a4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00654cba
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x6769b3
or dword [ebp + 0x10], 0x200000
jmp 0x6769f7
or dword [ebp + 0x10], 0x40000
jmp 0x6769f7
mov eax, dword [0x7d3708]
cmp eax, dword [ebp - 8]
je 0x6769f7
push eax
call fcn.0065b774
cmp eax, ebx
pop ecx
je 0x6769f7
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x6769f7
mov eax, dword [0x7d370c]
cmp eax, dword [ebp - 8]
je 0x6769f7
push eax
call fcn.0065b774
cmp eax, ebx
pop ecx
je 0x6769f7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x7d3704]
call fcn.0065b774
cmp eax, ebx
pop ecx
je 0x676a17
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x676a19
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x403e59
pop dword [ebp - 0x40]
mov eax, 0x1c5ea79e
sub eax, 0x1c1e6945
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x31227d79
add dword [ebp - 0x50], 0x1d2fc7d2
mov dword [ebp - 0x4c], 0xd511062d
add dword [ebp - 0x4c], 0x5d224618
mov dword [ebp - 0x48], 0x8977955c
add dword [ebp - 0x48], 0xc2d4aed2
mov dword [ebp - 0x44], 0xbdddee8e
add dword [ebp - 0x44], 0x42221172
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xbd180adb
add dword [ebp - 0x50], 0xb75a5e7b
mov dword [ebp - 0x4c], 0xa4c8c1cc
sub dword [ebp - 0x4c], 0x635c6057
mov dword [ebp - 0x48], 0x59219450
add dword [ebp - 0x48], 0xa4dd81c
mov dword [ebp - 0x44], 0x7f9d7f89
add dword [ebp - 0x44], 0x80628077
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xf2894510
sub eax, 0xf248c43c
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3680d
push 0
call eax
mov ecx, 0x92f232be
sub ecx, 0x92f1ebb8
mov esi, eax
mov edx, 0x411000
add edx, dword [ebp - 0x40]
mov edi, 0xc08561a0
add edi, 0x2b4114b
xor dword [ebp - 0x24], ecx
mov ebx, dword [edx]
sub dword [ebp - 0x2c], 0x63a9c43d
sub ebx, edi
sub dword [ebp - 0xc], esi
mov dword [esi], ebx
sub dword [ebp - 0x34], eax
add esi, 0x9eec7d76
add esi, 0x6113828e
add edx, 0xc4eac857
sub edx, 0xc4eac853
loop 0x403f70
add eax, 0x2b3e1fbd
add eax, 0xd4c2ef2e
mov ebx, eax
add eax, 0xc10d719f
sub eax, 0xc10d719a
mov ecx, 0x2793eb70
sub ecx, 0x2753eb70
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401360
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
jne 0x401381
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
cmp eax, 2
je 0x40138f
cmp eax, 3
jne 0x40137c
mov edx, dword [esi + 4]
mov eax, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.MSVCR80.dll_wcsncpy]
push 0x104
push edx
push eax
call edi
add esp, 0xc
cmp dword [esp + 8], 3
jne 0x4013c3
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x14]
push 0x104
push ecx
push edx
call edi
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov al, 1
pop esi
pop ecx
ret
Function at 0x4027a0
Capabilities:
Get disk information
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x403b39
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40603c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40603c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x4028c9
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4027e1
sub eax, edx
sar eax, 1
je 0x4028c9
movzx eax, word [esi]
cmp ax, 0x53
jne 0x40280f
push str.This_is_scanner._Not_supported.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4028c9
cmp ax, 0x56
jne 0x402842
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call ebx
mov ebp, eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push ebp
mov edi, eax
call ebx
cmp edi, 4
je 0x4028c9
cmp edi, 5
je 0x4028c9
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [esp + 0x40], 0
movzx eax, word [esi]
cmp ax, 0x43
lea ecx, [esp + 0x18]
jne 0x402890
add esi, 4
push esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea ecx, [esp + 0x18]
push ecx
call fcn.00401a10
add esp, 4
lea ecx, [esp + 0x18]
mov bl, al
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
jmp 0x4028cb
cmp ax, 0x56
jne 0x4028a7
add esi, 4
push esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea edx, [esp + 0x18]
push edx
jmp 0x402870
cmp ax, 0x57
jne 0x4028bb
push esi
call dword [0x404090]
lea eax, [esp + 0x18]
push eax
jmp 0x402870
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00402f2c
add esp, 0x30
ret
Function at 0x402d50
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esi + 4]
sub esp, 8
test eax, eax
je 0x402df6
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea ecx, [esp + 8]
push ecx
push 0
lea edx, [esp + 0x14]
push edx
push 0
push str.TwainDS
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0
call ebp
mov eax, dword [esp + 8]
cmp eax, dword [esi + 0xc]
lea edi, [esi + 0xc]
jbe 0x402dd0
mov ecx, dword [esi + 0x10]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov eax, dword [esp + 0xc]
mov dword [edi], eax
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402f1b
mov ecx, dword [edi]
push ecx
push 0
push eax
mov dword [esi + 0x10], eax
call sub.MSVCR80.dll_memset
add esp, 0x14
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 4]
push edi
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.TwainDS
push ecx
call ebp
test eax, eax
pop edi
mov dword [esi], eax
pop ebp
jne 0x402df6
mov eax, dword [esi + 0x10]
add esp, 8
ret
xor eax, eax
add esp, 8
ret

Function at 0x402f2c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40603c]
jne 0x402f36
repz ret
jmp fcn.0040330c
Function at 0x40107e
Capabilities:
Delete file
Manipulate console buffer
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.0040b270
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
mov esi, dword [eax + 4]
xor ebx, ebx
cmp dword [0x43d93c], 0x594
push edi
mov dword [ebp - 0x14], ecx
jne 0x4010b6
push ebx
lea eax, [ebp - 0x844]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x42e5e8]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x42e5ec]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x38], 0x9e3779b9
call fcn.00401077
mov eax, dword [0x42e5f0]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x28], eax
mov eax, dword [0x42e5f4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], 0x20
jmp 0x4010fb
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, dword [ebp - 0x14]
shl eax, 4
cmp dword [0x43d93c], 0xc
mov dword [ebp - 4], eax
jne 0x401156
push ebx
lea eax, [ebp - 0x444]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push ebx
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
xor eax, eax
mov word [ebp - 0x20], ax
lea edi, [ebp - 0x1e]
stosw word es:[edi], ax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x1044]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x43d93c]
cmp eax, 0xfa9
jne 0x401172
mov dword [0x43d938], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401198
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x43d890], ebx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add eax, edx
shr edx, cl
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [0x43d934], 0xf4ea3dee
add edx, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor eax, edx
sub esi, eax
mov eax, esi
shl eax, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add eax, esi
shr esi, cl
mov dword [ebp - 0x1c], eax
add esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
cmp dword [0x43d93c], 0xb03
jne 0x401211
push str.durumiwoxupik_lupohilapivuhavufuxuxujimerafa_jofasejupajihihu
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
xor dword [ebp - 4], esi
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
sub dword [ebp - 8], eax
dec dword [ebp - 0x24]
jne 0x4010f8
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x4046e0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d348]
jne 0x4046ea
repz ret
jmp fcn.0040a971

Function at 0x40a62c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004059ab
and dword [ebp - 4], 0
cmp dword [0x432920], 0
mov ebx, eax
jne 0x40a6dd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a78e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a78e
push eax
call fcn.00405939
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x432920], eax
call esi
push eax
call fcn.00405939
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x432924], eax
call esi
push eax
call fcn.00405939
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x432928], eax
call esi
push eax
call fcn.00405939
pop ecx
mov dword [0x432930], eax
test eax, eax
je 0x40a6dd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405939
pop ecx
mov dword [0x43292c], eax
mov eax, dword [0x43292c]
cmp eax, ebx
je 0x40a735
cmp dword [0x432930], ebx
je 0x40a735
push eax
call fcn.004059b4
push dword [0x432930]
mov esi, eax
call fcn.004059b4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a735
test edi, edi
je 0x40a735
call esi
test eax, eax
je 0x40a72c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a72c
test byte [ebp - 0xc], 1
jne 0x40a735
or dword [ebp + 0x10], 0x200000
jmp 0x40a76e
mov eax, dword [0x432924]
cmp eax, ebx
je 0x40a76e
push eax
call fcn.004059b4
pop ecx
test eax, eax
je 0x40a76e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a76e
mov eax, dword [0x432928]
cmp eax, ebx
je 0x40a76e
push eax
call fcn.004059b4
pop ecx
test eax, eax
je 0x40a76e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x432920]
call fcn.004059b4
pop ecx
test eax, eax
je 0x40a78e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a790
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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 0x40d8ee
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x402240
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404144], eax
mov ecx, ebp
add ecx, 8
mov dword [0x4040e2], ecx
mov dword [0x404148], 0x30
mov dword [0x40414c], 2
mov dword [0x404154], 0
mov dword [0x404158], 0
mov dword [0x404150], 0x4025d0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x40415c], eax
mov dword [0x404168], 0xf
mov dword [0x404170], 0x40386b
mov dword [0x4040da], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404160], eax
mov dword [0x404174], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x404164], eax
push 0x404148
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4040da]
push 0
push 0
push 0x24e
push 0x320
push 0xd8
push 0xa0
push 0x40000
push str.myform
push 0x40386b
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x40413c], eax
xor eax, eax
jmp 0x40232b
push eax
push dword [0x40413c]
call dword [sym.imp.user32.dll_ShowWindow]
jmp loc.00408320