joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101e0ff
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x1036a44]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x6c]
push eax
push 1
push 0
push 0x10025a8
push 0x80000002
mov dword [ebp - 0x70], 0x64
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101e18d
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push esi
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x6c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x101e18d
cmp dword [ebp - 0x74], 1
jne 0x101e18d
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x101e18d
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, 1
jmp 0x101e18f
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0102e95a
leave
ret 8

Function at 0x101e35d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 4
xor ebx, ebx
cmp edi, ebx
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
je 0x101e479
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x101e479
mov dword [edi], ebx
mov dword [eax], ebx
lea eax, [ebp + 8]
push eax
push 0x20019
push ebx
push 0x1002750
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x101e461
cmp eax, ebx
je 0x101e3cc
jle 0x101e47e
and eax, 0xffff
or eax, 0x80070000
jmp 0x101e47e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x1002728
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, ebx
je 0x101e3fa
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jmp 0x101e43b
cmp dword [ebp - 4], 4
jne 0x101e46e
cmp dword [ebp - 8], 4
jne 0x101e46e
mov eax, dword [ebp - 0xc]
cmp eax, ebx
mov dword [edi], eax
je 0x101e46e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x1002700
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x101e44d
mov dword [edi], ebx
jle 0x101e449
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x101e47e
cmp dword [ebp - 4], 4
jne 0x101e465
cmp dword [ebp - 8], 4
jne 0x101e465
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x101e47e
mov dword [edi], ebx
mov eax, 0x80004005
jmp 0x101e47e
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x101e467
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x101e4a2
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x10027e0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x101e4cc
xor eax, eax
leave
ret
test eax, eax
je 0x101e4de
jle 0x101e511
and eax, 0xffff
or eax, 0x80070000
leave
ret
push esi
push 0x10027bc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x101e50e
jle 0x101e50a
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x101e510
xor eax, eax
pop esi
leave
ret

Function at 0x101e518
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1036a44]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0x100289c
mov dword [ebp - 0x18], 0xa
call fcn.0101e0ff
test al, al
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
je 0x101e56a
push 0x1002890
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x101e5db
push 0x1002884
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x101e5d7
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push 0x1002854
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101e5db
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x1002848
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x101e5db
cmp dword [ebp - 0x1c], 1
jne 0x101e5db
push 0x100283c
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x101e5d7
push 0x1002830
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
jne 0x101e5db
mov al, 1
jmp 0x101e5dd
xor al, al
mov ecx, dword [ebp - 4]
pop esi
call fcn.0102e95a
leave
ret
Function at 0x101e9fe
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x1036a44]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push esi
xor esi, esi
cmp ecx, 0x2000
mov dword [ebp - 0x290], esi
je 0x101ea54
cmp ecx, 0x4000
jne 0x101eb44
add eax, 0x14
cmp eax, esi
je 0x101eb44
push eax
mov ecx, 0x1036b40
mov word [eax + 2], 0x3f
call fcn.0101e856
jmp 0x101eb44
push edi
lea edi, [eax + 0x14]
cmp edi, esi
je 0x101eb43
lea eax, [ebp - 0x28c]
push eax
push esi
push edi
mov word [edi + 2], 0x3f
call fcn.0101ee58
test eax, eax
jl 0x101eb43
push ebx
mov ebx, dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
push 0x202
lea eax, [ebp - 0x288]
push eax
push esi
push esi
push 0x4d0008
lea eax, [ebp - 0x298]
push eax
push esi
push esi
push esi
push dword [ebp - 0x28c]
call ebx
test eax, eax
jge 0x101eabd
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x101eb42
movzx eax, word [ebp - 0x288]
push 0xc
shr eax, 1
mov word [ebp + eax*2 - 0x286], si
lea eax, [ebp - 0x2a4]
push eax
push esi
push esi
push 0x2d1080
lea eax, [ebp - 0x298]
push eax
push esi
push esi
push esi
push dword [ebp - 0x28c]
call ebx
test eax, eax
jl 0x101eb1d
push dword [ebp - 0x29c]
lea eax, [ebp - 0x84]
push dword [ebp - 0x2a0]
push 0x10028b8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea esi, [ebp - 0x84]
jmp 0x101eb23
mov esi, dword [ebp - 0x290]
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
lea eax, [ebp - 0x286]
push eax
push edi
mov ecx, 0x1036b40
call fcn.0101e900
pop ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.0102e95a
leave
ret 4
Function at 0x101eb56
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x10008
call fcn.0102ec00
mov eax, dword [0x1036a44]
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov byte [ebp - 0x10004], 0
mov ecx, 0x3fff
lea edi, [ebp - 0x10003]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
push edi
lea esi, [ebp - 0x10004]
push 0x10000
mov eax, esi
push eax
push 0x12
mov dword [ebp - 0x10008], edi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jl 0x101ec85
cmp word [ebp - 0xfff4], di
je 0x101ec85
cmp dword [ebp - 0xfff0], edi
je 0x101ec85
mov edi, dword [sym.imp.msvcrt.dll__wcsupr]
push ebx
push 0x3a
push dword [esi + 0x14]
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x101ec02
cmp eax, dword [esi + 0x14]
je 0x101ebeb
dec eax
dec eax
test eax, eax
je 0x101ec02
movzx eax, word [eax]
cmp ax, 0x41
jb 0x101ec02
cmp ax, 0x5a
ja 0x101ec02
mov ebx, eax
jmp 0x101ec49
push 0x1002918
push dword [esi + 0x14]
call edi
mov ebx, dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x101ec6f
push 0x10028fc
push dword [esi + 0x14]
call edi
pop ecx
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x101ec6f
and word [eax], 0
push dword [esi + 0x14]
mov ecx, dword [0x1036b0c]
call fcn.01013d51
mov ebx, eax
test bx, bx
je 0x101ec6f
push 8
call fcn.01003305
test eax, eax
je 0x101ec6f
mov ecx, dword [ebp - 0x10008]
test ecx, ecx
mov dword [ebp - 0x10008], eax
je 0x101ec68
mov dword [eax], ecx
jmp 0x101ec6b
and dword [eax], 0
mov word [eax + 4], bx
mov eax, dword [esi]
test eax, eax
je 0x101ec7c
add esi, eax
jmp 0x101ebcf
mov eax, dword [ebp - 0x10008]
pop ebx
jmp 0x101ec87
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0102e95a
leave
ret
Function at 0x101ed43
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1036c40], ebx
push esi
mov byte [ebp - 1], bl
jne 0x101ee01
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push 0x1002948
push 0x80000002
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101edeb
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
mov edi, 0x1002928
push edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x101edea
cmp dword [ebp - 0x10], 1
jne 0x101edea
cmp dword [ebp - 0xc], ebx
je 0x101edea
push dword [ebp - 0xc]
call fcn.01003305
cmp eax, ebx
mov dword [0x1036c40], eax
je 0x101edea
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
cmp eax, ebx
je 0x101edea
push dword [0x1036c40]
call fcn.01003336
mov dword [0x1036c40], ebx
pop edi
cmp dword [ebp - 8], ebx
je 0x101edf9
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x1036c40], ebx
je 0x101ee4a
push 0x208
call fcn.01003305
mov esi, eax
cmp esi, ebx
je 0x101ee1d
push esi
push dword [0x1036c40]
call fcn.0101f2ec
push dword [0x1036c40]
push dword [ebp + 8]
call fcn.0101e05d
test eax, eax
je 0x101ee3c
push esi
push dword [ebp + 8]
call fcn.0101e05d
test eax, eax
jne 0x101ee40
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x101ee4a
push esi
call fcn.01003336
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 4
Function at 0x1023902
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1036a44]
push esi
push dword [0x1036cbc]
xor esi, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], esi
call fcn.01012bc8
push dword [0x1036cb8]
call fcn.01012bc8
mov eax, dword [0x1036cc8]
cmp eax, esi
je 0x102394a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1036cc8], esi
mov eax, dword [0x1036cd4]
cmp eax, esi
mov byte [0x1036cb4], 0
je 0x1023acc
cmp dword [0x1036cc0], esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x1001b60
je 0x1023a78
and dword [ebp - 0x20c], 0
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x214]
push ecx
call dword [eax + 0x14]
test eax, eax
je 0x10239c5
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x6b
push dword [0x1036b20]
call esi
push 0x8007000e
lea eax, [ebp - 0x204]
push eax
push 0x1002398
jmp 0x1023abd
xor eax, eax
cmp dword [ebp - 0x20c], eax
je 0x1023a15
mov dword [ebp - 0x208], eax
jbe 0x1023a15
mov dword [ebp - 0x210], eax
jmp 0x10239e5
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x214]
push dword [eax + ecx + 4]
push dword [eax + ecx]
mov eax, dword [0x1036cd4]
call dword [eax + 0xc]
inc dword [ebp - 0x208]
mov eax, dword [ebp - 0x208]
add dword [ebp - 0x210], 0x40
cmp eax, dword [ebp - 0x20c]
jb 0x10239df
push 0
push dword [0x1036cc0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x1023a60
call edi
push 0x100
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x204]
push eax
push 0x6b
push dword [0x1036b20]
call esi
push dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push eax
push ebx
push 0xc1000002
call fcn.010152d4
add esp, 0x10
push dword [0x1036cc0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x1036cc0], 0
mov eax, dword [0x1036cd4]
test eax, eax
je 0x1023a8a
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [0x1036cd4], 0
pop ecx
push dword [0x1036cd0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x1023aca
call edi
push 0x100
mov edi, eax
lea eax, [ebp - 0x204]
push eax
push 0x6b
push dword [0x1036b20]
call esi
push edi
lea eax, [ebp - 0x204]
push eax
push ebx
push 0xc1000002
call fcn.010152d4
add esp, 0x10
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0102e95a
leave
ret
Function at 0x1024bdc
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
push edi
call fcn.01028373
mov edi, eax
xor esi, esi
cmp edi, esi
jl 0x1024c55
call fcn.0102844a
mov edi, eax
cmp edi, esi
jl 0x1024c55
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [0x1036cc8], eax
jne 0x1024c18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xc10007cf
jmp 0x1024c55
push 0x1036cc4
push esi
push esi
push 0x1024b06
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x1036cc0], eax
je 0x1024c0b
push 0xffffffffffffffff
push dword [0x1036cc8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x1036ccc]
cmp eax, esi
je 0x1024c50
mov edi, eax
jmp 0x1024c55
call fcn.01024a43
mov eax, dword [0x1036cc8]
cmp eax, esi
je 0x1024c6b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1036cc8], esi
mov eax, edi
pop edi
pop esi
ret
Function at 0x102f5be
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x80
push 3
push 0
push 7
push 0xc0000000
push 0x10030ec
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x102f5ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x102f5fb
mov eax, dword [ebp + 8]
and dword [eax], 0
xor eax, eax
inc eax
jmp 0x102f60e
xor eax, eax
jmp 0x102f60e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
mov dword [ecx], eax
pop ebp
ret 4
Function at 0x401954
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403757
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
mov eax, dword [ebp + 0xc]
and eax, 0xff
test eax, eax
je 0x401a36
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x40
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0xb8]
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xc4]
push ecx
push str.Error__
lea edx, [ebp - 0xbc]
push edx
call sub.MFC42u.DLL_operator
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xcc]
call fcn.004015b0
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call sub.MFC42u.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8]
call sub.MFC42u.DLL_CString::CString
jmp 0x401a85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xb4], eax
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_failed:_GetLastError_returned__u_n
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push str.Error
lea edx, [ebp - 0xb0]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x402f8c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x452020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403024
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403004
xor eax, eax
push ebp
push 0x402ffd
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 0x403040
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 0x403004
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x452020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x452020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403cd8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45404c], 0
je 0x403d39
cmp word [0x454220], 0xd7b2
jne 0x403d01
cmp dword [0x454228], 0
jbe 0x403d01
mov eax, 0x45421c
call dword [0x454238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45206c
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 0x403d60
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x452030], 0
jne 0x403d55
push 0
push 0x452064
push 0x45206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405c30
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 0x405c96
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.004040c4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b50
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405c80
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c9d
lea eax, [ebp - 0x10]
call fcn.00403e54
ret

Function at 0x40abe0
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 0x40ac19
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f44
jmp 0x40ac22
mov eax, ebx
mov edx, esi
call fcn.00403ea8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ac2c
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 0x40ac4d
mov al, byte [esp]
jmp 0x40ac4f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b2d4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b14c
mov eax, dword [0x453080]
cmp byte [eax], 0
je 0x40b350
mov eax, dword [0x452e94]
call fcn.004029bc
call fcn.00402854
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.00408420
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 0x40b398
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b386
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x452e40]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x454668]
call fcn.00405144
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 0x40bc34
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 0x40bd0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403eec
lea eax, [ebp - 8]
call fcn.00404364
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404314
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bcf4
mov eax, ebx
call fcn.004026ec
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bced
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.00404314
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bcd7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bd1c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bcd7
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 0x40bcf4
mov eax, dword [ebp - 0x10]
call fcn.0040270c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bd11
lea eax, [ebp - 8]
call fcn.00403e54
ret

Function at 0x40c188
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 0x40c1ec
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.004040c4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407f90
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1f3
lea eax, [ebp - 0xc]
call fcn.00403e54
ret

Function at 0x41d558
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x454888
cmp dword [edi], 0
jne 0x41d5d4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x454884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4523fc
mov ecx, 2
call fcn.004028e8
mov edx, 0x41d530
lea eax, [esi + 5]
call fcn.0041d550
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041d550
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41d5a9
mov dword [0x454884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41e7e8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41e7ee
ret
Function at 0x420c30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x420c81
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x420c68
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x420c58
jmp 0x420c81
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x420c69
pop ebx
mov esp, ebp
pop ebp
ret