joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460e98
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x48a140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00456921
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00456921
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x460f0f
cmp word [ecx], dx
je 0x460f0f
mov eax, dword [0x479f04]
push edi
dec eax
push eax
push 0x479df0
call fcn.00460e31
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x460f82
cmp word [eax], dx
je 0x460f82
mov eax, dword [edi]
test eax, eax
je 0x460f33
cmp word [eax], dx
je 0x460f33
lea eax, [ebp - 0x10]
push eax
call fcn.00460817
jmp 0x460f3c
lea eax, [ebp - 0x10]
push eax
call fcn.004608b2
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x460fac
mov eax, dword [0x479dec]
push dword [ebp - 0x14]
dec eax
push eax
push 0x479ae0
call fcn.00460e31
add esp, 0xc
test al, al
je 0x460fac
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x460f77
cmp word [eax], di
je 0x460f77
lea eax, [ebp - 0x10]
push eax
call fcn.00460817
pop ecx
jmp 0x460fae
lea eax, [ebp - 0x10]
push eax
call fcn.004608b2
jmp 0x460f74
mov eax, dword [edi]
test eax, eax
je 0x460f99
cmp word [eax], dx
je 0x460f99
lea eax, [ebp - 0x10]
push eax
call fcn.004607cc
pop ecx
jmp 0x460fac
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x461077
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00460cb6
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x461077
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x461077
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x461077
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x461004
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0045a84e
test ebx, ebx
je 0x461072
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0045a84e
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x461077
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x461077
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004660a9
add esp, 0x10
xor eax, eax
inc eax
jmp 0x461079
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043de82
leave
ret
Function at 0x466bea
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00466b66
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x466d59
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x466d59
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x466d0e
jg 0x466c46
test eax, eax
je 0x466d04
push 1
push 0x1000
call fcn.00456c90
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x466c69
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x466cfb
push 0x8000
push ebx
call fcn.004536f9
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x466c92
jg 0x466c8d
cmp ecx, 0x1000
jb 0x466c92
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0045788d
add esp, 0x10
cmp eax, 0xffffffff
je 0x466cd7
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x466c8d
jl 0x466cbe
test ecx, ecx
jne 0x466c7f
push dword [ebp - 0xc]
push ebx
call fcn.004536f9
push esi
call fcn.00457ab0
add esp, 0xc
xor ebx, ebx
jmp 0x466d67
cmp byte [edi + 0x24], 0
je 0x466cee
cmp dword [edi + 0x20], 5
jne 0x466cee
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x466cf9
mov ebx, dword [edi + 0x18]
jmp 0x466cfb
xor ebx, ebx
push esi
call fcn.00457ab0
pop ecx
jmp 0x466d67
test ecx, ecx
jg 0x466cd0
jl 0x466d0e
test eax, eax
jae 0x466cd0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045be61
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x466d2e
cmp byte [edi + 0x1c], 0
je 0x466cd0
jmp 0x466d5f
push ebx
call fcn.0045edc3
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x466cd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x466d67
cmp byte [edi + 0x1c], 0
je 0x466d64
mov ebx, dword [edi + 0x18]
jmp 0x466d67
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0045be61
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x467330
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46735d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46735d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x108b1058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.108b11a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x108b107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108b106a
add dl, dl
jne 0x108b1089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108b10dc
xor eax, eax
add dl, dl
jne 0x108b1096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108b117d
add dl, dl
jne 0x108b10a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108b10b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108b10bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108b10c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x108b10d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x108b1075
mov eax, 1
add dl, dl
jne 0x108b10ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108b10f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108b10e1
sub eax, ebx
mov ebx, 1
jne 0x108b1128
mov ecx, 1
add dl, dl
jne 0x108b110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108b1119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108b1105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108b1075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x108b113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108b114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108b1136
cmp eax, 0x7d00
jae 0x108b116d
cmp eax, 0x500
jb 0x108b1168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108b1075
cmp eax, 0x7f
ja 0x108b1170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108b1075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x108b119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x108b1075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10003ef0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039753
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x10050008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 1
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp dword [esi + 0x18], 0x10
lea eax, [ebp - 0x54]
mov dword [ebp - 0x30], eax
lea eax, [esi + 4]
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x2c], 1
jb 0x10003f59
mov eax, dword [eax]
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0x1400
push 0x1400
push 0xff
push 0
push 0x40000003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
je 0x10003f9e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10007e8c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0x104]
mov esi, eax
call fcn.100049e0
push esi
mov edx, str.CreateNamedPipe_failed
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xf4]
call fcn.10007490
mov edx, str.__GLE
mov ecx, eax
call fcn.10007490
mov ecx, eax
call fcn.100052b0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x104]
call fcn.10004920
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100047d0
push eax
lea ecx, [ebp - 0x40]
call fcn.10003100
push 0x1004f1c4
lea eax, [ebp - 0x40]
push eax
call fcn.10021407
int3
Function at 0x10004270
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100397e3
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x10050008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x1c], 0
je 0x10004318
push 0
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x100042c3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x217
jne 0x1000431f
mov eax, dword [edi]
mov ecx, edi
mov esi, dword [edi + 0x20]
call dword [eax + 4]
push 0x2c
call fcn.10007eab
add esp, 4
mov dword [ebp - 0x38], eax
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0xf
mov byte [eax + 4], 0
mov dword [eax], vtable.ipc::WinNamedPipe.0
mov dword [eax + 0x20], esi
mov byte [eax + 0x28], 1
mov byte [eax + 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10007e8c
mov esp, ebp
pop ebp
ret
push str.WaitForConnection_is_not_supported_on_server_pipe_n
jmp 0x10004377
call esi
sub esp, 8
lea ecx, [ebp - 0xe8]
mov esi, eax
call fcn.100049e0
push esi
mov edx, str.WaitForConnection_failed
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd8]
call fcn.10007490
mov edx, str.__GLE
mov ecx, eax
call fcn.10007490
mov ecx, eax
call fcn.100052b0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe8]
call fcn.10004920
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100047d0
push eax
lea ecx, [ebp - 0x34]
call fcn.10003100
push 0x1004f1c4
lea eax, [ebp - 0x34]
push eax
call fcn.10021407
int3
Function at 0x100043c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039836
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x10050008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
push 0
push edx
push esi
push eax
push dword [ecx + 0x20]
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004419
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10004419
cmp eax, esi
je 0x10004478
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x6d
je 0x10004494
call esi
sub esp, 8
lea ecx, [ebp - 0x198]
mov esi, eax
call fcn.100049e0
push esi
mov edx, str.read_failed
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x188]
call fcn.10007490
mov edx, str.__GLE
mov ecx, eax
call fcn.10007490
mov ecx, eax
call fcn.100052b0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x198]
call fcn.10004920
mov byte [ebp - 4], 3
jmp 0x100044e4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10007e8c
mov esp, ebp
pop ebp
ret 8
call esi
sub esp, 8
lea ecx, [ebp - 0xe8]
mov esi, eax
call fcn.100049e0
push esi
mov edx, str.pipe_disconnected
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd8]
call fcn.10007490
mov edx, str.__GLE
mov ecx, eax
call fcn.10007490
mov ecx, eax
call fcn.100052b0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe8]
call fcn.10004920
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.100047d0
push eax
lea ecx, [ebp - 0x38]
call fcn.10003100
push 0x1004f1c4
lea eax, [ebp - 0x38]
push eax
call fcn.10021407
int3
Function at 0x10004600
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100398c6
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x10050008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x1c], 0
je 0x1000472f
push 0
push 1
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push 0
movups xmmword [ebp - 0x48], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x100046d9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x217
jne 0x10004689
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x10004736
push dword [ebp + 8]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100046d5
mov eax, dword [edi]
mov ecx, edi
mov esi, dword [edi + 0x20]
call dword [eax + 4]
push 0x2c
call fcn.10007eab
add esp, 4
mov dword [ebp - 0x4c], eax
mov ecx, eax
push esi
call fcn.10003da0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10007e8c
mov esp, ebp
pop ebp
ret 4
xor eax, eax
jmp 0x100046b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0xfc]
mov esi, eax
call fcn.100049e0
push esi
mov edx, str.AsyncWaitForConnection_failed
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xec]
call fcn.10007490
mov edx, str.__GLE
mov ecx, eax
call fcn.10007490
mov ecx, eax
call fcn.100052b0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xfc]
call fcn.10004920
mov byte [ebp - 4], 3
jmp 0x10004786
push str.WaitForConnection_is_not_supported_on_client_pipe_n
jmp 0x1000478e
call esi
sub esp, 8
lea ecx, [ebp - 0xfc]
mov esi, eax
call fcn.100049e0
push esi
mov edx, str.AsyncWaitForConnection_failed
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xec]
call fcn.10007490
mov edx, str.__GLE
mov ecx, eax
call fcn.10007490
mov ecx, eax
call fcn.100052b0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xfc]
call fcn.10004920
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.100047d0
push eax
lea ecx, [ebp - 0x34]
call fcn.10003100
push 0x1004f1c4
lea eax, [ebp - 0x34]
push eax
call fcn.10021407
int3
Function at 0x7eb338
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x7eb33e
pop ebp
sub ebp, 6
sub ebp, 0x3eb338
jmp 0x7eb39c
jmp 0x7eb3a5
mov eax, 0x3eb338
add eax, ebp
add eax, 0x93
mov ecx, 0x5b2
mov edx, 0xd183bd0c
xor byte [eax], dl
inc eax
dec ecx
jne 0x7eb3bc
jmp 0x7eb3cf
xchg ecx, eax
xchg dword [ebp + 0xc0c0c30], eax
invalid
Function at 0x40157d
Capabilities:
Accept command line arguments
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x5a4]
sub esp, 0x624
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp + 0x5a0], eax
push edi
xor edi, edi
cmp word [0x410210], di
jne 0x40174c
push ebx
push esi
mov esi, 0x206
push esi
lea eax, [ebp + 0x39a]
push edi
push eax
mov word [ebp + 0x398], di
call fcn.00402780
push esi
lea eax, [ebp + 0x192]
push edi
push eax
mov word [ebp + 0x190], di
call fcn.00402780
add esp, 0x18
mov ebx, 0x104
push ebx
lea eax, [ebp + 0x398]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x398]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x80]
call fcn.0040153c
lea eax, [ebp + 0x398]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [ebp - 0x80]
lea eax, [ebp + 0x398]
push eax
lea eax, [ebp + 0x190]
push str._s_setup_s
push eax
call fcn.0040124f
add esp, 0x10
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push str..cfg
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
lea eax, [ebp + 0x190]
push eax
push ebx
mov ebx, 0x410210
push ebx
push 0x40c270
push dword [ebp - 0x80]
push 0x40c260
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [0x410210], di
mov eax, ebx
mov dword [ebp - 0x7c], ebx
je 0x40173f
push 2
pop ebx
cmp word [eax], 0x25
jne 0x401693
cmp word [eax + 2], 0x31
je 0x4016a2
add eax, ebx
cmp word [eax], di
mov dword [ebp - 0x7c], eax
jne 0x401686
jmp 0x40173f
push esi
lea eax, [ebp - 0x76]
push edi
push eax
mov word [ebp - 0x78], di
call fcn.00402780
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
movzx eax, word [esi]
cmp ax, 0x22
jne 0x4016ee
add esi, ebx
movzx eax, word [esi]
cmp ax, di
je 0x40170a
cmp ax, 0x22
je 0x4016df
add esi, ebx
movzx eax, word [esi]
cmp ax, di
jne 0x4016cf
cmp word [esi], di
je 0x40170a
add esi, ebx
cmp word [esi], 0x20
jne 0x40170a
jmp 0x401708
cmp ax, di
je 0x40170a
cmp ax, 0x20
je 0x401703
add esi, ebx
movzx eax, word [esi]
cmp ax, di
jne 0x4016f3
cmp word [esi], di
je 0x40170a
add esi, ebx
mov eax, dword [ebp - 0x7c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add eax, 4
push eax
lea eax, [ebp - 0x78]
push eax
call ebx
cmp word [esi], di
je 0x40172a
push esi
push dword [ebp - 0x7c]
call ebx
jmp 0x401730
mov eax, dword [ebp - 0x7c]
mov word [eax], di
lea eax, [ebp - 0x78]
push eax
push 0x410210
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
call fcn.0040116c
pop esi
pop ebx
mov ecx, dword [ebp + 0x5a0]
xor ecx, ebp
mov eax, 0x410210
pop edi
call fcn.004026ea
add ebp, 0x5a4
leave
ret
Function at 0x401b00
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00401a3f
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00402780
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x401b4f
cmp dword [ebp - 0x1c], 5
jb 0x401b67
jmp 0x401b63
cmp dword [ebp - 0x10], 1
jne 0x401b67
cmp dword [ebp - 0x1c], 4
ja 0x401b63
jne 0x401b67
cmp dword [ebp - 0x18], 0
jbe 0x401b67
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40c448
call fcn.004018f2
test eax, eax
jge 0x401b88
mov byte [0x410000], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004026ea
add ebp, 0x78
leave
ret

Function at 0x4026ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f040]
jne 0x4026f4
repz ret
jmp fcn.0040658c
Function at 0x403132
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40f058]
je 0x40314d
inc edi
cmp edi, 0x17
jb 0x40313e
cmp edi, 0x17
jae 0x4032cd
push ebp
push 3
call fcn.00408060
cmp eax, 1
pop ecx
je 0x403299
push 3
call fcn.00408060
test eax, eax
pop ecx
jne 0x403181
cmp dword [0x40f020], 1
je 0x403299
cmp ebx, 0xfc
je 0x4032cc
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x410500
push ebp
call fcn.00407ffb
add esp, 0xc
test eax, eax
je 0x4031b7
push esi
push esi
push esi
push esi
push esi
call fcn.0040477f
add esp, 0x14
push 0x104
mov esi, 0x410519
push esi
push 0
mov byte [0x41061d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4031fb
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00407ffb
add esp, 0xc
test eax, eax
je 0x4031fb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040477f
add esp, 0x14
push esi
call fcn.00407f70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403240
push esi
call fcn.00407f70
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x410814
push 0x40ca64
sub ecx, eax
push ecx
push eax
call fcn.00407ebd
add esp, 0x14
test eax, eax
je 0x403240
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040477f
add esp, 0x14
jmp 0x403242
xor esi, esi
push 0x40ca60
push ebx
push ebp
call fcn.00407e4c
add esp, 0xc
test eax, eax
je 0x403262
push esi
push esi
push esi
push esi
push esi
call fcn.0040477f
add esp, 0x14
push dword [edi*8 + 0x40f05c]
push ebx
push ebp
call fcn.00407e4c
add esp, 0xc
test eax, eax
je 0x403284
push esi
push esi
push esi
push esi
push esi
call fcn.0040477f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00407c8f
add esp, 0xc
jmp 0x4032cc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4032cc
cmp ebp, 0xffffffff
je 0x4032cc
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40f05c]
push dword [esi]
call fcn.00407f70
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret