joyce8/EMBER2024-capa huggingface dataset:
Function at 0x63599130
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.user32.dll_IsWindow]
sub esp, 4
test eax, eax
je 0x635991e8
mov dword [esp + 8], 0x18
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x635991ef
mov dword [esp], esi
mov dword [esp + 4], 0x635a3540
call sym._find_class_data
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [ebx + 0x14], esi
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx], sym._Window_QueryInterface_12
mov dword [esp + 4], eax
mov dword [ebx + 4], 0x635a1b5c
mov dword [ebx + 8], 0x635a1b40
mov dword [ebx + 0xc], 0x635a1b70
mov dword [ebx + 0x10], 1
call sym._Window_QueryInterface_12
mov esi, eax
mov eax, dword [ebx]
sub esp, 0xc
mov dword [esp], ebx
call dword [eax + 8]
sub esp, 4
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret
mov esi, 0x80004005
jmp 0x635991d8
mov esi, 0x8007000e
jmp 0x635991d8

Function at 0x63599430
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
mov dword [esp], eax
call sym._convert_child_id
test eax, eax
jne 0x63599548
mov dword [esp + 4], 0xfffffff0
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowLongW]
sub esp, 8
and eax, 0x20
mov dword [ebp - 0x2c], eax
jne 0x63599558
mov ecx, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xe
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x34], ecx
mov dword [esp], eax
call ecx
lea edx, [eax + 1]
sub esp, 0x10
lea eax, [edx + edx]
mov dword [esp + 4], 8
mov dword [esp + 8], eax
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x30], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x63599561
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0xd
mov dword [esp + 8], edx
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call ecx
sub esp, 0x10
mov dword [esp], ebx
call dword [sym.imp.oleaut32.dll_SysAllocString]
mov edx, dword [ebp + 0x1c]
sub esp, 4
mov dword [edx], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, dword [ebp - 0x2c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x2c], 0x80070057
jmp 0x6359953a
mov dword [ebp - 0x2c], 0x80070005
jmp 0x6359953a
mov dword [ebp - 0x2c], 0x8007000e
jmp 0x6359953a
Function at 0x63599e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x63599eab
cmp byte [esi + ebx - 1], 0xa
je 0x63599e7f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6359d240], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x6359a140
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov edi, dword [ecx]
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x1c]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
sub esp, 8
test ebx, ebx
je 0x6359a2d8
mov eax, dword [esi]
test eax, eax
je 0x6359a2c0
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [ebp - 0x28], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [esp + 4], 0
mov edi, eax
mov dword [ebp - 0x20], eax
mov dword [esp + 8], edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x6359a2e8
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x6359a2b0
call dword [edx + 0x28]
mov dword [esi + 8], eax
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
not eax
pop ebx
shr eax, 0x1f
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
call dword [edx + 0x24]
mov dword [esi + 8], eax
sub esp, 8
jmp 0x6359a276
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x6359a1b0
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x6359a2da

Function at 0x6359a3e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword fs:[0]
mov edx, dword [eax]
mov dword fs:[0], edx
add eax, 0x10
mov dword [esp + 4], 1
mov dword [esp], eax
call sym.___wine_longjmp
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x6359a410
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
lea ebx, [ebp - 0x818]
sub esp, 0x81c
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0xd
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
test eax, eax
je 0x6359a4a8
mov ecx, eax
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax*2]
mov edi, eax
inc eax
cmp dx, 0x26
je 0x6359a4b8
cmp ecx, eax
jne 0x6359a450
lea ebx, [eax + 1]
mov eax, 1
cmp ebx, ecx
jb 0x6359a478
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.Alt_
call dword [sym.imp.oleaut32.dll_SysAllocString]
mov dword [esi], eax
sub esp, 4
test eax, eax
je 0x6359a4c8
movzx edx, word [ebp + ebx*2 - 0x818]
mov word [eax + 8], dx
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edi
lea ebx, [eax + 1]
mov eax, 1
cmp ebx, ecx
jae 0x6359a46d
jmp 0x6359a478
mov eax, 0x8007000e
jmp 0x6359a46d

Function at 0x6359a4d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x818]
push ebx
mov ebx, edx
sub esp, 0x82c
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0xd
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
test eax, eax
je 0x6359a548
mov ecx, eax
xor eax, eax
lea esi, [esi]
movzx edx, word [esi + eax*2]
mov edi, eax
inc eax
cmp dx, 0x26
je 0x6359a558
cmp ecx, eax
jne 0x6359a510
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
sub esp, 8
cmp eax, 1
mov dword [ebx], eax
sbb eax, eax
lea esp, [ebp - 0xc]
pop ebx
and eax, 0x8007000e
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
dec ecx
lea eax, [esi + eax*2]
mov edx, ecx
mov dword [esp + 4], eax
lea eax, [esi + edi*2]
sub edx, edi
mov dword [ebp - 0x81c], ecx
add edx, edx
mov dword [esp], eax
mov dword [esp + 8], edx
call dword [sym.imp.ucrtbase.dll_memmove]
mov ecx, dword [ebp - 0x81c]
mov eax, ecx
jmp 0x6359a521
Function at 0x4011b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43effb
mov eax, dword fs:[0]
push eax
mov eax, 0x10028
call fcn.00428700
mov eax, dword [0x44daa0]
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 + 0xc]
mov esi, dword [ebp + 8]
xor ecx, ecx
push 0x23
mov word [ebp - 0x10028], cx
xor ebx, ebx
push str.Directories::Dir_GetSystemDirectory
lea ecx, [ebp - 0x1002c]
mov dword [ebp - 0x10034], eax
mov dword [ebp - 0x10014], 7
mov dword [ebp - 0x10018], ebx
call fcn.00401ea0
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x10014], 8
mov edi, dword [ebp - 0x10028]
mov byte [ebp - 0x1002d], bl
jae 0x401239
lea edi, [ebp - 0x10028]
push str.Function_start
push 1
mov ebx, 0x32
call fcn.0040f880
add esp, 8
push 0x8000
lea edx, [ebp - 0x10010]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x401272
mov byte [ebp - 0x1002d], 1
lea edx, [ebp - 0x10010]
jmp 0x4012ac
cmp dword [ebp - 0x10014], 8
mov edi, dword [ebp - 0x10028]
jae 0x401287
lea edi, [ebp - 0x10028]
push 0x4439b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error___i__return_by_function___s_
push 1
mov ebx, 0x14
call fcn.0040f880
add esp, 0x10
mov edx, 0x443a20
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4012b1
mov ecx, dword [ebp - 0x10034]
sub eax, edi
sar eax, 1
push eax
push edx
call fcn.00401ea0
cmp dword [ebp - 0x10014], 8
mov edi, dword [ebp - 0x10028]
jae 0x4012e2
lea edi, [ebp - 0x10028]
movzx eax, byte [ebp - 0x1002d]
push eax
push str.Return_code__0x_x_
push 1
mov ebx, 0x28
call fcn.0040f880
mov edi, dword [ebp - 0x10028]
add esp, 0xc
cmp dword [ebp - 0x10014], 8
jae 0x401313
lea edi, [ebp - 0x10028]
push str.Function_end
push 1
mov ebx, 0x32
call fcn.0040f880
add esp, 8
cmp dword [ebp - 0x10014], 8
jb 0x40133f
mov ecx, dword [ebp - 0x10028]
push ecx
call fcn.0041ff8a
add esp, 4
mov al, byte [ebp - 0x1002d]
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.00425c4b
mov esp, ebp
pop ebp
ret
Function at 0x407670
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e96b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x44daa0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0043cf1c
push 4
mov dword [ebp - 4], 0
call fcn.0041852d
mov edi, eax
add esp, 4
test edi, edi
je 0x4076ec
call fcn.0043cd8d
mov dword [edi], eax
call fcn.0043cbbb
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0043cedd
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4076e2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0043cf05
jmp 0x4076ee
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
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 0x40f5c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, 0xd
test edi, edi
je 0x40f693
cmp byte [ebp + 0x10], 0
mov eax, 0x20019
je 0x40f5e4
mov eax, 0x20119
lea ecx, [ebp - 0xc]
push ecx
push eax
mov eax, dword [ebp + 8]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40f693
mov ecx, dword [edi]
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp - 0xc]
push ebx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
push esi
push ecx
push edx
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
mov esi, eax
mov eax, dword [ebp - 8]
test esi, esi
jne 0x40f653
cmp ecx, dword [edi]
jbe 0x40f639
mov esi, 0xea
mov dword [edi], ecx
test esi, esi
jne 0x40f653
cmp eax, 1
je 0x40f653
cmp eax, 2
je 0x40f653
cmp eax, 7
je 0x40f65c
mov esi, 0x545
cmp eax, 7
jne 0x40f689
test esi, esi
jne 0x40f689
test ecx, ecx
je 0x40f689
shr ecx, 1
mov dword [ebp - 4], ecx
xor eax, eax
add ecx, 0xffffffff
mov esi, 0x545
je 0x40f689
xor edx, edx
cmp dx, word [ebx + eax*2]
jne 0x40f680
cmp dx, word [ebx + eax*2 + 2]
je 0x40f687
inc eax
cmp eax, ecx
jb 0x40f671
jmp 0x40f689
xor esi, esi
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
xor bl, bl
mov eax, 0x20019
cmp byte [ebp + 0x10], bl
je 0x40f778
mov eax, 0x20119
lea ecx, [ebp + 0x10]
push ecx
push eax
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionServerServerLevels
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f7ca
mov eax, 4
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 8]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f7c0
mov bl, 1
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41905d
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44fe28], 0
jne 0x41909b
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00418349
mov eax, dword [eax]
pop ecx
pop ecx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041ff8a
pop ecx
test esi, esi
pop esi
je 0x4190ab
mov al, 1
leave
ret
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x419095
xor al, al
leave
ret

Function at 0x4190af
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44fe28], 0
jne 0x4190e9
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00418349
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041ff8a
pop ecx
test esi, esi
pop esi
je 0x4190f6
mov al, 1
leave
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x4190e3
xor al, al
leave
ret

Function at 0x4190fa
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44fe28], 0
jne 0x419137
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00418349
mov eax, dword [eax]
pop ecx
pop ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041ff8a
pop ecx
test esi, esi
pop esi
je 0x419146
mov al, 1
leave
ret
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x419131
xor al, al
leave
ret

Function at 0x419168
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00419dca
pop ecx
cmp eax, 0xffffffff
je 0x419196
test al, 0x10
jne 0x419196
test al, 1
je 0x419196
and eax, 0xfffffffe
push eax
push esi
call fcn.0041905d
pop ecx
pop ecx
test al, al
je 0x4191d0
cmp byte [0x44fe28], 0
push esi
jne 0x4191c6
lea eax, [ebp - 0xc]
push eax
call fcn.00418349
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041ff8a
pop ecx
test esi, esi
je 0x4191d0
mov al, 1
jmp 0x4191d2
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x4191c0
xor al, al
pop esi
leave
ret

Function at 0x4191de
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44fe28], 0
jne 0x419217
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00418349
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041ff8a
test esi, esi
pop ecx
setne al
pop esi
leave
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
leave
ret
Function at 0x419568
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x43db23
call fcn.00425c5a
xor ebx, ebx
cmp byte [0x44fe28], bl
jne 0x4195ad
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.00418349
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0041ff8a
pop ecx
cmp esi, ebx
je 0x4195bb
mov al, 1
call fcn.00425d32
ret
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x4195a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4195cc
xor al, al
jmp 0x4195a7
lea ecx, [ebp - 0x50]
call fcn.00419da7
lea ecx, [ebp - 0x28]
call fcn.00417f09
push dword [ebp + 8]
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.00419e74
test al, al
jne 0x4195fb
push dword [ebp - 0x28]
call fcn.0041ff8a
pop ecx
mov al, bl
jmp 0x4195a7
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
jmp 0x4195ee

Function at 0x419dca
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44fe28], 0
jne 0x419e00
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00418349
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041ff8a
pop ecx
mov eax, esi
pop esi
leave
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x419e10
or eax, eax
leave
ret
Function at 0x41a317
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a33d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41a33d
xor al, al
jmp 0x41a35d
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00427d70
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x42055c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
and esi, 7
cmp eax, 5
jae 0x42057c
xor eax, eax
jmp 0x420695
add dword [ebp + 0x10], 5
push ebx
mov ebx, dword [ebp + 8]
sub eax, 4
add eax, ebx
push edi
mov dword [ebp + 0xc], eax
mov edi, dword [ebp - 4]
lea edx, [edi + ebx]
jmp 0x42059e
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x4205a3
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x420595
mov ecx, edx
sub ecx, edi
mov eax, edx
sub eax, ebx
sub ecx, ebx
mov dword [ebp - 4], eax
cmp edx, dword [ebp + 0xc]
jae 0x42067e
cmp ecx, 2
jbe 0x4205fe
xor esi, esi
movzx ecx, byte [edx + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x42061c
movzx eax, byte [edx + 3]
mov edi, dword [ebp + 0x10]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 5
add edi, ecx
cmp dword [ebp + 0x18], 0
je 0x420629
add eax, edi
jmp 0x42062b
shr esi, cl
test esi, esi
je 0x4205c0
cmp esi, 4
ja 0x42061c
cmp esi, 3
je 0x42061c
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edx + 1]
inc eax
test al, 0xfe
jne 0x4205c0
or esi, 8
shr esi, 1
inc dword [ebp - 4]
jmp 0x42058d
sub eax, edi
test esi, esi
je 0x42065c
and esi, 6
shl esi, 2
mov ebx, eax
mov ecx, esi
shr ebx, cl
inc ebx
test bl, 0xfe
jne 0x420657
mov ebx, 0x100
shl ebx, cl
dec ebx
xor eax, ebx
cmp dword [ebp + 0x18], 0
je 0x420655
add eax, edi
jmp 0x420657
sub eax, edi
mov ebx, dword [ebp + 8]
xor esi, esi
mov ecx, eax
shr ecx, 8
mov byte [edx + 1], al
mov byte [edx + 2], cl
mov ecx, eax
shr eax, 0x18
shr ecx, 0x10
and al, 1
neg al
mov byte [edx + 3], cl
mov byte [edx + 4], al
jmp 0x42058d
push 2
pop eax
shr esi, cl
cmp eax, ecx
mov ecx, dword [ebp + 0x14]
sbb eax, eax
not eax
and eax, esi
pop edi
mov dword [ecx], eax
mov eax, dword [ebp - 4]
pop ebx
pop esi
leave
ret

Function at 0x423263
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.004281e9
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.0042321a
add esp, 0x1c
leave
ret