joyce8/EMBER2024-capa huggingface dataset:
Function at 0x593f5a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x593ff7
push ebx
push esi
call fcn.00593f23
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00590914
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x593fa4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x593ff6
push edi
push eax
call fcn.0058b551
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x593fc4
call fcn.0058b517
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x593ff5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00590914
add esp, 0x20
test eax, eax
jne 0x593fe3
push edi
call fcn.0058b517
jmp 0x593feb
push ebx
call fcn.0058b517
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x593ffb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x59400c
pop esi
ret
push ebx
push edi
push esi
call fcn.00593f23
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0058b551
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x594034
push ebx
push esi
push edi
call fcn.00571df0
add esp, 0xc
push 0
call fcn.0058b517
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x59478e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005942a9

Function at 0x5966fa
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0058b22c
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x596769
cmp esi, dword [ebp - 4]
je 0x596764
cmp dword [ebp + 0xc], 0
je 0x596764
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x596741
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0059624c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x59676b
xor eax, eax
inc eax
jmp 0x59676b
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5967d0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5f0eb4]
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.0058b22c
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.0058b22c
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 0x596847
cmp word [ecx], dx
je 0x596847
mov eax, dword [0x5c6bec]
push edi
dec eax
push eax
push 0x5c6ad8
call fcn.0059676f
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5968ba
cmp word [eax], dx
je 0x5968ba
mov eax, dword [edi]
test eax, eax
je 0x59686b
cmp word [eax], dx
je 0x59686b
lea eax, [ebp - 0x10]
push eax
call fcn.00596152
jmp 0x596874
lea eax, [ebp - 0x10]
push eax
call fcn.005961ed
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5968e4
mov eax, dword [0x5c6ad4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5c67c8
call fcn.0059676f
add esp, 0xc
test al, al
je 0x5968e4
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5968af
cmp word [eax], di
je 0x5968af
lea eax, [ebp - 0x10]
push eax
call fcn.00596152
pop ecx
jmp 0x5968e6
lea eax, [ebp - 0x10]
push eax
call fcn.005961ed
jmp 0x5968ac
mov eax, dword [edi]
test eax, eax
je 0x5968d1
cmp word [eax], dx
je 0x5968d1
lea eax, [ebp - 0x10]
push eax
call fcn.00596107
pop ecx
jmp 0x5968e4
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 0x5969af
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.005965f4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5969af
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5969af
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5969af
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x59693c
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0058dc49
test ebx, ebx
je 0x5969aa
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0058dc49
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5969af
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 0x5969af
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0059a63d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5969b1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00571524
leave
ret
Function at 0x599c82
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5f0eb4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x599cc5
call fcn.005767d2
mov dword [eax], 0xf
call fcn.005767e5
mov dword [eax], 0xd
call fcn.005766e7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00571524
leave
ret
test eax, eax
jne 0x599ccc
inc eax
jmp 0x599cb9
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x599cb7
xor eax, eax
cmp ecx, 1
setne al
jmp 0x599cb9
Function at 0x59acd5
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.0059ac51
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x59ae44
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x59ae44
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x59adf9
jg 0x59ad31
test eax, eax
je 0x59adef
push 1
push 0x1000
call fcn.0058b6fd
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x59ad54
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x59ade6
push 0x8000
push ebx
call fcn.0058551c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x59ad7d
jg 0x59ad78
cmp ecx, 0x1000
jb 0x59ad7d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0058ecd7
add esp, 0x10
cmp eax, 0xffffffff
je 0x59adc2
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 0x59ad78
jl 0x59ada9
test ecx, ecx
jne 0x59ad6a
push dword [ebp - 0xc]
push ebx
call fcn.0058551c
push esi
call fcn.0058b517
add esp, 0xc
xor ebx, ebx
jmp 0x59ae52
cmp byte [edi + 0x24], 0
je 0x59add9
cmp dword [edi + 0x20], 5
jne 0x59add9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x59ade4
mov ebx, dword [edi + 0x18]
jmp 0x59ade6
xor ebx, ebx
push esi
call fcn.0058b517
pop ecx
jmp 0x59ae52
test ecx, ecx
jg 0x59adbb
jl 0x59adf9
test eax, eax
jae 0x59adbb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00590070
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x59ae19
cmp byte [edi + 0x1c], 0
je 0x59adbb
jmp 0x59ae4a
push ebx
call fcn.0059249b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x59adbb
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 0x59ae52
cmp byte [edi + 0x1c], 0
je 0x59ae4f
mov ebx, dword [edi + 0x18]
jmp 0x59ae52
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00590070
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x59bf50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x59bf7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x59bf7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401ae1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401b3a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401b3a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401b29
cmp esi, ecx
jae 0x401b3a
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401b17
cmp esi, ecx
jae 0x401b3a
cmp word [esi], 0
je 0x401b3a
lfence
mov eax, esi
jmp 0x401b3c
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4026b7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x14], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov edi, 0x80070003
call fcn.00401cda
lea ecx, [ebp - 0x14]
call fcn.00402e1c
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x402811
and dword [ebp - 0xc], 0
or edx, 0xf003f
push ecx
push ecx
push edx
push ecx
push ecx
push esi
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x433ff0
mov dword [ebp - 8], 0x200
call fcn.0040253c
mov edi, eax
test edi, edi
jne 0x4027fc
mov eax, dword [ebp + 8]
sub eax, 1
je 0x4027b9
sub eax, 1
je 0x4027b5
sub eax, 1
je 0x402786
sub eax, 1
je 0x402777
sub eax, 3
je 0x402764
sub eax, 4
je 0x402752
mov edi, 0x8007065d
jmp 0x4027c9
push dword [ebx + 4]
lea ecx, [ebp - 0x10]
push dword [ebx]
push dword [ebp - 0x18]
call fcn.00402ceb
jmp 0x4027c7
push 7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
push ebx
push dword [ebp - 0x18]
call fcn.00402d51
jmp 0x4027c7
push dword [ebx]
lea ecx, [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.00402cc1
jmp 0x4027c7
mov eax, ebx
neg eax
lfence
sbb eax, eax
and eax, dword [ebp + 0x10]
push eax
push ebx
push 3
push 0
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jle 0x4027c9
movzx edi, di
or edi, 0x80070000
jmp 0x4027c9
push 2
jmp 0x4027bb
push 1
push ebx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.00402d15
mov edi, eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
test eax, eax
je 0x4027f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, eax
test ecx, ecx
jle 0x4027e8
movzx ecx, cx
or ecx, 0x80070000
xor eax, eax
mov dword [ebp - 8], 0x200
mov dword [ebp - 0xc], eax
test edi, edi
jne 0x4027ff
mov edi, ecx
jmp 0x4027ff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x433ff0
test eax, eax
je 0x402811
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.004015b2
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c698
leave
ret
Function at 0x402ab5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], eax
mov edi, ecx
xor ecx, ecx
lea eax, [ebp - 0xc]
push eax
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
push ecx
push ebx
push dword [edi + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x402b00
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x402b53
mov eax, dword [ebp - 0xc]
xor ecx, ecx
shr eax, 1
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041d3ec
cmp dword [ebp - 0xc], 0
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
je 0x402b4e
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push ebx
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x402b53
movzx esi, si
or esi, 0x80070000
jmp 0x402b53
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c698
leave
ret 8

Function at 0x402b66
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
push edx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], edx
push ecx
push edx
push eax
push dword [ebx + 4]
mov dword [ebp - 8], edx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x402bb1
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x402c22
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x402c1b
shr edx, 1
add edx, 1
js 0x402c35
mov eax, dword [edi]
xor ecx, ecx
inc ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x402bdd
push edx
mov ecx, edi
lfence
call fcn.00402095
cmp dword [edi], 0
jne 0x402be9
mov esi, 0x8007000e
jmp 0x402c10
lea eax, [ebp - 0xc]
push eax
push dword [edi]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 0x10]
push dword [ebx + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x402c10
movzx esi, si
or esi, 0x80070000
push 0xffffffffffffffff
mov ecx, edi
call fcn.004031a1
jmp 0x402c22
mov ecx, edi
call fcn.00401d26
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c698
leave
ret 8
push 0x80070057
call fcn.00401a85
int3

Function at 0x403824
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x40385a
lea esi, [edi + 4]
test esi, esi
je 0x40385a
call fcn.00403784
test al, al
je 0x40385a
mov ecx, edi
call fcn.00403784
test al, al
je 0x40385a
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x40385c
xor al, al
pop edi
pop esi
pop ebx
ret
Function at 0x404760
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push esi
push edi
mov esi, ecx
call fcn.004015db
push eax
lea ecx, [ebp - 8]
call fcn.00401f9b
mov eax, dword [ebp - 8]
xor edx, edx
inc edx
mov edi, 0x104
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x4047a9
push edi
lea ecx, [ebp - 8]
call fcn.00402095
mov eax, dword [ebp - 8]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov esi, eax
call fcn.004031a1
test esi, esi
jne 0x4047cb
mov edi, 0x80004005
jmp 0x404873
push ebx
push ecx
push ecx
lea ecx, [ebp - 8]
call fcn.00405145
push 0
push 0x5c
lea ecx, [ebp - 8]
call fcn.0040510c
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4047f1
mov ecx, dword [ebp - 8]
mov eax, dword [ecx - 0xc]
jmp 0x4047f3
mov eax, ebx
and dword [ebp - 0xc], 0
lea ecx, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00403107
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.0040620c
test al, al
jne 0x404832
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404832
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.0040620c
test al, al
je 0x404851
cmp ebx, 0xffffffff
je 0x404868
lea eax, [ebx + 1]
push eax
push 0x5c
lea ecx, [ebp - 8]
call fcn.0040510c
lea ecx, [esi - 0x10]
mov ebx, eax
call fcn.004015b2
jmp 0x4047e4
test edi, edi
jle 0x40485e
movzx edi, di
or edi, 0x80070000
lea ecx, [esi - 0x10]
call fcn.004015b2
jmp 0x404872
lea ecx, [esi - 0x10]
call fcn.004015b2
xor edi, edi
pop ebx
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.004015b2
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040c698
leave
ret

Function at 0x40488e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
jne 0x4048b5
mov eax, 0x80070057
jmp 0x404958
push edi
mov ecx, esi
call fcn.00401d26
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0040d430
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x404939
movzx ecx, bl
cmp ecx, 0x26
jne 0x4048fa
mov edx, str.ProgramFiles
jmp 0x404904
cmp ecx, 0x1c
jne 0x404925
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.00404a90
push eax
mov ecx, esi
call fcn.00401c8c
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.004015b2
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x404932
xor eax, eax
inc eax
jmp 0x404957
lfence
mov eax, edi
jmp 0x404957
lea eax, [ebp - 0x20c]
push eax
call fcn.004159fd
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401ed9
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c698
leave
ret
Function at 0x405bf8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push esi
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp + 0x14]
push eax
cmp dword [ebp + 8], eax
jne 0x405c12
push eax
push eax
jmp 0x405c1a
push dword [ebp + 8]
push 0x400
push eax
push eax
push eax
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x405c30
call fcn.00408809
jmp 0x405c72
movzx ecx, byte [0x43ae81]
neg ecx
sbb ecx, ecx
and ecx, 0x43ad80
je 0x405c70
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x10], ecx
inc eax
mov dword [ebp - 0xc], edx
push eax
push edx
mov dword [ebp - 8], eax
call fcn.0040703f
push dword [esi + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push str._Started_process___u_
push eax
call fcn.004044e4
add esp, 0xc
xor eax, eax
pop esi
leave
ret

Function at 0x406371
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x40638c
mov al, 1
jmp 0x4063cf
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0040d430
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x4063c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4346c0
call fcn.00408a36
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x406388
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040c698
leave
ret
Function at 0x406841
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push ebx
push esi
push edi
push eax
mov ebx, ecx
call fcn.004075a2
mov edi, dword [ebp - 8]
cmp dword [edi - 0xc], 0
je 0x4068e6
push edi
push 1
push str.EnableLogging
mov esi, str.LoggingSettings
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.ShowTime
setne al
push esi
mov byte [ebx + 0x74], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.LogToFile
setne al
push esi
mov byte [ebx + 0x76], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 0
test eax, eax
push str.LogToOutputDebug
setne al
push esi
mov byte [ebx + 0x77], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.AppendToFile
setne al
push esi
mov byte [ebx + 0x78], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
mov byte [ebx + 0x79], al
jmp 0x4068f1
mov byte [ebx + 0x74], 1
mov dword [ebx + 0x76], 0x1000101
cmp byte [ebx + 0x75], 0
je 0x4068fb
mov byte [ebx + 0x76], 1
xor eax, eax
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov dword [ebp - 0xc], eax
mov edx, dword [eax + 0x439a80]
mov ecx, dword [eax + 0x439a84]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
test edx, edx
je 0x406974
cmp ecx, 9
ja 0x406974
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, ebx
mov dword [ebp - 0x14], 3
call fcn.004075a2
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x406957
push esi
push 3
push dword [ebp - 0x10]
push str.LoggingLevel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x40695a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
test eax, eax
setne cl
mov byte [ebx + edx*8], cl
lea ecx, [esi - 0x10]
mov dword [ebx + edx*8 + 4], eax
call fcn.004015b2
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0xc], eax
cmp eax, 0x48
jb 0x40690a
call fcn.00401c47
lea ecx, [edi - 0x10]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
call fcn.004015b2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c698
leave
ret