joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40be10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40be29
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40be64
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40be60
lea ebx, [ebx]
cmp esi, edx
jae 0x40be64
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x40be50
cmp esi, edx
jb 0x40be6b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4125f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004133c0

Function at 0x412600
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412637
mov eax, dword [ebp + 0xc]
push 5
push 0
push dword [eax]
push dword [esi]
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
pop esi
setg cl
mov eax, ecx
pop ebp
ret 8
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x4133c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x596340
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x18]
mov eax, dword [edi]
push esi
push ecx
mov ecx, edi
call dword [eax + 0x14]
mov dword [esp + 0x38], 0
push dword [esp + 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
je 0x413482
and dword [esp + 0x24], 0xfffffe00
mov dword [esp + 0x28], 0
mov byte [esp + 0x38], 2
lea edx, [esp + 0x1c]
mov ecx, dword [esp + 0x18]
call fcn.0050bfd0
test eax, eax
je 0x413474
mov eax, dword [esp + 0x24]
test al, al
je 0x413449
cmp al, 7
jne 0x413474
push dword [ebp + 0xc]
mov eax, dword [edi]
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call dword [eax + 0x18]
mov esi, eax
test esi, esi
je 0x413471
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.004e6420
jmp 0x413522
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.004e6420
mov eax, dword [edi]
lea ecx, [esp + 0x14]
push esi
push ecx
mov ecx, edi
call dword [eax + 0x10]
push dword [esp + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4134fe
and dword [esp + 0x24], 0xfffffe00
mov dword [esp + 0x28], 0
mov byte [esp + 0x38], 5
lea edx, [esp + 0x1c]
mov ecx, dword [esp + 0x14]
call fcn.0050bfd0
test eax, eax
je 0x4134f0
mov eax, dword [esp + 0x24]
test al, al
je 0x4134cf
cmp al, 7
jne 0x4134f0
push dword [ebp + 0xc]
mov eax, dword [edi]
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call dword [eax + 0x18]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 3
mov esi, eax
call fcn.004e6420
jmp 0x413500
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 3
call fcn.004e6420
xor esi, esi
mov byte [esp + 0x38], 0
mov ecx, ebx
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x413522
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x38], 0xffffffff
mov edi, dword [esp + 0x18]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x413545
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4139a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
mov eax, edx
push 1
push SysReAllocString
push ecx
mov dword [eax], 0
mov dword [ebp - 4], eax
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x413a13
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
test eax, eax
je 0x413a4f
cmp eax, 0xffffffff
je 0x413a4f
add eax, 8
push 0x63ce44
push eax
call fcn.005527e9
mov ebx, dword [ebp - 4]
mov ecx, eax
add esp, 8
mov dword [ebx], ecx
test ecx, ecx
jne 0x413a1c
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
add eax, 8
push eax
push 0
push ecx
call fcn.00559380
add esp, 0xc
mov dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
push dword [edi]
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp ecx, dword [edi]
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419590
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4195db
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], 0x2710
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x41965d
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41965d
lea edx, [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.004fbc30
mov ebx, dword [ebp - 0x18]
test ebx, ebx
jne 0x41962e
or ebx, edi
jmp 0x419631
mov ebx, dword [ebx + 4]
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x419660
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x419660
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
mov edx, edi
lock xadd dword [eax], edx
jne 0x419660
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x419660
or ebx, 0xffffffff
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419680
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4196a1
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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 4

Function at 0x41cf20
Capabilities:
Get number of processors

Disassembly:
push esi
mov esi, ecx
mov dword [esi], vtable._____________________________________.1.0
mov ecx, dword [esi + 0x128]
test ecx, ecx
je 0x41cf39
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x118]
test eax, eax
je 0x41cf4c
push eax
call fcn.00551f79
add esp, 4
lea ecx, [esi + 0x108]
call fcn.0041e310
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x41cf67
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x100]
test ecx, ecx
je 0x41cf77
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, esi
pop esi
jmp fcn.004b0150
Function at 0x421110
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x597168
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x60f520]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor edx, edx
lea ecx, [esp + 0x14]
call fcn.0050b1d0
mov edx, eax
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x10]
call fcn.004242a0
mov byte [esp + 0x30], 2
or edi, 0xffffffff
mov edx, dword [esp + 0x14]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x421180
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
je 0x4211f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4211ec
push 1
call fcn.00422b20
mov ecx, eax
call fcn.00484d30
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x13c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x18]
mov esi, esp
mov dword [esp + 0x28], 1
mov dword [esp + 0x20], esp
lea ecx, [ecx - 0x10]
call fcn.0040c3c0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x38], 3
call fcn.00422b20
mov ecx, eax
mov byte [esp + 0x38], 2
call fcn.00484b80
mov eax, dword [esp + 0x10]
lea edx, [eax - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x42120f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x421b10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x595fbb
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x60f520]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x6403e0]
test eax, eax
jne 0x421b77
push 0x438
call fcn.00551c81
add esp, 4
mov dword [esp + 8], eax
mov dword [esp + 0x18], 0
test eax, eax
je 0x421b68
mov ecx, eax
call fcn.00485ee0
jmp 0x421b6a
xor eax, eax
mov dword [esp + 0x18], 0xffffffff
mov dword [0x6403e0], eax
push dword [eax + 0x34]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x421b94
call fcn.0040a110
push 0
push dword [eax + 0x34]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4228a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x5b5868
lea ecx, [ebp - 4]
call fcn.0040c2d0
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x4228bf
lea edx, [eax - 0x10]
jmp 0x4228d6
push 1
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 4]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4228ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x422f20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597420
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebp - 0x10]
call fcn.004fb7b0
push eax
lea ecx, [ebx + 4]
mov dword [ebp - 4], 0
call fcn.0040b7d0
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x422f88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x422fb9
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x422fb9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
call fcn.004fba10
lea ecx, [ebx + 8]
mov dword [ebp - 4], 1
push eax
call fcn.0040b7d0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x422ff2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 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 0x423110
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
je 0x42311e
add ecx, 8
jmp 0x423121
add ecx, 4
push esi
push dword [ecx]
mov esi, dword [ebp + 0x10]
push dword [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov dword [esi], eax
or esi, 0xffffffff
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x423156
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
pop esi
jg 0x423171
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
pop ebp
ret 0x10
Function at 0x423320
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597510
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x60f520]
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 esi, ecx
mov edi, dword [ebp + 0x10]
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.00559380
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x42337b
add esi, 8
jmp 0x42337e
add esi, 4
push dword [esi]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x5bc768
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x2a
cmp ax, word [ebp - 0x218]
je 0x4233d9
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4233b4
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.0040c1c0
mov esi, 1
jmp 0x4233db
xor esi, esi
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4233fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp + 0xc]
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x42341f
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0055199a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4240d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597748
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x18], esi
mov ebx, ecx
mov dword [ebp - 0x20], ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], 0
call fcn.00428a60
add esp, 4
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x14]
test eax, eax
sete byte [ebp - 0xd]
add edx, 0xfffffff0
or edi, 0xffffffff
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x424144
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x42416d
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.0040c3c0
add eax, 0x10
mov dword [ebx], eax
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
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x424189
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov esi, 2
mov eax, dword [ebp - 0x18]
push esi
push dword [eax]
lea eax, [ebp - 0x14]
push str._s___d_
push eax
call fcn.00422de0
push dword [ebp + 8]
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.00428a60
add esp, 0x14
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x1c]
test eax, eax
mov ecx, edi
sete bl
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4241f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x4241f7
inc esi
jmp 0x4241a2
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x424220
cmp ecx, dword [esi]
jne 0x424220
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x42425d
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x424234
call fcn.0040c3b0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.00551ae9
add esp, 0x10
lea eax, [edi + 0x10]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x20]
or ecx, 0xffffffff
mov dword [edi], eax
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x424283
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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 0x4242a0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597791
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x60f520]
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 esi, edx
mov edi, ecx
push dword [esi]
mov dword [ebp - 0x228], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4242f9
push 0x5bc584
mov ecx, edi
call fcn.0040c2d0
jmp 0x42441d
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00559380
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [esi]
push 0x5bc8dc
push 0x104
push eax
call fcn.00429e70
add esp, 0x10
lea eax, [ebp - 0x218]
push 0x5bc8e4
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x5bc584
lea ecx, [ebp - 0x220]
call fcn.0040c2d0
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x224]
call fcn.0040c2d0
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x224]
lea ecx, [ebp - 0x21c]
call fcn.004240d0
add esp, 4
mov byte [ebp - 4], 3
or ebx, 0xffffffff
mov edx, dword [ebp - 0x224]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4243aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov ecx, ebx
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4243cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00409c60
lea ecx, [eax + 0x350]
lea eax, [ebp - 0x21c]
push eax
call fcn.0040b7d0
mov esi, dword [ebp - 0x21c]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esi, 0xfffffff0
mov ecx, esi
call fcn.0040c3c0
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x42441d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.0055199a
mov esp, ebp
pop ebp
ret
Function at 0x424440
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5977ec
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x60f520]
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 esi, ecx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42464e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00559380
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [esi]
push 0x5bc8dc
push 0x104
push eax
call fcn.00429e70
add esp, 0x10
lea eax, [ebp - 0x218]
push 0x5bc8f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x5b5504
lea ecx, [ebp - 0x220]
call fcn.0040c2d0
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x228]
call fcn.0040c2d0
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x228]
lea ecx, [ebp - 0x21c]
call fcn.004240d0
add esp, 4
mov byte [ebp - 4], 3
or ebx, 0xffffffff
mov edx, dword [ebp - 0x228]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x424531
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov ecx, ebx
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x424554
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
push 0x5b5504
lea ecx, [ebp - 0x21c]
call fcn.00411f30
call fcn.00409c60
lea ecx, [eax + 0x350]
lea eax, [ebp - 0x21c]
push eax
call fcn.0040b7d0
mov edi, dword [ebp - 0x21c]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x424630
cmp eax, 0xffffffff
je 0x424630
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4245d0
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
push edi
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 5
push str.appwiz.cpl_NewLinkHere__s
push eax
call fcn.00422de0
mov esi, dword [ebp - 0x224]
add esp, 0xc
push 5
push 0
push esi
push str.rundll32.exe
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
add esi, 0xfffffff0
mov byte [ebp - 4], 4
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x424630
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x42464e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 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.0055199a
mov esp, ebp
pop ebp
ret