joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407db0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x498098]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, dword [esp + 0x148]
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.0044dc70
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407ef7
cmp dword [esi + 4], 6
push edi
ja 0x407e0b
jne 0x407e93
cmp dword [esi + 8], 2
jb 0x407e93
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x407e93
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x407e93
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x407e93
movups xmm0, xmmword [0x4878a4]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x4878b4]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x407e93
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x407e93
cmp word [edi + 2], ax
jbe 0x407e93
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x407ede
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0044dc70
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x407ede
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.0044b565
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.0044b565
add esp, 0x140
ret

Function at 0x4091d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x409208
mov edx, dword [esp + 4]
test edx, edx
je 0x409208
cmp dword [eax], 0xffffffff
je 0x409208
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409208
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x409210
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x40924a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x40924a
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x40924a
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40924a
cmp edi, dword [esi]
jne 0x40924a
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc
Function at 0x4092f0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x40939e
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.00409260
test al, al
je 0x40939e
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.00409260
test al, al
je 0x40939e
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x409374
cmp dword [esp + 0x14], edi
jne 0x409374
mov eax, dword [esi]
test eax, eax
jne 0x409361
xor bl, bl
jmp 0x409374
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x40935d
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.00409260
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x409490
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x498098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
and esi, 0xffffb1af
call fcn.00402810
cmp dword [eax + 0x14], 8
jb 0x4094d1
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4094e1
mov al, 1
jmp 0x409531
lea ecx, [ebp - 0x28]
call fcn.00402710
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.00409a10
test al, al
je 0x40951e
lea ecx, [ebp - 0x28]
call fcn.00402810
cmp dword [eax + 0x14], 8
jb 0x40950e
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40951e
mov bl, 1
jmp 0x409520
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004026b0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b565
mov esp, ebp
pop ebp
ret
Function at 0x409550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fa88
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x498098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00402810
cmp dword [eax + 0x14], 8
jb 0x409589
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4095dc
lea ecx, [ebp - 0x28]
call fcn.00402710
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.00409a10
test al, al
je 0x4095cd
lea ecx, [ebp - 0x28]
call fcn.00402810
cmp dword [eax + 0x14], 8
jb 0x4095c4
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004026b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b565
mov esp, ebp
pop ebp
ret
Function at 0x409600
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fad0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x498098]
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 eax, ecx
mov dword [ebp - 0x2c], eax
call fcn.00402810
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x40963f
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x409653
mov al, 1
jmp 0x40975b
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40965d
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403280
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00409550
mov ebx, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004026b0
cmp ebx, 0xffffffff
jne 0x409695
xor al, al
jmp 0x40975b
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40969f
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403280
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.00409490
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004026b0
test bl, bl
je 0x40968e
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4096d8
mov eax, dword [esi]
push eax
call edi
test eax, eax
jne 0x40964c
lea ecx, [ebp - 0x28]
call fcn.00402710
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
call fcn.00409a10
test al, al
je 0x40971c
lea ecx, [ebp - 0x28]
call fcn.00402810
cmp dword [eax + 0x14], 8
jb 0x409711
mov eax, dword [eax]
push eax
call edi
test eax, eax
je 0x40971c
mov bl, 1
jmp 0x40974a
cmp dword [esi + 0x14], 8
jb 0x409724
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x48]
call fcn.00403280
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x30]
call fcn.00409490
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.004026b0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004026b0
mov al, bl
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.0044b565
mov esp, ebp
pop ebp
ret
Function at 0x409780
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x498098]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.0044dc70
add esp, 0xc
mov ecx, esi
call fcn.00402810
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x4097c7
mov esi, dword [esi]
mov ecx, edi
call fcn.00402810
cmp dword [eax + 0x14], 8
jb 0x4097d6
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x409827
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.00402a20
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004028c0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0044b565
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044b565
add esp, 0x210
ret
Function at 0x40a4c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fca0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x498098]
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 ebx, ecx
call fcn.00402620
test al, al
je 0x40a4fd
xor al, al
jmp 0x40a6d7
push ebx
call fcn.0040a420
add esp, 4
test al, al
je 0x40a511
mov al, 1
jmp 0x40a6d7
mov ecx, ebx
call fcn.00402810
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x40a522
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push eax
call edi
test eax, eax
jne 0x40a572
lea ecx, [ebp - 0x28]
call fcn.00402710
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.00409a10
test al, al
je 0x40a563
lea ecx, [ebp - 0x28]
call fcn.00402810
cmp dword [eax + 0x14], 8
jb 0x40a55e
mov eax, dword [eax]
push 0
push eax
call edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004026b0
push ebx
call fcn.0040a420
add esp, 4
test al, al
jne 0x40a50a
mov ecx, ebx
call fcn.004028b0
xor edi, edi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40a669
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 8
jb 0x40a59f
mov eax, dword [esi]
mov edx, 0x2f
cmp dx, word [eax + edi*2]
mov edx, 0x5c
je 0x40a5c2
mov eax, esi
cmp ecx, 8
jb 0x40a5b8
mov eax, dword [esi]
cmp dx, word [eax + edi*2]
jne 0x40a65f
push edi
push 0
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.004039e0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402620
test al, al
jne 0x40a650
lea eax, [ebp - 0x28]
push eax
call fcn.0040a200
add esp, 4
test al, al
jne 0x40a650
lea ecx, [ebp - 0x28]
call fcn.00402810
cmp dword [eax + 0x14], 8
jb 0x40a603
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a650
lea ecx, [ebp - 0x40]
call fcn.00402710
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00409a10
test al, al
je 0x40a644
lea ecx, [ebp - 0x40]
call fcn.00402810
cmp dword [eax + 0x14], 8
jb 0x40a63b
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004026b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004026b0
inc edi
cmp edi, dword [ebp - 0x44]
jb 0x40a593
push ebx
call fcn.0040a200
add esp, 4
test al, al
jne 0x40a6ce
cmp dword [esi + 0x14], 8
jb 0x40a67e
mov esi, dword [esi]
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call esi
test eax, eax
jne 0x40a6ce
lea ecx, [ebp - 0x40]
call fcn.00402710
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, ebx
call fcn.00409a10
test al, al
je 0x40a6bf
lea ecx, [ebp - 0x40]
call fcn.00402810
cmp dword [eax + 0x14], 8
jb 0x40a6ba
mov eax, dword [eax]
push 0
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004026b0
push ebx
call fcn.0040a420
add esp, 4
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.0044b565
mov esp, ebp
pop ebp
ret
Function at 0x413270
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471574
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x498098]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0xf
mov byte [ebx + 0x18], 0
mov byte [ebp - 4], 1
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0xf
mov byte [ebx + 0x30], 0
mov byte [ebp - 4], 2
mov dword [ebx + 0x78], 0
mov byte [ebp - 4], 3
lea esi, [ebx + 0x7c]
push 0
mov dword [ebp - 0x14], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0041a420
mov dword [esi], eax
mov byte [ebp - 4], 6
lea ecx, [ebx + 0x30]
push 6
push str.._log_
mov byte [ebx + 0x54], 0
call fcn.0040dba0
mov dword [ebx + 0x48], 1
mov word [ebx + 0x4c], 0x101
mov byte [ebx + 0x4e], 0
mov dword [ebx + 0x50], 0x64
mov byte [ebx + 0x55], 1
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov dword [ebp - 4], 0xffffffff
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
Function at 0x4133d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4715bd
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x498098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x234], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0xf
mov byte [ebp - 0x228], 0
mov dword [ebp - 4], 1
cmp dword [ecx], 0
jne 0x4134a0
movups xmm0, xmmword [ebp - 0x228]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
mov byte [ebp - 0x228], 0
movq xmm0, qword [ebp - 0x218]
movq qword [eax + 0x10], xmm0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0xf
jmp 0x413578
push dword [ecx]
lea eax, [ebp - 0x210]
push 0x200
push 1
push eax
call fcn.0045679d
mov edx, dword [ebp - 0x214]
mov esi, eax
mov ecx, dword [ebp - 0x218]
add esp, 0x10
mov eax, edx
sub eax, ecx
push esi
cmp esi, eax
ja 0x413500
lea eax, [ecx + esi]
cmp edx, 0x10
mov dword [ebp - 0x218], eax
lea edi, [ebp - 0x228]
cmovae edi, dword [ebp - 0x228]
lea eax, [ebp - 0x210]
add edi, ecx
push eax
push edi
call fcn.0044d6f0
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x413520
lea eax, [ebp - 0x210]
mov byte [ebp - 0x230], 0
push eax
push dword [ebp - 0x230]
lea ecx, [ebp - 0x228]
push esi
call fcn.00412830
mov ecx, dword [ebp - 0x234]
cmp esi, 0x200
je 0x4134a0
mov eax, dword [ebp - 0x238]
movups xmm0, xmmword [ebp - 0x228]
mov byte [ebp - 0x228], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x218]
movq qword [eax + 0x10], xmm0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0xf
mov dword [ebp - 0x22c], 1
mov byte [ebp - 4], 0
mov byte [ebp - 0x228], 0
mov dword [ebp - 0x214], 0xf
mov dword [ebp - 0x218], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b565
mov esp, ebp
pop ebp
ret 4
Function at 0x416c70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, ecx
push edi
cmp byte [esi + 4], 0
lea edi, [esi - 0x10]
je 0x416c99
push 6
push str.log4z_already_start__r_n
mov ecx, edi
call fcn.00416410
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0x40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 0
push edi
push 0x413260
push 0
push 0
mov dword [esi + 0xc], eax
call fcn.00454ebd
mov ecx, eax
add esp, 0x18
or ecx, 0
je 0x416ceb
push 0xbb8
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x416cf8
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.log4z:_create_log4z_thread_error___r_n
call fcn.00412ee0
add esp, 4
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42f5d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474488
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x498098]
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 edi, ecx
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.0042eb10
test al, al
jne 0x42f63f
xor bl, bl
jmp 0x42f79e
lea ecx, [ebp - 0x58]
call fcn.0042ccf0
mov byte [ebp - 4], 1
lea ecx, [edi + 0x24]
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
je 0x42f65e
push ecx
lea ecx, [ebp - 0x58]
call fcn.0042fb60
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0042e2e0
test al, al
jne 0x42f676
xor bl, bl
jmp 0x42f792
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x58]
call fcn.0042d8f0
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
je 0x42f784
lea eax, [ebp - 0x60]
mov ecx, esi
push eax
push 0
push 0
push 0
call fcn.00409260
test al, al
je 0x42f784
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x20]
sub ecx, eax
push edx
push ecx
push eax
mov ecx, esi
mov dword [ebp - 0x14], 0
call fcn.00409210
test al, al
je 0x42f784
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
cmp dword [ebp - 0x14], eax
jne 0x42f784
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
sub edi, ebx
mov eax, dword [esi]
mov dword [ebp - 0x30], edi
test eax, eax
je 0x42f784
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x42f784
push 0
lea ecx, [ebp - 0x14]
push ecx
push 4
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42f784
cmp dword [ebp - 0x14], 4
jne 0x42f784
cmp ebx, dword [ebp - 0x28]
je 0x42f751
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push edi
push ebx
call fcn.00409210
test al, al
je 0x42f784
cmp dword [ebp - 0x14], edi
jne 0x42f784
cmp dword [esi], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x60], xmm0
je 0x42f780
lea eax, [ebp - 0x60]
mov ecx, esi
push eax
push 1
push 0
push 0
call fcn.00409260
test al, al
je 0x42f780
push dword [ebp - 0x5c]
mov ecx, esi
push dword [ebp - 0x60]
call fcn.004092f0
mov bl, 1
jmp 0x42f786
xor bl, bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00430e00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0042fa30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00430e00
mov al, bl
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.0044b565
mov esp, ebp
pop ebp
ret 4
Function at 0x42f8d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474508
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x498098]
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 eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push ecx
push dword [ebp + 0x18]
mov ecx, eax
mov dword [ebp - 0x2c], eax
push dword [ebp + 0x14]
push esi
push edi
call fcn.004090d0
mov bl, al
test bl, bl
jne 0x42fa07
test esi, 0x50000000
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x42f9c2
call esi
cmp eax, 5
jne 0x42f9c2
mov ecx, edi
call fcn.00402810
cmp dword [eax + 0x14], 8
jb 0x42f94d
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push eax
call esi
test eax, eax
jne 0x42f9a3
lea ecx, [ebp - 0x28]
call fcn.00402710
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.00409a10
test al, al
je 0x42f994
lea ecx, [ebp - 0x28]
call fcn.00402810
cmp dword [eax + 0x14], 8
jb 0x42f98c
mov eax, dword [eax]
push 0x80
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004026b0
push ecx
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x2c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.004090d0
mov bl, al
test bl, bl
jne 0x42fa07
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x21
je 0x42f9ce
cmp eax, 0x20
jne 0x42fa07
xor esi, esi
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x2c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.004090d0
mov bl, al
test bl, bl
jne 0x42fa07
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
je 0x42fa01
cmp eax, 0x20
jne 0x42fa07
inc esi
cmp esi, 0x28
jb 0x42f9d0
mov al, bl
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.0044b565
mov esp, ebp
pop ebp
ret 0x18