joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014b0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x4014d1
xor eax, eax
jmp 0x401594
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0x4550
je 0x4014ef
xor eax, eax
jmp 0x401594
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx + 0x78]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
jmp 0x401549
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0x14]
jae 0x401591
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.00401450
add esp, 4
cmp dword [ebp + 0xc], eax
jne 0x40158f
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
jmp 0x401594
jmp 0x401540
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4062f6
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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.00404229
mov dword [ebp - 0x14], eax
cmp dword [0x413e2c], esi
jne 0x4063e9
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x406376
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4064c9
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4064c9
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4064c9
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x413e2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x413e30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x413e34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x413e3c], eax
test eax, eax
je 0x4063e6
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x413e38], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40640e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x406401
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x406423
push 4
pop eax
jmp 0x4064cb
cmp dword [ebp - 0x14], esi
je 0x406423
push dword [0x413e2c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x406408
mov eax, dword [0x413e38]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x406481
cmp dword [0x413e3c], edi
je 0x406481
push eax
call ebx
push dword [0x413e3c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x406481
test eax, eax
je 0x406481
call ecx
test eax, eax
je 0x406476
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 0x406476
test byte [ebp - 8], 1
jne 0x406481
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4064b1
mov eax, dword [0x413e30]
cmp eax, edi
je 0x4064ae
push eax
call ebx
test eax, eax
je 0x4064ae
call eax
mov esi, eax
test esi, esi
je 0x4064ae
mov eax, dword [0x413e34]
cmp eax, edi
je 0x4064ae
push eax
call ebx
test eax, eax
je 0x4064ae
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x413e2c]
call ebx
test eax, eax
je 0x4064c9
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4064cb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040191b
mov esp, ebp
pop ebp
ret
Function at 0x414a2f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004148a5

Function at 0x419060
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418bb3

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x41f034
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
call fcn.0041f047

Function at 0x41f0ae
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
pushal
mov dword [ebp - 4], 0
call fcn.0041f0c1

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x5998d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x122000]
push edi
or ebp, 0xffffffff
jmp 0x5998f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5998f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5998e8
mov eax, 1
add ebx, ebx
jne 0x59990b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x59991c
jne 0x59993b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59993b
dec eax
add ebx, ebx
jne 0x599928
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x599900
add ebx, ebx
jne 0x599937
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x59998d
xor ecx, ecx
sub eax, 3
jb 0x599953
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5999c2
sar eax, 1
mov ebp, eax
jmp 0x59995e
add ebx, ebx
jne 0x59995e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59992c
inc ecx
add ebx, ebx
jne 0x59996c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59992c
add ebx, ebx
jne 0x599979
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x59996e
jne 0x59998a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x59996e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5999ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x59999e
jmp 0x5998ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5999ac
add edi, ecx
jmp 0x5998ee
pop esi
mov edi, esi
mov ecx, 0x9b4a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5999ca
cmp byte [edi], 0x16
jne 0x5999ca
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 0x5999cf
lea edi, [esi + 0x195000]
mov eax, dword [edi]
or eax, eax
je 0x599a3e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19da38]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19db40]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5999fc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19db48]
or eax, eax
je 0x599a38
mov dword [ebx], eax
add ebx, 4
jmp 0x599a19
call dword [esi + 0x19db44]
mov ebp, dword [esi + 0x19db4c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x599a72
sub esp, 0xffffff80
jmp 0x51f5b8
Function at 0x4096fb
Capabilities:
Encode data using xor
Get number of processors

Disassembly:
pushal
stc
jb 0x40ad20
mov eax, 0xe30e0000
fucompi st(5)
mov al, byte [0xf9f303b9]
jb 0x40aa10
add bh, bl
xor byte [eax], al
cmpsb byte [esi], byte es:[edi]
or dword [eax], eax
push ss
in al, dx
mov dword [edi - 0x18], eax
push ebp
mov ebp, 0x40a43f
xchg dword [esp], ebp
ret
and dl, 0x18
nop
jmp 0x40a096
jne 0x409bc7
stc
jb 0x40ae23
add byte [esi - 0x74c16e00], cl
dec ebp
adc al, 0x55
mov ebp, 0x4093fe
xchg dword [esp], ebp
ret
mov eax, dword [esi]
push ebp
mov ebp, 0x4095d0
xchg dword [esp], ebp
ret
mov ecx, ebx
stc
jb 0x40ba38
add byte [eax - 0x1fff8256], ah
pop ecx
pop edx
add byte [esp - 0xbffff45], bh
sub dword [ebx - 0x4642aa0d], ecx
movsd dword es:[edi], dword [esi]
inc eax
add byte [edi + 0x19c3242c], al
mov es, word [eax]
and eax, dword [eax + 0x36004200]
push ebp
sub cl, byte [edi]
test byte [edx - 0x6000016], ch
jb 0x40b0a4
rol ecx, 0xa6
push 0x11fe8
add cl, bh
jb 0x4097af
add byte [edx - 0x72e70000], ah
adc al, 0x32
inc esi
dec dword [ebp + 0x28]
add ecx, dword [ebx + 0x3c]
nop

Function at 0x409769
Capabilities:
Get number of processors

Disassembly:
add byte [eax], al
lea edi, [eax]
sbb esp, dword [esi + 3]
jg 0x409254
xor dword [eax], ebp
add ecx, dword [ecx + 0x3c]
stc
jb 0x409fdc
add byte [eax], al
add byte [eax], dh
add byte [ebp + ecx*8 + 0xf], ah
test byte [ebx + 0x26], bl
add byte [eax], al
stc
jb 0x409cc6
jge 0x409233
pushal
stc
jb 0x40a5db
add byte [edi], ah
dec ecx
cmp dword [ebp + 0x4b], edi
mov esi, cs
jne 0x4095e3
stc
jb 0x40a3e2
mov word [ecx], ds
push cs
xor al, byte [eax]
out dx, eax
add eax, 4
push ecx
push ebp
mov ebp, 0x40aed8
xchg dword [esp], ebp
ret
mov ecx, dword [ecx + 0x38]
stc
jb 0x40abb4
in al, dx
inc ecx
in eax, dx
add byte [eax], al
hlt
mov ecx, dword [esp + 0xc]
stc
jb 0x40a7a0
add byte [eax], al
add byte [eax], al
add byte [ebx - 0x7df0066f], bh
add byte [eax], al
mov ebx, 0x820ff991
jle 0x40a3f0
invalid
mov ecx, ebx
stc
jb 0x409267
add byte [eax], al
mov al, byte [0x30aa0000]
cmp al, 3
int1
mov eax, dword [ecx + 0xb8]
stc
jb 0x409966
add byte [eax], al
add byte [eax - 0x607fc65], dh
jmp 0x40906a

Function at 0x40b16d
Capabilities:
Get number of processors

Disassembly:
push dword fs:[eax]
xor eax, eax
stc
jb 0x409944
mov al, byte [0xdf]
dec ebx
add byte [eax + 0xb840fdf], dl
add al, byte [eax]
add cl, bh
Function at 0x402840
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xc10
call fcn.00401820
mov dword [esp], str.USERPROFILE
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x40288a
mov dword [esp], 2
call dword [0x42463c]
mov dword [esp], str.Failed_to_get_home_directory_n
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov eax, 1
jmp 0x40293f
lea ebx, [esp + 0x10]
mov dword [esp + 0xc], eax
lea esi, [esp + 0x410]
mov dword [esp], ebx
mov dword [esp + 8], str._s.appconfig
mov dword [esp + 4], 0x400
call fcn.004015c0
mov dword [esp], ebx
call fcn.004015e9
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str._sexe1.config.exe
mov dword [esp + 4], 0x400
mov dword [esp], esi
call fcn.004015c0
mov dword [esp + 8], 0x1d400
mov dword [esp + 4], 0x407220
mov dword [esp], esi
call fcn.00401618
mov dword [esp + 0xc], ebx
lea ebx, [esp + 0x810]
mov dword [esp + 8], str._sexe2.config.exe
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call fcn.004015c0
mov dword [esp + 8], 0x4200
mov dword [esp + 4], 0x403020
mov dword [esp], ebx
call fcn.00401618
mov dword [esp], esi
call fcn.0040167a
mov dword [esp], ebx
call fcn.0040167a
call fcn.00401731
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x402948
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402810
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00402810
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp fcn.004014e0
Function at 0x100caec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x150]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x10260540]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x208], 0
mov ecx, 0x10269183
call fcn.100b4252
mov esi, esp
push 1
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp esi, esp
call fcn.100b2498
test eax, eax
je 0x100caf6d
push 0
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x1fc]
call fcn.100af252
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100b384d
mov edx, dword [ebp - 0x208]
or edx, 1
mov dword [ebp - 0x208], edx
lea ecx, [ebp - 0x1fc]
call fcn.100ae127
mov eax, dword [ebp + 8]
jmp 0x100caf8f
movzx eax, byte [0x10224610]
push eax
mov ecx, dword [ebp + 8]
call fcn.100b53fa
mov ecx, dword [ebp - 0x208]
or ecx, 1
mov dword [ebp - 0x208], ecx
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x100cafc0]
call fcn.100b19c6
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b098b
add esp, 0x210
cmp ebp, esp
call fcn.100b2498
mov esp, ebp
pop ebp
ret 8
Function at 0x101e3800
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.100af144
mov eax, dword [0x10260540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x10265be8]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x101e39d8
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x101e3927
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x101e3927
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x101e3905
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x101e3889
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x101e3991
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x101e39f8
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x101e39d3
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x101e39f8
jmp 0x101e3862
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b098b
mov esp, ebp
pop ebp
ret