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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov ebx, dword [esp + 0x44]
mov eax, dword [0x40f3c0]
xor eax, esp
mov dword [esp + 0x2c], eax
cmp ebx, 0xffffffff
je 0x4080c9
mov esi, ecx
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x40803a
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
test ecx, ecx
jle 0x40803a
dec ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov dword [eax], edx
mov byte [ecx], bl
jmp 0x40810b
cmp dword [esi + 0x4c], 0
je 0x4080cd
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0x3c]
cmp dword [eax], ecx
jne 0x408062
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
sub edx, ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x4080d2
lea eax, [esp + 0xc]
mov byte [eax - 1], bl
lea edx, [esi + 0x40]
mov ebp, dword [ecx]
mov edi, esp
push edi
lea edi, [esp + 0x30]
push edi
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1f]
push eax
push edx
call dword [ebp + 0x1c]
xor edi, edi
dec edi
cmp eax, 2
jae 0x4080ea
mov ebp, dword [esp]
lea eax, [esp + 0xc]
sub ebp, eax
je 0x4080b8
push dword [esi + 0x4c]
push ebp
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebp, eax
jne 0x408109
mov byte [esi + 0x3d], 1
xor eax, eax
dec eax
lea ecx, [esp + 0xb]
cmp dword [esp + 4], ecx
jmp 0x408104
xor ebx, ebx
jmp 0x40810b
xor ebx, ebx
dec ebx
jmp 0x40810b
movsx eax, bl
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
cmp eax, 0xffffffff
cmove ebx, eax
jmp 0x40810b
cmp eax, 3
jne 0x408109
movsx eax, byte [esp + 0xb]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
cmp eax, 0xffffffff
cmove ebx, eax
mov edi, ebx
mov ebx, edi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0040a7a1
mov eax, ebx
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x408412
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp esi, 1
mov eax, ecx
sbb eax, 0
jl 0x408442
cmp dword [ebx + 0x38], 0
je 0x40844b
mov ecx, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
jmp 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__]
xor eax, eax
xor edx, edx
jmp 0x4084f7
mov dword [esp], ecx
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 4], esi
je 0x408486
mov ecx, dword [ebx + 0x2c]
mov edi, dword [ecx]
test edi, edi
je 0x408486
cmp edi, esi
cmovae edi, esi
push edi
push eax
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add ebp, edi
sub esi, edi
mov eax, dword [ebx + 0x2c]
sub dword [eax], edi
mov eax, dword [ebx + 0x1c]
add dword [eax], edi
cmp dword [ebx + 0x4c], 0
je 0x4084eb
mov eax, dword [ebx + 0xc]
lea ecx, [ebx + 0x3c]
cmp dword [eax], ecx
jne 0x4084aa
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x54]
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
sub edx, ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edi, 0xfff
cmp esi, 0x1000
jb 0x4084d1
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
add ebp, eax
sub esi, eax
cmp eax, edi
je 0x4084af
jmp 0x4084eb
test esi, esi
je 0x4084e9
push dword [ebx + 0x4c]
push esi
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
jmp 0x4084eb
xor esi, esi
mov eax, dword [esp + 4]
sub eax, esi
mov edx, dword [esp]
sbb edx, 0
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x408502
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, ecx
cmp dword [ecx + 0x38], 0
je 0x408520
mov ecx, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov eax, dword [ebx + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x40859b
cmp ebp, 1
mov ecx, edx
sbb ecx, 0
jl 0x40859b
mov esi, ebp
mov ecx, dword [ebx + 0x30]
mov ebp, dword [ecx]
test ebp, ebp
jle 0x4085a2
mov dword [esp + 4], 0
mov dword [esp + 8], esi
cmp ebp, esi
mov ecx, 0
sbb ecx, edx
mov ecx, dword [esp + 4]
cmovae ecx, edx
mov dword [esp + 4], ecx
cmovae ebp, esi
push ebp
push edi
push eax
mov esi, edx
call sub.VCRUNTIME140.dll_memcpy
mov edx, esi
add esp, 0xc
add edi, ebp
mov dword [esp], edi
mov ecx, dword [esp + 8]
mov edi, ecx
sub edi, ebp
sbb esi, dword [esp + 4]
mov eax, dword [ebx + 0x30]
sub dword [eax], ebp
mov eax, dword [ebx + 0x20]
add dword [eax], ebp
mov ebp, ecx
jmp 0x4085ab
mov dword [esp], edi
mov edi, ebp
jmp 0x4085a9
mov dword [esp], edi
mov ebp, esi
mov edi, esi
mov esi, edx
cmp edi, 1
mov eax, esi
sbb eax, 0
jl 0x4085d6
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4085d6
push eax
push edi
push 1
push dword [esp + 0xc]
mov ebx, edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, ebx
add esp, 0x10
sub edi, eax
sbb esi, 0
sub ebp, edi
sbb edx, esi
mov eax, ebp
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x40885a
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x40f3c0]
xor eax, esp
mov dword [esp + 0x24], eax
mov bl, 1
cmp dword [ecx + 0x38], 0
je 0x4088e3
mov esi, ecx
cmp byte [ecx + 0x3d], 0
je 0x4088e3
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4088d9
mov ecx, dword [esi + 0x38]
lea eax, [esp + 0x24]
lea edx, [esi + 0x40]
mov ebx, dword [ecx]
mov ebp, esp
lea edi, [esp + 4]
push ebp
push eax
push edi
push edx
call dword [ebx + 0x20]
cmp eax, 3
je 0x4088dd
cmp eax, 1
je 0x4088b5
test eax, eax
jne 0x4088d9
mov byte [esi + 0x3d], 0
mov ebx, dword [esp]
sub ebx, edi
je 0x4088d0
push dword [esi + 0x4c]
push ebx
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x4088d9
cmp byte [esi + 0x3d], 0
sete bl
jmp 0x4088e3
xor ebx, ebx
jmp 0x4088e3
mov byte [esi + 0x3d], 0
mov bl, 1
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0040a7a1
mov eax, ebx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40aee0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x40af07
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x40af0a
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0040aebc
pop esi
leave
ret 8

Function at 0x40b366
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b3a5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b3a5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b3a5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40b3a5
cmp dword [ecx + 0x74], 0xe
jbe 0x40b3a5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401029
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push ebp
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call fcn.00410aef
xor ebp, ebp
pop ecx
test eax, eax
je 0x401076
push str.Windows_original_main_args:_n
call fcn.00401104
pop ecx
mov esi, ebp
call fcn.0040e687
cmp dword [eax], ebp
jle 0x401076
call fcn.0040e68d
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.00401104
add esp, 0xc
inc esi
call fcn.0040e687
cmp esi, dword [eax]
jl 0x401054
call dword [sym.imp.kernel32.dll_GetCommandLineA]
push eax
call fcn.0040120f
call fcn.00401277
mov ebx, eax
lea ecx, [ebx*4 + 4]
push ecx
call fcn.00401127
pop ecx
pop ecx
mov esi, eax
call fcn.0040127d
mov edx, ebp
test ebx, ebx
jle 0x4010b0
mov ecx, dword [eax + edx*8]
mov dword [esi + edx*4], ecx
inc edx
cmp edx, ebx
jl 0x4010a5
mov edi, dword [0x431004]
mov dword [esi + edx*4], ebp
test edi, edi
jne 0x4010bf
mov edi, dword [esi]
mov edx, dword [section..data]
test edx, edx
jne 0x4010cb
mov edx, dword [esi]
mov ecx, dword [0x431990]
test ecx, ecx
push ebp
push ebp
push 1
setne al
movzx eax, al
push eax
push edi
push edx
push 0x42526c
push 0x425270
push dword [0x431994]
push 1
push ecx
push 1
push esi
push ebx
call fcn.00401d57
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4042f7
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 2
push 0xffffffffffffffff
push 0xffffffffffffffea
push ebp
call fcn.00410aef
mov ebx, edx
add esp, 0x10
mov esi, eax
test ebx, ebx
jl 0x40446a
jg 0x404326
test esi, esi
jb 0x40446a
mov edi, dword [esp + 0x20]
push 0x16
push edi
push ebp
call fcn.00417558
add esp, 0xc
test eax, eax
js 0x40446a
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x404388
push edi
call fcn.00404879
pop ecx
test eax, eax
je 0x40437f
push ebx
push esi
push edi
push ebp
call fcn.00410aef
add esp, 0x10
mov esi, eax
mov ebx, edx
mov eax, esi
mov edx, ebx
jmp 0x40446f
push 2
xor ebx, ebx
push ebx
push ebx
push ebp
call fcn.00410aef
mov ebp, eax
add esp, 0x10
mov eax, edx
mov dword [esp + 0x14], eax
cmp eax, ebx
jl 0x40446a
jg 0x4043b1
cmp ebp, ebx
jb 0x40446a
mov ecx, 0x10015
cmp eax, ebx
jg 0x4043c6
jl 0x4043c0
cmp ebp, ecx
jae 0x4043c6
mov esi, ebp
mov ecx, eax
jmp 0x4043ca
mov esi, ecx
mov ecx, ebx
mov eax, esi
neg eax
push 2
adc ecx, ebx
neg ecx
push ecx
push eax
push dword [esp + 0x28]
call fcn.00410aef
add esp, 0x10
cmp edx, ebx
jl 0x40446a
jg 0x4043f0
cmp eax, ebx
jb 0x40446a
push 0x10015
call fcn.00410aef
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40446a
push esi
push ebx
push dword [esp + 0x24]
call fcn.00417558
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
js 0x404463
lea edx, [ebx + eax]
lea esi, [edx - 0x16]
jmp 0x40445f
cmp byte [esi], 0x50
jne 0x40445e
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x40445e
movzx ecx, byte [esi + 0x15]
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
lea eax, [esi + 0x16]
add eax, ecx
cmp eax, edx
je 0x404476
dec esi
cmp esi, ebx
jae 0x40441f
push ebx
call fcn.00410aef
pop ecx
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push 0x16
push esi
push edi
call fcn.0040a130
push ebx
call fcn.00410aef
mov eax, dword [esp + 0x20]
add eax, ebx
sub eax, esi
mov esi, dword [esp + 0x24]
cdq
sub ebp, eax
push edi
sbb esi, edx
call fcn.00404879
add esp, 0x14
test eax, eax
je 0x4044b6
push esi
push ebp
push edi
push dword [esp + 0x28]
call fcn.00410aef
add esp, 0x10
mov ebp, eax
mov esi, edx
mov eax, ebp
mov edx, esi
jmp 0x40446f
Function at 0x410aef
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x410afe
pop dword [ebp - 0x28]
mov eax, 0x4cbe1bd8
add eax, 0xb382ef26
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x15ccc124
sub dword [ebp - 0x38], 0xc77a7bd9
mov dword [ebp - 0x34], 0xb7295ef2
add dword [ebp - 0x34], 0x7b09ed53
mov dword [ebp - 0x30], 0x461e5a6e
add dword [ebp - 0x30], 0x62de9c0
mov dword [ebp - 0x2c], 0x5256a760
sub dword [ebp - 0x2c], 0x5256a760
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xa7c12aba
sub dword [ebp - 0x38], 0x334ec164
mov dword [ebp - 0x34], 0x9ae9135a
add dword [ebp - 0x34], 0xa6834e1b
mov dword [ebp - 0x30], 0xa0e7e017
sub dword [ebp - 0x30], 0x3d7873ab
mov dword [ebp - 0x2c], 0xc09280c3
sub dword [ebp - 0x2c], 0xc09280c3
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x430ee
push 0
call eax
mov ecx, 0x89f58130
add ecx, 0x760ad53c
mov edi, eax
mov esi, 0x43da00
add esi, dword [ebp - 0x28]
mov ebx, 0x2faa0f31
add ebx, 0x6075384f
mov dword [ebp - 0x24], 0x4da16e04
mov edx, dword [esi]
xor dword [ebp - 0xc], eax
xor edx, ebx
sub dword [ebp - 0x18], 0xc9e37e3b
mov dword [edi], edx
add dword [ebp - 0x10], ebx
add edi, 0x918f296f
add edi, 0x6e70d695
add esi, 4
loop 0x410c10
add eax, 0x91fb43f4
add eax, 0x6e06088f
xor ebx, ebx
add ebx, eax
add eax, 0xc6eb5e2e
sub eax, 0xc6eb5e29
mov ecx, 0x8b47842f
sub ecx, 0x8b07842f
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40611c
pop dword [ebp - 0x24]
mov eax, 0xb6e29cc
sub eax, 0xb2dc8b0
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x476845a2
sub dword [ebp - 0x34], 0xf9160057
mov dword [ebp - 0x30], 0x538be5b0
sub dword [ebp - 0x30], 0x2158996b
mov dword [ebp - 0x2c], 0x6c2a618e
sub dword [ebp - 0x2c], 0x1fde1d60
mov dword [ebp - 0x28], 0x51541cd6
add dword [ebp - 0x28], 0xaeabe32a
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xc5b9eb09
add dword [ebp - 0x34], 0xaeb87e4d
mov dword [ebp - 0x30], 0x123f83c0
sub dword [ebp - 0x30], 0xd0d3224b
mov dword [ebp - 0x2c], 0x368b2649
sub dword [ebp - 0x2c], 0xd31bb9dd
mov dword [ebp - 0x28], 0xa9fa7c02
add dword [ebp - 0x28], 0x560583fe
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x36067
push 0
call eax
mov ecx, 0x225e3477
sub ecx, 0x225deecc
xor edi, edi
add edi, eax
mov ebx, 0x8f0756f9
sub ebx, 0x8ec656f9
add ebx, dword [ebp - 0x24]
mov edx, 0x18431869
sub dword [ebp - 8], edx
mov esi, dword [ebx]
add dword [ebp - 0x1c], esi
sub esi, edx
mov dword [edi], esi
xor dword [ebp - 0x20], esi
add edi, 0x69485d41
add edi, 0x96b7a2c3
add ebx, 0xab0ec091
sub ebx, 0xab0ec08d
loop 0x406230
add eax, 0xd3b8cd1c
add eax, 0x2c483c63
xor ebx, ebx
add ebx, eax
add eax, 0xa1387b96
sub eax, 0xa1387b91
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x402205
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, eax
sub ecx, dword [esi + 0x14]
mov eax, dword [ebp + 0xc]
sub eax, dword [esi + 0x10]
mov edx, dword [esi]
push edi
push 1
push ecx
xor ebx, ebx
mov dword [ebp + 0x10], ecx
push eax
mov ecx, esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [edx + 0x8c]
mov edi, dword [esi + 0x174]
cmp edi, ebx
mov dword [ebp - 0x10], eax
je 0x40234c
push edi
call fcn.004321c1
mov ebx, eax
test ebx, ebx
pop ecx
je 0x40231c
mov eax, dword [ebx + 0xc]
push 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x38]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x48]
test eax, eax
je 0x402282
lea eax, [ebx + 0x10]
push eax
call fcn.00427495
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, ebx
push 0x202
call fcn.0043244f
mov eax, dword [ebp - 0x10]
cmp dword [esi + 0x174], eax
jne 0x4022d9
mov eax, dword [ebx + 0x3c]
xor ecx, ecx
cmp eax, ecx
je 0x4022cb
cmp word [eax], cx
je 0x4022cb
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40231c
cmp dword [ebx + 0xc], ecx
je 0x40231c
mov dword [ebp - 4], 1
jmp 0x40231c
mov eax, dword [ebx]
push 1
push 0
mov ecx, ebx
call dword [eax + 0x38]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x48]
test eax, eax
je 0x4022f8
lea eax, [ebx + 0x10]
push eax
call fcn.00427495
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, ebx
push 0x2a3
call fcn.0043244f
mov dword [ebp - 8], 1
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov dword [esi + 0x174], ecx
je 0x40232d
push 0x67
jmp 0x402345
cmp dword [ebp - 8], ecx
je 0x40234c
cmp dword [ebp - 0xc], ecx
je 0x40234c
lea eax, [esi + 0x170]
cmp edi, dword [eax]
jne 0x402343
mov dword [eax], ecx
push 0x6a
mov edi, ebx
call fcn.00401e10
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x403a2c
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4cd585
call fcn.004cc790
sub esp, 0x10
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.0043288d
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
push str.__02d__02d__02d__03d__n
lea ecx, [ebp + 8]
call fcn.004135a6
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004011c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x406554
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.004954a0
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x4065ad
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x40665b
mov eax, dword [ebp - 0x94]
dec eax
je 0x406647
dec eax
jne 0x40665b
cmp dword [ebp - 0xa0], 6
jne 0x4065f8
inc eax
cmp dword [ebp - 0x9c], eax
jne 0x4065e0
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
add ecx, 8
jmp 0x4065f4
cmp dword [ebp - 0x9c], edi
jne 0x406634
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x40665b
cmp dword [ebp - 0xa0], 5
jne 0x406627
cmp dword [ebp - 0x9c], 2
jne 0x40660e
push 5
jmp 0x406644
cmp dword [ebp - 0x9c], 1
jne 0x40661b
push 6
jmp 0x406644
cmp dword [ebp - 0x9c], edi
jne 0x40665b
push 3
jmp 0x406644
cmp dword [ebp - 0xa0], 4
ja 0x40665b
push 4
jmp 0x406644
cmp dword [ebp - 0x9c], 2
jne 0x40665b
cmp byte [ebp + 0x76], al
jne 0x40665b
push 0xa
pop edi
jmp 0x40665b
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret
Function at 0x40964f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4ce3af
call fcn.004cc790
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esi], edi
mov dword [ebp - 4], edi
mov eax, vtable.KEvent.0
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov byte [ebp - 4], 3
call fcn.00412576
lea ecx, [esi + 0x3c]
mov dword [ecx], eax
mov byte [eax + 0x15], 1
mov eax, dword [ecx]
mov dword [eax + 4], eax
mov eax, dword [ecx]
mov dword [eax], eax
mov ecx, dword [ecx]
mov dword [ecx + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40a9a1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
inc edi
cmp dword [ebp + 0xc], 0x4e
jne 0x40a9d6
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0x3e8
jne 0x40a9d6
mov ecx, esi
mov dword [esi + 0x52c], edi
call fcn.0040a90f
mov dword [ebx], eax
cmp dword [esi + 0x52c], 0
je 0x40a9d6
mov eax, edi
jmp 0x40aa1d
push 0
push ebx
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d177
test eax, eax
jne 0x40a9d2
mov eax, dword [ebp + 0xc]
cmp eax, 0x402
jne 0x40aa22
push 5
push dword [esi + 4]
lea eax, [esi + 0x52c]
mov dword [ebp + 0xc], eax
mov dword [eax], edi
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [ebx], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x40a9d2
xor eax, eax
pop edi
pop ebp
ret 0x10
cmp eax, 0x403
jne 0x40aa5c
mov eax, dword [esi + 0x530]
mov dword [esi + 0x28], eax
xor eax, eax
push eax
push eax
push eax
mov dword [esi + 0x52c], edi
mov dword [esi + 0x51c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
and dword [ebx], 0
cmp dword [esi + 0x52c], 0
jmp 0x40aa19
cmp eax, 0x465
jne 0x40aa89
lea ecx, [esi + 0x2c]
mov dword [esi + 0x52c], edi
call fcn.0040ba09
mov dword [esi + 0x5a4], eax
mov eax, dword [esi + 0x30]
push 5
lea ecx, [esi + 0x568]
call fcn.004890ba
jmp 0x40aa50
cmp eax, 0x110
jne 0x40aa1b
lea eax, [esi + 0x52c]
push ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [ebp + 0xc], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, esi
call fcn.0040a36b
mov dword [ebx], eax
jmp 0x40aa13
Function at 0x40b126
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [ebp + 0xc], 0x4e
push edi
mov edi, eax
jne 0x40b15e
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0x3e8
jne 0x40b15e
mov ecx, edi
mov dword [edi + 0x528], esi
call fcn.0040b09c
mov dword [ebx], eax
cmp dword [edi + 0x528], 0
je 0x40b15e
mov eax, esi
jmp 0x40b1a5
push 0
push ebx
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d177
test eax, eax
jne 0x40b15a
mov eax, dword [ebp + 0xc]
cmp eax, 0x402
jne 0x40b1ab
push 5
push dword [edi + 4]
lea eax, [edi + 0x528]
mov dword [ebp + 0xc], eax
mov dword [eax], esi
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [ebx], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x40b15a
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x10
cmp eax, 0x403
jne 0x40b1e5
mov eax, dword [edi + 0x530]
mov dword [edi + 0x28], eax
xor eax, eax
push eax
push eax
push eax
mov dword [edi + 0x528], esi
mov dword [edi + 0x51c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
and dword [ebx], 0
cmp dword [edi + 0x528], 0
jmp 0x40b1a1
cmp eax, 0x465
jne 0x40b212
lea ecx, [edi + 0x2c]
mov dword [edi + 0x528], esi
call fcn.0040ba09
mov dword [edi + 0x590], eax
mov eax, dword [edi + 0x30]
push 5
lea ecx, [edi + 0x560]
call fcn.00448455
jmp 0x40b1d9
cmp eax, 0x110
jne 0x40b1a3
lea eax, [edi + 0x528]
push ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], esi
mov dword [ebp + 0xc], eax
mov eax, esp
mov dword [eax], ecx
call fcn.0040ad66
mov dword [ebx], eax
jmp 0x40b19b