joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a3d
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.shell32.dll_ShellExecuteExW]
ret 4

Function at 0x405b23
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x405b32
pop dword [ebp - 0x48]
mov eax, 0x2f0e1eb8
sub eax, 0x2ecdc386
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x787c94ec
add dword [ebp - 0x58], 0xd5d5b05f
mov dword [ebp - 0x54], 0x31f22ea3
add dword [ebp - 0x54], 0x411da2
mov dword [ebp - 0x50], 0x728bd416
sub dword [ebp - 0x50], 0x263f8fe8
mov dword [ebp - 0x4c], 0x85df7aa7
sub dword [ebp - 0x4c], 0x85df7aa7
lea eax, [ebp - 0x58]
push eax
mov eax, 0xe9765a80
sub eax, 0xe935da08
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xdd36493a
sub dword [ebp - 0x58], 0x68c3dfe4
mov dword [ebp - 0x54], 0x9fc2a5bc
sub dword [ebp - 0x54], 0x5e564447
mov dword [ebp - 0x50], 0x65573673
sub dword [ebp - 0x50], 0x1e7ca07
mov dword [ebp - 0x4c], 0xd7d2df41
add dword [ebp - 0x4c], 0x282d20bf
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x4a9230dc
add eax, 0xb5ae4fa0
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3ade8
push 0
call eax
mov ecx, 0x7c8f6640
add ecx, 0x8370f130
xor edx, edx
add edx, eax
mov edi, 0xe7154d19
add edi, 0x193044e7
add edi, dword [ebp - 0x48]
mov esi, 0x1dc908ba
add esi, 0x15b1a186
mov ebx, dword [edi]
sub dword [ebp - 0x44], 0xfd8216a1
add ebx, esi
xor dword [ebp - 0x2c], 0x66ed7575
mov dword [edx], ebx
sub dword [ebp - 0x10], esi
add edx, 0x1cce1ba3
sub edx, 0x1cce1b9f
add edi, 0xc78e0b75
add edi, 0x3871f48f
loop 0x405c56
add eax, 0xf4a2aa04
sub eax, 0xf4a15971
xor ebx, ebx
add ebx, eax
add eax, 0x8c7825d1
sub eax, 0x8c7825cc
mov ecx, 0xdba54432
add ecx, 0x249abbce
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x405dee
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa70
push esi
call fcn.00406411
push esi
call fcn.00405d91
mov edi, eax
test edi, edi
jne 0x405e0f
xor eax, eax
jmp 0x405e67
push edi
call fcn.004066c0
test byte [0x434f1c], 0x80
je 0x405e2c
mov ax, word [edi]
test ax, ax
je 0x405e0b
cmp ax, 0x5c
je 0x405e0b
sub edi, esi
sar edi, 1
jmp 0x405e46
call fcn.0040676f
test eax, eax
je 0x405e40
test byte [eax], 0x10
je 0x405e0b
push esi
call fcn.00405d32
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405e32
call fcn.00405ce6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405ee2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f01
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4
Function at 0x4011e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x435040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x210]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0x100
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push edi
call ebx
test eax, eax
jne 0x40125e
nop dword [eax + eax]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x208], 0x100
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x208]
inc esi
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push edi
call ebx
test eax, eax
je 0x401230
xor ecx, ecx
cmp eax, 0x103
pop edi
cmovne esi, ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.00412042
mov esp, ebp
pop ebp
ret 4

Function at 0x401280
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x435040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
add eax, eax
mov edx, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00412042
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401300
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x435040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x208], ecx
jne 0x401348
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
pop esi
sbb eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412042
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
push edi
push 0xf003f
push ecx
push ebx
mov ecx, esi
call dword [eax + 8]
mov edi, eax
test edi, edi
jne 0x401370
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412042
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
lea ecx, [ebp - 0x204]
push 0x100
push ecx
push 0
push edi
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x4013bb
nop word [eax + eax]
mov eax, dword [esi]
lea ecx, [ebp - 0x204]
push 1
push ecx
push edi
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [esi]
lea ecx, [ebp - 0x204]
push 0x100
push ecx
push 0
push edi
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
jne 0x401390
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x1c]
mov eax, dword [esi]
mov ecx, esi
push 0
push dword [ebp - 0x208]
push ebx
call dword [eax + 0x18]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412042
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404e00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413480
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x435040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x404e35
sub esi, ecx
test edi, edi
je 0x404f00
lea eax, [esi - 1]
test eax, eax
je 0x404f00
cmp byte [edi + eax], 0x5c
je 0x404e61
sub eax, 1
jne 0x404e51
jmp 0x404f00
lea ebx, [eax + 1]
test ebx, ebx
je 0x404f00
cmp ebx, esi
jae 0x404f00
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [edi + ebx]
sub esi, ebx
push esi
push eax
lea eax, [ebp - 0x118]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x188]
push eax
call fcn.00406ce0
lea ecx, [ebp - 0x188]
mov dword [ebp - 4], 0
call fcn.00403f90
mov ecx, dword [ebp - 0x174]
cmp ecx, 0xf
jbe 0x404f00
mov edx, dword [ebp - 0x188]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404ef6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404ef6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00412050
add esp, 8
lea eax, [ebp - 0x170]
mov dword [ebp - 0x160], 0x44
push eax
lea eax, [ebp - 0x160]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push edi
push 0
movlpd qword [ebp - 0x15c], xmm0
movlpd qword [ebp - 0x154], xmm0
movlpd qword [ebp - 0x14c], xmm0
movlpd qword [ebp - 0x144], xmm0
movlpd qword [ebp - 0x13c], xmm0
movlpd qword [ebp - 0x134], xmm0
movlpd qword [ebp - 0x12c], xmm0
movlpd qword [ebp - 0x124], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412042
mov esp, ebp
pop ebp
ret
Function at 0x405a50
Capabilities:
Check mutex on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413570
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x264
mov eax, dword [0x435040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Globalmtx_running_watchdog_du
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x405c8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405c7f
push 0x1fe
lea eax, [ebp - 0x246]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - method.regUtil.virtual_0], vtable.regUtil.0
add esp, 0xc
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
xor ecx, ecx
mov word [ebp - 0x248], ax
nop dword [eax]
movzx eax, word [ecx + str.SoftwareGABOWATCHDOG]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x24a], ax
test ax, ax
jne 0x405b00
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x248]
push 0xf013f
push ecx
push 0x80000001
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x254], 0x80000001
call eax
mov esi, eax
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x250], esi
test esi, esi
jne 0x405bb5
nop dword [eax]
movzx ecx, word [eax + str.SoftwareGABOWATCHDOG]
lea eax, [eax + 2]
mov word [ebp + eax - 0x24a], cx
test cx, cx
jne 0x405b60
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x248]
push 0xf013f
push ecx
push 0x80000001
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x254], 0x80000001
call eax
mov esi, eax
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x250], esi
mov dword [ebp - 4], 0
mov dword [ebp - method.regUtil.virtual_0], vtable.regUtil.0
test esi, esi
je 0x405bdd
push esi
lea ecx, [ebp - 0x258]
call fcn.00401410
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004045a0
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
cmova ecx, dword [ebp - 0x2c]
sub esp, 8
mov dword [ebp - 0x260], eax
mov eax, dword [str.WatchDogDu.ini]
mov dword [ebp - 0x25c], eax
mov eax, esp
mov dword [ebp - 0x264], ecx
lea ecx, [ebp - 0x26c]
movq qword [ebp - 0x26c], xmm0
mov dword [ebp - 0x26c], 0xc0000000
mov dword [ebp - 0x268], 0xb0000008
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x44]
push 5
push str.
mov dword [eax], 2
call fcn.00409940
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x10
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.00404fa0
lea ecx, [ebp - 0x2c]
call fcn.004057b0
push 0x2bf20
call esi
jmp 0x405c63
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00412042
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
Function at 0x406030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40605c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call 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__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x406084
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40608a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x4060f2
jg 0x4060a1
test esi, esi
je 0x4060f2
test ecx, ecx
jl 0x4060ed
jg 0x4060ab
test eax, eax
je 0x4060ed
cmp edi, ecx
jg 0x4060bf
jl 0x4060b5
cmp esi, eax
jae 0x4060bf
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x4060f5
mov ecx, dword [ebp + 8]
jmp 0x4060ff
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x406119
jg 0x4060ff
test esi, esi
je 0x406119
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x406119
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406130
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 0x40615c
jl 0x406150
test ecx, ecx
jne 0x40615c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x406175
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 0x4061bd
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x4061c3
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x4061c3
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x406236
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4061ec
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 0x406224
nop dword [eax]
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 0x406236
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x406200
test edi, edi
je 0x406236
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 0x4065b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x435040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4065e0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412042
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40661c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40661c
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.00412042
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4066f3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x406644
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 0x406650
movsx eax, bl
jmp 0x406688
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 0x4066b2
sub eax, 1
je 0x4066b2
sub eax, 2
jne 0x4066f3
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.00412042
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4066d0
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 0x4066f3
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.00412042
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.00412042
mov esp, ebp
pop ebp
ret 4
Function at 0x406fc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x435040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40707c
cmp byte [esi + 0x3d], 0
je 0x40707c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40706a
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 0x407031
sub eax, 1
je 0x407035
sub eax, 2
jne 0x40706a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412042
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x407053
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 0x40706a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412042
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412042
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00412042
mov esp, ebp
pop ebp
ret

Function at 0x412ac4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x412b03
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x412b03
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412b03
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x412b03
cmp dword [ecx + 0x74], 0xe
jbe 0x412b03
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x517660
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x4b8015
lea edi, [esi - 0xb7015]
mov dword [edi + 0xfa8f8], 0xf03aa015
push edi
or ebp, 0xffffffff
jmp 0x51768a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x517691
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x517680
mov eax, 1
add ebx, ebx
jne 0x5176a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5176b4
jne 0x5176d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5176d3
dec eax
add ebx, ebx
jne 0x5176c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x517698
add ebx, ebx
jne 0x5176cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x517725
xor ecx, ecx
sub eax, 3
jb 0x5176eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51775a
sar eax, 1
mov ebp, eax
jmp 0x5176f6
add ebx, ebx
jne 0x5176f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5176c4
inc ecx
add ebx, ebx
jne 0x517704
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5176c4
add ebx, ebx
jne 0x517711
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x517706
jne 0x517722
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x517706
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x517744
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x517736
jmp 0x517686
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x517744
add edi, ecx
jmp 0x517686
pop esi
mov edi, esi
mov ecx, 0x40b7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x517762
cmp byte [edi], 0x25
jne 0x517762
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x517767
lea edi, [esi + 0x10e000]
mov eax, dword [edi]
or eax, eax
je 0x5177d6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1174ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x117528]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x517794
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x117530]
or eax, eax
je 0x5177d0
mov dword [ebx], eax
add ebx, 4
jmp 0x5177b1
call dword [esi + 0x11752c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x517807
cmp al, 0xef
ja 0x5177fa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5177dc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5177e9
mov ebp, dword [esi + 0x117534]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x117862]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x517853
sub esp, 0xffffff80
jmp 0x4013f0