joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004fa60
Capabilities:
Enumerate processes
Get process image filename
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014859b
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x468], ecx
mov eax, dword [ebp + 8]
mov ebx, 1
mov dword [ebp - 0x464], eax
test eax, eax
je 0x1004faf8
push 0x228
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x460], 0
push 0
push eax
call fcn.1011a400
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x1004faf8
lea eax, [ebp - 0x460]
mov dword [ebp - 0x460], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x1004faff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1004fc6f
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1004fb10
mov eax, dword [ebp - 0x458]
test eax, eax
je 0x1004fc55
cmp eax, 4
je 0x1004fc55
cmp eax, 8
je 0x1004fc55
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x458]
cmp ecx, eax
je 0x1004fc55
push ecx
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1004fc2f
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.1011a400
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
cmp word [ebp - 0x21c], 0
je 0x1004fc24
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov ecx, dword [ebp - 0x468]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.10045c40
cmp dword [ebp - 0x224], 0
je 0x1004fc12
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
push dword [ebp - 0x464]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.1011a277
add esp, 8
test eax, eax
jne 0x1004fc12
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
neg eax
sbb eax, eax
and ebx, eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0xffffffff
call fcn.1000baf0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x1004fc35
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x22c
lea eax, [ebp - 0x460]
push 0
push eax
call fcn.1011a400
add esp, 0xc
mov dword [ebp - 0x460], 0x22c
lea eax, [ebp - 0x460]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1004fb10
push edi
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret 4
Function at 0x10052680
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10148c48
mov eax, dword fs:[0]
push eax
sub esp, 0x168
push ebx
push esi
push edi
mov eax, dword [0x1018d0d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor ecx, ecx
mov eax, dword [ebp + 0x24]
xor edi, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp + 0x24], eax
test eax, eax
jne 0x100527b3
push str.Userenv.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x100527a7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10153d74
push edi
call esi
push 0x10153d8c
push edi
mov dword [ebp - 0x10], eax
call esi
mov esi, dword [ebp + 8]
mov ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x100527a7
test ecx, ecx
je 0x100527a7
push ebx
push esi
lea ecx, [ebp + 0x24]
push ecx
call eax
test eax, eax
jne 0x100527a7
call fcn.1000af50
cmp eax, 2
jg 0x1005278d
push 2
push 0x52f
push str.srcksafe_host.cpp
lea ecx, [ebp - 0xc4]
call fcn.1000afc0
mov esi, eax
mov dword [ebp - 4], ebx
mov ebx, 1
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10153d74
push str._anonymous_namespace::__CreateUserProcess
lea eax, [esi + 8]
push str.SAFE_
push eax
call fcn.100025d0
add esp, 8
push eax
call fcn.100025d0
add esp, 8
push eax
call fcn.100025d0
add esp, 8
mov ecx, eax
call fcn.100058d0
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x100527a7
lea ecx, [ebp - 0xc4]
and ebx, 0xfffffffe
call fcn.1000b010
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x100527b3
mov ecx, dword [ebp + 0x20]
jmp 0x100527bc
mov ecx, dword [ebp + 0x20]
or ecx, 0x400
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push eax
push ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x100528a0
call fcn.1000af50
cmp eax, 2
jg 0x10052850
push 2
push 0x543
push str.srcksafe_host.cpp
lea ecx, [ebp - 0x174]
call fcn.1000afc0
mov esi, eax
or ebx, 2
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessAsUser
push str._anonymous_namespace::__CreateUserProcess
lea eax, [esi + 8]
push str.SAFE_
push eax
call fcn.100025d0
add esp, 8
push eax
call fcn.100025d0
add esp, 8
push eax
call fcn.100025d0
add esp, 8
mov ecx, eax
call fcn.100058d0
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x10052867
lea ecx, [ebp - 0x174]
call fcn.1000b010
xor ebx, ebx
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x10052881
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1005287a
push ecx
call eax
mov dword [ebp + 0x24], 0
test edi, edi
je 0x1005288c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 1
jmp 0x10052869
Function at 0x10053370
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x1005337e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jl 0x1005345a
push edi
mov edi, esi
shr edi, 3
mov ecx, edi
neg ecx
lea esi, [esi + ecx*8]
lea ecx, [ecx]
movzx ecx, byte [edx]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x101549b0]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x101549b0]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x101549b0]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x101549b0]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x101549b0]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x101549b0]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x101549b0]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x101549b0]
dec edi
jne 0x100533a0
pop edi
test esi, esi
je 0x1005347b
mov edi, edi
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x101549b0]
dec esi
jne 0x10053460
not eax
pop esi
pop ebp
ret

Function at 0x10053e20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10053e35
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10053e74
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10053e70
lea ebx, [ebx]
cmp esi, edx
jae 0x10053e74
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x10053e60
cmp esi, edx
jb 0x10053e79
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10055180
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10148eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1018d0d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [esi]
push 0
push esi
call dword [eax + 0x30]
xor ebx, ebx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea edi, [esi + 0x64]
mov dword [ebp - 4], ebx
mov ecx, edi
mov dword [ebp - 0x18], edi
call fcn.10013280
mov eax, dword [esi + 0x5c]
mov byte [ebp - 4], 1
mov esi, dword [eax]
cmp esi, eax
je 0x100552a6
mov edi, dword [ebp - 0x24]
mov ecx, ebx
lea ebx, [ebx]
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
cmp eax, ebx
jae 0x10055229
cmp edi, eax
ja 0x10055229
sub eax, edi
sar eax, 2
mov dword [ebp - 0x10], eax
cmp ebx, ecx
jne 0x10055220
push 1
lea ecx, [ebp - 0x24]
call fcn.10021740
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
test ebx, ebx
je 0x1005524b
mov eax, dword [edi + eax*4]
jmp 0x10055249
cmp ebx, ecx
jne 0x10055243
push 1
lea ecx, [ebp - 0x24]
call fcn.10021740
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
test ebx, ebx
je 0x1005524b
mov eax, dword [eax]
mov dword [ebx], eax
add ebx, 4
cmp byte [esi + 0xd], 0
mov dword [ebp - 0x20], ebx
jne 0x10055297
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x1005527c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10055297
lea ebx, [ebx]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10055270
jmp 0x10055297
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10055295
cmp esi, dword [eax + 8]
jne 0x10055295
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10055285
mov esi, eax
mov eax, dword [ebp - 0x14]
cmp esi, dword [eax + 0x5c]
jne 0x100551f0
mov edi, dword [ebp - 0x18]
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.10013290
mov eax, dword [ebp - 0x24]
mov ecx, ebx
sub ecx, eax
xor edx, edx
add ecx, 3
xor edi, edi
shr ecx, 2
mov esi, eax
cmp eax, ebx
cmova ecx, edx
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x100552e8
mov ebx, ecx
mov ecx, dword [ebp - 0x14]
push dword [esi]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x30]
inc edi
lea esi, [esi + 4]
cmp edi, ebx
jne 0x100552d2
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100552f5
push eax
call fcn.1011a1ea
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10056160
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x220], eax
push edi
mov edi, ecx
test esi, esi
je 0x1005639b
cmp dword [edi + 0x54], 0
je 0x1005639b
cmp dword [edi + 0x10], 0
je 0x1005639b
cmp dword [edi + 0x34], 0
je 0x1005624c
push 0x216
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.1011a400
push str.gray
push esi
mov dword [ebp - 0xe], 0xffffffff
call fcn.1011c8a2
add esp, 0x14
test eax, eax
je 0x10056215
mov dword [ebp - 0x21c], 1
mov eax, dword [edi + 4]
lea edx, [ebp - 0x21c]
push edx
push dword [ebp - 0x220]
lea ecx, [edi + 4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call dword [eax]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret 0x18
push str.black
push esi
call fcn.1011c8a2
add esp, 8
test eax, eax
je 0x1005624c
push str.BlockName
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 3
push 0x104
push eax
call fcn.1011c1a2
add esp, 0xc
jmp 0x100561df
mov eax, dword [ebp + 0x10]
push ebx
cmp eax, 3
jne 0x1005636f
push 0x2e
push esi
call fcn.1011c7fc
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1005636c
push str..rar
push ebx
call fcn.1011a277
add esp, 8
test eax, eax
je 0x100562a8
push str..zip
push ebx
call fcn.1011a277
add esp, 8
test eax, eax
je 0x100562a8
push 0x10154fc8
push ebx
call fcn.1011a277
add esp, 8
test eax, eax
jne 0x1005636c
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1005636c
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov dword [ebp - 0x228], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1005636c
cmp dword [ebp - 0x224], eax
ja 0x1005630f
cmp dword [ebp - 0x228], 0x6400000
jb 0x1005636c
push 0x216
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.1011a400
mov eax, dword [edi + 4]
lea edx, [ebp - 0x21c]
add esp, 0xc
mov dword [ebp - 0xe], 0xffffffff
lea ecx, [edi + 4]
mov dword [ebp - 0x21c], 1
push edx
push dword [ebp - 0x220]
push dword [ebp + 0x14]
push 3
push esi
push dword [ebp + 8]
call dword [eax]
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x10]
push dword [ebp - 0x220]
mov ecx, dword [edi + 0x10]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
push dword [ebp + 8]
call fcn.10054830
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10058780
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x232]
push eax
call fcn.1011a400
xor eax, eax
add esp, 0xc
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x234]
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str._securityksdedeconfig.ini
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x234]
push eax
push 1
push str.enablemaxfslimit
push str.scan
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esi + 0xc]
xchg dword [ecx], eax
cmp dword [ecx], 0
je 0x10058867
lea eax, [ebp - 0x234]
push eax
push 0x13
lea eax, [ebp - 0x2c]
push eax
push str.1073741824
push str.maxfslimit
push str.scan
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x10058867
lea eax, [ebp - 0x2c]
push eax
call fcn.1011bfa4
add esp, 4
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret

Function at 0x10059ca0
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
mov esi, ecx
push esi
push 0x10059c80
push 0
push 0
call fcn.1011d4dc
xor ecx, ecx
mov dword [esi + 0x18], eax
add esp, 0x18
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
ret
Function at 0x1005a120
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014962b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1018d0d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], 0
cmp dword [esi], 0
mov dword [ebp - 4], 0xffffffff
jne 0x1005a1d9
mov eax, dword [ebp + 8]
push 0x10192810
push 0x2c
mov dword [esi + 0x38], eax
call fcn.1011cec7
add esp, 8
test eax, eax
je 0x1005a17c
mov ecx, eax
call fcn.10059d50
jmp 0x1005a17e
xor eax, eax
mov dword [esi + 4], eax
test eax, eax
je 0x1005a1f1
mov ecx, eax
call fcn.10060000
test eax, eax
js 0x1005a1f1
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0x2800
push 0
push 0
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 0
push esi
push 0x1005a8e0
push 0
push 0
mov dword [esi + 0xc], eax
call fcn.1011d4dc
add esp, 0x18
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
je 0x1005a1f1
mov dword [esi], 1
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov edi, dword [esi + 4]
test edi, edi
je 0x1005a23d
mov dword [ebp + 8], edi
lea eax, [edi + 0x14]
mov dword [ebp - 4], 1
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x1005a219
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi + 8]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x1005a22d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push edi
call fcn.1011a1ea
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1005a254
push eax
call edi
mov dword [esi + 0xc], 0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1005a265
push ecx
call edi
mov dword [esi + 8], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1005ca40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014992c
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1018d0d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0x10152880
mov dword [esi + 8], 0x10179698
mov dword [esi + 0xc], 0x10155580
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
lea eax, [esi + 0x14]
mov dword [esi], 0x1015558c
xor ecx, ecx
mov dword [esi + 4], 0x101555b0
mov dword [esi + 8], 0x101555c8
mov dword [esi + 0xc], 0x101555d0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
push eax
mov dword [eax + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x2c], 0
xor eax, eax
mov dword [esi + 0x30], 0
mov byte [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x58], 7
mov dword [esi + 0x54], 0
mov word [esi + 0x44], ax
push 0x40
mov byte [ebp - 4], 3
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
call fcn.1011a4b2
add esp, 4
test eax, eax
jne 0x1005cb1c
call fcn.10115fd1
lea ecx, [eax + 4]
mov dword [eax], eax
test ecx, ecx
je 0x1005cb27
mov dword [ecx], eax
lea ecx, [eax + 8]
test ecx, ecx
je 0x1005cb30
mov dword [ecx], eax
mov word [eax + 0xc], 0x101
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
call fcn.10038a00
mov ecx, eax
test ecx, ecx
jne 0x1005cb78
push 0x80004005
call fcn.1003dd50
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x7c], eax
mov eax, esi
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc8], 0
mov dword [esi + 0xcc], 0
mov dword [esi + 0xd8], 0
mov dword [esi + 0xdc], 0
mov byte [esi + 0xe0], 0
mov dword [esi + 0xb8], 0
mov dword [esi + 0xbc], 0
mov dword [esi + 0xd0], 0
mov dword [esi + 0xd4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1005cc90
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x98], eax
lea eax, [esi + 0x61c]
push edi
mov dword [esi + 0x618], 0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
push eax
mov dword [eax + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x104
lea edi, [esi + 0x208]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push edi
call fcn.1011c7fc
add esp, 8
test eax, eax
je 0x1005cd0d
xor ecx, ecx
mov word [eax + 2], cx
push str.log_
push 0x104
push edi
call fcn.1011c136
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
push edi
call ebx
test eax, eax
jne 0x1005cd35
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
mov word [ebp - 0x94], ax
mov dword [ebp - 0x92], eax
mov dword [ebp - 0x8e], eax
mov dword [ebp - 0x8a], eax
mov word [ebp - 0x86], ax
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
call fcn.1011a400
movzx eax, word [ebp - 0x88]
push eax
movzx eax, word [ebp - 0x8a]
push eax
movzx eax, word [ebp - 0x8c]
push eax
movzx eax, word [ebp - 0x8e]
push eax
movzx eax, word [ebp - 0x92]
push eax
movzx eax, word [ebp - 0x94]
push eax
push str._d__d__d__d__d__d_
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.1011dd26
lea eax, [ebp - 0x84]
push eax
push 0x104
push edi
call fcn.1011c136
push dword [ebp - 0x9c]
push 0x104
push edi
call fcn.1011c136
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esi + 0x410]
add esp, 0x48
push 0x104
push eax
push 0
call edi
lea eax, [esi + 0x410]
push 0x5c
push eax
call fcn.1011c7fc
add esp, 8
test eax, eax
je 0x1005ce16
xor ecx, ecx
mov word [eax + 2], cx
push dword [ebp - 0x98]
lea eax, [esi + 0x410]
push 0x104
push eax
call fcn.1011c136
add esp, 0xc
push 0x104
push esi
push 0
call edi
push 0x5c
push esi
call fcn.1011c7fc
add esp, 8
test eax, eax
je 0x1005ce4f
xor ecx, ecx
mov word [eax + 2], cx
push str.debug.log
push 0x104
push esi
call fcn.1011c136
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x1005ce84
push esi
call ebx
test eax, eax
mov eax, esi
jne 0x1005ce86
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x618], 1
xor ecx, ebp
pop esi
pop ebx
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret 0xc