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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x29876b48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x29807306
xor eax, eax
jmp 0x298073c1
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
je 0x29807328
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, dword [eax]
cmp dword [eax], edx
jae 0x29807328
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
mov eax, ebx
jmp 0x298073c1
cmp dword [esi + 0x4c], 0
je 0x298073bf
call fcn.29806a7d
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x29807352
push dword [esi + 0x4c]
push eax
call fcn.2981e44a
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x298073bf
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
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]
test eax, eax
js 0x298073bf
cmp eax, 1
jle 0x2980738d
cmp eax, 3
jne 0x298073bf
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x29807344
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x298073b1
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x298073bf
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x298073c1
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.29801cc0
leave
ret 4
Function at 0x29826d7d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x29854690
call fcn.2985114e
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x29826f9e
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
call fcn.2981e44a
add esp, 0x10
test eax, eax
js 0x29826f98
mov edi, dword [ebp - 0x420]
cmp edi, 0x400
jg 0x29826e21
push edi
call fcn.29827ddd
pop ecx
test al, al
je 0x29826e21
mov eax, edi
call fcn.29851670
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x29826e33
push edi
lea ecx, [ebp - 0x424]
call fcn.2981e44a
mov esi, dword [ebp - 0x424]
push 3
push edi
push dword [ebp - 0x41c]
push eax
call fcn.2981e44a
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x29826f98
push 0x60
push ebx
push eax
call fcn.29828150
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x29826e8b
push 2
push ebx
push dword [ebp - 0x41c]
call fcn.29828150
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
jne 0x29826e8b
call fcn.29825061
mov ebx, eax
jmp 0x29826f67
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x29826eb2
call fcn.29825061
jmp 0x29826f5a
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x29826ea8
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x41c], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x29826ee5
mov ebx, 0x8007000e
jmp 0x29826f5c
push ecx
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.2981e44a
jmp 0x29826f0b
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x29826ede
mov eax, dword [ebp - 0x41c]
push eax
push dword [ebp - 0x428]
push eax
push dword [ebp - 0x418]
call fcn.2981e44a
mov eax, dword [ebp - 0x418]
add esp, 0x10
mov ecx, dword [ebp - 0x41c]
push dword [ebp + 0x14]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.2981e44a
mov ebx, eax
test edi, edi
je 0x29826f67
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x29826f80
lea ecx, [ebp - 0x418]
call fcn.29825bb4
or dword [ebp - 4], 0xffffffff
jmp 0x29826f90
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x29826f86
mov eax, ebx
jmp 0x29826fcc
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x29826fb3
lea ecx, [ebp - 0x418]
call fcn.29825bb4
or dword [ebp - 4], 0xffffffff
jmp 0x29826fc3
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x29826fb9
mov eax, 0x8007000e
lea esp, [ebp - 0x444]
call fcn.29851106
ret 0x10
Function at 0x700e370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x700e37f
pop dword [ebp - 0x40]
mov eax, 0x700e37f
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xf199c0d1
add dword [ebp - 0x50], 0x5cb8847a
mov dword [ebp - 0x4c], 0xa16e168b
add dword [ebp - 0x4c], 0x90c535ba
mov dword [ebp - 0x48], 0xf6cfc042
sub dword [ebp - 0x48], 0xaa837c14
mov dword [ebp - 0x44], 0x58a415de
sub dword [ebp - 0x44], 0x58a415de
lea eax, [ebp - 0x50]
push eax
mov eax, 0x5135cdd9
sub eax, 0x4a34ada9
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x179cd7d0
add dword [ebp - 0x50], 0x5cd59186
mov dword [ebp - 0x4c], 0x33ec7564
add dword [ebp - 0x4c], 0xd7fec11
mov dword [ebp - 0x48], 0x5006aeb8
sub dword [ebp - 0x48], 0xec97424c
mov dword [ebp - 0x44], 0x75f4cbbf
add dword [ebp - 0x44], 0x8a0b3441
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x409ed183
add eax, 0xc6624eb1
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3d579
push 0
call eax
mov ecx, 0x362163a2
sub ecx, 0x3621109e
mov esi, eax
mov edi, 0x60931
sub edi, 0xf9042931
add edi, dword [ebp - 0x40]
mov edx, 0xff0f4721
add edx, 0xff3e022d
add dword [ebp - 0x14], 0xaa5b8e55
mov ebx, dword [edi]
sub dword [ebp - 0x34], eax
add ebx, edx
sub dword [ebp - 0x34], 0x7e13310b
mov dword [esi], ebx
xor dword [ebp - 0x38], eax
add esi, 0x4a6b9cef
sub esi, 0x4a6b9ceb
add edi, 0x38a690e6
add edi, 0xc7596f1e
loop 0x700e49c
add eax, 0xee3532ac
add eax, 0x11cc0c37
mov ebx, eax
add eax, 0xef534d6b
add eax, 0x10acb29a
mov ecx, 0x7000000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401010
Capabilities:
Accept command line arguments
Create thread

Disassembly:
sub esp, 0x40c
mov eax, dword [0x40d154]
xor eax, esp
mov dword [esp + 0x408], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x40e944], eax
test eax, eax
jne 0x40104f
push 1
call fcn.00403235
push str..pipe_
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.00402d13
push str..pipe_
lea eax, [esp + 0x11c]
push 0x100
push eax
call fcn.00402d13
mov edx, dword [esi]
add esp, 0x18
push 0
push 0
push 0x80
lea ecx, [esp + 0x218]
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor esi, esi
movsx eax, byte [esp + esi + 0x20c]
push eax
call fcn.00402f18
add esp, 4
cmp al, 0x39
ja 0x4010c4
shl al, 4
mov ecx, esi
shr ecx, 1
mov byte [esp + ecx + 0x15], al
jmp 0x4010d1
sub al, 7
shl al, 4
mov edx, esi
shr edx, 1
mov byte [esp + edx + 0x15], al
movsx eax, byte [esp + esi + 0x20d]
inc esi
push eax
call fcn.00402f18
mov edx, esi
shr edx, 1
add esp, 4
lea ecx, [esp + edx + 0x15]
cmp al, 0x39
ja 0x4010f3
sub al, 0x30
jmp 0x4010f5
sub al, 0x37
add byte [ecx], al
mov al, byte [ecx]
xor al, 0x6c
sub al, dl
mov dl, al
sar dl, 4
and dl, 0xf
shl al, 4
xor dl, al
mov byte [ecx], dl
je 0x401114
inc esi
cmp esi, 0x44
jb 0x4010a2
push edi
mov edi, 0x44
xor esi, esi
lea esp, [esp]
movsx ecx, byte [esp + edi + 0x210]
push ecx
call fcn.00402f18
add esp, 4
cmp al, 0x39
ja 0x401145
shl al, 4
mov edx, esi
shr edx, 1
mov byte [esp + edx + 0x119], al
jmp 0x401155
sub al, 7
shl al, 4
mov ecx, esi
shr ecx, 1
mov byte [esp + ecx + 0x119], al
movsx edx, byte [esp + edi + 0x211]
inc edi
push edx
inc esi
call fcn.00402f18
mov edx, esi
shr edx, 1
add esp, 4
lea ecx, [esp + edx + 0x119]
cmp al, 0x39
ja 0x40117b
sub al, 0x30
jmp 0x40117d
sub al, 0x37
add byte [ecx], al
mov al, byte [ecx]
xor al, 0xc6
sub al, dl
mov dl, al
sar dl, 4
and dl, 0xf
shl al, 4
xor dl, al
mov byte [ecx], dl
je 0x4011a0
inc edi
inc esi
cmp edi, 0x88
jb 0x401120
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x28]
push eax
call esi
mov dword [0x40e948], eax
pop edi
cmp eax, 0xffffffff
jne 0x4011d1
push 1
call fcn.00403235
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x124]
push ecx
call esi
mov dword [0x40e940], eax
cmp eax, 0xffffffff
jne 0x4011fe
push 1
call fcn.00403235
lea edx, [esp + 8]
push edx
push 0
push 0x40e948
push 0x401220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.00401290
int3
Function at 0x401c18
Capabilities:
Execute shellcode via indirect call
Read file on windows

Disassembly:
call fcn.0040268e
mov byte [0x40d116], 1

Function at 0x401c24
Capabilities:
Execute shellcode via indirect call
Read file on windows

Disassembly:
push 0x40d0fd
pop dword [0x40c302]
mov dword [0x40d0fd], 0
Function at 0x4026f1
Capabilities:
Query environment variable

Disassembly:
mov dword [0x40cb96], 0
push 0x40c64f
call fcn.004029e1
je 0x4028b2
or dword [0x40cb96], 1
call fcn.004028dd
je 0x402874
jb 0x40286d
or dword [0x40cb96], 2
mov eax, 0x40c54b
cmp byte [eax], 0
jne 0x40288a
or dword [0x40cb96], 0x20
push 0x40c64f
push 0x40c753
call sub.KERNEL32.dll_lstrcpy
call fcn.004029ab
jne 0x402874
or dword [0x40cb96], 0x10
push 0x40c64f
push 0x40c753
call sub.KERNEL32.dll_lstrcpy
push 0x40c9c3
push 0x40c753
call sub.KERNEL32.dll_lstrcat
call fcn.004029ab
jne 0x402874
or dword [0x40cb96], 4
push 0x100
push 0x40c753
push str.APPDATA
call sub.KERNEL32.dll_GetEnvironmentVariableA
cmp eax, 0
je 0x4027fb
push 0x40cc4a
push 0x40c753
call sub.KERNEL32.dll_lstrcat
push 0x40c1c5
push 0x40c753
call sub.KERNEL32.dll_lstrcat
push 0x40cc4a
push 0x40c753
call sub.KERNEL32.dll_lstrcat
push str.ARIS
push 0x40c753
call sub.KERNEL32.dll_lstrcat
push 0x40c9c3
push 0x40c753
call sub.KERNEL32.dll_lstrcat
call fcn.004029ab
jne 0x402874
or dword [0x40cb96], 8
push 0x100
push 0x40c753
push str.ALLUSERSPROFILE
call sub.KERNEL32.dll_GetEnvironmentVariableA
cmp eax, 0
je 0x40286d
push 0x40cc4a
push 0x40c753
call sub.KERNEL32.dll_lstrcat
push 0x40c1c5
push 0x40c753
call sub.KERNEL32.dll_lstrcat
push 0x40cc4a
push 0x40c753
call sub.KERNEL32.dll_lstrcat
push str.ARIS
push 0x40c753
call sub.KERNEL32.dll_lstrcat
push 0x40c9c3
push 0x40c753
call sub.KERNEL32.dll_lstrcat
call fcn.004029ab
jne 0x402874
mov eax, 0
clc
ret
push 0x40c753
push 0x40c54b
call sub.KERNEL32.dll_lstrcpy
mov eax, 1
clc
ret
push 0x40c9cc
push 0x40c54b
call sub.KERNEL32.dll_FindFirstFileA
cmp eax, 0xffffffff
je 0x40286d
mov ecx, 0x40cb80
cmp dword [ecx], 0
je 0x4028ab
push eax
call dword [ecx]
mov eax, 1
clc
ret
mov eax, 0xff
stc
ret

Function at 0x402d04
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d154]
jne 0x402d0e
repz ret
jmp fcn.0040347e
Function at 0x40716c
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.004041b0
and dword [ebp - 4], 0
cmp dword [0x40e714], 0
mov ebx, eax
jne 0x40721d
push 0x40b268
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4072ce
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40b25c
push edi
call esi
test eax, eax
je 0x4072ce
push eax
call fcn.0040413e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e714], eax
call esi
push eax
call fcn.0040413e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e718], eax
call esi
push eax
call fcn.0040413e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e71c], eax
call esi
push eax
call fcn.0040413e
pop ecx
mov dword [0x40e724], eax
test eax, eax
je 0x40721d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040413e
pop ecx
mov dword [0x40e720], eax
mov eax, dword [0x40e720]
cmp eax, ebx
je 0x407275
cmp dword [0x40e724], ebx
je 0x407275
push eax
call fcn.004041b9
push dword [0x40e724]
mov esi, eax
call fcn.004041b9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407275
test edi, edi
je 0x407275
call esi
test eax, eax
je 0x40726c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40726c
test byte [ebp - 0xc], 1
jne 0x407275
or dword [ebp + 0x10], 0x200000
jmp 0x4072ae
mov eax, dword [0x40e718]
cmp eax, ebx
je 0x4072ae
push eax
call fcn.004041b9
pop ecx
test eax, eax
je 0x4072ae
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4072ae
mov eax, dword [0x40e71c]
cmp eax, ebx
je 0x4072ae
push eax
call fcn.004041b9
pop ecx
test eax, eax
je 0x4072ae
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e714]
call fcn.004041b9
pop ecx
test eax, eax
je 0x4072ce
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4072d0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41723a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x417249
pop dword [ebp - 0x44]
mov eax, 0x417249
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xe9c36e70
add dword [ebp - 0x54], 0x648ed6db
mov dword [ebp - 0x50], 0x9e434422
sub dword [ebp - 0x50], 0x6c0ff7dd
mov dword [ebp - 0x4c], 0x4d22de3e
sub dword [ebp - 0x4c], 0xd69a10
mov dword [ebp - 0x48], 0x3a5c5d05
sub dword [ebp - 0x48], 0x3a5c5d05
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xb3d0eb31
add dword [ebp - 0x54], 0xc0a17e25
mov dword [ebp - 0x50], 0x96d952cf
sub dword [ebp - 0x50], 0x556cf15a
mov dword [ebp - 0x4c], 0x46f0b746
sub dword [ebp - 0x4c], 0xe3814ada
mov dword [ebp - 0x48], 0x1d516327
add dword [ebp - 0x48], 0xe2ae9cd9
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3fb4c
push 0
call eax
mov ecx, 0x8a0f9596
add ecx, 0x75f0ba4d
mov ebx, eax
mov esi, 0x32a09db5
add esi, 0xcda34c4b
add esi, dword [ebp - 0x44]
mov edi, 0x7d4796c6
add dword [ebp - 0xc], eax
mov edx, dword [esi]
sub dword [ebp - 0x1c], ebx
add edx, edi
sub dword [ebp - 0x1c], ebx
mov dword [ebx], edx
xor dword [ebp - 0x1c], esi
add ebx, 0x4d6f620d
sub ebx, 0x4d6f6209
add esi, 0x36ee6239
sub esi, 0x36ee6235
loop 0x417356
add eax, 0x1325f
xor ebx, ebx
add ebx, eax
add eax, 0x6398fc8f
add eax, 0x9c670376
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call 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 0x40c506
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a538]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408e31
mov dword [ebp - 0x14], eax
cmp dword [0x81559c], esi
jne 0x40c5f9
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c586
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c6d9
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c6d9
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c6d9
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x81559c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x8155a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x8155a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8155ac], eax
test eax, eax
je 0x40c5f6
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8155a8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c61e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c611
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c633
push 4
pop eax
jmp 0x40c6db
cmp dword [ebp - 0x14], esi
je 0x40c633
push dword [0x81559c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c618
mov eax, dword [0x8155a8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c691
cmp dword [0x8155ac], edi
je 0x40c691
push eax
call ebx
push dword [0x8155ac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c691
test eax, eax
je 0x40c691
call ecx
test eax, eax
je 0x40c686
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c686
test byte [ebp - 8], 1
jne 0x40c691
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c6c1
mov eax, dword [0x8155a0]
cmp eax, edi
je 0x40c6be
push eax
call ebx
test eax, eax
je 0x40c6be
call eax
mov esi, eax
test esi, esi
je 0x40c6be
mov eax, dword [0x8155a4]
cmp eax, edi
je 0x40c6be
push eax
call ebx
test eax, eax
je 0x40c6be
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x81559c]
call ebx
test eax, eax
je 0x40c6d9
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c6db
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404268
mov esp, ebp
pop ebp
ret
Function at 0x405f70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x405f7f
pop dword [ebp - 0x4c]
mov eax, 0x2effa6ac
add eax, 0xd140b8d3
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x755c0954
sub dword [ebp - 0x5c], 0x2709c409
mov dword [ebp - 0x58], 0x2a7f157e
add dword [ebp - 0x58], 0x7b436c7
mov dword [ebp - 0x54], 0x15a89d43
sub dword [ebp - 0x54], 0xc95c5915
mov dword [ebp - 0x50], 0x6f7ca0ff
add dword [ebp - 0x50], 0x90835f01
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x83f3337e
add eax, 0x7c4e0d12
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xcc1821d1
add dword [ebp - 0x5c], 0xa85a4785
mov dword [ebp - 0x58], 0xf4a6c140
add dword [ebp - 0x58], 0x4cc5a035
mov dword [ebp - 0x54], 0x2424d13d
sub dword [ebp - 0x54], 0xc0b564d1
mov dword [ebp - 0x50], 0xc7fb8970
add dword [ebp - 0x50], 0x38047690
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x46b5af10
add eax, 0xb98b912c
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x39ff3
push 0
call eax
mov ecx, 0x870610d2
add ecx, 0x78fa33fa
mov ebx, eax
mov esi, 0x1e400bfa
add esi, 0xe201b406
add esi, dword [ebp - 0x4c]
mov edi, 0x4ba937a5
add edi, 0x5ca21b08
sub dword [ebp - 0x24], 0xb26e3d83
mov edx, dword [esi]
add dword [ebp - 0x24], 0x179b7b71
add edx, edi
xor dword [ebp - 0xc], 0x2d79868f
mov dword [ebx], edx
sub dword [ebp - 8], ebx
add ebx, 4
add esi, 0x32c58909
sub esi, 0x32c58905
loop 0x4060a1
add eax, 0x10603
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x10001c71
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x1002b4ac
call fcn.1002a0c8
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
xor ebx, ebx
mov ecx, edi
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
call fcn.10002a03
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], 1
mov dword [ebp - 4], ebx
cmp byte [0x1003cde0], bl
je 0x10001cea
cmp dword [edi + 0x14], 0x10
jb 0x10001cc6
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ctor__reference_
mov edi, 0x1003c7f0
push edi
call fcn.10017bb7
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x10001cea
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call fcn.10017bb7
pop ecx
mov eax, esi
call fcn.1002a091
ret 8

Function at 0x10001cfb
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x1002b4ac
call fcn.1002a0c8
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
push edi
call fcn.100026c3
pop ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov byte [esi + 0x30], cl
mov dword [ebp - 4], ecx
cmp byte [0x1003cde0], cl
je 0x10001d6b
cmp dword [edi + 0x14], 0x10
jb 0x10001d46
mov edi, dword [edi]
push eax
push edi
push str.CMemMappedFile__s__ctor__new_with_size_lu_
mov edi, 0x1003c7f0
push edi
call fcn.10017bb7
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x10001d6b
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, esi
call fcn.100031a0
mov eax, esi
call fcn.1002a091
ret 4

Function at 0x10001d7c
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x1002b4ac
call fcn.1002a0c8
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
push edi
call fcn.100026c3
pop ecx
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov dword [ebp - 4], eax
cmp byte [0x1003cde0], al
je 0x10001de8
cmp dword [edi + 0x14], 0x10
jb 0x10001dc4
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ctor__new_
mov edi, 0x1003c7f0
push edi
call fcn.10017bb7
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x10001de8
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, esi
call fcn.1002a091
ret