joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e119
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestRefPtr.exe_gMozillaPoisonSize], eax
call fcn.0040ac5a
pop ecx
mov ecx, dword [sym.TestRefPtr.exe_gMozillaPoisonSize]
mov dword [sym.TestRefPtr.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40e151
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestRefPtr.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x60002990
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov bx, word [esp + 0xc]
push edi
mov esi, dword [esp + 0x18]
push ebp
movzx eax, bx
sar esi, 1
mov ebp, eax
shl ebp, 0x10
or ebp, eax
test esi, esi
jle 0x600029e0
mov edi, dword [esp + 0x18]
mov ax, word [edi]
add edi, 2
push eax
call fcn.60004060
mov dx, ax
add esp, 4
xor ax, bx
and dl, 0xf
mov ebx, ebp
mov cl, dl
shr ebx, cl
push eax
call fcn.60004060
mov word [edi - 2], ax
add esp, 4
dec esi
jne 0x600029b2
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x60002ce0
Capabilities:
Check mutex on windows
Parse pe header

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x44]
cmp word [eax], 0x5a4d
je 0x60002cf7
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov edi, dword [eax + 0x3c]
push 0xf8
add edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push edi
call ebx
test eax, eax
je 0x60002d14
xor eax, eax
pop edi
pop esi
pop ebx
ret
cmp dword [edi], 0x4550
je 0x60002d22
xor eax, eax
pop edi
pop esi
pop ebx
ret
push edi
mov eax, dword [str..fltr]
push eax
call fcn.60002fe0
add esp, 8
test eax, eax
jne 0x60002d3b
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 8]
add edi, dword [esi + 0x44]
push eax
push edi
call ebx
test eax, eax
je 0x60002d52
xor eax, eax
pop edi
pop esi
pop ebx
ret
push str.FilterAccessMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
test ebx, ebx
jne 0x60002d6d
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 4], 0x53
jne 0x60002d8b
cmp byte [edi + 5], 0x57
jne 0x60002d8b
push edi
push esi
call fcn.60002db0
jmp 0x60002d92
push edi
push esi
call fcn.60002f10
add esp, 8
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x60002fe0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
xor eax, eax
mov ebx, dword [esp + 0xc]
push esi
mov ax, word [ebx + 0x14]
push edi
push ebp
lea edi, [eax + ebx + 0x18]
xor ebp, ebp
cmp word [ebx + 6], bp
jbe 0x6000301c
mov esi, dword [esp + 0x14]
push 8
push esi
push edi
call fcn.60008f90
add esp, 0xc
test eax, eax
je 0x60003023
inc ebp
add edi, 0x28
xor eax, eax
mov ax, word [ebx + 6]
cmp eax, ebp
ja 0x60002ffe
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x600038c0
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push ebp
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push esi
call edi
test eax, eax
jne 0x600039b6
cmp word [esi], 0x5a4d
jne 0x600039b6
mov ebx, dword [esi + 0x3c]
push 0xf8
add ebx, esi
push ebx
call edi
test eax, eax
jne 0x600039af
cmp dword [ebx], 0x4550
jne 0x600039af
mov ebx, dword [ebx + 0x80]
push 0x14
add ebx, esi
push ebx
call edi
test eax, eax
je 0x6000391f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp ebx, esi
jne 0x6000392a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp dword [ebx + 0xc], 0
je 0x6000399e
mov edi, dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
mov eax, dword [ebx + 0xc]
mov ecx, dword [str.WSOCK32]
add eax, esi
push eax
push ecx
call fcn.60003ed0
add esp, 8
test eax, eax
je 0x60003995
mov ebp, dword [ebx + 0x10]
push 4
add ebp, esi
push ebp
call edi
test eax, eax
jne 0x600039a8
cmp dword [ebp], 0
je 0x60003995
xor ecx, ecx
mov edx, 0x6000b190
mov eax, dword [ebp]
cmp dword [edx], eax
je 0x6000397f
add edx, 0x14
inc ecx
cmp edx, 0x6000b280
jb 0x6000396d
jmp 0x6000398c
shl ecx, 2
mov eax, dword [ecx + ecx*4 + 0x6000b18c]
mov dword [ebp], eax
add ebp, 4
cmp dword [ebp], 0
jne 0x60003963
add ebx, 0x14
cmp dword [ebx + 0xc], 0
jne 0x60003936
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x60003ae0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 4
push esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea ecx, [esp + 4]
push ecx
push 4
push eax
push 0x60003ab0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
add esp, 4
ret

Function at 0x60003e40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x50
mov eax, dword [0x6000b170]
push esi
mov ecx, dword [eax + 0x44]
push 5
push str.BLOCKED
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
mov esi, eax
mov eax, dword [0x6000b170]
mov ecx, dword [eax + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
lea ecx, [esp + 4]
push eax
push esi
push str.FindResource:_0x_08x__LoadResource:_0x_08x
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x14]
add esp, 0x10
push 0
push 0
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
add esp, 0x50
ret
Function at 0x60003f80
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x224
mov eax, dword [str.WSOCK32]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov edi, eax
jne 0x60003fb8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x224
ret
mov dword [esp + 0xc], 0x224
lea eax, [esp + 0xc]
push eax
push edi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x60004006
mov ebx, 0x80000000
cmp dword [esp + 0x28], ebx
jae 0x60003ff7
cmp esi, dword [esp + 0x28]
je 0x60003ff7
mov eax, dword [0x6000b170]
mov ecx, dword [esp + 0x28]
cmp dword [eax + 0x44], ecx
je 0x60003ff7
push ecx
call sym.Surfsock.dll_InterceptFunctionsInModule
add esp, 4
lea eax, [esp + 0xc]
push eax
push edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x60003fd4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x224
ret

Function at 0x600046a0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x600047a7
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp dword [0x6000b524], 0
mov dword [0x6000b8f0], eax
jne 0x600046ff
cmp al, 3
jne 0x600046d6
test eax, 0x80000000
je 0x600046d6
push 2
call fcn.600062e0
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x600046ff
push 0x6000a010
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x600046ff
push 1
call fcn.600062e0
add esp, 4
call fcn.60005810
test eax, eax
jne 0x6000470d
xor eax, eax
ret 0xc
xor edx, edx
mov ecx, dword [0x6000b8f0]
mov dl, ch
mov eax, ecx
shr ecx, 0x10
and eax, 0xff
mov dword [0x6000b8fc], edx
mov dword [0x6000b8f8], eax
shl eax, 8
mov dword [0x6000b8f0], ecx
add eax, edx
mov dword [0x6000b8f4], eax
call fcn.60005640
test eax, eax
jne 0x6000474f
call fcn.60005850
xor eax, eax
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x6001024c], eax
call fcn.60006150
cmp dword [0x6001024c], 0
mov dword [0x6000b514], eax
je 0x60004798
test eax, eax
je 0x60004798
call fcn.60005890
call fcn.60006140
call fcn.60005bc0
call fcn.60005ad0
call fcn.600054e0
mov eax, 1
inc dword [0x6000b510]
ret 0xc
call fcn.600056a0
call fcn.60005850
xor eax, eax
ret 0xc
test eax, eax
jne 0x600047e4
mov eax, dword [0x6000b510]
test eax, eax
jle 0x600047df
dec eax
cmp dword [0x6000b928], 0
mov dword [0x6000b510], eax
jne 0x600047c8
call fcn.60005530
call fcn.60005a70
call fcn.600056a0
call fcn.60005850
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
cmp eax, 3
jne 0x600047f3
push 0
call fcn.60005760
add esp, 4
mov eax, 1
ret 0xc
Function at 0x60005540
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.60005600
cmp dword [0x6000b92c], 1
mov esi, dword [esp + 0x10]
jne 0x60005563
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x6000b928], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x6000b924], bl
jne 0x600055bd
cmp dword [0x6001023c], 0
je 0x600055ab
mov edi, dword [0x60010238]
sub edi, 4
cmp edi, dword [0x6001023c]
jb 0x600055ab
mov eax, dword [edi]
test eax, eax
je 0x600055a0
call eax
sub edi, 4
cmp edi, dword [0x6001023c]
jae 0x60005598
push 0x6000b01c
push 0x6000b014
call fcn.60005620
add esp, 8
push 0x6000b024
push 0x6000b020
call fcn.60005620
add esp, 8
test ebx, ebx
je 0x600055dc
call fcn.60005610
pop edi
pop esi
pop ebx
ret
mov dword [0x6000b92c], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x60005640
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.60004900
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x6000b930], eax
cmp eax, 0xffffffff
jne 0x6000565a
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.60007310
add esp, 8
mov esi, eax
test esi, esi
je 0x6000569c
push esi
mov eax, dword [0x6000b930]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x6000569c
push esi
call fcn.600056d0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x600056f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x6000b930]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x60005753
push 0x74
push 1
call fcn.60007310
add esp, 8
mov edi, eax
test edi, edi
je 0x60005749
push edi
mov eax, dword [0x6000b930]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x60005749
push edi
call fcn.600056d0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x60005753
push 0x10
call fcn.600048c0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x60005760
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x6000b930], 0xffffffff
push esi
je 0x600057ff
mov esi, dword [esp + 8]
test esi, esi
jne 0x60005788
mov eax, dword [0x6000b930]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x600057f1
mov eax, dword [esi + 0x24]
test eax, eax
je 0x60005798
push eax
call fcn.60004b10
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x600057a8
push eax
call fcn.60004b10
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x600057b8
push eax
call fcn.60004b10
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x600057c8
push eax
call fcn.60004b10
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x600057d8
push eax
call fcn.60004b10
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x600057e8
push eax
call fcn.60004b10
add esp, 4
push esi
call fcn.60004b10
add esp, 4
push 0
mov eax, dword [0x6000b930]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x60006150
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x6000bb7c], ebx
jne 0x6000619f
call esi
cmp eax, ebx
mov edi, eax
je 0x6000617d
mov dword [0x6000bb7c], 1
jmp 0x6000619f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x60006195
mov dword [0x6000bb7c], 2
jmp 0x6000619f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x6000bb7c], 1
jne 0x6000624e
test edi, edi
jne 0x600061c2
call esi
mov edi, eax
test edi, edi
jne 0x600061c2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x600061dc
add esi, 2
cmp word [esi], 0
jne 0x600061ca
add esi, 2
cmp word [esi], 0
jne 0x600061ca
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x6000623d
push ebp
call fcn.60006530
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x6000623d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x6000622c
push ebx
call fcn.60004b10
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x6000bb7c], 2
jne 0x600062d2
test ebx, ebx
jne 0x60006271
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x60006271
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x60006286
inc ebp
cmp byte [ebp], 0
jne 0x60006278
inc ebp
cmp byte [ebp], 0
jne 0x60006278
sub ebp, ebx
inc ebp
push ebp
call fcn.60006530
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x600062ab
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x60006330
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x6000bb80
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x60006357
add eax, 8
inc ecx
cmp eax, 0x6000bc10
jb 0x60006348
cmp dword [ecx*8 + 0x6000bb80], edx
lea ebx, [ecx*8]
jne 0x6000651b
cmp dword [0x6000b520], 1
je 0x600064d7
cmp dword [0x6000b520], 0
jne 0x6000638e
cmp dword [0x6000b524], 1
je 0x600064d7
cmp edx, 0xfc
je 0x6000651b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x600063cb
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x6000640f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x6000a348
push ebp
call fcn.60008360
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x6000a328
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x6000bb84]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.60008520
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x60010130], 0
je 0x600064ed
mov eax, dword [0x60010130]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x600064f7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x6000bb84]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x60007110
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
push ebp
xor edi, edi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], edi
cmp ebp, edi
jne 0x60007138
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x42c]
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x60010130
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ebx, dword [esp + 0x18]
shl eax, 2
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
mov dword [esp + 0x1c], ecx
test byte [eax + ecx + 4], 0x20
je 0x60007179
push 2
push 0
push edx
call fcn.60004ef0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x60007215
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x6000724e
lea esi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x600071dc
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x600071ca
mov byte [esi], 0xd
inc edi
inc esi
mov byte [esi], al
inc esi
mov eax, esi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x600071b1
lea eax, [esp + 0x24]
push 0
sub esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push esi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x60007244
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, esi
jge 0x6000719c
jmp 0x6000724e
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x60007244
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x6000724e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x600072fa
cmp dword [esp + 0x10], 0
je 0x600072aa
cmp dword [esp + 0x10], 5
jne 0x6000728d
call fcn.60004ed0
mov dword [eax], 9
call fcn.60004ee0
mov ecx, dword [esp + 0x10]
pop ebp
pop edi
mov dword [eax], ecx
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.60004e50
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x600072d4
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x600072d4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.60004ed0
mov dword [eax], 0x1c
call fcn.60004ee0
pop ebp
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, edi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x60008860
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x6000d094]
push esi
test eax, eax
push edi
push ebp
jne 0x600088a8
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 1
push 0
call esi
test eax, eax
je 0x60008888
mov eax, 1
jmp 0x600088ae
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x600088a1
mov eax, 2
jmp 0x600088ae
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [0x6000d094], eax
cmp eax, 1
jne 0x600088d3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x6000d094], eax
cmp eax, 2
jne 0x60008961
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x600088ef
mov edi, dword [0x6000b8e0]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ebp, eax
test ebp, ebp
jne 0x60008910
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push ebp
call fcn.60006530
add esp, 4
mov esi, eax
test esi, esi
jne 0x60008926
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x60008956
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x60008966
push 0
push 0
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jne 0x6000897e
push esi
call fcn.60004b10
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
je 0x60008956
push esi
call fcn.60004b10
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret