joyce8/EMBER2024-capa huggingface dataset:
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.MSVCR71.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 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x402c00
pop dword [ebp - 0x38]
mov eax, 0xb64f8adb
sub eax, 0xb60f5edb
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xc33ecf21
add dword [ebp - 0x48], 0x8b13762a
mov dword [ebp - 0x44], 0x2029e580
add dword [ebp - 0x44], 0x120966c5
mov dword [ebp - 0x40], 0xd148a962
sub dword [ebp - 0x40], 0x84fc6534
mov dword [ebp - 0x3c], 0x50012ae4
sub dword [ebp - 0x3c], 0x50012ae4
lea eax, [ebp - 0x48]
push eax
mov eax, 0x542601b3
add eax, 0xac1a7ed9
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x950e107a
sub dword [ebp - 0x48], 0x209ba724
mov dword [ebp - 0x44], 0xadce4af0
sub dword [ebp - 0x44], 0x6c61e97b
mov dword [ebp - 0x40], 0x32600977
add dword [ebp - 0x40], 0x310f62f5
mov dword [ebp - 0x3c], 0xa6b82d59
add dword [ebp - 0x3c], 0x5947d2a7
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xee0def7b
sub eax, 0xedcd6ea7
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x33bbe
push 0
call eax
mov ecx, 0x3c2e
mov esi, eax
mov edx, 0x411000
add edx, dword [ebp - 0x38]
mov edi, 0x4e74ad28
sub edi, 0x8863eff2
mov ebx, dword [edx]
sub dword [ebp - 0x24], 0xfba11eb3
sub ebx, edi
sub dword [ebp - 0x14], 0x9f2fe4d8
mov dword [esi], ebx
xor dword [ebp - 0x28], 0x59847a77
add esi, 0xb61cb11a
sub esi, 0xb61cb116
add edx, 4
loop 0x402d16
add eax, 0xe38b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x8fc76a6d
sub ecx, 0x8f876a6d
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x4013b5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
cmp dword [0x1a1f7f8], 0x594
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x2c], esi
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x10], ebx
jne 0x4013eb
push 0
lea eax, [ebp - 0x44c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x41a308]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
mov eax, dword [0x41a30c]
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x28], eax
call fcn.004013ab
mov ecx, dword [0x41a310]
mov eax, dword [0x41a314]
add dword [ebp - 4], 0x23f
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
pop esi
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, ebx
mov edx, 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x1a1f7f8], 0xfa9
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [0x1a1f7f4]
cmove eax, edx
xor edx, edx
cmp dword [0x1a1f7f8], 0x3eb
mov dword [0x1a1f7f4], eax
mov eax, dword [0x1a1f1e4]
cmove eax, edx
add ecx, ebx
mov dword [0x1a1f1e4], eax
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
xor ebx, ebx
mov eax, dword [ebp - 8]
xor edx, ecx
add eax, dword [ebp - 0x1c]
mov ecx, dword [0x1a1f7f8]
xor eax, edx
mov dword [0x1a1f7f0], 0xf4ea3dee
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp ecx, 0x213
jne 0x40151f
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push ebx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea eax, [ebp - 0xc4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
lea eax, [ebp - 0x44c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
mov eax, dword [ebp - 8]
mov ecx, dword [0x1a1f7f8]
sub edi, eax
cmp ecx, 0xc
jne 0x40152d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov eax, edi
shl eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
mov eax, edi
mov edx, dword [ebp - 4]
shr eax, cl
add edx, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
xor eax, edx
mov edx, dword [ebp - 0xc]
xor edx, eax
mov dword [ebp - 0xc], edx
call fcn.004013b2
mov eax, dword [ebp - 0x18]
sub dword [ebp - 4], eax
dec esi
je 0x401579
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
jmp 0x401429
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f00d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4197a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040b3e7
mov dword [ebp - 0x14], eax
cmp dword [0x459600], esi
jne 0x40f100
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40f08d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40f1e0
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40f1e0
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f1e0
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x459600], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x459604], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x459608], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x459610], eax
test eax, eax
je 0x40f0fd
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45960c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40f125
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f118
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40f13a
push 4
pop eax
jmp 0x40f1e2
cmp dword [ebp - 0x14], esi
je 0x40f13a
push dword [0x459600]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40f11f
mov eax, dword [0x45960c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40f198
cmp dword [0x459610], edi
je 0x40f198
push eax
call ebx
push dword [0x459610]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40f198
test eax, eax
je 0x40f198
call ecx
test eax, eax
je 0x40f18d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40f18d
test byte [ebp - 8], 1
jne 0x40f198
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40f1c8
mov eax, dword [0x459604]
cmp eax, edi
je 0x40f1c5
push eax
call ebx
test eax, eax
je 0x40f1c5
call eax
mov esi, eax
test esi, esi
je 0x40f1c5
mov eax, dword [0x459608]
cmp eax, edi
je 0x40f1c5
push eax
call ebx
test eax, eax
je 0x40f1c5
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x459600]
call ebx
test eax, eax
je 0x40f1e0
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40f1e2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403ef8
mov esp, ebp
pop ebp
ret
Function at 0x7c004075
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
je 0x7c00bd2d
push esi
push 0x88
push 1
call sym.MSVCR70.dll_calloc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x7c00bd4f
push esi
call fcn.7c00173b
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
je 0x7c00bd3f
push eax
push dword [ebp + 0x18]
push esi
push 0x7c0040e2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x7c00bd47
pop esi
pop edi
pop ebx
pop ebp
ret
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
xor eax, eax
jmp 0x7c0040de
lea eax, [ebp + 0x10]
jmp 0x7c0040bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call sym.MSVCR70.dll_free
test ebx, ebx
pop ecx
je 0x7c00bd61
push ebx
call fcn.7c0102b7
pop ecx
xor eax, eax
jmp 0x7c0040dd

Function at 0x7c004373
Capabilities:
Terminate process

Disassembly:
push 8
call sym.MSVCR70.dll__unlock
jmp 0x7c00440a
push esi
push 8
call sym.MSVCR70.dll__lock
xor esi, esi
inc esi
cmp dword [0x7c04aba8], esi
pop ecx
je 0x7c00bb8d
cmp dword [esp + 0xc], 0
mov dword [0x7c04aadc], esi
mov byte [0x7c04aba4], bl
jne 0x7c0043e2
mov ecx, dword [0x7c04ab74]
test ecx, ecx
je 0x7c0043d1
mov eax, dword [0x7c04ab70]
sub eax, 4
cmp eax, ecx
mov dword [0x7c04ab70], eax
jb 0x7c0043d1
mov eax, dword [eax]
test eax, eax
je 0x7c0043c1
call eax
mov eax, dword [0x7c04ab70]
sub eax, 4
cmp eax, dword [0x7c04ab74]
jmp 0x7c0043b2
push 0x7c04ab8c
push 0x7c04ab7c
call sym.MSVCR70.dll__initterm
pop ecx
pop ecx
push 0x7c04ab98
push 0x7c04ab90
call sym.MSVCR70.dll__initterm
test ebx, ebx
pop ecx
pop ecx
jne 0x7c004134
push dword [esp + 8]
mov dword [0x7c04aba8], esi
call fcn.7c00440d
pop ecx
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x7c00438b
Function at 0x7c00453f
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x7c04b118]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push 2
pop ebp
jne 0x7c0045e9
call edi
mov esi, eax
cmp esi, ebx
je 0x7c00c679
mov dword [0x7c04b118], 1
cmp esi, ebx
je 0x7c00c69a
cmp word [esi], bx
mov eax, esi
je 0x7c004592
add eax, ebp
cmp word [eax], bx
jne 0x7c004584
add eax, ebp
cmp word [eax], bx
jne 0x7c004584
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x7c0045d9
push ebp
call sym.MSVCR70.dll_malloc
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x7c0045d9
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
je 0x7c00c6a7
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
cmp eax, 1
jne 0x7c00c6ba
jmp 0x7c004575
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c00c690
mov eax, ebp
mov dword [0x7c04b118], eax
jmp 0x7c0045e9
mov eax, dword [0x7c04b118]
jmp 0x7c0045e9
call edi
mov esi, eax
cmp esi, ebx
je 0x7c00c6c2
jmp 0x7c00457d
push dword [esp + 0x10]
call sym.MSVCR70.dll_free
pop ecx
mov dword [esp + 0x10], ebx
jmp 0x7c0045d5
cmp eax, ebp
je 0x7c00c6c9
cmp eax, ebx
je 0x7c00c6c9
xor eax, eax
jmp 0x7c0045e2
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x7c00c6c2
cmp byte [esi], bl
je 0x7c00c6e3
inc eax
cmp byte [eax], bl
jne 0x7c00c6d9
inc eax
cmp byte [eax], bl
jne 0x7c00c6d9
sub eax, esi
inc eax
mov ebp, eax
push ebp
call sym.MSVCR70.dll_malloc
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x7c00c6f9
xor edi, edi
jmp 0x7c00c704
push ebp
push esi
push edi
call sym.MSVCR70.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, edi
jmp 0x7c0045e2
Function at 0x7c0045f4
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x7c04b114]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x7c004620
call esi
test eax, eax
je 0x7c00c601
mov dword [0x7c04b114], 1
call esi
pop esi
pop ebp
ret
cmp eax, 1
jne 0x7c00c61f
jmp 0x7c00461b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c00c618
mov dword [0x7c04b114], 2
jmp 0x7c00c624
xor eax, eax
jmp 0x7c00461d
cmp eax, 2
jne 0x7c00c618
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
jne 0x7c00c648
xor eax, eax
jmp 0x7c00c672
lea eax, [esi + esi]
push eax
call sym.MSVCR70.dll_malloc
mov ebp, eax
test ebp, ebp
pop ecx
je 0x7c00c644
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x7c00c670
push ebp
call sym.MSVCR70.dll_free
pop ecx
jmp 0x7c00c644
mov eax, ebp
pop edi
pop ebx
jmp 0x7c00461d
Function at 0x7c004eee
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x11a0
call fcn.7c0014ee
mov eax, dword [0x7c04a9a8]
xor eax, dword [ebp + 4]
push ebx
mov dword [ebp - 4], eax
push 0x1090
lea eax, [ebp - 0x11a0]
push eax
push 0x7c03e29c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x7c00c173
cmp dword [sym.MSVCR70.dll__osplatform], 2
jne 0x7c004f50
cmp dword [sym.MSVCR70.dll__winmajor], 5
jb 0x7c004f50
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.7c0013ab
leave
ret
cmp eax, 1
je 0x7c004f3b
jmp 0x7c004f26
lea eax, [ebp - 8]
push eax
call fcn.7c01032a
jmp 0x7c00c264
xor ebx, ebx
cmp byte [ebp - 0x11a0], bl
lea ecx, [ebp - 0x11a0]
je 0x7c00c196
mov al, byte [ecx]
cmp al, 0x61
jl 0x7c00c191
cmp al, 0x7a
jg 0x7c00c191
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x7c00c183
push 0x16
lea eax, [ebp - 0x11a0]
push eax
push str.__GLOBAL_HEAP_SELECTED
call sym.MSVCR70.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x7c00c1b8
lea eax, [ebp - 0x11a0]
jmp 0x7c00c20c
push 0x104
lea eax, [ebp - 0x110]
push eax
push ebx
mov byte [ebp - 0xc], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebp - 0x110], bl
lea ecx, [ebp - 0x110]
je 0x7c00c1ef
mov al, byte [ecx]
cmp al, 0x61
jl 0x7c00c1ea
cmp al, 0x7a
jg 0x7c00c1ea
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x7c00c1dc
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x11a0]
push eax
call sym.MSVCR70.dll_strstr
cmp eax, ebx
pop ecx
pop ecx
je 0x7c004f26
push 0x2c
push eax
call sym.MSVCR70.dll_strchr
cmp eax, ebx
pop ecx
pop ecx
je 0x7c004f26
lea ecx, [eax + 1]
jmp 0x7c00c224
inc ecx
cmp byte [ecx], 0x20
je 0x7c00c223
mov dl, byte [ecx]
xor eax, eax
cmp dl, 0x30
jl 0x7c004f26
cmp dl, 0x39
jg 0x7c00c24d
movsx edx, dl
lea eax, [eax + eax*4]
inc ecx
lea eax, [edx + eax*2 - 0x30]
mov dl, byte [ecx]
cmp dl, 0x30
jge 0x7c00c236
cmp eax, 2
je 0x7c004f3b
cmp eax, 3
je 0x7c004f3b
jmp 0x7c004f49
cmp byte [ebp - 8], 6
pop ecx
sbb eax, eax
add eax, 3
jmp 0x7c004f3b
Function at 0x7c005d94
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x7c03e570
call fcn.7c00101f
xor esi, esi
cmp dword [0x7c04ba10], esi
je 0x7c005e68
mov eax, dword [0x7c04ba10]
cmp eax, 2
je 0x7c00d4c1
cmp eax, esi
je 0x7c00d4c1
cmp eax, 1
jne 0x7c005e88
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x7c005de0
mov eax, dword [sym.MSVCR70.dll___lc_codepage]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
je 0x7c005e88
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.7c0014ee
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
cmp edi, esi
je 0x7c00d48e
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x7c005e53
push esi
push esi
cmp dword [ebp + 0x14], esi
je 0x7c00d4ae
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
jne 0x7c00d4b5
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.7c00105a
ret
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x7c00d454
mov dword [0x7c04ba10], edi
jmp 0x7c005dae
xor eax, eax
jmp 0x7c005e5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c005dae
mov dword [0x7c04ba10], 2
jmp 0x7c005dae
lea eax, [ebx + ebx]
push eax
call sym.MSVCR70.dll_malloc
pop ecx
mov edi, eax
cmp edi, esi
je 0x7c005e88
mov dword [ebp - 0x20], 1
jmp 0x7c005e20
push esi
push esi
jmp 0x7c005e43
push edi
call sym.MSVCR70.dll_free
pop ecx
jmp 0x7c005e5c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
jmp 0x7c005e5f
Function at 0x7c00620f
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x7c03e560
call fcn.7c00101f
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x7c04ba0c], edi
je 0x7c006250
mov eax, dword [0x7c04ba0c]
cmp eax, ebx
jne 0x7c00d38c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea esp, [ebp - 0x34]
call fcn.7c00105a
ret
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x7c00d36e
mov dword [0x7c04ba0c], ebx
jmp 0x7c006228
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c006228
mov dword [0x7c04ba0c], 2
jmp 0x7c006228
cmp eax, 2
je 0x7c00d395
cmp eax, edi
jne 0x7c00d3bd
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x7c00d3a8
mov eax, dword [sym.MSVCR70.dll___lc_codepage]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x7c00d3c4
xor eax, eax
jmp 0x7c006247
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.7c0014ee
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x7c00d3f7
cmp esi, edi
jne 0x7c00d40d
push dword [ebp - 0x24]
call sym.MSVCR70.dll_malloc
pop ecx
mov esi, eax
cmp esi, edi
je 0x7c00d3bd
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x7c00d440
cmp dword [ebp + 0x14], edi
jne 0x7c00d42a
push edi
push edi
jmp 0x7c00d430
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
je 0x7c00d44c
push esi
call sym.MSVCR70.dll_free
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x7c006247
Function at 0x7c00f7ae
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x7c04a9a8]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x7c04ba80]
je 0x7c00f7db
inc eax
cmp eax, 0x12
jb 0x7c00f7cc
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x7c04ba80]
jne 0x7c00f90f
mov eax, dword [0x7c04f3e8]
cmp eax, 1
je 0x7c00f8ea
cmp eax, edx
jne 0x7c00f80b
cmp dword [0x7c04afbc], 1
je 0x7c00f8ea
cmp ecx, 0xfc
je 0x7c00f90f
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c00f844
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call sym.MSVCR70.dll__mbscpy
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call sym.MSVCR70.dll_strlen
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x7c00f886
lea eax, [ebp - 0x10c]
push eax
call sym.MSVCR70.dll_strlen
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x7c03e8f0
push edi
call sym.MSVCR70.dll_strncpy
add esp, 0x10
push edi
call sym.MSVCR70.dll_strlen
push dword [esi + 0x7c04ba84]
mov ebx, eax
call sym.MSVCR70.dll_strlen
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.7c0014ee
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call sym.MSVCR70.dll__mbscpy
push edi
push ebx
call sym.MSVCR70.dll__mbscat
push 0x7c03e8d0
push ebx
call sym.MSVCR70.dll__mbscat
push dword [esi + 0x7c04ba84]
push ebx
call sym.MSVCR70.dll__mbscat
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.7c01240c
add esp, 0x2c
jmp 0x7c00f90f
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x7c04ba84]
push dword [esi]
call sym.MSVCR70.dll_strlen
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]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.7c0013ab
pop edi
pop esi
pop ebx
leave
ret

Function at 0x7c00fbde
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x7c00fbfa
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x7c00fc6c
push esi
push 0x88
push 1
call sym.MSVCR70.dll_calloc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x7c00fc52
push esi
call fcn.7c00173b
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x7c00fb3f
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x7c00fc4a
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x7c00fc69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call sym.MSVCR70.dll_free
test ebx, ebx
pop ecx
je 0x7c00fc64
push ebx
call fcn.7c0102b7
pop ecx
or eax, 0xffffffff
jmp 0x7c00fc6b
mov eax, edi
pop esi
pop edi
pop ebx
ret