joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d814
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x2c
call fcn.10006ce0
mov ecx, eax
call fcn.100040e0
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
jne 0x1000d845
jmp 0x1000d96b
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 1]
test ecx, ecx
jne 0x1000d881
mov edx, dword [ebp + 0xc]
and edx, 0xff
test edx, edx
je 0x1000d881
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax + 8]
test ecx, ecx
jne 0x1000d87c
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0xc], 0
je 0x1000d881
mov eax, dword [ebp - 0x14]
call dword [eax + 0xc]
test eax, eax
je 0x1000d881
jmp 0x1000d96b
cmp dword [0x1005ee60], 0
je 0x1000d921
mov ecx, dword [ebp + 0xc]
and ecx, 0xff
test ecx, ecx
je 0x1000d921
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 1]
test eax, eax
jne 0x1000d8f6
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x7e
je 0x1000d8f6
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
mov dword [ebp - 8], ecx
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
test edx, edx
je 0x1000d8de
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + 0x43c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
cmp dword [edx + 4], 0
je 0x1000d8f4
mov al, byte [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
call dword [ecx + 4]
add esp, 4
jmp 0x1000d96b
mov edx, dword [ebp + 8]
push edx
call fcn.1000d537
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1000d921
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0
je 0x1000d921
mov cl, byte [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
call dword [edx + 4]
add esp, 4
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
call fcn.1002c16c
and eax, 0xff
test eax, eax
je 0x1000d96b
mov ecx, dword [ebp + 0x10]
and ecx, 0xff
test ecx, ecx
jne 0x1000d96b
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c
call fcn.10006ce0
mov dword [ebp - 0x10], eax
mov cl, byte [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.1000d71e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100244f2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], 0xffffffff
je 0x1002452f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x88], ecx
mov edx, dword [ebp - 8]
add edx, 0x8c
push edx
push 0x40
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x88]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10024551
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x8c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x88]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret 8

Function at 0x10026737
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0xffffffff
je 0x10026763
mov eax, dword [ebp + 0xc]
mov dword [0x100600f8], eax
push 0x10060104
push 0x40
mov ecx, dword [0x100600f8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1002677f
lea eax, [ebp - 4]
push eax
mov ecx, dword [0x10060104]
push ecx
mov edx, dword [0x100600f8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x10026b49
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x10026b93
call fcn.1003e65f
mov eax, dword [eax]
push eax
call fcn.1003e59c
add esp, 4
push eax
push str.Could_not_open_kernel32.dll:__s
mov ecx, dword [ebp - 4]
push ecx
call fcn.10026afb
add esp, 0xc
xor al, al
jmp 0x10026cdc
push str.CreateToolhelp32Snapshot
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x14], 0
jne 0x10026bcc
push str.Could_not_get_CreateToolhelp32Snapshot_address_nIf_you_use_Windows_NT_4__you_need_libloader_for_NT.
mov eax, dword [ebp - 4]
push eax
call fcn.10026afb
add esp, 8
xor al, al
jmp 0x10026cdc
push str.Process32First
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x18], 0
jne 0x10026c05
push str.Could_not_get_Process32First_address
mov eax, dword [ebp - 4]
push eax
call fcn.10026afb
add esp, 8
xor al, al
jmp 0x10026cdc
push str.Process32Next
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x1c], 0
jne 0x10026c3e
push 0x10059294
mov eax, dword [ebp - 4]
push eax
call fcn.10026afb
add esp, 8
xor al, al
jmp 0x10026cdc
push str.Module32First
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x20], 0
jne 0x10026c74
push str.Could_not_get_Module32First_address
mov eax, dword [ebp - 4]
push eax
call fcn.10026afb
add esp, 8
xor al, al
jmp 0x10026cdc
push str.Module32Next
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x24], 0
jne 0x10026caa
push str.Could_not_get_Process32Next_address
mov eax, dword [ebp - 4]
push eax
call fcn.10026afb
add esp, 8
xor al, al
jmp 0x10026cdc
push str.VirtualAllocEx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c], eax
push str.CloseToolhelp32Snapshot
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x28], eax
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x1002e9fa
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov dword [ebp - 0x810], ecx
mov eax, dword [ebp - 0x810]
cmp dword [eax + 0x10], 0
jne 0x1002ea2c
push 0x8a
push str.C:Documents_and_SettingsJim_HanusDesktopiceWinamp.cpp
push str.hwnd
call fcn.1003c0be
add esp, 0xc
push 0x800
lea edx, [ebp - 0x804]
push edx
mov eax, dword [ebp - 0x810]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [ebp - 0x808], eax
cmp dword [ebp - 0x808], 0
jne 0x1002ea70
mov edx, dword [0x1004e224]
push edx
push 0
mov ecx, dword [ebp - 0x810]
call fcn.10005c30
jmp 0x1002eb63
lea eax, [ebp - 0x804]
push eax
call fcn.1003d0a0
add esp, 4
lea ecx, [ebp + eax - 0x80c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x804]
cmp edx, eax
jb 0x1002eaba
push 8
push str.__Winamp
mov ecx, dword [ebp - 4]
push ecx
call fcn.1004a6a0
add esp, 0xc
test eax, eax
jne 0x1002eaaf
jmp 0x1002eaba
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
jmp 0x1002ea89
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x804]
cmp eax, ecx
jb 0x1002ead0
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x804]
cmp eax, ecx
jb 0x1002eaf3
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x20
jne 0x1002eaf3
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
jmp 0x1002ead0
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov byte [eax], 0
lea ecx, [ebp - 0x804]
mov dword [ebp - 0x80c], ecx
mov edx, dword [ebp - 0x80c]
movsx eax, byte [edx]
test eax, eax
je 0x1002eb51
mov ecx, dword [ebp - 0x80c]
movsx edx, byte [ecx]
cmp edx, 0x20
jl 0x1002eb37
mov eax, dword [ebp - 0x80c]
movsx ecx, byte [eax]
cmp ecx, 0x7f
jle 0x1002eb40
mov edx, dword [ebp - 0x80c]
mov byte [edx], 0x2d
mov eax, dword [ebp - 0x80c]
add eax, 1
mov dword [ebp - 0x80c], eax
jmp 0x1002eb0e
lea ecx, [ebp - 0x804]
push ecx
mov ecx, dword [ebp - 0x810]
call fcn.100040c0
mov esp, ebp
pop ebp
ret
Function at 0x100464ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1005af78
cmp edx, dword [eax]
je 0x100464cf
add eax, 8
inc ecx
cmp eax, 0x1005b008
jl 0x100464c0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1005af78]
jne 0x100465fd
mov eax, dword [0x10061abc]
cmp eax, 1
je 0x100465d7
test eax, eax
jne 0x10046500
cmp dword [0x10061ac0], 1
je 0x100465d7
cmp edx, 0xfc
je 0x100465fd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10046537
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1003d990
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1003d0a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1004657a
lea eax, [ebp - 0x1a4]
push eax
call fcn.1003d0a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1004eb5c
push edi
call fcn.1003e1d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1003d990
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1003d9a0
lea eax, [ebp - 0xa0]
push 0x1004eb54
push eax
call fcn.1003d9a0
push dword [esi + 0x1005af7c]
lea eax, [ebp - 0xa0]
push eax
call fcn.1003d9a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.100419cb
add esp, 0x2c
pop edi
jmp 0x100465fd
lea eax, [ebp + 8]
lea esi, [esi + 0x1005af7c]
push 0
push eax
push dword [esi]
call fcn.1003d0a0
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 0x401360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4073f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
call fcn.004010e0
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push 0xe
push ecx
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 4], 0
call dword [eax + 0x3c]
cmp eax, 0xe
je 0x4013d9
push 8
call sub.MFC42u.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp + 8], ecx
test ecx, ecx
mov byte [ebp - 4], 1
je 0x4013c2
call sub.MFC42u.DLL_CException::CException
jmp 0x4013c4
xor eax, eax
lea edx, [ebp - 0x14]
push 0x408b08
push edx
mov byte [ebp - 4], 0
mov dword [ebp - 0x14], eax
call sub.MSVCRT.dll__CxxThrowException
cmp word [ebp - 0x2c], 0x4d42
je 0x401416
push 8
call sub.MFC42u.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp + 8], ecx
test ecx, ecx
mov byte [ebp - 4], 2
je 0x4013ff
call sub.MFC42u.DLL_CException::CException
jmp 0x401401
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x408b08
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0x22]
lea ebx, [ecx - 0xe]
push ebx
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esi + 0xc], eax
mov edx, dword [edi]
mov ecx, edi
push ebx
push eax
call dword [edx + 0x3c]
mov ecx, esi
call fcn.00401200
mov eax, dword [esi + 0xc]
xor ecx, ecx
mov cx, word [eax + 0xe]
push ecx
mov ecx, esi
call fcn.00401170
mov ecx, esi
call fcn.004012a0
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x40146b
mov edx, dword [esi + 0x1c]
push edx
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esi + 8], eax
jmp 0x401548
cmp eax, 1
jne 0x401548
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAdjustment]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
push 0
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetACP]
call ebx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MoveWindow]
push 0
nop
add bh, bh
adc eax, sym.imp.KERNEL32.dll_TerminateProcess
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop
ror dword [ebx + 0x4080401d], cl
add bh, bh
sar edi, cl
shr dword [edx], cl
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
call dword [0x904083bc]
push 0
push 0
push 0
push 0
call dword [0x904083c0]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 8]
mov eax, dword [edi]
push ecx
push edx
mov ecx, edi
call dword [eax + 0x3c]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40288e
pop dword [ebp - 0x18]
mov eax, 0x40288e
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xf011b5da
sub dword [ebp - 0x28], 0xa1bf708f
mov dword [ebp - 0x24], 0x5736ab7d
add dword [ebp - 0x24], 0xdafca0c8
mov dword [ebp - 0x20], 0x1938c62c
sub dword [ebp - 0x20], 0xccec81fe
mov dword [ebp - 0x1c], 0xd1024823
add dword [ebp - 0x1c], 0x2efdb7dd
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x9c76bade
sub dword [ebp - 0x28], 0x28045188
mov dword [ebp - 0x24], 0xc6838491
add dword [ebp - 0x24], 0x7ae8dce4
mov dword [ebp - 0x20], 0x8b079c6a
sub dword [ebp - 0x20], 0x27982ffe
mov dword [ebp - 0x1c], 0xbfe02349
add dword [ebp - 0x1c], 0x401fdcb7
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x392da
push 0
call eax
mov ecx, 0xfc94fcb6
add ecx, 0x36b559e
mov esi, eax
mov edi, 0x410000
add edi, dword [ebp - 0x18]
mov edx, 0xec6973aa
sub edx, 0xd88148c9
mov ebx, dword [edi]
add ebx, edx
add dword [ebp - 0x14], 0x278f258c
mov dword [esi], ebx
xor dword [ebp - 0x14], edx
add esi, 4
add edi, 4
loop 0x40299b
add eax, 0x13c23
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xffcd1095
sub ecx, 0xff8d1095
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x1000dbcc
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f7c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1000dc1c
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x28]
push 0x1290
push dword [ebp - 0x2c]
push 1
call fcn.1000dd99
add esp, 0x10
jmp 0x1000dd88
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x1000dc91
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x1000dc72
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 3
jge 0x1000dc8c
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x44]
call fcn.1002e222
and dword [eax], 0
jmp 0x1000dc67
jmp 0x1000dd88
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0x4f9b
mov dword [ebp - 0x58], 0x100077e4
cmp dword [ebp - 0x24], 0x5115
jle 0x1000dd0f
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
and dword [ebp - 0x1c], 0
jmp 0x1000dccf
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x334f
jge 0x1000dd0f
and dword [ebp - 0x20], 0
jmp 0x1000dce5
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x7a27
jge 0x1000dd0d
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
push dword [ebp - 0x60]
push dword [ebp - 0x64]
mov ecx, 0x106092f8
call fcn.1002e06f
jmp 0x1000dcde
jmp 0x1000dcc8
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0x4d04
jge 0x1000dd2f
mov edx, dword [ebp - 0x58]
mov ecx, 0x106092f8
call fcn.1002fb19
jmp 0x1000dd4b
or dword [ebp - 4], 0xffffffff
jmp 0x1000dd55
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x1000dd6b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 4
jge 0x1000dd88
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x5c]
call fcn.1002e222
mov dword [eax], 0x4f147909
jmp 0x1000dd60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100184c8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1001851d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x10018505
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x1001851b
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1001851b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x10018578
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push 0
push dword [ebp - 0x38]
call fcn.1000e476
add esp, 0x28
mov esp, ebp
pop ebp
ret
Function at 0x1001a359
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005fa93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1001a4f9
lea eax, [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], 0x756
mov dword [ebp - 0x2c], 0x100086b0
cmp dword [ebp - 0x24], 0x98e
jle 0x1001a458
push 0
push 0
push 0
push 0x7e5
push 0x216e
push 0
push 0x7f2
call dword [sym.imp.GDI32.dll_GetTextExtentExPointA]
and dword [ebp - 0x18], 0
jmp 0x1001a3d8
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x47bd
jge 0x1001a44d
and dword [ebp - 0x1c], 0
jmp 0x1001a3ee
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x4741
jge 0x1001a44b
and dword [ebp - 0x20], 0
jmp 0x1001a404
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x18ed
jge 0x1001a449
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
push dword [ebp - 0x50]
push dword [ebp - 0x54]
lea ecx, [ebp - 0x6c]
call fcn.1000d7c0
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
call fcn.1002e04f
push eax
call fcn.1004a056
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.1002e045
jmp 0x1001a3fd
jmp 0x1001a3e7
jmp 0x1001a3d1
push 0x1632
call dword [sym.imp.USER32.dll_IsWindow]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0x399
jge 0x1001a474
push dword [ebp - 0x2c]
call fcn.1004a056
pop ecx
jmp 0x1001a490
or dword [ebp - 4], 0xffffffff
jmp 0x1001a49a
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x1001a4ac
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
jmp 0x1001a4f7
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x1001a4da
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 3
jge 0x1001a4f7
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x44]
call fcn.1002e222
mov dword [eax], 0xff0ea75c
jmp 0x1001a4cf
jmp 0x1001a51a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
push 1
push dword [ebp - 0x48]
push 0x1546
push dword [ebp - 0x4c]
call fcn.1000ddb9
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret