joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013c90
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x528
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x10013cd8
push 5
push 0x30
push 0x1002da28
push 0x1002d9e0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call sub.SCMsgBox.dll_SCMessageBoxModaless
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x528
ret
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x139]
mov byte [esp + 0x138], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 2
stosb byte es:[edi], al
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10013e1e
lea eax, [esp + 0x10]
push eax
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10013e17
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x138]
push ecx
push edx
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathStripPathA]
lea eax, [esp + 0x138]
push eax
call ebx
lea ecx, [esp + 0x138]
push ecx
mov ecx, esi
call fcn.10013fc0
cmp eax, 1
je 0x10013daf
lea edx, [esp + 0x138]
mov ecx, esi
push edx
call fcn.10013fa0
cmp eax, 1
je 0x10013de3
lea eax, [esp + 0x10]
push eax
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10013e17
lea ecx, [esp + 0x34]
lea edx, [esp + 0x138]
push ecx
push edx
call edi
lea eax, [esp + 0x138]
push eax
call ebx
lea ecx, [esp + 0x138]
push ecx
mov ecx, esi
call fcn.10013fc0
cmp eax, 1
jne 0x10013d5b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
push 0x30
push 0x1002da28
push 0x1002d9e0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call sub.SCMsgBox.dll_SCMessageBoxModaless
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x528
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
push 0x30
push 0x1002da28
push 0x1002d998
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call sub.SCMsgBox.dll_SCMessageBoxModaless
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x528
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x528
ret
Function at 0x10013e30
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x528
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x135]
mov byte [esp + 0x134], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 2
stosb byte es:[edi], al
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10013f60
lea eax, [esp + 0xc]
push eax
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10013e8d
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10013f60
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x30]
push ebx
lea edx, [esp + 0x138]
push ecx
push edx
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathStripPathA]
lea eax, [esp + 0x138]
push eax
call ebx
lea ecx, [esp + 0x138]
push ecx
mov ecx, esi
call fcn.10013fc0
cmp eax, 1
je 0x10013f17
lea edx, [esp + 0x138]
mov ecx, esi
push edx
call fcn.10013fa0
cmp eax, 1
je 0x10013f31
lea eax, [esp + 0x10]
push eax
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10013f58
lea ecx, [esp + 0x34]
lea edx, [esp + 0x138]
push ecx
push edx
call edi
lea eax, [esp + 0x138]
push eax
call ebx
lea ecx, [esp + 0x138]
push ecx
mov ecx, esi
call fcn.10013fc0
cmp eax, 1
jne 0x10013ec7
mov edx, dword [esp + 0x18]
mov ecx, esi
push edx
call fcn.10014020
push 0x30
push 0x1002da28
push 0x1002da84
jmp 0x10013f49
mov eax, dword [esp + 0x18]
mov ecx, esi
push eax
call fcn.10014020
push 0x30
push 0x1002da28
push 0x1002da38
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call sub.SCMsgBox.dll_SCMessageBox
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
pop edi
pop esi
test eax, eax
pop ebp
je 0x10013f8f
push 0x30
push 0x1002da28
push 0x1002da84
push 0
call sub.SCMsgBox.dll_SCMessageBox
add esp, 0x10
push 0
call fcn.100193a3
add esp, 0x528
ret

Function at 0x10014020
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1001406d
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x10014066
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret 4
Function at 0x100145c0
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], 0
mov eax, dword [esi + 4]
test eax, eax
jne 0x100145db
mov eax, 0x100213c4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
mov ebp, eax
push ebp
push str..csv
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10014623
mov eax, dword [esi + 4]
test eax, eax
jne 0x10014600
mov eax, 0x100213c4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x10014617
mov eax, 0x100213c4
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esi + 0x14]
mov ecx, 0x100213c4
test eax, eax
je 0x10014631
mov ecx, eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x1001463d
mov eax, 0x100213c4
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
push ebx
push edi
push str.CTempFile::OpenTempFile___dwShareMode___x___dwDesiredAccess___x_
push 0x10027760
call fcn.1000b440
mov eax, edi
add esp, 0x10
and eax, 2
cmp al, 2
jne 0x10014686
cmp ebx, 0x80000000
jne 0x10014686
push str.CTempFile::OpenTempFile___Except
push 0x10027760
call fcn.1000b440
add esp, 8
mov eax, dword [esi + 0x14]
mov ecx, 0x100213c4
test eax, eax
je 0x10014694
mov ecx, eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x100146a0
mov eax, 0x100213c4
push ecx
push eax
call fcn.10009480
add esp, 8
test eax, eax
jne 0x100146df
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x100146ba
mov esi, 0x100213c4
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
push ebp
push str..csv
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10014707
mov eax, dword [esi + 4]
test eax, eax
jne 0x100146fb
mov eax, 0x100213c4
mov edx, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x10014713
mov eax, 0x100213c4
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push ecx
push edx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x30], eax
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x1001473f
mov ecx, 0x100213c4
push ecx
push eax
push str.CTempFile::OpenTempFile___x___s_
push 0x10027760
call fcn.1000b440
mov eax, dword [esi + 0x30]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
Function at 0x10015030
Capabilities:
Acquire debug privileges

Disassembly:
push esi
mov esi, ecx
xor eax, eax
push str.IsWow64Process
push str.kernel32
mov dword [esi], 0x10022930
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, esi
mov dword [esi + 0x40], eax
call fcn.100157c0
mov ecx, esi
mov dword [esi + 4], eax
call fcn.10015870
mov ecx, esi
mov dword [esi + 8], eax
call fcn.100150f0
push str.SeDebugPrivilege
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.10017920
add esp, 8
mov eax, esi
pop esi
ret
Function at 0x10015f00
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
call fcn.100166d0
cmp eax, 1
jne 0x10015f1a
push str.AHSLIB::Except_Hooked_Process
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
ret
call fcn.10016620
test eax, eax
je 0x10015f3b
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x10015f3b
push 0
call fcn.100161a0
add esp, 4
mov dword [esi + 0x14], 1
pop esi
ret

Function at 0x100161a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10020370
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov al, byte [esp + 3]
push ebx
xor ebx, ebx
push edi
mov byte [esp + 0x28], al
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x84], ebx
cmp eax, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
jne 0x10016227
lea ecx, [esp + 0x38]
call fcn.10015030
lea ecx, [esp + 0x10]
lea edx, [esp + 0x28]
push ecx
push edx
mov byte [esp + 0x8c], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [esp + 0x44]
call fcn.10015100
lea ecx, [esp + 0x38]
mov byte [esp + 0x84], bl
call fcn.100150d0
jmp 0x10016235
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.10016380
add esp, 8
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
cmp edi, eax
je 0x100162d6
push esi
mov edx, edi
mov eax, dword [edx]
push eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x28], ecx
mov edx, dword [edx + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], edx
call fcn.10016780
add esp, 4
cmp eax, 1
je 0x100162c2
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, 0x10036b48
call fcn.10016bf0
mov edx, dword [0x10036b58]
mov eax, dword [edx + 8]
mov esi, dword [eax]
cmp esi, eax
je 0x100162c2
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x804]
mov edx, dword [eax + 0x808]
push ecx
lea ecx, [eax + 0x404]
push edx
mov edx, dword [esp + 0x18]
add eax, 4
push ecx
push eax
push edx
call fcn.100168a0
mov eax, dword [0x10036b58]
mov esi, dword [esi]
add esp, 0x14
cmp esi, dword [eax + 8]
jne 0x1001628d
mov eax, dword [esp + 0x34]
add edi, 0xc
cmp edi, eax
jne 0x10016246
mov edi, dword [esp + 0x30]
pop esi
push edi
call fcn.10014af4
mov ecx, dword [esp + 0x80]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop ebx
add esp, 0x80
ret

Function at 0x10016830
Capabilities:
Parse pe header

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push esi
push edi
mov edi, dword [esp + 0x10]
push 0x40
push edi
call ebx
cmp eax, 1
jne 0x1001684d
pop edi
pop esi
xor eax, eax
pop ebx
ret
cmp word [edi], 0x5a4d
je 0x1001685a
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call ebx
cmp eax, 1
jne 0x10016872
pop edi
pop esi
xor eax, eax
pop ebx
ret
cmp dword [esi], 0x4550
je 0x10016880
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 0x80]
test eax, eax
jne 0x1001688e
pop edi
pop esi
pop ebx
ret
lea ecx, [eax + edi]
pop edi
mov eax, ecx
sub eax, esi
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, ecx
ret
Function at 0x100168a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xb4
push ebx
push esi
push edi
mov edi, dword [esp + 0xc4]
test edi, edi
je 0x10016a41
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x10016a41
mov eax, dword [esp + 0xc8]
test eax, eax
je 0x10016a41
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x10016a41
mov ebx, dword [esp + 0xd4]
test ebx, ebx
je 0x10016a41
mov esi, dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
push eax
call esi
cmp eax, 1
je 0x10016a41
push ebx
call esi
cmp eax, 1
je 0x10016a41
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x3c], 1
jne 0x1001693b
cmp edi, 0x80000000
ja 0x10016a41
push edi
call fcn.10016830
add esp, 4
test eax, eax
je 0x10016a41
mov edx, dword [eax + 0x10]
lea ecx, [eax + 0x10]
test edx, edx
je 0x10016a32
push ebp
mov ebx, ecx
lea ebp, [eax + 0xc]
mov ecx, dword [ebp]
mov eax, edi
add eax, ecx
je 0x10016a20
mov ecx, dword [esp + 0xcc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10016a20
mov esi, dword [ebx]
add esi, edi
cmp dword [esi], 0
je 0x10016a20
mov al, byte [esi]
mov edi, esi
cmp al, 0x68
jne 0x1001699c
lea edi, [esi + 1]
mov edx, dword [edi]
push 4
push edx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
jne 0x100169ae
mov edi, esi
mov eax, dword [esp + 0xd4]
mov ecx, dword [edi]
cmp ecx, eax
je 0x100169c7
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x10016991
jmp 0x10016a19
lea ecx, [esp + 0x14]
push 0x1c
push ecx
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [esp + 0x28]
push edx
push 0x40
push eax
push ecx
call esi
test eax, eax
je 0x10016a19
mov edx, dword [esp + 0xd8]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
mov dword [edi], edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
mov edi, dword [esp + 0xc8]
mov eax, dword [ebx + 0x14]
add ebx, 0x14
add ebp, 0x14
test eax, eax
jne 0x10016960
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xb4
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xb4
ret
Function at 0x10017f50
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov dword [esp + 0x10], ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10018037
mov esi, dword [esp + 0x24]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
mov edi, ebx
je 0x10018022
cmp bl, 0x68
jne 0x10017f99
mov ebx, dword [esp + 0x15]
and ebx, 0xff
test ebx, ebx
je 0x10018022
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
jne 0x10017fb1
mov ebx, edi
push 0x80c
call fcn.1001821f
add esp, 4
test eax, eax
je 0x10017fd5
mov ecx, dword [esp + 0x28]
push ecx
push ebx
push esi
push ebp
mov ecx, eax
call fcn.10017dd0
mov ebx, eax
jmp 0x10017fd7
xor ebx, ebx
mov ebp, dword [esp + 0x10]
push 0xc
mov esi, dword [ebp + 8]
mov edi, dword [esi + 4]
call fcn.1001821f
add esp, 4
mov ecx, esi
test esi, esi
jne 0x10017ff3
mov ecx, eax
mov dword [eax], ecx
mov ecx, edi
test edi, edi
jne 0x10017ffd
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [esi + 4], eax
mov edx, dword [eax + 4]
mov dword [edx], eax
add eax, 8
test eax, eax
je 0x10018011
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
pop edi
inc eax
pop esi
mov dword [ebp + 0xc], eax
pop ebp
pop ebx
add esp, 0xc
ret 0xc
push str.ERROR_:_CHookedFunctionList_AddFunction_FuncPtr_is_NULL
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
push str.ERROR_:_CHookedFunctionList_AddFunction_module_is_NULL
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x40298c
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 0x4029c9
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 0x4029e9
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404810
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x40363c
Capabilities:
Query or enumerate registry value

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

Function at 0x4043a0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48004c], 0
je 0x404401
cmp word [0x480220], 0xd7b2
jne 0x4043c9
cmp dword [0x480228], 0
jbe 0x4043c9
mov eax, 0x48021c
call dword [0x480238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47d090
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 0x404428
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47d030], 0
jne 0x40441d
push 0
push 0x47d088
push 0x47d090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404554
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.004027a4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48004d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40451c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406444
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 0x4064aa
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.00404810
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403200
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406494
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4064b1
lea eax, [ebp - 0x10]
call fcn.004045a0
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404a60
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408ef1
test al, 0x10
jne 0x408ef5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b984
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 0x40b9bd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404690
jmp 0x40b9c6
mov eax, ebx
mov edx, esi
call fcn.004045f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c078
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bef0
mov eax, dword [0x47f4b8]
cmp byte [eax], 0
je 0x40c0f4
mov eax, dword [0x47f20c]
call fcn.00402ddc
call fcn.0040290c
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.004091c4
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 0x40c13c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c12a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47f1a4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x480668]
call fcn.0040593c
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 0x40c9e4
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 0x40caba
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404638
lea eax, [ebp - 8]
call fcn.00404ab0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404a60
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40caa4
mov eax, ebx
call fcn.004027a4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ca9d
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.00404a60
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ca87
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cacc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ca87
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 0x40caa4
mov eax, dword [ebp - 0x10]
call fcn.004027c4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cac1
lea eax, [ebp - 8]
call fcn.004045a0
ret

Function at 0x40d038
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 0x40d09c
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.00404810
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408b38
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d0a3
lea eax, [ebp - 0xc]
call fcn.004045a0
ret

Function at 0x41dfd8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041de30
dec esi
jne 0x41dffa
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret