joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7c001000
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x7c049858]
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 0x7c0010b5
call edi
mov esi, eax
cmp esi, ebx
je 0x7c009234
mov dword [0x7c049858], 1
cmp esi, ebx
je 0x7c009255
cmp word [esi], bx
mov eax, esi
je 0x7c00105e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add eax, ebp
cmp word [eax], bx
jne 0x7c001050
add eax, ebp
cmp word [eax], bx
jne 0x7c001050
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 0x7c0010a5
push ebp
call sym.MSVCR70.dll_malloc
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x7c0010a5
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
je 0x7c009262
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 0x7c009275
jmp 0x7c001036
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c00924b
mov eax, ebp
mov dword [0x7c049858], eax
jmp 0x7c0010b5
mov eax, dword [0x7c049858]
jmp 0x7c0010b5
call edi
mov esi, eax
cmp esi, ebx
je 0x7c00927d
jmp 0x7c00103e
push dword [esp + 0x10]
call sym.MSVCR70.dll_free
pop ecx
mov dword [esp + 0x10], ebx
jmp 0x7c0010a1
cmp eax, ebp
je 0x7c009284
cmp eax, ebx
je 0x7c009284
xor eax, eax
jmp 0x7c0010ae
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x7c00927d
cmp byte [esi], bl
je 0x7c00929e
inc eax
cmp byte [eax], bl
jne 0x7c009294
inc eax
cmp byte [eax], bl
jne 0x7c009294
sub eax, esi
inc eax
mov ebp, eax
push ebp
call sym.MSVCR70.dll_malloc
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x7c0092b4
xor edi, edi
jmp 0x7c0092bf
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 0x7c0010ae
Function at 0x7c0010c3
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x7c049854]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x7c0010ef
call esi
test eax, eax
je 0x7c0091bc
mov dword [0x7c049854], 1
call esi
pop esi
pop ebp
ret
cmp eax, 1
jne 0x7c0091da
jmp 0x7c0010ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c0091d3
mov dword [0x7c049854], 2
jmp 0x7c0091df
xor eax, eax
jmp 0x7c0010ec
cmp eax, 2
jne 0x7c0091d3
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 0x7c009203
xor eax, eax
jmp 0x7c00922d
lea eax, [esi + esi]
push eax
call sym.MSVCR70.dll_malloc
mov ebp, eax
test ebp, ebp
pop ecx
je 0x7c0091ff
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x7c00922b
push ebp
call sym.MSVCR70.dll_free
pop ecx
jmp 0x7c0091ff
mov eax, ebp
pop edi
pop ebx
jmp 0x7c0010ec

Function at 0x7c001719
Capabilities:
Terminate process

Disassembly:
push str.mscoree.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x7c008846
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.CorExitProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x7c00172c
push dword [esp + 4]
call eax
jmp 0x7c00172c

Function at 0x7c00188c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x7c049290]
jne 0x7c00de12
ret
push 8
push 0x7c03e8a0
call fcn.7c001d9b
and dword [ebp - 4], 0
push 0
push 1
call sym.MSVCR70.dll___security_error_handler
pop ecx
pop ecx
jmp 0x7c00de36
or dword [ebp - 4], 0xffffffff
push 3
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x7c001e43
Capabilities:
Terminate process

Disassembly:
push esi
push 8
call sym.MSVCR70.dll__lock
xor esi, esi
inc esi
cmp dword [0x7c0495d8], esi
pop ecx
je 0x7c008865
cmp dword [esp + 0xc], 0
mov dword [0x7c0495d4], esi
mov byte [0x7c0495d0], bl
jne 0x7c001e9e
mov ecx, dword [0x7c0498a8]
test ecx, ecx
je 0x7c001e8d
mov eax, dword [0x7c0498a4]
sub eax, 4
cmp eax, ecx
mov dword [0x7c0498a4], eax
jae 0x7c0036c4
push 0x7c049038
push 0x7c049028
call sym.MSVCR70.dll__initterm
pop ecx
pop ecx
push 0x7c049044
push 0x7c04903c
call sym.MSVCR70.dll__initterm
test ebx, ebx
pop ecx
pop ecx
jne 0x7c00887b
push dword [esp + 8]
mov dword [0x7c0495d8], esi
call fcn.7c001719
jmp 0x7c008882
mov eax, dword [eax]
test eax, eax
je 0x7c0036cc
call eax
mov eax, dword [0x7c0498a4]
sub eax, 4
cmp eax, dword [0x7c0498a8]
jmp 0x7c001e82
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x7c001e5b
push 8
call sym.MSVCR70.dll__unlock
pop ecx
pop esi
ret
Function at 0x7c002d92
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x11a0
call fcn.7c00229a
mov eax, dword [0x7c049290]
xor eax, dword [ebp + 4]
push ebx
mov dword [ebp - 4], eax
push 0x1090
lea eax, [ebp - 0x11a0]
push eax
push 0x7c0392c0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x7c008cfc
cmp dword [sym.MSVCR70.dll__osplatform], 2
jne 0x7c002df4
cmp dword [sym.MSVCR70.dll__winmajor], 5
jb 0x7c002df4
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.7c00188c
leave
ret
cmp eax, 1
je 0x7c002ddf
jmp 0x7c002dca
lea eax, [ebp - 8]
push eax
call fcn.7c00bc37
jmp 0x7c008ded
xor ebx, ebx
cmp byte [ebp - 0x11a0], bl
lea ecx, [ebp - 0x11a0]
je 0x7c008d1f
mov al, byte [ecx]
cmp al, 0x61
jl 0x7c008d1a
cmp al, 0x7a
jg 0x7c008d1a
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x7c008d0c
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 0x7c008d41
lea eax, [ebp - 0x11a0]
jmp 0x7c008d95
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 0x7c008d78
mov al, byte [ecx]
cmp al, 0x61
jl 0x7c008d73
cmp al, 0x7a
jg 0x7c008d73
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x7c008d65
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 0x7c002dca
push 0x2c
push eax
call sym.MSVCR70.dll_strchr
cmp eax, ebx
pop ecx
pop ecx
je 0x7c002dca
lea ecx, [eax + 1]
jmp 0x7c008dad
inc ecx
cmp byte [ecx], 0x20
je 0x7c008dac
mov dl, byte [ecx]
xor eax, eax
cmp dl, 0x30
jl 0x7c002dca
cmp dl, 0x39
jg 0x7c008dd6
movsx edx, dl
lea eax, [eax + eax*4]
inc ecx
lea eax, [edx + eax*2 - 0x30]
mov dl, byte [ecx]
cmp dl, 0x30
jge 0x7c008dbf
cmp eax, 2
je 0x7c002ddf
cmp eax, 3
je 0x7c002ddf
jmp 0x7c002ded
cmp byte [ebp - 8], 6
pop ecx
sbb eax, eax
add eax, 3
jmp 0x7c002ddf
Function at 0x7c00ab7f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x7c049290]
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 + 0x7c04af70]
je 0x7c00abac
inc eax
cmp eax, 0x12
jb 0x7c00ab9d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x7c04af70]
jne 0x7c00ace0
mov eax, dword [0x7c04f078]
cmp eax, 1
je 0x7c00acbb
cmp eax, edx
jne 0x7c00abdc
cmp dword [0x7c0495ec], 1
je 0x7c00acbb
cmp ecx, 0xfc
je 0x7c00ace0
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 0x7c00ac15
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 0x7c00ac57
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 0x7c03e6a8
push edi
call sym.MSVCR70.dll_strncpy
add esp, 0x10
push edi
call sym.MSVCR70.dll_strlen
push dword [esi + 0x7c04af74]
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.7c00229a
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 0x7c03e688
push ebx
call sym.MSVCR70.dll__mbscat
push dword [esi + 0x7c04af74]
push ebx
call sym.MSVCR70.dll__mbscat
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.7c00dd19
add esp, 0x2c
jmp 0x7c00ace0
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x7c04af74]
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.7c00188c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x7c00b00f
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x7c00b02b
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x7c00b09d
push esi
push 0x88
push 1
call sym.MSVCR70.dll_calloc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x7c00b083
push esi
call fcn.7c00b21d
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x7c00af70
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 0x7c00b07b
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x7c00b09a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call sym.MSVCR70.dll_free
test ebx, ebx
pop ecx
je 0x7c00b095
push ebx
call fcn.7c00bbc4
pop ecx
or eax, 0xffffffff
jmp 0x7c00b09c
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x7c00b174
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x7c00b191
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
xor eax, eax
jmp 0x7c00b1fb
push esi
push 0x88
push 1
call sym.MSVCR70.dll_calloc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x7c00b1e6
push esi
call fcn.7c00b21d
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
jne 0x7c00b1c4
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x7c00b0d1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x7c00b1fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call sym.MSVCR70.dll_free
test ebx, ebx
pop ecx
je 0x7c00b1f8
push ebx
call fcn.7c00bbc4
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x7c00b3e2
Capabilities:
Enumerate files on windows

Disassembly:
cmp dword [esp + 4], 0
je 0x7c00b440
cmp dword [0x7c04f080], 0
jne 0x7c00b406
push 0x244
call sym.MSVCR70.dll_malloc
test eax, eax
pop ecx
mov dword [0x7c04f080], eax
je 0x7c00b469
mov eax, dword [0x7c04f084]
test eax, eax
je 0x7c00b41d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [0x7c04f084], 0
push dword [0x7c04f080]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [0x7c04f084], eax
je 0x7c00b469
mov eax, dword [0x7c04f080]
add eax, 0x2c
ret
push dword [0x7c04f080]
push dword [0x7c04f084]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x7c00b437
push dword [0x7c04f084]
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [0x7c04f084], 0
xor eax, eax
ret

Function at 0x7c00b8d0
Capabilities:
Enumerate files on windows

Disassembly:
cmp dword [esp + 4], 0
je 0x7c00b92e
cmp dword [0x7c04f2a4], 0
jne 0x7c00b8f4
push 0x354
call sym.MSVCR70.dll_malloc
test eax, eax
pop ecx
mov dword [0x7c04f2a4], eax
je 0x7c00b957
mov eax, dword [0x7c04f2a0]
test eax, eax
je 0x7c00b90b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [0x7c04f2a0], 0
push dword [0x7c04f2a4]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [0x7c04f2a0], eax
je 0x7c00b957
mov eax, dword [0x7c04f2a4]
add eax, 0x2c
ret
push dword [0x7c04f2a4]
push dword [0x7c04f2a0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x7c00b925
push dword [0x7c04f2a0]
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [0x7c04f2a0], 0
xor eax, eax
ret
Function at 0x7c00dd19
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x7c04f2b0], ebx
push esi
push edi
jne 0x7c00dd99
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x7c00ddd4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x7c04f2b0], eax
je 0x7c00ddd4
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x7c04f2b4], eax
call esi
cmp dword [sym.MSVCR70.dll__osplatform], 2
mov dword [0x7c04f2b8], eax
jne 0x7c00dd99
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x7c04f2c0], eax
je 0x7c00dd99
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x7c04f2bc], eax
mov eax, dword [0x7c04f2bc]
test eax, eax
je 0x7c00ddde
call eax
test eax, eax
je 0x7c00ddc5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x7c04f2c0]
test eax, eax
je 0x7c00ddc5
test byte [ebp - 8], 1
jne 0x7c00ddde
cmp dword [sym.MSVCR70.dll__winmajor], 4
jb 0x7c00ddd8
or byte [ebp + 0x12], 0x20
jmp 0x7c00ddfd
xor eax, eax
jmp 0x7c00de0d
or byte [ebp + 0x12], 4
jmp 0x7c00ddfd
mov eax, dword [0x7c04f2b4]
test eax, eax
je 0x7c00ddfd
call eax
mov ebx, eax
test ebx, ebx
je 0x7c00ddfd
mov eax, dword [0x7c04f2b8]
test eax, eax
je 0x7c00ddfd
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x7c04f2b0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7c010b5e
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x7c03fa98
call fcn.7c001d9b
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x7c04f340], edi
jne 0x7c010ba2
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x7c010b8d
mov dword [0x7c04f340], ebx
jmp 0x7c010ba2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c010ba2
mov dword [0x7c04f340], 2
mov eax, dword [0x7c04f340]
cmp eax, ebx
jne 0x7c010bc2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x7c010c85
cmp eax, 2
je 0x7c010bcb
cmp eax, edi
jne 0x7c010bf3
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x7c010bde
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 0x7c010bfa
xor eax, eax
jmp 0x7c010c85
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.7c00229a
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x7c010c2d
cmp esi, edi
jne 0x7c010c43
push dword [ebp - 0x24]
call sym.MSVCR70.dll_malloc
pop ecx
mov esi, eax
cmp esi, edi
je 0x7c010bf3
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 0x7c010c76
cmp dword [ebp + 0x14], edi
jne 0x7c010c60
push edi
push edi
jmp 0x7c010c66
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 0x7c010c82
push esi
call sym.MSVCR70.dll_free
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.7c0019f5
ret
Function at 0x7c010c8e
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x7c03faa8
call fcn.7c001d9b
xor esi, esi
cmp dword [0x7c04f344], esi
jne 0x7c010cd2
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x7c010cbd
mov dword [0x7c04f344], edi
jmp 0x7c010cd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c010cd2
mov dword [0x7c04f344], 2
mov eax, dword [0x7c04f344]
cmp eax, 2
je 0x7c010db3
cmp eax, esi
je 0x7c010db3
cmp eax, 1
jne 0x7c010d17
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x7c010d00
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
jne 0x7c010d1e
xor eax, eax
jmp 0x7c010dc5
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.7c00229a
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x7c010d54
cmp edi, esi
jne 0x7c010d6f
lea eax, [ebx + ebx]
push eax
call sym.MSVCR70.dll_malloc
pop ecx
mov edi, eax
cmp edi, esi
je 0x7c010d17
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x7c010da2
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x7c010d8c
push esi
push esi
jmp 0x7c010d92
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
je 0x7c010dae
push edi
call sym.MSVCR70.dll_free
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x7c010dc5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.7c0019f5
ret
Function at 0x7c0136e4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.7c00229a
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x7c013779
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [sym.MSVCR70.dll__osplatform]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x7c013779
cmp eax, 1
je 0x7c013791
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x7c013779
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x7c01374e
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x7c013775
xor eax, eax
inc eax
jmp 0x7c0137ad
cmp esi, ebx
jae 0x7c01377d
xor eax, eax
jmp 0x7c0137ad
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [sym.MSVCR70.dll__osplatform]
jmp 0x7c013793
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7c0137b5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x7c049290]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x7c0137de
xor eax, eax
jmp 0x7c01394c
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + sym.MSVCR70.dll___pioinfo]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x7c013811
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.7c013d28
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x7c0138e3
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x7c01391e
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x7c01386c
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x7c01385d
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x7c013840
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x7c0138ac
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x7c0138b5
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x7c013831
jmp 0x7c0138b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x7c013947
cmp dword [ebp - 8], edi
je 0x7c01391e
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x7c013910
call sym.MSVCR70.dll__errno
mov dword [eax], 9
call sym.MSVCR70.dll___doserrno
mov dword [eax], esi
jmp 0x7c013919
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x7c013905
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x7c0138b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x7c0138b7
push dword [ebp - 8]
call fcn.7c00bbc4
pop ecx
or eax, 0xffffffff
jmp 0x7c01394a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x7c013933
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x7c013933
xor eax, eax
jmp 0x7c01394a
call sym.MSVCR70.dll__errno
mov dword [eax], 0x1c
call sym.MSVCR70.dll___doserrno
mov dword [eax], edi
jmp 0x7c013919
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.7c00188c
leave
ret