joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d7d20
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x1039f500]
push ebx
push esi
push edi
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x100d7e0c
mov eax, dword [ecx]
mov eax, dword [eax + 0x734]
call eax
mov ebx, eax
test ebx, ebx
je 0x100d7e0c
mov ecx, dword fs:[0x2c]
mov edx, dword [0x1039ea44]
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x103a25ec]
cmp ecx, dword [edx + 4]
jle 0x100d7ddc
push 0x103a25ec
call fcn.10151b0d
add esp, 4
cmp dword [0x103a25ec], 0xffffffff
jne 0x100d7ddc
mov eax, dword [0x1039ead8]
mov esi, dword [eax + 0x30]
test esi, esi
je 0x100d7dc7
mov edx, dword [esi + 0xc]
mov ecx, edx
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100d7d90
sub ecx, edi
lea edi, [ecx + 1]
mov ecx, 0x4fa38bcd
test edi, edi
je 0x100d7dc0
movsx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
imul ecx, eax, 0xf1546419
sub edi, 1
jne 0x100d7da5
cmp ecx, 0xb5599648
je 0x100d7dc9
mov esi, dword [esi + 4]
test esi, esi
jne 0x100d7d87
xor esi, esi
push 0x103a25ec
mov dword [0x103a2600], esi
call fcn.10151ac3
add esp, 4
mov ecx, dword [0x103a2600]
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + 0x30]
xor eax, ecx
movd xmm0, eax
mov eax, dword [0x1039ea98]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 0x20]
divss xmm0, dword [ebx + 0xdc]
cvttss2si eax, xmm0
inc eax
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x100d80d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1039ea44]
push esi
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x103a25f8]
cmp eax, dword [ecx + 4]
jle 0x100d8167
push 0x103a25f8
call fcn.10151b0d
add esp, 4
cmp dword [0x103a25f8], 0xffffffff
jne 0x100d8167
mov eax, dword [0x1039ead8]
mov esi, dword [eax + 0x30]
test esi, esi
je 0x100d8152
mov edx, dword [esi + 0xc]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d8118
sub eax, edi
mov ecx, 0x4fa38bcd
lea edi, [eax + 1]
test edi, edi
je 0x100d814b
nop dword [eax]
movsx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
imul ecx, eax, 0xf1546419
sub edi, 1
jne 0x100d8130
cmp ecx, 0xb5599648
je 0x100d8154
mov esi, dword [esi + 4]
test esi, esi
jne 0x100d8110
xor esi, esi
push 0x103a25f8
mov dword [0x103a25fc], esi
call fcn.10151ac3
add esp, 4
mov eax, dword [0x103a25fc]
pop edi
pop esi
ret
Function at 0x100df710
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov dword [esp + 4], ecx
mov ecx, dword [0x1039eb44]
push ebx
push ebp
push esi
mov eax, dword [ecx]
push edi
mov eax, dword [eax + 0x20]
call eax
mov ebx, eax
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x100df7f6
mov edx, dword [ebx + 8]
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100df740
sub ecx, esi
lea esi, [ecx + 1]
mov ecx, 0x4fa38bcd
test esi, esi
je 0x100df768
movsx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
imul ecx, eax, 0xf1546419
sub esi, 1
jne 0x100df755
cmp ecx, dword [esp + 0x1c]
jne 0x100df7ca
mov edi, dword [ebx + 0xc]
xor ebx, ebx
mov ebp, dword [edi + 4]
test ebp, ebp
jle 0x100df7c6
mov edi, dword [edi]
nop dword [eax]
test edi, edi
je 0x100df7be
mov edx, dword [edi]
mov eax, edx
lea esi, [eax + 1]
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100df790
sub eax, esi
mov esi, 0x4fa38bcd
lea ecx, [eax + 1]
test ecx, ecx
je 0x100df7b8
movsx eax, byte [edx]
lea edx, [edx + 1]
xor eax, esi
imul esi, eax, 0xf1546419
sub ecx, 1
jne 0x100df7a5
cmp esi, dword [esp + 0x20]
je 0x100df7e3
inc ebx
add edi, 0x3c
cmp ebx, ebp
jl 0x100df780
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + 0x10]
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x100df736
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x14]
mov dword [ecx], edi
mov eax, dword [edi + 0x20]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x20], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x100e1ca0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b269d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x10249010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
call fcn.100180b0
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x18]
call fcn.100180b0
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x38]
mov dword [esi + 0x30], eax
cmp ecx, 0x10
jb 0x100e1d24
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100e1d1a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100e1d5c
push ecx
push edx
call fcn.101519a9
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x100e1d6c
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100e1d62
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100e1d62
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101519a9
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x34
Function at 0x100e4850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b2c69
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10249010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1039f244]
cmp dword [eax + 0x48c8], 0
je 0x100e4a53
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1039ea44]
mov edi, dword [eax + ecx*4]
mov eax, dword [0x1039f050]
cmp eax, dword [edi + 4]
jle 0x100e48f0
push 0x1039f050
call fcn.10151b0d
add esp, 4
cmp dword [0x1039f050], 0xffffffff
jne 0x100e48f0
push ecx
push 0x2c0ffa6
mov dword [ebp - 4], 0
mov ecx, dword [0x1039f394]
push 0xbbcce2b5
call fcn.100bc2f0
push 0x1039f050
mov dword [0x1039f04c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10151ac3
add esp, 4
mov ecx, dword [0x1039eafc]
mov eax, dword [0x1039f04c]
mov esi, dword [ebp + 0xc]
mov edx, dword [ecx]
push dword [eax + esi]
call dword [edx + 0x10]
mov ecx, dword [0x1039f500]
mov esi, dword [ecx + 8]
test esi, esi
je 0x100e4a53
test eax, eax
je 0x100e4a53
cmp eax, esi
jne 0x100e4a53
mov eax, dword [0x1039eeac]
cmp eax, dword [edi + 4]
jle 0x100e4980
push 0x1039eeac
call fcn.10151b0d
add esp, 4
cmp dword [0x1039eeac], 0xffffffff
jne 0x100e4980
push ecx
push 0xc4cbab11
mov dword [ebp - 4], 1
mov ecx, dword [0x1039f394]
push 0x3a46cc70
call fcn.100bc2f0
push 0x1039eeac
mov dword [0x1039eebc], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10151ac3
add esp, 4
mov ecx, dword [0x1039eafc]
mov eax, dword [0x1039eebc]
mov edx, dword [ecx]
push dword [eax + esi]
call dword [edx + 0x10]
mov esi, eax
test esi, esi
je 0x100e4a53
mov ecx, dword [0x1039eab8]
cmp ecx, dword [edi + 4]
jle 0x100e49f7
push 0x1039eab8
call fcn.10151b0d
add esp, 4
cmp dword [0x1039eab8], 0xffffffff
jne 0x100e49f7
push ecx
push 0x8d29f550
mov dword [ebp - 4], 2
mov ecx, dword [0x1039f394]
push 0x19c23329
call fcn.100bc2f0
push 0x1039eab8
mov dword [0x1039eabc], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10151ac3
add esp, 4
mov eax, dword [0x1039eabc]
movsx ecx, word [eax + esi]
call fcn.100e1d80
mov esi, eax
test esi, esi
je 0x100e4a53
cmp dword [esi + 0x14], 0x10
mov ebx, dword [ebp + 8]
jb 0x100e4a16
mov esi, dword [esi]
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100e4a20
sub ecx, edx
mov edi, 0x4fa38bcd
add ecx, 1
je 0x100e4a46
movsx eax, byte [esi]
lea esi, [esi + 1]
xor eax, edi
imul edi, eax, 0xf1546419
sub ecx, 1
jne 0x100e4a33
mov edx, dword [ebx + 8]
mov ecx, edi
call fcn.100e4660
mov dword [ebx + 8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100e7ad0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x10249010]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x100e7b92
cmp byte [esi + 0x3d], 0
je 0x100e7b92
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100e7b7f
mov ecx, dword [esi + 0x38]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
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 0x100e7b43
sub eax, 1
je 0x100e7b47
sub eax, 2
jne 0x100e7b7f
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1015164c
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x100e7b67
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 0x100e7b7f
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1015164c
add esp, 0x28
ret
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1015164c
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop esi
xor ecx, esp
call fcn.1015164c
add esp, 0x28
ret

Function at 0x100e8790
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b32fd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10249010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push esi
push dword [ebp + 8]
push eax
call fcn.100e8910
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], eax
test al, al
je 0x100e87f2
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x103a2658], 0x38e38e3
je 0x100e8897
mov eax, dword [0x103a2654]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x14], 0x103a2654
mov dword [ebp - 4], 0
push 0x48
mov dword [ebp - 0x10], 0
call fcn.1015165a
mov ebx, eax
add esp, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 1
lea edi, [esi + 4]
mov ecx, dword [esi]
lea esi, [ebx + 0x14]
mov dword [ebx + 0x10], ecx
mov ecx, esi
push edi
mov dword [ebp + 8], esi
call fcn.100180b0
lea eax, [edi + 0x18]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x18]
call fcn.100180b0
mov eax, dword [edi + 0x30]
mov ecx, 0x103a2654
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0xc]
push ebx
push dword [ebp - 0x20]
mov dword [ebx], eax
push dword [ebp - 0x24]
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov word [ebx + 0xc], 0
call fcn.1003ebe0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.100352e0
int3
Function at 0x100ea710
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b358d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10249010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
call fcn.1015165a
mov edx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov esi, dword [edx]
mov edx, dword [edx + 4]
mov dword [eax], esi
mov dword [eax + 4], edx
lea esi, [edi + 4]
mov dword [ebp - 4], 0
push esi
push 0
push eax
push 0x100ea7a0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [edi], eax
test eax, eax
je 0x100ea789
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [esi], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x100ecb90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1039ea44]
push esi
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x103a26b8]
cmp eax, dword [ecx + 4]
jle 0x100ecc27
push 0x103a26b8
call fcn.10151b0d
add esp, 4
cmp dword [0x103a26b8], 0xffffffff
jne 0x100ecc27
mov eax, dword [0x1039ead8]
mov esi, dword [eax + 0x30]
test esi, esi
je 0x100ecc12
mov edx, dword [esi + 0xc]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100ecbd8
sub eax, edi
mov ecx, 0x4fa38bcd
lea edi, [eax + 1]
test edi, edi
je 0x100ecc0b
nop dword [eax]
movsx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
imul ecx, eax, 0xf1546419
sub edi, 1
jne 0x100ecbf0
cmp ecx, 0xbc340f3b
je 0x100ecc14
mov esi, dword [esi + 4]
test esi, esi
jne 0x100ecbd0
xor esi, esi
push 0x103a26b8
mov dword [0x103a2698], esi
call fcn.10151ac3
add esp, 4
mov eax, dword [0x103a2698]
pop edi
pop esi
ret
Function at 0x404f76
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov ebx, ecx
push eax
call fcn.00405b93
mov esi, dword [ebp - 4]
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [esi - 0xc], eax
je 0x405064
push esi
push 1
push str.EnableLogging
push str.LoggingSettings
call edi
push esi
push 1
test eax, eax
push str.ShowTime
setne al
push str.LoggingSettings
mov byte [ebx + 0x7c], al
call edi
push esi
push 0
test eax, eax
push str.LogToFile
setne al
push str.LoggingSettings
mov byte [ebx + 0x7e], al
call edi
push esi
push 0
test eax, eax
push str.LogToOutputDebug
setne al
push str.LoggingSettings
mov byte [ebx + 0x7f], al
call edi
push esi
push 1
test eax, eax
push str.AppendToFile
setne al
push str.LoggingSettings
mov byte [ebx + 0x84], al
call edi
test eax, eax
lea edi, [ebx + 0x80]
mov edx, 0x104
setne al
xor ecx, ecx
mov byte [ebx + 0x85], al
inc ecx
mov eax, dword [edi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x405040
push edx
mov ecx, edi
call fcn.004017a3
mov edx, 0x104
push esi
push edx
push dword [edi]
push str.GoogleUpdate.log
push str.LogFilePath
push str.LoggingSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040480b
jmp 0x405087
lea ecx, [ebx + 0x80]
mov byte [ebx + 0x7c], 1
push str.GoogleUpdate.log
mov word [ebx + 0x7e], 1
mov word [ebx + 0x84], 0x100
call fcn.004048d6
cmp byte [ebx + 0x7d], 0
je 0x405091
mov byte [ebx + 0x7e], 1
xor eax, eax
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov dword [ebp - 4], eax
mov edx, dword [eax + 0x43f8b0]
mov ecx, dword [eax + 0x43f8b4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
test edx, edx
je 0x4050ff
cmp ecx, 0xa
ja 0x4050ff
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.00405b93
mov edi, dword [ebp - 8]
cmp dword [edi - 0xc], 0
je 0x4050e2
push edi
push 1
push dword [ebp - 0xc]
push str.LoggingLevel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x4050e5
xor eax, eax
inc eax
mov edx, dword [ebp - 0x10]
test eax, eax
setne cl
mov byte [ebx + edx*8], cl
lea ecx, [edi - 0x10]
mov dword [ebx + edx*8 + 4], eax
call fcn.004019b6
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
cmp eax, 0x50
jb 0x4050a0
call fcn.00407930
lea ecx, [esi - 0x10]
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x8c], edx
call fcn.004019b6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40512a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.004013ad
push eax
lea ecx, [ebp - 4]
call fcn.00401698
mov esi, dword [ebp - 4]
xor ecx, ecx
inc ecx
mov edx, 0x104
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x405160
push edx
lea ecx, [ebp - 4]
call fcn.004017a3
mov esi, dword [ebp - 4]
push esi
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x405196
mov ecx, dword [ebp + 8]
push 0x437068
call fcn.004047d9
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.0040480b
lea ecx, [esi - 0x10]
call fcn.004019b6
mov eax, dword [ebp + 8]
jmp 0x4051cd
push str.GoogleUpdateLog
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x405172
push edi
lea edi, [esi - 0x10]
mov ecx, edi
call fcn.004015f7
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add eax, 0x10
push 0xffffffffffffffff
mov dword [esi], eax
call fcn.0040480b
mov ecx, edi
call fcn.004019b6
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4052b9
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
cmp byte [ebx + 0x7f], 0
je 0x405384
cmp dword [ebx + 0xd4], 0
push esi
push edi
jne 0x405370
lea eax, [ebp - 4]
push eax
call fcn.004051d4
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x405318
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.004081f0
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.00407b76
test al, al
jne 0x405322
mov ecx, edi
call fcn.00401ef4
test eax, eax
jns 0x405322
lea ecx, [edi - 0x10]
call fcn.004019b6
lea ecx, [esi - 0x10]
call fcn.004019b6
jmp 0x405382
mov al, byte [ebx + 0x85]
push 0x20
mov byte [ebp - 8], al
call fcn.00426fdd
pop ecx
push dword [ebp - 8]
mov ecx, eax
push esi
call fcn.00405c06
mov dword [ebx + 0xd4], eax
test eax, eax
jne 0x405360
push esi
push dword [ebx + 0x5c]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.0040862c
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi - 0x10]
call fcn.004019b6
lea ecx, [esi - 0x10]
call fcn.004019b6
mov eax, dword [ebx + 0xd4]
test eax, eax
je 0x405382
push eax
mov ecx, ebx
call fcn.00405b20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4058b5
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
test esi, esi
je 0x405976
cmp dword [ebp + 8], 0
jne 0x4058da
cmp dword [ebp + 0x10], 2
jg 0x405976
call fcn.004013ad
push eax
lea ecx, [ebp - 4]
call fcn.00401698
call fcn.004013ad
push eax
lea ecx, [ebp + 0x14]
call fcn.00401698
xor edi, edi
lea eax, [ebx + 0x60]
inc edi
push 0
mov ecx, eax
call fcn.004065ba
test al, al
jne 0x40591c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
lea eax, [ebx + 0x60]
cmp edi, 0x14
jle 0x4058fc
jmp 0x405940
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
mov ecx, ebx
push esi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004057dd
lea ecx, [ebx + 0x60]
mov eax, dword [ecx]
call dword [eax + 8]
cmp edi, 0x14
jle 0x405960
push str.LOG_SYSTEM:_Couldnt_acquire_lock__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x439c58
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.004019b6
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004019b6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x405c06
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx], fcn.00405db7
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.004013ad
push eax
lea ecx, [ebx + 0xc]
call fcn.00401698
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.004047d9
mov dword [ebx + 0x18], edi
call fcn.004013ad
push eax
lea ecx, [ebx + 0x1c]
call fcn.00401698
movzx eax, byte [0x440c48]
neg eax
sbb eax, eax
and eax, 0x440f30
mov dword [ebp + 8], eax
je 0x405cd8
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.00405b93
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x405cb6
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0x989680
push str.MaxLogFileSize
push str.LoggingSettings
call edi
push esi
push 1
push str.LogFileWide
push str.LoggingSettings
mov dword [ebx + 4], eax
call edi
test eax, eax
setne al
mov byte [ebx + 0xb], al
jmp 0x405cc1
mov dword [ebx + 4], 0x989680
mov byte [ebx + 0xb], 1
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x1c]
add eax, 0x5c
push eax
call fcn.0040164a
lea ecx, [esi - 0x10]
call fcn.004019b6
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x405d30
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x405db5
mov byte [esi + 8], 1
call fcn.00405de3
cmp dword [esi + 0x10], 0
je 0x405db5
test al, al
je 0x405d50
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.0040635a
test al, al
jne 0x405d77
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.0040862c
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.00405eaa
cmp dword [esi + 0x18], 0
jne 0x405da2
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.0040862c
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x405db5
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret

Function at 0x405eaa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x43f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea edx, [ebp - 0x6c]
push edi
xor edi, edi
mov dword [ebp - 0x6c], edi
mov ecx, dword [esi + 0x14]
call fcn.00407ca9
mov eax, dword [ebp - 0x6c]
cmp eax, dword [esi + 4]
jbe 0x405ee1
mov ecx, esi
call fcn.0040601b
xor eax, eax
cmp byte [esi + 0xa], al
push edi
setne al
push 0x80
lea eax, [eax*2 + 2]
push eax
push edi
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
jne 0x405f1a
mov dword [esi + 0x18], edi
xor al, al
jmp 0x405fac
lea ecx, [ebp - 0x8c]
call fcn.004044bd
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x68]
push 0x439584
push eax
call fcn.00403caf
add esp, 0x14
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x8c]
push edi
push 0xc0010000
push eax
call fcn.00403ee8
lea ecx, [ebp - 0x68]
mov bl, al
call fcn.0040443b
test bl, bl
je 0x405f74
push ecx
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x8c]
push eax
call fcn.00402c56
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405f9f
cmp byte [esi + 0xb], 0
je 0x405f9f
push edi
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], edi
push eax
push 2
push 0x43818c
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x8c]
call fcn.00403f64
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041686e
mov esp, ebp
pop ebp
ret

Function at 0x405fc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 0x80
push 5
push ebx
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x18], 0xffffffff
mov edi, eax
jne 0x405ff0
xor al, al
jmp 0x406014
cmp byte [esi + 0xb], bl
je 0x40600b
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x43818c
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret