joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e14c
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor esi, esi
push 1
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.00409faf
mov dword [ebp - 0x18], eax
and eax, edx
sub esp, 0xfffffff0
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x40e1d4
push 2
push esi
push esi
push dword [ebp + 8]
call fcn.00409faf
mov ecx, eax
and ecx, edx
sub esp, 0xfffffff0
cmp ecx, 0xffffffff
je 0x40e1d4
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub ebx, eax
sbb edi, edx
js 0x40e269
jg 0x40e1ad
cmp ebx, esi
jbe 0x40e269
mov esi, 0x1000
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
or eax, eax
jne 0x40e1e0
call fcn.00405812
mov dword [eax], 0xc
call fcn.00405812
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.0040e302
pop ecx
pop ecx
mov dword [ebp - 8], eax
test edi, edi
jl 0x40e200
jg 0x40e1fc
cmp ebx, esi
jb 0x40e200
mov eax, esi
jmp 0x40e202
mov eax, ebx
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00408738
add esp, 0xc
cmp eax, 0xffffffff
je 0x40e24c
cdq
sub ebx, eax
sbb edi, edx
js 0x40e223
jg 0x40e1f2
or ebx, ebx
ja 0x40e1f2
mov ebx, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0040e302
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
jmp 0x40e2d2
call fcn.00405825
cmp dword [eax], 5
jne 0x40e261
call fcn.00405812
mov dword [eax], 0xd
or ebx, 0xffffffff
mov dword [ebp - 0xc], ebx
jmp 0x40e226
cmp edi, esi
jg 0x40e2de
jl 0x40e273
cmp ebx, esi
jae 0x40e2de
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409faf
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x40e1d4
push dword [ebp + 8]
call fcn.0040c8e6
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
and eax, edx
mov dword [ebp - 0xc], edx
cmp eax, 0xffffffff
jne 0x40e2de
call fcn.00405812
mov dword [eax], 0xd
call fcn.00405825
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
and ebx, dword [ebp - 0xc]
cmp ebx, 0xffffffff
je 0x40e1d4
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.00409faf
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x40e1d4
xor eax, eax
jmp 0x40e1db

Function at 0x40e593
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x412008]
add esp, 0xfffffff4
xor eax, ebp
mov dword [ebp - 4], eax
push 6
lea eax, [ebp - 0xc]
push eax
push 0x1004
push dword [ebp + 8]
mov byte [ebp - 6], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
or eax, eax
jne 0x40e5c6
or eax, 0xffffffff
jmp 0x40e5d0
lea eax, [ebp - 0xc]
push eax
call fcn.0040e790
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004033e4
leave
ret
Function at 0x401651
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 0x4016a7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4016a7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401699
cmp esi, ecx
jae 0x4016a7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401687
cmp esi, ecx
jae 0x4016a7
cmp word [esi], 0
je 0x4016a7
mov eax, esi
jmp 0x4016a9
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401f1d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], edx
mov edi, 0x80070003
call fcn.00401849
lea ecx, [ebp - 0xc]
call fcn.004024f6
mov esi, dword [ebp - 0xc]
test eax, eax
je 0x40203e
and dword [ebp - 0x18], 0
or edx, 0xf003f
push ecx
push ecx
push edx
push ecx
push ecx
push esi
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x42b560
mov dword [ebp - 0x14], 0x200
call fcn.00401e05
mov edi, eax
test edi, edi
jne 0x40202f
mov eax, dword [ebp + 8]
sub eax, 1
je 0x402011
sub eax, 1
je 0x40200d
sub eax, 1
je 0x401ffe
sub eax, 1
je 0x401fef
sub eax, 3
je 0x401fdc
sub eax, 4
je 0x401faa
mov edi, 0x8007065d
jmp 0x402021
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 8
push eax
push 0xb
push 0
push dword [ebp - 4]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jle 0x402021
movzx edi, di
or edi, 0x80070000
jmp 0x402021
push 7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
push ebx
push dword [ebp - 4]
call fcn.00402454
jmp 0x40201f
push dword [ebx]
lea ecx, [ebp - 0x1c]
push dword [ebp - 4]
call fcn.004023ef
jmp 0x40201f
mov eax, ebx
neg eax
sbb eax, eax
and eax, dword [ebp + 0x10]
push eax
push ebx
push 3
jmp 0x401fbd
push 2
jmp 0x402013
push 1
push ebx
push dword [ebp - 4]
lea ecx, [ebp - 0x1c]
call fcn.00402418
mov edi, eax
lea ecx, [ebp - 0x1c]
call fcn.00401dd9
test edi, edi
jne 0x40202f
mov edi, eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x42b560
call fcn.00401dd9
lea ecx, [esi - 0x10]
call fcn.00401251
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402250
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push dword [edi + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x402288
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x4022ea
mov eax, dword [ebp - 4]
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.0041c2e5
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x4022e5
cmp dword [ebp - 4], 0
je 0x4022de
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x4022ea
movzx esi, si
or esi, 0x80070000
jmp 0x4022ea
xor eax, eax
mov word [ecx], ax
jmp 0x4022ea
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x402ead
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x402ee3
lea esi, [edi + 4]
test esi, esi
je 0x402ee3
call fcn.00402e0f
test al, al
je 0x402ee3
mov ecx, edi
call fcn.00402e0f
test al, al
je 0x402ee3
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x402ee5
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x403ca4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov ecx, esi
call fcn.004018a4
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0040b1e0
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 0x403d3e
movzx ecx, bl
cmp ecx, 0x26
jne 0x403d02
mov edx, str.ProgramFiles
jmp 0x403d0c
cmp ecx, 0x1c
jne 0x403d2d
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.00403e9e
push eax
mov ecx, esi
call fcn.004017fb
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.00401251
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x403d3a
xor eax, eax
inc eax
jmp 0x403d5c
mov eax, edi
jmp 0x403d5c
lea eax, [ebp - 0x20c]
push eax
call fcn.004147df
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401a2c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a65d
leave
ret
Function at 0x404a7f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x50]
mov edi, edx
push ebx
push eax
call fcn.0040b1e0
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x54]
add esp, 0xc
mov dword [ebp - 0x28], 0x80
push esi
push eax
push ebx
cmp dword [ebp + 8], ebx
jne 0x404abb
push ebx
push ebx
jmp 0x404ac3
push dword [ebp + 8]
push 0x400
push ebx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404ad9
call fcn.0040754a
jmp 0x404b1c
movzx ecx, byte [0x431eb9]
neg ecx
sbb ecx, ecx
and ecx, 0x431de0
je 0x404b1a
xor eax, eax
mov dword [ebp - 0x10], ecx
inc eax
mov dword [ebp - 0xc], 7
push eax
push ecx
mov dword [ebp - 8], eax
call fcn.00405b7b
push dword [esi + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push str._Started_process___u_
push eax
call fcn.004039f2
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404cc5
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [ecx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x404d06
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x404d06
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x404ce1
xor al, al
jmp 0x404d08
mov al, 1
pop esi
leave
ret 4

Function at 0x405047
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x405062
mov al, 1
jmp 0x4050a5
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0040b1e0
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x40509d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42b840
call fcn.00407727
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40505e
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040a65d
leave
ret
Function at 0x4050b2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SoftwareGoogleUpdateDev_
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4050e0
xor al, al
jmp 0x405128
push esi
push edi
push 4
pop edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push ebx
push str.IsEnabledLogToFile
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x405124
cmp dword [ebp - 8], edi
jne 0x405124
cmp dword [ebp - 0xc], ebx
je 0x405124
mov bl, 1
pop edi
mov al, bl
pop esi
pop ebx
leave
ret

Function at 0x405480
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
call fcn.004050b2
mov byte [ebx + 0x77], al
mov ecx, ebx
lea eax, [ebp - 4]
push eax
call fcn.00405ff6
mov edi, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], edi
cmp dword [edi - 0xc], 0
je 0x40550b
push edi
push 1
push str.EnableLogging
push str.LoggingSettings
call esi
push edi
push 1
test eax, eax
push str.ShowTime
setne al
push str.LoggingSettings
mov byte [ebx + 0x74], al
call esi
push edi
push 0
test eax, eax
push str.LogToOutputDebug
setne al
push str.LoggingSettings
mov byte [ebx + 0x76], al
call esi
push edi
push 1
test eax, eax
push str.AppendToFile
setne al
push str.LoggingSettings
mov byte [ebx + 0x78], al
call esi
test eax, eax
setne al
jmp 0x405519
mov byte [ebx + 0x74], 1
mov al, 1
mov byte [ebx + 0x76], 1
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x79], al
cmp byte [ebx + 0x75], 0
je 0x405526
mov byte [ebx + 0x76], 1
xor eax, eax
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov edi, esi
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x430aa0]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x405592
mov ecx, dword [eax + 0x430aa4]
mov dword [ebp - 0x10], ecx
cmp ecx, 9
ja 0x405592
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.00405ff6
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x405575
push esi
push 1
push dword [ebp - 0xc]
push str.LoggingLevel
call edi
jmp 0x405578
xor eax, eax
inc eax
mov edx, dword [ebp - 0x10]
test eax, eax
setne cl
mov byte [ebx + edx*8], cl
lea ecx, [esi - 0x10]
mov dword [ebx + edx*8 + 4], eax
call fcn.00401251
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
cmp eax, 0x48
jb 0x405537
call fcn.004017b6
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
lea ecx, [ecx - 0x10]
call fcn.00401251
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4055be
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.00401269
push eax
lea ecx, [ebp - 4]
call fcn.00401ae3
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 0x4055f4
push edx
lea ecx, [ebp - 4]
call fcn.00401bb3
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 0x40562a
mov ecx, dword [ebp + 8]
push 0x429fa8
call fcn.00401849
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.00402809
lea ecx, [esi - 0x10]
call fcn.00401251
mov eax, dword [ebp + 8]
jmp 0x405661
push str.GoogleUpdateLog
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x405606
push edi
lea edi, [esi - 0x10]
mov ecx, edi
call fcn.00401b60
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add eax, 0x10
push 0xffffffffffffffff
mov dword [esi], eax
call fcn.00402809
mov ecx, edi
call fcn.00401251
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x405711
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
cmp byte [ebx + 0x77], 0
je 0x4057da
mov eax, dword [ebx + 0xcc]
push esi
push edi
test eax, eax
jne 0x4057d0
lea eax, [ebp - 4]
push eax
call fcn.00405666
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x405771
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00407468
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.00404efa
test al, al
jne 0x40577b
mov ecx, edi
call fcn.00403b8a
test eax, eax
jns 0x40577b
lea ecx, [edi - 0x10]
call fcn.00401251
lea ecx, [esi - 0x10]
call fcn.00401251
jmp 0x4057d8
mov al, byte [ebx + 0x79]
push 0x20
mov byte [ebp - 8], al
call fcn.0041c2b5
pop ecx
push dword [ebp - 8]
mov ecx, eax
push esi
call fcn.004060e3
mov dword [ebx + 0xcc], eax
test eax, eax
jne 0x4057b6
push esi
push dword [ebx + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.00407727
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi - 0x10]
call fcn.00401251
lea ecx, [esi - 0x10]
call fcn.00401251
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x4057d8
push eax
mov ecx, ebx
call fcn.00405f83
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405d10
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 0x405dd1
cmp dword [ebp + 8], 0
jne 0x405d35
cmp dword [ebp + 0x10], 2
jg 0x405dd1
call fcn.00401269
push eax
lea ecx, [ebp - 4]
call fcn.00401ae3
call fcn.00401269
push eax
lea ecx, [ebp + 0x14]
call fcn.00401ae3
xor edi, edi
lea eax, [ebx + 0x58]
inc edi
push 0
mov ecx, eax
call fcn.00404cc5
test al, al
jne 0x405d77
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
lea eax, [ebx + 0x58]
cmp edi, 0x14
jle 0x405d57
jmp 0x405d9b
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.00405c3c
lea ecx, [ebx + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
cmp edi, 0x14
jle 0x405dbb
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 0x42bdc8
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401251
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.00401251
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x4060e3
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.00406291
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.00401269
push eax
lea ecx, [ebx + 0xc]
call fcn.00401ae3
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.00401849
mov dword [ebx + 0x18], edi
call fcn.00401269
push eax
lea ecx, [ebx + 0x1c]
call fcn.00401ae3
movzx eax, byte [0x431eb9]
neg eax
sbb eax, eax
and eax, 0x431de0
mov dword [ebp + 8], eax
je 0x4061b6
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.00405ff6
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x406192
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0x989680
push str.MaxLogFileSize
push str.LoggingSettings
call edi
mov dword [ebx + 4], eax
xor eax, eax
push esi
inc eax
push eax
push str.LogFileWide
push str.LoggingSettings
call edi
test eax, eax
setne al
jmp 0x40619c
xor eax, eax
mov dword [ebx + 4], 0x989680
inc eax
mov byte [ebx + 0xb], al
lea ecx, [ebx + 0x1c]
mov eax, dword [ebp + 8]
add eax, 0x54
push eax
call fcn.004017fb
lea ecx, [esi - 0x10]
call fcn.00401251
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x3a074aa2
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0xcc974db
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x41b7c9
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
mov eax, ecx
push ebx
push esi
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
mov ecx, dword [eax + 8]
xor esi, esi
push esi
mov edx, 0x407dac
mov dword [ebp - 4], esi
call fcn.004268f1
mov edi, dword [ebp - 8]
mov ebx, eax
test ebx, ebx
js 0x41b859
lea edx, [ebp - 8]
mov ecx, edi
call fcn.00426bc5
mov ebx, eax
test ebx, ebx
js 0x41b859
cmp dword [ebp - 8], esi
je 0x41b860
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push esi
mov edx, 0x407dac
mov ecx, dword [ecx + 0xc]
call fcn.004268f1
mov ebx, eax
test ebx, ebx
jns 0x41b839
mov ecx, ebx
call fcn.00427566
mov esi, dword [ebp - 4]
jmp 0x41b860
mov esi, dword [ebp - 4]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41b860
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042754e
mov ebx, eax
mov ecx, ebx
call fcn.00427566
mov ecx, ebx
call fcn.0042757e
test esi, esi
je 0x41b872
mov ecx, esi
call fcn.00427347
test edi, edi
je 0x41b87d
mov ecx, edi
call fcn.00427347
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41d049
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x479b74]
xor eax, esp
mov dword [esp + 0x270], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
mov esi, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], edi
test ebx, ebx
jne 0x41d0a1
mov ecx, 0x80070057
mov ebx, ecx
jmp 0x41d206
test eax, eax
je 0x41d095
push 0x250
push ecx
lea eax, [esp + 0x30]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
mov edx, 0x407ef0
mov ecx, ebx
push eax
push 0
call fcn.004268f1
mov ebx, eax
test ebx, ebx
js 0x41d204
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
lea ecx, [esp + 0x18]
call fcn.00416a04
mov edi, dword [esp + 0x14]
test edi, edi
je 0x41d1f5
cmp edi, 0xffffffff
je 0x41d1f5
mov ecx, 0x407ef8
lea eax, [esp + 0x54]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41d132
test dx, dx
je 0x41d12e
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41d132
add eax, 4
add ecx, 4
test dx, dx
jne 0x41d10c
xor eax, eax
jmp 0x41d137
sbb eax, eax
or eax, 1
test eax, eax
je 0x41d1b9
mov ecx, 0x407a68
lea eax, [esp + 0x54]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41d16a
test dx, dx
je 0x41d166
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41d16a
add eax, 4
add ecx, 4
test dx, dx
jne 0x41d144
xor eax, eax
jmp 0x41d16f
sbb eax, eax
or eax, 1
test eax, eax
je 0x41d1b9
test byte [esp + 0x28], 0x10
je 0x41d1b9
test esi, esi
je 0x41d18a
mov ecx, esi
call fcn.00427347
and dword [esp + 0xc], 0
lea edx, [esp + 0xc]
lea ecx, [esp + 0x54]
call fcn.0042743a
mov ebx, eax
test ebx, ebx
js 0x41d1e8
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x20]
lea ecx, [esp + 0x20]
call fcn.00428fa1
mov ebx, eax
test ebx, ebx
js 0x41d1e8
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41d103
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x41d1f5
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push eax
call fcn.004272bf
jmp 0x41d20b
mov ecx, ebx
call fcn.00427566
mov esi, dword [esp + 0xc]
jmp 0x41d20b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042754e
mov ebx, eax
mov ecx, ebx
call fcn.00427566
mov ecx, ebx
call fcn.0042757e
test edi, edi
je 0x41d222
cmp edi, 0xffffffff
je 0x41d222
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x41d22d
mov ecx, esi
call fcn.00427347
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41d23c
mov ecx, eax
call fcn.00427347
push 0
lea ecx, [esp + 0x1c]
call fcn.00429588
lea ecx, [esp + 0x20]
call fcn.0041702b
mov ecx, dword [esp + 0x27c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004729c0
mov esp, ebp
pop ebp
ret 8