joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1024eab
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x1024edd
call fcn.010231b9
mov edi, eax
test esi, esi
jne 0x1024f19
cmp edi, 0x800700ea
jne 0x1024f19
test esi, esi
jne 0x1024f21
mov eax, dword [ebp - 4]
add eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x1024eb9
mov eax, 0x8007000e
push eax
mov edi, eax
push 0x9d101c9
call fcn.0101dd77
test esi, esi
je 0x1024f11
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
leave
ret 8
push edi
push 0x9c601c9
jmp 0x1024f01
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor edi, edi
jmp 0x1024f11

Function at 0x1024f2f
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
push edi
push 3
xor ebx, ebx
pop eax
mov dword [ecx], ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x1024f90
mov edi, 0x80070002
call fcn.010231b9
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x1024fb3
cmp dword [ebp - 0xc], 3
jne 0x1024fba
push edi
push 0x9f401c9
call fcn.0101dd77
lea eax, [ebp - 4]
push eax
push ebx
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call esi
test eax, eax
je 0x1024f61
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
jne 0x1024fc7
mov eax, 0x8007000e
push eax
push 0xa0701c9
jmp 0x1024fe0
cmp eax, 0x800700ea
je 0x1024f93
push eax
push 0x9fa01c9
call fcn.0101dd77
jmp 0x1024fff
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x1024fea
call fcn.010231b9
push eax
push 0xa0d01c9
mov dword [ebp - 8], eax
call fcn.0101dd77
jmp 0x1024ff4
mov eax, dword [ebp + 8]
mov dword [eax], edi
xor edi, edi
mov dword [ebp - 8], ebx
cmp edi, ebx
je 0x1024fff
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x102509a
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x10250b4
mov eax, 0x1002a60
push 0x20
pop edx
push 0x22
pop ecx
cmp cx, word [eax]
jne 0x10250c4
push ecx
pop edx
add eax, 2
push ebx
push esi
push edi
jmp 0x10250d8
cmp dx, cx
je 0x10250e4
push 0x5c
inc eax
pop esi
inc eax
cmp si, cx
jne 0x10250da
mov ebx, eax
movzx ecx, word [eax]
xor esi, esi
cmp si, cx
jne 0x10250c9
sub eax, ebx
shr eax, 1
lea esi, [eax + eax]
lea eax, [esi + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x1025111
mov eax, 0x8007000e
push eax
push 0xa4401c9
mov esi, eax
call fcn.0101dd77
jmp 0x1025129
push esi
push ebx
push edi
call sub.msvcrt.dll_memcpy
xor eax, eax
mov word [esi + edi], ax
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [eax], edi
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x102d85c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x103a5e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
or dword [esi], 0xffffffff
push edi
mov edi, dword [ebp + 0x10]
and dword [edi], 0
push esi
call fcn.0102c1b2
test ebx, ebx
jne 0x102d8cf
mov ebx, 0xf6
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x1007bc8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x102d8b4
cmp eax, ebx
jae 0x102d8b4
push 0x1007bac
jmp 0x102d926
mov eax, 0x80070002
push eax
push 0x4f70191
mov dword [ebp - 0x210], eax
call fcn.0101dd77
jmp 0x102da18
push 0x5c
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x102d93d
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x102d8e3
sub eax, edx
sar eax, 1
lea ecx, [eax + 2]
mov eax, 0x104
cmp ecx, eax
jb 0x102d913
mov eax, 0x800700ce
push eax
mov dword [ebp - 0x210], eax
push 0x5030191
jmp 0x102da12
push 0x1007ba4
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01015254
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0101528e
lea ebx, [ebp - 0x20c]
push ebx
push esi
call fcn.0102cb1f
mov dword [ebp - 0x210], eax
test eax, eax
je 0x102d959
push eax
push 0x50b0191
jmp 0x102da12
push 2
pop eax
jmp 0x102d97c
call fcn.010231b9
mov dword [ebp - 0x210], eax
cmp eax, 0xe0000100
jne 0x102d9e4
cmp dword [ebp - 0x218], 2
jne 0x102d9e4
xor eax, eax
inc eax
and dword [ebp - 0x214], 0
lea ecx, [ebp - 0x214]
push ecx
push eax
push 0
push ebx
mov dword [ebp - 0x218], eax
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov dword [esi], eax
mov eax, dword [ebp - 0x214]
mov dword [edi], eax
cmp dword [esi], 0xffffffff
je 0x102d95e
xor edi, edi
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
push edi
push edi
push 0x1007b94
push esi
call fcn.0102d01e
push edi
push edi
push ebx
push 1
push 0x3b2
push edi
push 0x536
push 0x191
call fcn.01034769
mov dword [ebp - 0x210], edi
jmp 0x102da18
mov ecx, dword [edi]
neg ecx
sbb ecx, ecx
and ecx, edi
push ecx
push 0
push ebx
push 1
push 0x3b3
push eax
push 0x526
push 0x191
call fcn.01034769
push dword [ebp - 0x210]
push 0x5270191
push ebx
call fcn.0101ddb2
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101d1e3
leave
ret 0xc
Function at 0x1035d2f
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x1000
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x1035df1
push edi
lea ecx, [ebp - 4]
push ecx
push 0xa
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1035ddd
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push 1
push dword [ebp - 4]
mov dword [ebp + 8], ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1035ddc
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1035daf
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1035ddc
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 8]
push eax
push 1
push dword [ebp - 4]
call esi
test eax, eax
je 0x1035ddc
mov eax, dword [ebp - 8]
push dword [eax]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1035ddc
push dword [ebp - 4]
call edi
mov dword [ebp - 4], ebx
pop esi
push dword [ebp - 0xc]
call edi
pop edi
cmp dword [ebp - 8], ebx
je 0x1035df1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop ebx
leave
ret 8

Function at 0x10361cc
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x103a5e4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x103bfe0], edi
jne 0x10362e8
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x1036233
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov eax, dword [ebp - 0x110]
dec eax
mov dword [0x103bfe0], edi
pop esi
je 0x10362bb
dec eax
jne 0x10362e8
cmp dword [ebp - 0x11c], 5
jne 0x10362a8
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x103629c
dec eax
je 0x1036289
dec eax
je 0x103626f
mov dword [0x103bfe0], 0x14
jmp 0x10362e8
cmp word [ebp - 0xc], 1
jb 0x1036280
mov dword [0x103bfe0], 0x10
or dword [0x103bfe0], 4
jmp 0x10362e8
cmp word [ebp - 0xc], 2
jb 0x1036280
mov dword [0x103bfe0], 8
jmp 0x1036280
mov dword [0x103bfe0], 4
jmp 0x10362e8
cmp dword [ebp - 0x11c], 4
ja 0x10362fa
mov dword [0x103bfe0], 2
cmp dword [ebp - 0x11c], 4
jne 0x10362e8
cmp dword [ebp - 0x118], edi
je 0x10362de
cmp dword [ebp - 0x118], 0xa
je 0x10362de
cmp dword [ebp - 0x118], 0x5a
jne 0x10362e8
mov dword [0x103bfe0], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x103bfe0]
xor ecx, ebp
pop edi
call fcn.0101d1e3
leave
ret
mov dword [0x103bfe0], 0x20
jmp 0x10362e8
Function at 0x103630b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x103a5e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x103635f
push 3
lea eax, [ebp - 0x44]
push 0x100af90
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.0101d1e3
leave
ret

Function at 0x1036374
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x103a5e4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x103bfe4]
jne 0x103640f
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x100aec0
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103640e
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x100af78
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x103640e
push 3
push dword [esi*8 + 0x100ad10]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x1036400
inc esi
cmp esi, 0x1c
jb 0x10363df
jmp 0x103640e
mov ax, word [esi*8 + 0x100ad14]
mov word [0x103bfe4], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x103bfe4]
xor ecx, ebp
call fcn.0101d1e3
leave
ret
Function at 0x403690
Capabilities:
Query or enumerate registry value

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

Function at 0x40451c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46c048], 0
je 0x40457d
cmp word [0x46c21c], 0xd7b2
jne 0x404545
cmp dword [0x46c224], 0
jbe 0x404545
mov eax, 0x46c218
call dword [0x46c234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x4045a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46102c], 0
jne 0x404599
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405aa8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405cd8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b2b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405cd8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b2b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405cf4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405bb4
xor eax, eax
push ebp
push 0x405bad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004058e4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405b92
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405d14
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405b92
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405bb4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405cce
cmp byte [ebp - 0xd], 0
jne 0x405bfb
cmp byte [ebp - 0x12], 0
je 0x405cce
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405c14
dec ebx
cmp byte [ebx], 0x2e
je 0x405c23
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405c13
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405cce
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405c60
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405cce
cmp byte [ebp - 0xd], 0
je 0x405cce
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405cce
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408094
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408124
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408124
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4080d7
test edx, 3
jne 0x4080c6
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4080d1
jmp 0x4080d7
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4080d7
cmp dword [ecx - 8], 1
je 0x4080e1
mov edx, ebx
or edx, 3
call fcn.00404de8
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4080f3
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040469c

Function at 0x408130
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4081c0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4081c0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408173
test edx, 3
jne 0x408162
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40816d
jmp 0x408173
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408173
cmp dword [ecx - 8], 1
je 0x40817d
mov edx, ebx
or edx, 3
call fcn.00404de8
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40818f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040469c

Function at 0x40b3f0
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 0x40b429
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040478c
jmp 0x40b432
mov eax, ebx
mov edx, esi
call fcn.004046f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b43c
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 0x40b45e
movzx eax, byte [esp]
jmp 0x40b460
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40baf0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b968
mov eax, dword [0x46bc48]
cmp byte [eax], 0
je 0x40bb6c
mov eax, dword [0x46b978]
call fcn.00403058
call fcn.00402de8
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.00408b88
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 0x40bbb4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bba2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46b908]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46e7f4]
call fcn.0040588c
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 0x40c400
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c4d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404734
lea eax, [ebp - 4]
call fcn.00404bb0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b60
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c4c0
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c4b9
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 - 4]
call fcn.00404b60
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c4a3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c4e8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c4a3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4c0
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4dd
lea eax, [ebp - 4]
call fcn.0040469c
ret
Function at 0x41b6e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46f300
cmp dword [edi], 0
jne 0x41b75c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46f2fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x461ad4
mov ecx, 2
call fcn.00402e7c
mov edx, 0x41b6b8
lea eax, [esi + 5]
call fcn.0041b6d8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b6d8
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 0x41b731
mov dword [0x46f2fc], 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 0x41dc88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404b60
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41dce0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46be24]
mov dl, 1
mov eax, dword [0x41d7ac]
call fcn.0040bcb0
call fcn.004040e4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d8b4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41eb3c
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 0x41eb42
ret