joyce8/EMBER2024-capa huggingface dataset:
Function at 0x519ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x5590f8
mov dword [ebp - 4], ecx
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x519de6
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push ebx
call edi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebx
mov esi, eax
call edi
add esp, 0x1c
cmp esi, 0x1a8
jle 0x519ddc
lea edi, [esi + 1]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp + 8], esi
je 0x519ddc
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push 1
push 0x1a8
push esi
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
je 0x519dd3
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 0x1a8
push esi
call fcn.00519a00
test eax, eax
je 0x519dd3
lea ecx, [ebp - 0x10c]
test ecx, ecx
jne 0x519d80
xor edi, edi
jmp 0x519dbc
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0051d1f0
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push edi
dec ecx
push 0x5394a4
push ecx
push edx
call fcn.0042dc40
add esp, 0x10
push esi
call fcn.0051d19a
add esp, 4
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea esp, [ebp - 0x118]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x519e00
Capabilities:
Check if file exists
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x218
push ebx
push esi
mov ebx, ecx
push edi
xor esi, esi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
push str.ie8ver.dll
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x22c]
lea ecx, [esp + 0x1c]
push eax
push 0x53b058
push 0x104
push ecx
mov dword [esp + 0x24], esi
call fcn.0042dbd0
add esp, 0x14
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x519f47
lea eax, [esp + 0x18]
push eax
call fcn.004adab0
add esp, 4
test eax, eax
je 0x519f47
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
mov dword [esp + 0xc], edi
je 0x519f47
push ebp
push 0x56ca7c
push str.IE8VER.INI
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
cmp ebp, esi
je 0x519f2f
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push ebp
push edi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test esi, esi
mov ebp, eax
je 0x519f2f
test ebp, ebp
je 0x519f2f
lea esi, [ebp + 1]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebx], edi
je 0x519f2b
mov ecx, esi
xor eax, eax
mov edx, ecx
mov esi, dword [esp + 0x18]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x1f21bc
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov edi, dword [ebx]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
push ecx
call fcn.0041e180
mov edx, dword [ebx]
lea esi, [ebx + 4]
push edx
push esi
call fcn.00495840
mov eax, dword [esi]
add esp, 0x14
test eax, eax
je 0x519f2b
mov dword [esp + 0x14], 1
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x218
ret 4
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x218
ret 4
Function at 0x519f60
Capabilities:
Get file size

Disassembly:
sub esp, 0x624
xor eax, eax
push ebx
mov ebx, ecx
push ebp
push esi
mov ecx, dword [ebx + 4]
push edi
test ecx, ecx
je 0x51a0f2
mov ebp, dword [esp + 0x63c]
mov ecx, 0x82
lea edi, [esp + 0x12]
mov word [esp + 0x10], ax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x638]
push ebp
push eax
push 0x53b058
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.0042dbd0
add esp, 0x14
lea edx, [esp + 0x10]
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocStringLen
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x51a0f0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x51a0f0
cmp edi, 0xffffffff
je 0x51a0f0
mov eax, dword [ebx + 4]
push 0
push 0x538b44
push ebp
push eax
call fcn.004967c0
add esp, 0x10
cmp edi, eax
jne 0x51a0f0
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x42a]
mov word [esp + 0x428], 0
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], ax
push 0x104
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x644]
test eax, eax
je 0x51a08c
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x220]
push ecx
push str.head
push ebp
push edx
call fcn.004965d0
add esp, 0x14
lea eax, [esp + 0x428]
lea ecx, [esp + 0x10]
push 0x104
push eax
push ecx
mov ecx, ebx
call fcn.00519ca0
jmp 0x51a0bf
mov eax, dword [ebx + 4]
lea edx, [esp + 0x220]
push edx
push 0x56ca9c
push ebp
push eax
call fcn.004965d0
add esp, 0x14
lea ecx, [esp + 0x428]
lea edx, [esp + 0x10]
push 0x104
push ecx
push edx
mov ecx, ebx
call fcn.00519b40
lea eax, [esp + 0x21c]
push 0x104
lea ecx, [esp + 0x42c]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x51a0f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x624
ret 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x624
ret 0xc
Function at 0x51c218
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52af50
push 0x51d25e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x51c29e
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x51c276
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x51c2a4
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x51c26e
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x51c26e
mov al, 1
jmp 0x51c270
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x51c303
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x59be78]
test esi, esi
je 0x51c327
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
jmp 0x51c30b
pop esi
pop ecx
ret

Function at 0x51c32a
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x59be84], eax
je 0x51c340
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x59be94]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x51c38d
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x51c37e
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x51c37e
push eax
call fcn.0051c3f4
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.0051d19a
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x51c34f
mov dword [0x59be94], ebx
call fcn.0051c3cd
mov esi, dword [0x59be90]
cmp esi, ebx
je 0x51c3ba
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.0051d19a
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x51c3a2
pop edi
mov dword [0x59be90], ebx
mov dword [0x59be84], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x51c677
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x59be88]
push esi
test eax, eax
push edi
jne 0x51c6e1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x51c6df
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
jne 0x51c6a3
push 8
pop edi
jmp 0x51c6be
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x51c6cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.0051d19a
pop ecx
and dword [0x59be8c], 0
mov dword [0x59be88], edi
mov eax, edi
jmp 0x51c6e1
mov dword [esi + 4], edi
mov eax, dword [0x59be90]
mov dword [esi], eax
mov dword [0x59be90], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x51c99e
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
mov ebx, 0x10000
jbe 0x51c9c2
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x51c9c5
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x51c9d8
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x51c9df
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x59be7c]
mov ecx, dword [0x59be78]
test eax, eax
jne 0x51c9f9
test ecx, ecx
je 0x51ca0e
mov eax, ecx
mov dword [0x59be7c], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x51ca0e
cmp edx, dword [ebp + 8]
jb 0x51ca0e
cmp edx, dword [ebp - 4]
jbe 0x51cb67
mov eax, ecx
test ecx, ecx
mov dword [0x59be7c], eax
je 0x51ca3e
test eax, eax
je 0x51ca32
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x51ca32
cmp ecx, dword [ebp + 8]
jb 0x51ca32
cmp ecx, dword [ebp - 4]
jbe 0x51cb67
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x59be7c], eax
jne 0x51ca1d
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x51caa6
cmp edi, 0x70000000
jb 0x51ca63
cmp edi, 0x80000000
ja 0x51ca63
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x51caa6
cmp dword [ebp - 0x10], ebx
jne 0x51ca7e
cmp dword [ebp - 0x14], ebx
jae 0x51ca8e
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x51ca4e
jmp 0x51caa6
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x59be7c], eax
jne 0x51cb1d
cmp esi, dword [ebp - 4]
jae 0x51cb8e
cmp esi, 0x70000000
jb 0x51cac4
cmp esi, 0x80000000
ja 0x51cac4
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x51cb8e
cmp dword [ebp - 0x10], ebx
jne 0x51cb12
cmp dword [ebp - 0x14], ebx
jb 0x51cb12
mov ecx, esi
and ecx, 0xffff
je 0x51cafa
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x14], eax
add dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x59be7c], eax
jne 0x51cb1d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x51caa6
mov dword [eax], 0x52727464
mov eax, dword [0x59be7c]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x59be7c]
mov edx, dword [0x59be78]
mov dword [eax + 4], edx
mov eax, dword [0x59be7c]
mov dword [0x59be78], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x51cb4f
mov eax, dword [0x59be7c]
mov dword [eax + 8], ecx
mov eax, dword [0x59be7c]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x51cb8e
cmp esi, dword [ebp - 4]
ja 0x51cb8e
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x51cb90
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x51cb95
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52af60
push 0x51d25e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x51cc0a
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x51cc06
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x51cc06
cmp word [eax + 0x14], 0
jne 0x51cbfb
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x51cc0c
mov eax, ecx
jmp 0x51cbf5
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x51cc1b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x59be84], eax
je 0x51cc3a
mov eax, 0x10dd
jmp 0x51cd10
mov eax, dword [0x59be88]
test eax, eax
jne 0x51cd10
mov edi, dword [ebp + 8]
test edi, edi
jne 0x51cc56
push 6
pop eax
jmp 0x51cd10
cmp dword [edi], 0
jne 0x51cc68
push 6
pop eax
mov dword [0x59be88], eax
jmp 0x51cd0a
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
jne 0x51cc7b
push 8
pop edi
jmp 0x51ccf4
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.0051c1b0
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x51cce9
cmp ecx, 0x17
ja 0x51cce9
cmp dword [edi + 0x1c], eax
jne 0x51cce9
lea eax, [ebp - 4]
mov dword [ebp - 4], edx
push eax
push 0x40
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x51ccbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x51ccf4
mov eax, dword [ebp + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x59be94]
mov dword [esi], eax
mov dword [0x59be94], esi
xor eax, eax
jmp 0x51cd10
cmp dword [0x59be80], edx
push 9
pop edi
jne 0x51ccfa
mov dword [0x59be88], edi
test esi, esi
je 0x51cd05
push esi
call fcn.0051d19a
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x59be8c], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10002dc4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x10002e01
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x10002e21
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.10004ef0
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x10003070
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.10004c80
test esi, esi
jne 0x100030a7
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.10004d70
jmp 0x100030c8
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.10002f0c
mov dword [esp], eax
test esi, esi
je 0x100030c8
cmp dword [ebx], 0
je 0x100030c8
dec esi
jmp 0x100030af
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x10003cdc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x100e3020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x10003d74
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x10003d54
xor eax, eax
push ebp
push 0x10003d4d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x10003d90
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10003d54
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x100e3020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x100e3020], ax
mov esp, ebp
pop ebp
ret

Function at 0x10004a78
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x100ea04c], 0
je 0x10004ad9
cmp word [0x100ea220], 0xd7b2
jne 0x10004aa1
cmp dword [0x100ea228], 0
jbe 0x10004aa1
mov eax, 0x100ea21c
call dword [0x100ea238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x100e3070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x10004b00
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x100e3030], 0
jne 0x10004af5
push 0
push 0x100e3068
push 0x100e3070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x10004c34
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.10002b8c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x100ea04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x10004bfc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x10006ec4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x10006f2a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.10004ef0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.100036b0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x10006f14
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10006f31
lea eax, [ebp - 0x10]
call fcn.10004c80
ret

Function at 0x10009e40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.10005140
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x10009e59
test al, 0x10
jne 0x10009e5d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x10009ff4
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.10005140
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x1000a008
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.10005140
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x1000a02a
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x1000cee0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x1000cf19
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.10004d70
jmp 0x1000cf22
mov eax, ebx
mov edx, esi
call fcn.10004cd4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1000cf2c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x1000cf4d
mov al, byte [esp]
jmp 0x1000cf4f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x1000d5e4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x1000d44c
mov eax, dword [0x100e9a08]
cmp byte [eax], 0
je 0x1000d660
mov eax, dword [0x100e95d4]
call fcn.100034d4
call fcn.10002d18
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.1000a540
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x1000d6a8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x1000d696
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x100e9528]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x100ea668]
call fcn.100062f0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x1000df7c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x1000e052
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.10004d18
lea eax, [ebp - 8]
call fcn.10005190
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.10005140
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x1000e03c
mov eax, ebx
call fcn.10002b8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x1000e035
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.10005140
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x1000e01f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1000e064
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x1000e01f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1000e03c
mov eax, dword [ebp - 0x10]
call fcn.10002bbc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1000e059
lea eax, [ebp - 8]
call fcn.10004c80
ret

Function at 0x1000e7a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x1000e808
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.10004ef0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.10009988
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1000e80f
lea eax, [ebp - 0xc]
call fcn.10004c80
ret