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

Disassembly:
mov eax, dword [esp + 4]
push 0x4a6a28
push eax
call fcn.0045b3a0
add esp, 8
xor ecx, ecx
mov eax, 0x479f44
mov edx, dword [eax]
add eax, 4
inc ecx
cmp eax, 0x47a044
mov dl, byte [edx + 0x4a6a27]
mov byte [ecx + 0x4a6a67], dl
jb 0x45b229
push ebx
push ebp
push esi
push edi
mov ebp, 0x4a66d8
xor eax, eax
mov ecx, 0x47a144
mov edx, dword [ecx]
mov bl, byte [eax + ebp]
add ecx, 4
xor bl, byte [edx + 0x4a6a87]
inc eax
cmp ecx, 0x47a204
mov byte [eax + 0x4a69f7], bl
jb 0x45b252
xor edi, edi
mov esi, 0x4a69d9
mov eax, 0x4a69fd
xor ecx, ecx
xor edx, edx
mov cl, byte [eax - 5]
mov dl, byte [eax]
shl ecx, 1
or ecx, edx
xor edx, edx
mov dl, byte [eax - 4]
add eax, 6
shl ecx, 1
or ecx, edx
xor edx, edx
mov dl, byte [eax - 9]
add esi, 4
shl ecx, 1
or ecx, edx
xor edx, edx
mov dl, byte [eax - 8]
shl ecx, 1
or ecx, edx
xor edx, edx
mov dl, byte [eax - 7]
shl ecx, 1
or ecx, edx
add ecx, edi
add edi, 0x40
mov ecx, dword [ecx*4 + 0x47a284]
mov edx, ecx
shr edx, 3
and dl, 1
mov byte [esi - 5], dl
mov edx, ecx
shr edx, 2
and dl, 1
mov byte [esi - 4], dl
mov edx, ecx
shr edx, 1
and dl, 1
and cl, 1
mov byte [esi - 3], dl
mov byte [esi - 2], cl
cmp eax, 0x4a6a2d
jb 0x45b27b
xor eax, eax
mov esi, 0x47a204
mov edx, dword [esi]
mov bl, byte [eax + 0x4a6a68]
xor ecx, ecx
add esi, 4
mov dl, byte [edx + 0x4a69d7]
mov cl, byte [eax + 0x4a6a88]
xor dl, bl
mov byte [eax + 0x4a6a88], dl
mov byte [eax + 0x4a6a68], cl
inc eax
cmp esi, 0x47a284
jb 0x45b2f2
add ebp, 0x30
cmp ebp, 0x4a69d8
jb 0x45b24b
pop edi
pop esi
pop ebp
xor ecx, ecx
mov eax, 0x47a044
pop ebx
mov edx, dword [eax]
add eax, 4
inc ecx
cmp eax, 0x47a144
mov dl, byte [edx + 0x4a6a67]
mov byte [ecx + 0x4a6a27], dl
jb 0x45b33c
mov eax, dword [esp + 8]
push 0x4a6a28
push eax
call fcn.0045b370
add esp, 8
ret
Function at 0x463ebe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x47d448
cmp edx, dword [eax]
je 0x463ee0
add eax, 8
inc ecx
cmp eax, 0x47d4d8
jl 0x463ed1
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x47d448]
jne 0x46400e
mov eax, dword [0x4a6ab8]
cmp eax, 1
je 0x463fe8
test eax, eax
jne 0x463f11
cmp dword [0x47ab14], 1
je 0x463fe8
cmp edx, 0xfc
je 0x46400e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x463f48
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0045bf50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0045b670
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x463f8b
lea eax, [ebp - 0x1a4]
push eax
call fcn.0045b670
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x46dfcc
push edi
call fcn.0045c9a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0045bf50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0045bf60
lea eax, [ebp - 0xa0]
push 0x4783b0
push eax
call fcn.0045bf60
push dword [esi + 0x47d44c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0045bf60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0046597f
add esp, 0x2c
pop edi
jmp 0x46400e
lea eax, [ebp + 8]
lea esi, [esi + 0x47d44c]
push 0
push eax
push dword [esi]
call fcn.0045b670
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop esi
leave
ret
Function at 0x42e001
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, reloc.crypt32.dll_CryptMsgGetParam
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x4098c4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409997
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4099b0
push ebx
push 0x4099bc
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409944
mov al, 0x62
call fcn.0040949c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409898
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x40994d
call fcn.00409898
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40999e
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409a50
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409b04
jmp 0x409af9
cmp dword [esi + 0x10], 0x1000
jne 0x409ae5
test byte [esi + 0x15], 1
jne 0x409ae5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409aa4
cmp eax, 2
je 0x409aa4
cmp eax, 0x10
je 0x409aa4
cmp eax, 0x20
jne 0x409ab9
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409ab9
mov bl, 1
xor ebp, ebp
jmp 0x409aca
mov eax, dword [esi]
add eax, ebp
call fcn.00409a48
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409abd
test bl, bl
je 0x409ae5
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409b04
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409a7c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4021e0
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
push 0xfffffffffffffff0
push dword [esp + 0x10]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov cl, byte [esi + 8]
mov edi, eax
test edi, 0x10000000
je 0x402222
push dword [esp + 0xc]
or cl, 4
mov byte [esi + 8], cl
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40221d
test edi, 0x21000000
jne 0x40221d
or byte [esi + 8], 2
mov cl, byte [esi + 8]
jmp 0x402228
and cl, 0xfd
mov byte [esi + 8], cl
test cl, 2
je 0x402239
mov ecx, esi
call fcn.00402960
pop edi
pop esi
ret 4
push 0
push dword [esi + 0x40]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 4

Function at 0x41a630
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x592174]
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.0050d580
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41a777
cmp dword [esi + 4], 6
push edi
ja 0x41a68b
jne 0x41a713
cmp dword [esi + 8], 2
jb 0x41a713
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x41a713
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41a713
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41a713
movups xmm0, xmmword [0x567c18]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x567c28]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x41a713
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41a713
cmp word [edi + 2], ax
jbe 0x41a713
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 0x5678bc
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 0x41a75e
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0050d580
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x41a75e
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.0050b067
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.0050b067
add esp, 0x140
ret
Function at 0x41ce80
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536dd8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x592174]
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 [esi + 8]
test edi, edi
jne 0x41cebb
xor al, al
jmp 0x41cf5e
add edi, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], edi
je 0x41ced7
mov eax, dword [edi]
test eax, eax
je 0x41ced7
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x41cf3b
push 1
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x41c9a0
push 0
push 0
call fcn.00530253
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x41cf7a
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x41cf33
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.0041cb60
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x41cf5c
mov eax, dword [edi]
test eax, eax
je 0x41cf55
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
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.0050b067
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x41cf92
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x41cf1d
mov bl, 1
jmp 0x41cf3d

Function at 0x41d830
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x41d846
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [esp + 8]
mov word [esi + 4], 0
cmp dword [eax + 0x10], 0
je 0x41d860
cmp dword [eax + 0x14], 8
jb 0x41d862
mov eax, dword [eax]
jmp 0x41d862
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x41d884
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41d884
mov byte [esi + 5], 1
cmp dword [esi], 0
pop esi
setne al
ret 4
Function at 0x41d890
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536f18
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x592174]
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 eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x41d8d3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0043b1a0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x41d8fc
lea eax, [esi + 8]
jmp 0x41d8fe
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x41d90e
cmp dword [ebx + 0x14], 8
jb 0x41d910
mov ebx, dword [ebx]
jmp 0x41d910
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x41d931
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41d931
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x41d95a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x41d96f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.0050b342
add esp, 8
mov dword [ebp - 0x14], 0
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.0050b067
mov esp, ebp
pop ebp
ret 4
Function at 0x41d9b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536f48
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x592174]
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 eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x41d9f3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0043b2d0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x41da1d
lea ecx, [esi + 8]
jmp 0x41da1f
xor ecx, ecx
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0x18], ecx
je 0x41da34
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x41da36
mov eax, dword [ebx]
jmp 0x41da36
xor eax, eax
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x41da81
call ecx
cmp eax, 5
jne 0x41da7b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x10], 0
je 0x41da6b
cmp dword [ebx + 0x14], 8
jb 0x41da6d
mov ebx, dword [ebx]
jmp 0x41da6d
xor ebx, ebx
push ebx
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x41da9f
call ecx
cmp eax, 0xb7
jne 0x41da94
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.00434980
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x41dac5
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x41dada
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.0050b342
add esp, 8
mov dword [ebp - 0x14], 0
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.0050b067
mov esp, ebp
pop ebp
ret 4
Function at 0x41f1d0
Capabilities:
Delete file

Disassembly:
mov ecx, dword [esp + 4]
jmp fcn.0043c820
Function at 0x4206e0
Capabilities:
Copy file

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
jmp fcn.0043c650

Function at 0x4206f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537128
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x420726
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42073a
mov al, 1
jmp 0x420823
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.0043d150
test al, al
je 0x4207d0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4207d0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4207c6
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4207bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42083d
push edx
push ecx
call fcn.0050b342
add esp, 8
xor eax, eax
mov word [ebp - 0x2c], ax
mov al, 1
jmp 0x420815
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x42080d
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420803
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420842
push edx
push ecx
call fcn.0050b342
add esp, 8
xor eax, eax
mov word [ebp - 0x2c], ax
xor al, al
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050b067
mov esp, ebp
pop ebp
ret
call fcn.0050f749
call fcn.0050f749
int3

Function at 0x420b40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x592174]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, dword [esp + 0x420]
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x420b6d
mov eax, dword [esi]
xor ecx, ecx
push 0x412
mov word [eax], cx
lea eax, [esp + 8]
push ecx
push eax
call fcn.0050d580
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x420bb1
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0050b067
add esp, 0x418
ret
cmp eax, 0x208
jae 0x420b99
xor eax, eax
lea edx, [esp + 4]
mov word [esp + 0x414], ax
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x420bd0
sub edx, ecx
lea eax, [esp + 4]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.00418820
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.0050b067
add esp, 0x418
ret
Function at 0x426c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp - 0x14], 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 + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call fcn.00426030
test al, al
jne 0x426c6f
xor bl, bl
jmp 0x426df6
lea ecx, [ebp - 0x5c]
call fcn.00424200
mov byte [ebp - 4], 1
add esi, 0x24
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x426cac
push esi
lea ecx, [ebp - 0x5c]
call fcn.004288b0
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x50]
call fcn.004288b0
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x44]
call fcn.004288b0
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00425750
test al, al
jne 0x426cc4
xor bl, bl
jmp 0x426dea
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x5c]
call fcn.00424de0
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
je 0x426db9
mov ecx, edi
call fcn.00431f80
test al, al
je 0x426db9
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x24]
sub ecx, eax
push edx
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x18], 0
call fcn.00431dc0
test al, al
je 0x426db9
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
cmp dword [ebp - 0x18], eax
jne 0x426db9
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
sub esi, ebx
mov eax, dword [edi]
mov dword [ebp - 0x34], esi
test eax, eax
je 0x426db9
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x426db9
push 0
lea ecx, [ebp - 0x18]
push ecx
push 4
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x426db9
cmp dword [ebp - 0x18], 4
jne 0x426db9
cmp ebx, dword [ebp - 0x2c]
je 0x426d91
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
push esi
push ebx
call fcn.00431dc0
test al, al
je 0x426db9
cmp dword [ebp - 0x18], esi
jne 0x426db9
lea eax, [ebp - 0x64]
xorps xmm0, xmm0
push eax
mov ecx, edi
movlpd qword [ebp - 0x64], xmm0
call fcn.00431e40
test al, al
je 0x426db5
push dword [ebp - 0x60]
mov ecx, edi
push dword [ebp - 0x64]
call fcn.00431fd0
mov bl, 1
jmp 0x426dbb
xor bl, bl
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x426dea
mov eax, dword [ebp - 0x1c]
sub eax, ecx
push eax
push ecx
call fcn.00403300
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00427050
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00419b80
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 - 0x14]
xor ecx, ebp
call fcn.0050b067
mov esp, ebp
pop ebp
ret 4