joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006060
Capabilities:
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
add ebx, dword [0x100bf2e]
inc esi
rol esi, 0x11
xor edx, dword [0x100be4e]
ror esi, 0x11
dec esi
sub esi, edx
add eax, 0x25da5c92
xor edx, 0x42f6864
das
add al, 0x2b
std
xchg esi, eax
not eax
inc edx
xor ecx, esp
invalid
sub ecx, dword [eax]
inc edi
invalid

Function at 0x1006190
Capabilities:
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
adc eax, 0x100bef9
neg edi
dec ecx
xchg esi, eax
xchg esi, eax
inc ecx
neg edi
inc esi
xchg edx, eax
xor edx, 0x75e8b42
sub dword [0x100bcee], ecx
not esi

Function at 0x1006200
Capabilities:
Encode data using xor
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
xor edx, ebx
dec esi
not esi
rol edx, 7
add ecx, 0x27b66e64
and dword [0x100bd24], edi
mov ebp, 0xdff70100
rol eax, 0x19
xor dword [0x100bce2], esi
or dword [0x100bcc8], 0x2a426c72
neg esi
ror esi, 0x1f
xor esi, eax
xor ecx, dword [0x100be80]
xor esi, dword [0x100beb6]
inc eax
sub edx, dword [0x100bed0]
dec eax
xor esi, eax
rol esi, 0x1f
neg esi
mov dword [0x100bdb0], 0x238fcb72
jb 0x1005f6d
invalid
and eax, ecx
enter 0xfffffffffffff719, 0xffffffffffffffdf
sub ecx, 0x27b66e64
ror edx, 7
not esi
inc esi
xor edx, ebx
not dword [ebx]
xor esi, eax
neg esi
sub ecx, edx
mov dword [0x100bda0], ebx
sbb eax, 0x100bda0
xor eax, 0x11e7cb48
xor ecx, dword [0x100beba]
and dword [0x100bddb], 0x1471e1e0
or dword [0x100bc99], esi
add dword [ebx], ebp
adc eax, 0x100bfb0
not esi
xor esi, 0x15809e71
xchg eax, eax
sal byte [ebx], 0xf0
not eax
ror eax, 0x19
xor esi, dword [0x100bfc8]
or dword [0x100bdab], ecx
add ecx, dword [0x100beb2]
rol eax, 0x19
not eax
xor esi, eax
xchg eax, eax
xor esi, 0x15809e71
not esi
and dword [0x100bd62], edi
mov dword [0x100bd4c], 0x3648f0
xor eax, 0x11e7cb48
add ecx, edx
neg esi
xor esi, eax
xor dword [ebx], 0x10094708
xor ecx, esp
xor ecx, dword [0x100be21]
dec edx
not eax
xchg esi, eax
add edi, ebp
xor edx, 0x42f6864
sub eax, 0x25da5c92
add esi, edx
sub edi, dword [0x100be6c]
neg ecx
xchg ebx, eax
xor ebx, ebp
xor dword [0x100bdf8], ebx
xor esi, 0xc8ff802
inc eax
not eax
neg esi
add esi, 0x49f7e8c
xor dword [ebx], 0x10094708
xor dword [0x100bcba], 0x1ebe9a5e
inc edi
rol edx, 0x17
add edx, 0x7dbde24
sub edx, dword [0x100bfb8]
sub ebx, edi
rol esi, 2
mov byte [edx], 0x33
sbb eax, 0x100bf30
neg ebx
sub dword [0x100bd74], ebx
xchg eax, eax
xchg eax, eax
sub dword [0x100bcd2], edi
neg ebx
ror esi, 2
add ebx, edi
sub edx, 0x7dbde24
ror edx, 0x17
dec edi
mov dword [0x100bc76], 0xf599f5e
sub dword [ebx], 0x10094708
invalid
xchg esi, eax
aam 0x1d
Function at 0x662152e8
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.6620d3f6
and dword [ebp - 4], 0
cmp dword [0x66242a40], 0
mov ebx, eax
jne 0x66215399
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x6621544a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x6621544a
push eax
call fcn.6620d384
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x66242a40], eax
call esi
push eax
call fcn.6620d384
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x66242a44], eax
call esi
push eax
call fcn.6620d384
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x66242a48], eax
call esi
push eax
call fcn.6620d384
pop ecx
mov dword [0x66242a50], eax
test eax, eax
je 0x66215399
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.6620d384
pop ecx
mov dword [0x66242a4c], eax
mov eax, dword [0x66242a4c]
cmp eax, ebx
je 0x662153f1
cmp dword [0x66242a50], ebx
je 0x662153f1
push eax
call fcn.6620d3ff
push dword [0x66242a50]
mov esi, eax
call fcn.6620d3ff
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x662153f1
test edi, edi
je 0x662153f1
call esi
test eax, eax
je 0x662153e8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x662153e8
test byte [ebp - 0xc], 1
jne 0x662153f1
or dword [ebp + 0x10], 0x200000
jmp 0x6621542a
mov eax, dword [0x66242a44]
cmp eax, ebx
je 0x6621542a
push eax
call fcn.6620d3ff
pop ecx
test eax, eax
je 0x6621542a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x6621542a
mov eax, dword [0x66242a48]
cmp eax, ebx
je 0x6621542a
push eax
call fcn.6620d3ff
pop ecx
test eax, eax
je 0x6621542a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x66242a40]
call fcn.6620d3ff
pop ecx
test eax, eax
je 0x6621544a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x6621544c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x69fd7c18
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e060
nop
nop
nop
mov eax, section..rsrc_1
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6a454635
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x406e57
Capabilities:
Encode data using xor

Disassembly:
push 0x68
mov eax, 0x4142cb
call fcn.00413135
xor ebx, ebx
mov edx, ecx
mov byte [ebp - 0x14], bl
lea ecx, [ebp - 0x40]
push dword [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.0040cf7e
pop ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 7
cmova eax, dword [ebp - 0x40]
push eax
call fcn.00412c46
mov dword [ebp - 0x14], eax
test edx, edx
jne 0x406f9b
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00409c13
cmp byte [ebp - 0x14], bl
jne 0x406ef5
push 0xb
pop ecx
mov esi, 0x417ef8
lea edi, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
push 0x32
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
xor edx, edx
mov eax, ebx
div esi
add dl, 0x37
xor byte [ebp + ebx - 0x70], dl
inc ebx
cmp ebx, 0x2f
jl 0x406ebc
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403055
push 0x12
push 0xc
pop edx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00406a7b
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00403032
call fcn.0041309a
ret
lea eax, [ebp - 0x40]
push eax
call fcn.00404357
int3

Function at 0x407126
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x414358
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x41e040]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x14], ebx
lea edi, [ebp + 0x60]
xor eax, eax
xor esi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, vtable.ATL::CAccessToken.0
mov dword [ebp + 0x64], esi
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x68], esi
mov dword [ebp + 0x6c], esi
push 0x60
lea eax, [ebp]
mov dword [ebp - 4], esi
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp]
call fcn.00402bf7
push ecx
push ecx
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], 1
call fcn.00402dca
test al, al
je 0x4071fd
push ecx
push ecx
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x60]
call fcn.0040329a
test al, al
je 0x4071fd
lea ecx, [ebp]
call fcn.00402ccd
push eax
lea ecx, [ebp - 0x9c]
call fcn.00402ea0
mov byte [ebp - 4], 2
mov ecx, ebx
push dword [eax]
call fcn.00403055
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x9c], eax
je 0x40722e
push dword [ebp - 0x9c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x40722e
mov eax, dword [0x41834c]
mov dword [ebp - 0x14], eax
mov al, byte [0x418350]
mov byte [ebp - 0x10], al
xor edx, edx
mov eax, esi
push 0x32
pop ecx
div ecx
add dl, 0x37
xor byte [ebp + esi - 0x14], dl
inc esi
cmp esi, 5
jl 0x40720d
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.00403055
lea ecx, [ebp]
call fcn.00402c4e
lea ecx, [ebp + 0x60]
mov dword [ebp + 0x60], edi
call fcn.00402e18
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.004117e8
add ebp, 0x74
leave
ret
Function at 0x407959
Capabilities:
Download url
Encode data using xor
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov ebx, edx
mov ebp, ecx
cmp dword [ebx + 0x14], 0xf
mov ecx, ebx
jbe 0x407974
mov ecx, dword [ebx]
cmp dword [ebp + 0x14], 0xf
mov eax, ebp
jbe 0x40797f
mov eax, dword [ebp]
push 0
push 0
push ecx
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
je 0x407a07
cmp byte [0x418aa7], 0
lea edi, [esp + 0x20]
push 8
pop ecx
mov esi, str.rJKUI
rep movsd dword es:[edi], dword [esi]
je 0x4079c0
xor esi, esi
xor edx, edx
mov eax, esi
push 0x32
pop ecx
div ecx
add dl, 0x37
xor byte [esp + esi + 0x20], dl
inc esi
cmp esi, 0x20
jl 0x4079aa
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea edx, [esp + 0x20]
call fcn.0040a541
push 0x40a6d2
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
call fcn.00407c72
and dword [esp + 0x14], 0
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 2
call fcn.0040aa7a
mov ecx, eax
call fcn.0040cfb2
jmp 0x40796a
pop edi
mov al, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4080d4
Capabilities:
Encode data using xor
Execute command

Disassembly:
push 0x5c
mov eax, 0x414546
call fcn.004130ff
mov ebx, ecx
mov esi, 0x418ab8
lea edi, [ebp - 0x34]
push 0x32
xor ecx, ecx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x37
xor byte [ebp + ecx - 0x34], dl
inc ecx
cmp ecx, 7
jl 0x4080f3
mov esi, str.GQW_e
lea edi, [ebp - 0x50]
push 0x32
xor ecx, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x37
xor byte [ebp + ecx - 0x50], dl
inc ecx
cmp ecx, 0x13
jl 0x40811a
push ebx
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x68]
call fcn.0040a17f
and dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
push ecx
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.0040a261
pop ecx
pop ecx
lea ecx, [ebp - 0x68]
call fcn.00403032
lea ecx, [ebp - 0x3c]
call fcn.00403a06
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
pop ecx
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.00403a06
test esi, esi
jne 0x40819b
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x30]
sbb eax, dword [ebp - 0x38]
push esi
push 0xf4240
push eax
push ecx
call fcn.004132f0
mov esi, eax
jmp 0x4081a0
mov esi, 0x3e7
lea ecx, [ebp - 0x2c]
call fcn.00403032
mov eax, esi
call fcn.004130ae
ret
Function at 0x4086c8
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4086eb
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
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__]
jmp 0x4087b1
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x24]
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
push edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x1c], edi
test ecx, ecx
je 0x408718
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40871e
xor ecx, ecx
mov dword [esp + 0x10], eax
mov eax, ecx
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x28], eax
test edi, edi
jl 0x4087a2
jg 0x408733
test esi, esi
je 0x4087a2
test eax, eax
jl 0x408783
jg 0x40873d
test ebp, ebp
je 0x408783
cmp edi, eax
jg 0x40874d
jl 0x408747
cmp esi, ebp
jae 0x40874d
mov ebp, esi
mov dword [esp + 0x28], edi
push ebp
push dword [esp + 0x28]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x24]
add ecx, ebp
sub esi, ebp
mov eax, dword [eax]
sbb edi, dword [esp + 0x28]
sub dword [eax], ebp
mov eax, dword [ebx + 0x20]
add dword [eax], ebp
test edi, edi
jl 0x4087a2
jg 0x408787
test esi, esi
je 0x4087a2
jmp 0x408787
mov ecx, dword [esp + 0x24]
cmp dword [ebx + 0x4c], 0
je 0x4087a2
push dword [ebx + 0x4c]
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 + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x4087b8
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0xc], ecx
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], esi
test ebp, ebp
jg 0x4087e4
jl 0x4087db
test ebx, ebx
jne 0x4087e4
xor eax, eax
xor edx, edx
jmp 0x408892
cmp dword [ecx + 0x38], 0
je 0x4087f8
push ebp
push ebx
push esi
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__]
jmp 0x408892
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov edx, dword [eax]
test edx, edx
je 0x408839
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x408839
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push edx
push dword [esp + 0x18]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x20]
sub edi, esi
add dword [esp + 0x1c], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x10]
cmp dword [ecx + 0x4c], 0
je 0x408888
call fcn.00409765
mov edx, edi
jmp 0x408869
push dword [ecx + 0x4c]
push eax
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub edi, eax
add esp, 0x10
add esi, eax
mov edx, edi
cmp eax, 0xfff
jne 0x408888
mov ecx, dword [esp + 0x14]
mov eax, 0xfff
cmp edi, eax
ja 0x408848
test edx, edx
je 0x408888
push dword [ecx + 0x4c]
push edi
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb ebp, 0
mov edx, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0xc
Function at 0x408b0c
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x41e040]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x408b31
xor eax, eax
jmp 0x408bff
mov eax, dword [esi + 0x20]
push ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x408b5a
mov edx, dword [esi + 0x30]
mov ebp, dword [edx]
lea eax, [ecx + ebp]
cmp ecx, eax
jae 0x408b5a
lea ecx, [ebp - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x408bc9
cmp dword [esi + 0x4c], 0
je 0x408bfc
mov ecx, esi
call fcn.00409765
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x408b77
movsx eax, bl
jmp 0x408bb8
lea eax, [esp + 0x10]
mov byte [esp + 0x1b], bl
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2f]
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 0x408bcd
sub eax, 1
je 0x408bcd
dec eax
sub eax, 1
jne 0x408bfc
movsx eax, byte [esp + 0x1b]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
pop ecx
cmove ebx, edi
mov eax, ebx
jmp 0x408bfe
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x1c]
sub ebp, eax
je 0x408bed
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 0x408bfc
lea eax, [esp + 0x1b]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
cmovne edi, ebx
mov eax, edi
pop ebp
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004117e8
add esp, 0x30
ret 4

Function at 0x409788
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x41e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x4097e0
cmp byte [esi + 0x3d], bl
je 0x4097e0
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40981a
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, ebx
je 0x4097f1
sub eax, 1
je 0x4097f4
dec eax
sub eax, 1
jne 0x40981a
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004117e8
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x409812
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 0x40981a
cmp byte [esi + 0x3d], bl
sete al
jmp 0x4097e2
xor al, al
jmp 0x4097e2
Function at 0x412586
Capabilities:
Parse pe header

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

Function at 0x41280d
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.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x412834
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x412837
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.api_ms_win_core_localization_l1_2_0.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004127e9
pop esi
leave
ret 8

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..rsrc
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x7e2e2e77
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x23116c34
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x401806
Capabilities:
Parse pe header

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x7cb355b
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x432060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x9e619ec
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401d0d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0x4013ab
push 0
push 0x7d8
push dword [0x43cad8]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x43cec4], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x43cec4]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop ebp
ret