joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018000
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push 0
push 0
push 0
push fcn.1000a380
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 1
xor esi, esi
mov eax, dword [0x100446c8]
cdq
sub eax, edx
sar eax, 1
push eax
mov dword [0x1004537c], ebx
mov dword [0x10045344], ebx
call edi
mov eax, 0x10624dd3
imul dword [0x100446b4]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add esi, ebx
add eax, edx
cmp esi, eax
jne 0x10018025
push 0
push 0
push 0
push fcn.1000a380
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x10018023

Function at 0x10018150
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100323db
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x1003e6c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x10044644], 1
jne 0x10018220
push 8
push str.GameGuard_Log.txt
lea eax, [ebp - 0xb8]
push eax
call fcn.10001fe0
lea ecx, [ebp - 0xb8]
push str._nVM_Scan:
push ecx
mov dword [ebp - 4], 0
call fcn.10003a90
lea edx, [ebp - 0xb8]
push str.Virtual_memory_Value_changed_
push edx
call fcn.10003a90
add esp, 0x10
lea ecx, [ebp - 0xb4]
call fcn.10002fb0
test eax, eax
jne 0x100181fe
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0xac]
lea ecx, [ebp + ecx - 0xb8]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x100181f6
or eax, 4
push 0
push eax
call fcn.10001570
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.10002140
lea ecx, [ebp - 0x58]
push ecx
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.10018604
add esp, 4
mov eax, dword [0x10044648]
push 0
cmp eax, 1
jne 0x10018252
push 0
push 0
push 0x10018120
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 2
jne 0x10018262
push 0
push 0
push 0x100180f0
jmp 0x10018235
cmp eax, 3
jne 0x10018272
push 0
push 0
push 0x10012f30
jmp 0x10018235
cmp eax, 4
jne 0x100182a3
push 0
push 0
push 0x10017bf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x200010
push str.VM_Scan
push str.Virtual_memory_Value_changed_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1001824a
jmp 0x1001824c

Function at 0x10019013
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003e6c4]
jne 0x1001901d
repz ret
jmp fcn.1001ed0d
Function at 0x10023dca
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1003e6c4]
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.100206d8
and dword [ebp - 0x14], 0
cmp dword [0x100443e8], 0
mov dword [ebp - 0x18], eax
jne 0x10023e7d
push 0x10035088
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10023f25
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10023f25
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100443e8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100443ec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100443f0], eax
call edi
push eax
call esi
mov dword [0x100443f8], eax
test eax, eax
je 0x10023e7d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100443f4], eax
mov eax, dword [0x100443f4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10023ed6
cmp dword [0x100443f8], ecx
je 0x10023ed6
push eax
call esi
push dword [0x100443f8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10023ed6
test ebx, ebx
je 0x10023ed6
call edi
test eax, eax
je 0x10023ecd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10023ecd
test byte [ebp - 8], 1
jne 0x10023ed6
or dword [ebp + 0x10], 0x200000
jmp 0x10023f09
mov eax, dword [0x100443ec]
cmp eax, dword [ebp - 0x18]
je 0x10023f09
push eax
call esi
test eax, eax
je 0x10023f09
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10023f09
mov eax, dword [0x100443f0]
cmp eax, dword [ebp - 0x18]
je 0x10023f09
push eax
call esi
test eax, eax
je 0x10023f09
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100443e8]
call esi
test eax, eax
je 0x10023f25
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10023f27
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10019013
leave
ret
Function at 0x401460
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
and esp, 0xfffffff0
sub esp, 0x50
call sym.___main
mov dword [esp], 4
call sym._malloc
mov dword [esp + 0x4c], eax
mov dword [esp], 4
call sym._malloc
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
mov dword [eax], 0
mov eax, dword [esp + 0x48]
mov dword [eax], 0
lea eax, [esp + 0x15]
mov ecx, 0x32
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0
mov dword [esp], str.Seleccione_una_opcion:_c__ingreso_un_cliente_b__Balance
call sym._puts
mov dword [esp], str.Presione_una_tecla_cualquiera_para_mostrarlos
call sym._puts
mov dword [esp], str.Presione_s_para_Salir
call sym._puts
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], eax
call sym._fflush
lea eax, [esp + 0x47]
mov dword [esp + 4], eax
mov dword [esp], 0x4060e4
call sym._scanf
movzx eax, byte [esp + 0x47]
movsx eax, al
cmp eax, 0x62
je 0x40154a
cmp eax, 0x63
jne 0x4015c2
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dbg.Carga
jmp 0x4015cf
mov dword [esp], str.Ingrese_el_nombre_del_cliente:
call sym._puts
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], eax
call sym._fflush
lea eax, [esp + 0x15]
mov dword [esp + 4], eax
mov dword [esp], 0x406107
call sym._scanf
mov dword [esp], str.Ingrese_el_mes_del_cliente:
call sym._puts
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], eax
call sym._fflush
lea eax, [esp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0x406126
call sym._scanf
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
lea eax, [esp + 0x15]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dbg.Balance
jmp 0x4015cf
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dbg.Mostrar
nop
movzx eax, byte [esp + 0x47]
cmp al, 0x73
jne 0x4014d6
mov dword [esp], str.pause
call sym._system
mov eax, 0
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x10003b73
Capabilities:
Terminate process

Disassembly:
push 0
push str.Unable_to_run_Blitz_Basic_module
push dword [esp + 0xc]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10006515
Capabilities:
Set console window title

Disassembly:
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x10006566
push esi
call fcn.10006649
mov esi, eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, esi
call fcn.10001820
push 0x1009431c
push str.CONIN_
call fcn.1002418b
push 0x10094310
push str.CONOUT_
mov dword [0x10094300], eax
call fcn.1002418b
add esp, 0x10
mov dword [0x10094304], eax
mov al, 1
pop esi
ret
xor al, al
ret

Function at 0x10006973
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
call fcn.10023df5
add esp, 0xc
push 0x50000
push str._INTERNAL_ERROR_
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.10024294
jmp 0x100069bc
mov dword [0x100ae534], vtable.BBDebugger.0
ret

Function at 0x10007cc9
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc eax
test cl, 0x10
push 0
pop ecx
setne cl
inc ecx
neg eax
sbb eax, eax
and eax, ecx
ret 4

Function at 0x1000c699
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x78]
push 0xe
push eax
call edi
mov ebp, eax
lea ebx, [ebp + 1]
push ebx
call fcn.1002249e
pop ecx
push eax
push ebx
push 0xd
push dword [esi + 0x78]
mov dword [esp + 0x20], eax
call edi
push 0x10
call fcn.1002249e
test eax, eax
pop ecx
je 0x1000c6e7
push ebp
push dword [esp + 0x14]
mov ecx, eax
call fcn.10009e7e
mov esi, eax
jmp 0x1000c6e9
xor esi, esi
push dword [esp + 0x10]
call fcn.10021fc4
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10017b5a
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
push edi
jne 0x10017be4
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x108], eax
xor eax, eax
push 0x3f
pop ecx
mov dword [ebp - 0x10c], 1
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
mov ecx, dword [0x100b429c]
mov eax, ecx
cdq
mov edi, 0x3e8
mov ebx, edi
idiv ebx
mov dword [ebp - 8], eax
mov eax, ecx
cdq
idiv edi
lea eax, [ebp - 8]
push eax
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push edi
imul edx, edx, 0x3e8
mov dword [ebp - 4], edx
call sub.WSOCK32.dll_select
cmp eax, edi
je 0x10017be4
cmp eax, 1
jne 0x10017be0
push edi
push edi
push dword [esi + 0x20]
call sub.WSOCK32.dll_accept
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10017be8
or dword [esi + 0x1c], 0xffffffff
xor eax, eax
jmp 0x10017c09
push 0x30
call fcn.1002249e
cmp eax, edi
pop ecx
je 0x10017bff
push esi
push ebx
mov ecx, eax
call fcn.1001783e
mov edi, eax
push edi
mov ecx, esi
call fcn.1001db69
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10017f87
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 4]
test eax, eax
push edi
mov edi, 0x100875b4
jne 0x10017f9b
mov eax, edi
push eax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x10017fcd
mov eax, dword [esi + 4]
test eax, eax
jne 0x10017faf
mov eax, edi
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x10017fbe
or eax, 0xffffffff
jmp 0x10017fcd
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x10017fcb
mov eax, dword [eax]
jmp 0x10017fcd
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x1001932c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
push ebx
xor ebx, ebx
cmp dword [0x100b432c], ebx
je 0x1001937d
push 0x104
lea eax, [ebp - 0x174]
push eax
push 0x3f5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x10019384
push 0x50040
push str.DirectPlay_Request
push str.Please_enter_a_name_for_the_new_game
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x10019441
mov al, byte [ebp + 0xb]
push esi
push edi
push ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 0x10], al
call fcn.10004041
lea eax, [ebp - 0x174]
push eax
call fcn.10022f00
pop ecx
push eax
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp - 0x10]
call fcn.100042cb
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1001ac40
add esp, 0xc
push 1
lea ecx, [ebp - 0x10]
call fcn.10004041
push 0x50
pop esi
push esi
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.10022840
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x70], esi
mov esi, 0x1008a0c0
lea edi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
cmp eax, ebx
movsd dword es:[edi], dword [esi]
pop edi
mov dword [ebp - 0x6c], 0xa04c
pop esi
mov dword [ebp - 0x40], 0x100875b4
je 0x10019407
mov dword [ebp - 0x40], eax
mov eax, dword [0x100b432c]
mov ecx, dword [eax]
push 2
lea edx, [ebp - 0x70]
push edx
push eax
call dword [ecx + 0x60]
test eax, eax
jge 0x10019433
push 0x30
push str.DirPlay_Error
push str.Unable_to_create_new_game
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x10019435
mov bl, 1
push 1
lea ecx, [ebp - 0x20]
call fcn.10004041
mov al, bl
pop ebx
leave
ret 4

Function at 0x1001e613
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 0xf
push esi
mov esi, ecx
je 0x1001e684
cmp eax, 0x14
je 0x1001e67f
cmp eax, 0x1c
je 0x1001e642
push dword [ebp + 0x18]
lea ecx, [esi - 0x54]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.1001ba76
jmp 0x1001e6a9
cmp dword [ebp + 0x10], 0
je 0x1001e65f
cmp dword [esi + 0x9c], 3
jne 0x1001e6a7
push 4
add esi, 8
push esi
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
jmp 0x1001e6a7
cmp dword [esi + 0x9c], 3
jne 0x1001e6a7
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push 6
push dword [esi - 0x2c]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1001e6a7
push 1
pop eax
jmp 0x1001e6a9
push dword [esi - 0x2c]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x1001e69c
mov eax, dword [esi - 0x54]
lea ecx, [esi - 0x54]
push 0
call dword [eax + 0x10]
push 0
push dword [esi - 0x2c]
call dword [sym.imp.USER32.dll_ValidateRect]
xor eax, eax
pop esi
pop ebp
ret 0x14
Function at 0x1005b71d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov esi, ecx
xor edi, edi
push str.software_asio
push reloc.WSOCK32.dll_bind
mov dword [ebp - 4], edi
xor ebx, ebx
mov dword [esi + 4], edi
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1005b785
push 0x80
lea ecx, [ebp - 0x84]
mov eax, ebx
push ecx
push eax
push dword [ebp - 4]
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, edi
jne 0x1005b785
push dword [esi]
lea eax, [ebp - 0x84]
push edi
push eax
push dword [ebp - 4]
call fcn.1005b7b7
add esp, 0x10
mov dword [esi], eax
jmp 0x1005b74f
cmp dword [ebp - 4], edi
je 0x1005b793
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
cmp eax, edi
je 0x1005b7a4
inc dword [esi + 4]
mov eax, dword [eax + 0x298]
jmp 0x1005b795
cmp dword [esi + 4], edi
je 0x1005b7b0
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x1005b7b7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
push edi
jne 0x1005b901
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1005b922
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp + 0x14]
push eax
push esi
push str.clsid
push dword [ebp - 4]
mov dword [ebp + 0x14], 1
mov dword [ebp + 8], 0x100
call edi
test eax, eax
jne 0x1005b8f5
push 0x200
lea eax, [ebp - 0x3dc]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.1005b928
add esp, 0xc
test eax, eax
jne 0x1005b8f5
mov ebx, 0x29c
push ebx
call fcn.1002249e
mov esi, eax
test esi, esi
pop ecx
je 0x1005b8f5
push ebx
push 0
push esi
call fcn.10022840
mov eax, dword [ebp + 0x10]
add esp, 0xc
push 0x64
mov dword [esi], eax
lea eax, [ebp - 0x1dc]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x114]
push eax
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x1005b8af
push 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 4]
push eax
call fcn.100224b0
add esp, 0xc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push str.description
push dword [ebp - 4]
mov dword [ebp + 0x14], 1
mov dword [ebp + 8], 0x100
call edi
test eax, eax
jne 0x1005b8e4
lea eax, [ebp - 0x114]
push eax
jmp 0x1005b8e7
push dword [ebp + 0xc]
lea eax, [esi + 0x214]
push eax
call fcn.10023b70
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
jmp 0x1005b922
push dword [esi + 0x298]
mov eax, dword [ebp + 0x10]
lea edi, [esi + 0x298]
inc eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1005b7b7
add esp, 0x10
mov dword [edi], eax
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x401673
Capabilities:
Get common file path

Disassembly:
push 0x14
push 0x44cb90
call fcn.0041c770
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov ecx, 0x1002
call fcn.0040153a
mov ebx, eax
mov dword [ebp - 0x1c], ebx
push ebx
push 0x7ff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x401764
xor ecx, ecx
mov word [ebx + eax*2], cx
push 0x45841c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push eax
push edi
push str._1_X__2_X__3_X_.tmp
call fcn.0040156f
add esp, 0x10
mov esi, eax
mov dword [ebp - 0x20], esi
mov ecx, esi
call fcn.00401607
mov edx, dword [ebp - 0x24]
lea ecx, [edx + 2]
add ecx, eax
mov edi, 0x800
cmp ecx, edi
jb 0x401719
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x45100c
call fcn.00422620
add esp, 0xc
xor eax, eax
call fcn.0041c7b6
ret
movzx eax, word [ebx + edx*2 - 2]
cmp eax, 0x2f
je 0x401735
push 0x5c
pop ecx
cmp eax, ecx
je 0x401735
mov word [ebx + edx*2], cx
xor eax, eax
mov word [ebx + edx*2 + 2], ax
push esi
push edi
push ebx
call fcn.0042290b
or dword [ebp - 0x24], 0xffffffff
lea edx, [ebp - 0x24]
mov ecx, ebx
call fcn.0040161b
mov esi, eax
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x45100c
call fcn.00422620
add esp, 0x18
mov eax, esi
jmp 0x401713
mov dword [ebp - 4], 0xfffffffe
call fcn.00401772
jmp 0x401711

Function at 0x4018b7
Capabilities:
Read file via mapping

Disassembly:
push 0x18
push 0x44cbf0
call fcn.0041c770
mov esi, ecx
mov dword [ebp - 0x28], esi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x1d], bl
mov dword [ebp - 4], ebx
mov ecx, esi
call fcn.0040182d
mov esi, eax
mov edi, edx
cmp edi, ebx
jl 0x401966
jg 0x4018ef
cmp esi, ebx
jbe 0x401966
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x401966
mov ecx, dword [ebp - 0x28]
call fcn.004014c0
mov ecx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x10], ecx
test ecx, ecx
je 0x401966
push ebx
push ebx
push ebx
push 4
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0xc], ecx
test ecx, ecx
je 0x401966
push ebx
push ebx
push ebx
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
test eax, eax
je 0x401966
mov dword [ecx + 4], esi
mov dword [ecx + 8], edi
mov byte [ebp - 0x1d], 1
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x45100c
call fcn.00422620
add esp, 0xc
mov eax, dword [ebp - 0x24]
jmp 0x401974
mov dword [ebp - 4], 0xfffffffe
call fcn.0040197d
xor eax, eax
call fcn.0041c7b6
ret
Function at 0x40393d
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x45100c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x458434], 0
push esi
push edi
mov esi, ecx
jne 0x4039ce
push 0x20a
xor edi, edi
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.00420070
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40398e
xor al, al
jmp 0x4039d8
lea eax, [ebp - 0x210]
push 0x447b7c
push eax
call fcn.00422bc6
pop ecx
pop ecx
test eax, eax
je 0x4039ab
xor ecx, ecx
mov word [eax + 2], cx
push edi
push edi
push edi
push edi
push 0x45842c
push edi
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x40398a
mov byte [0x458434], 1
mov ecx, dword [0x45842c]
mov al, 1
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041b97b
mov esp, ebp
pop ebp
ret

Function at 0x403a6d
Capabilities:
Get user security identifier

Disassembly:
push 0x28
mov eax, 0x439c64
call fcn.00438b18
mov edi, edx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], ecx
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], ebx
push eax
push 0x400
push ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], ebx
call fcn.00404411
mov esi, dword [ebp - 0x34]
test edi, edi
je 0x403b3a
mov eax, dword [ebp - 0x30]
sub eax, esi
mov dword [ebp - 0x14], 0x44
sar eax, 1
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
jne 0x403b37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x403b35
cmp dword [ebp - 0x14], 0x44
ja 0x403b3a
cmp dword [ebp - 0x10], 0x400
jbe 0x403b19
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], esi
push esi
push eax
lea ecx, [ebp - 0x34]
call fcn.00404411
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
setne bl
test esi, esi
je 0x403b51
mov ecx, dword [ebp - 0x2c]
sub ecx, esi
push 2
sar ecx, 1
push ecx
push esi
call fcn.004038f2
add esp, 0xc
mov al, bl
call fcn.00438af2
ret