joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493638
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
inc eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
and dword [edi + 0x24], 0
and dword [ebx], 0
cmp dword [ebp + 0xc], 0
jbe 0x4937fa
cmp dword [edi + 0x5c], 0x2710
jbe 0x493675
cmp dword [edi + 0x54], 0
je 0x493675
mov ecx, edi
call fcn.00493979
imul esi, eax, 0xf
jmp 0x49367a
mov esi, 0x5dc
test esi, esi
push 1
pop eax
cmove esi, eax
cmp byte [edi + 0x90], 0
je 0x493697
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x4936a4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
mov dword [edi + 0x24], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebx]
cmp eax, esi
cmovb esi, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
add eax, dword [ebx]
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4936ed
mov eax, dword [edi]
lea ecx, [edi + 0xc]
push 0
push ecx
push dword [edi + 0x28]
mov ecx, edi
call dword [eax + 8]
test al, al
je 0x493803
cmp byte [edi + 0x90], 0
je 0x493708
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
jmp 0x493718
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x4937f7
mov ecx, dword [ebp + 0x10]
add dword [ecx], eax
add dword [edi + 0x4c], eax
add dword [edi + 0x54], eax
add dword [edi + 0x60], eax
sub esi, dword [ebp - 0x20]
mov eax, esi
sbb ebx, dword [ebp - 0x1c]
or eax, ebx
jne 0x493742
push 5
pop esi
xor ebx, ebx
push 0
push 0x3e8
push ebx
push esi
call fcn.0049a2b0
mov ecx, dword [edi + 0x8c]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x88]
mov dword [ebp - 0xc], edx
cmp edx, ecx
jl 0x493799
mov edx, dword [ebp - 8]
jg 0x49376f
cmp edx, eax
jb 0x493799
push ebx
push ecx
push eax
push dword [ebp - 0xc]
push edx
call fcn.0049a1d0
mov esi, ebx
pop ebx
add dword [edi + 0x5c], eax
add dword [edi + 0x68], eax
push 0
push 0x3e8
push esi
push ecx
mov dword [ebp - 0xc], edx
call fcn.0049a120
mov esi, eax
mov ebx, edx
push 0
push 0xf4240
push ebx
push esi
call fcn.0049a2b0
push dword [edi + 0x8c]
push dword [edi + 0x88]
push edx
push eax
call fcn.0049a120
add dword [edi + 0x58], eax
mov ecx, 0x3e8
add dword [edi + 0x64], eax
cmp dword [edi + 0x58], ecx
jbe 0x4937d7
mov eax, dword [edi + 0x58]
xor edx, edx
div ecx
add dword [edi + 0x5c], eax
mov dword [edi + 0x58], edx
cmp dword [edi + 0x64], ecx
jbe 0x4937e9
mov eax, dword [edi + 0x64]
xor edx, edx
div ecx
add dword [edi + 0x68], eax
mov dword [edi + 0x64], edx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
cmp dword [ebx], eax
jb 0x49365a
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor al, al
jmp 0x4937fa
Function at 0x493841
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
call fcn.0049309c
push esi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov edi, eax
test edi, edi
je 0x49390a
inc dword [esi + 8]
xor ecx, ecx
mov eax, dword [esi + 8]
push ebx
push 2
pop ebx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004996e0
inc dword [esi + 0x14]
xor ecx, ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 0x14]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004996e0
inc dword [esi + 0x20]
xor ecx, ecx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x20]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004996e0
inc dword [esi + 0x28]
xor ecx, ecx
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x28]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004996e0
inc dword [esi + 0x30]
xor ecx, ecx
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x30]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004996e0
inc dword [esi + 0x38]
xor ecx, ecx
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x38]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004996e0
add esp, 0x18
mov dword [esi + 0x34], eax
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x493912
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], 4
call fcn.00493424
movzx edi, al
test al, al
je 0x493949
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x20000005
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
jne 0x49395b
or dword [ebp - 4], 0xffffffff
jmp 0x493961
mov eax, dword [esi + 0x48]
add dword [ebp - 4], eax
mov ecx, esi
call fcn.00492eb8
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x493979
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov esi, ecx
call ebx
sub eax, dword [esi + 0x6c]
xor edi, edi
cmp eax, 0x7530
jbe 0x4939b6
mov eax, dword [esi + 0x60]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x68]
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x64]
mov dword [esi + 0x60], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x58], eax
mov dword [esi + 0x64], edi
call ebx
mov dword [esi + 0x6c], eax
mov ecx, dword [esi + 0x5c]
test ecx, ecx
jne 0x4939c2
mov eax, dword [esi + 0x54]
jmp 0x493a0e
push 0xa
pop ebx
mov dword [ebp - 4], edi
test edi, edi
jne 0x493a0c
or eax, 0xffffffff
mov edi, dword [esi + 0x54]
xor edx, edx
div ebx
cmp edi, eax
jbe 0x4939e4
shr edi, 1
shr ecx, 1
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], ecx
mov eax, dword [esi + 0x54]
xor edx, edx
mov ecx, dword [esi + 0x5c]
imul eax, ebx
div ecx
xor edx, edx
imul eax, eax, 0x3e8
div ebx
imul ebx, ebx, 0xa
mov edi, eax
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 3
jb 0x4939c8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x497171
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x51c0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x10]
mov word [ebp - 8], 0x500
push eax
xor ebx, ebx
push ebx
push 8
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4971e7
call esi
cmp eax, 0x3f0
jne 0x4971ca
lea eax, [ebp - 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x4971e0
push 1
push dword [ebp - 0x10]
call fcn.004972cf
pop ecx
pop ecx
jmp 0x4972bf
test eax, eax
jne 0x4971e7
push ebx
jmp 0x4971d1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x49720d
push ebx
push dword [ebp - 0x10]
call fcn.004972cf
jmp 0x4972bc
call esi
cmp eax, 0x7a
jne 0x4971ff
push dword [ebp - 0x14]
call fcn.00499a25
pop ecx
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x497235
push ebx
jmp 0x4972a6
cmp byte [ebp + 8], bl
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
mov eax, 0x223
push ebx
push ebx
lea ecx, [eax - 3]
cmovne eax, ecx
push eax
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x497232
mov edi, ebx
mov byte [ebp - 0x18], bl
cmp dword [esi], ebx
jbe 0x49729a
lea ebx, [esi + 4]
push dword [ebp - 0x1c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x497285
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x49726c
jmp 0x49729a
cmp byte [ebp + 0xc], 0
je 0x497296
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0x18], 0
jne 0x49729a
mov byte [ebp - 0x18], 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.004972cf
pop ecx
pop ecx
push 0xc
push esi
mov bl, al
call fcn.00499db8
mov al, bl
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004996ca
mov esp, ebp
pop ebp
ret

Function at 0x497579
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x497d44
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
mov ebx, ecx
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
test eax, eax
jne 0x497d67
xor al, al
jmp 0x497e01
push eax
call fcn.004996e0
pop ecx
push eax
push dword [ebp - 4]
mov dword [ebx + 0x40], eax
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x497d60
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4de8d0
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x497d60
push esi
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push edi
push 0xd
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
lea edi, [ebx + 4]
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
pop edi
pop esi
test eax, eax
je 0x497dff
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 2
push 4
pop edx
mov dword [ebx + 0x3c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004996e0
xor edx, edx
mov dword [ebx + 0x38], eax
pop ecx
cmp dword [ebx + 0x3c], edx
jbe 0x497dff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov eax, dword [eax + edx*4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, dword [ebx + 0x3c]
jb 0x497ded
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403664
Capabilities:
Query or enumerate registry value

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

Function at 0x404508
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46e048], 0
je 0x404569
cmp word [0x46e21c], 0xd7b2
jne 0x404531
cmp dword [0x46e224], 0
jbe 0x404531
mov eax, 0x46e218
call dword [0x46e234]
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 0x404590
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46b02c], 0
jne 0x404585
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405a44
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 0x405c74
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ac7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c74
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ac7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c90
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405b50
xor eax, eax
push ebp
push 0x405b49
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405880
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 0x405b2e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405cb0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405b2e
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 0x405b50
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 0x405c6a
cmp byte [ebp - 0xd], 0
jne 0x405b97
cmp byte [ebp - 0x12], 0
je 0x405c6a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405bb0
dec ebx
cmp byte [ebx], 0x2e
je 0x405bbf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405baf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405c6a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405bfc
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 0x405c6a
cmp byte [ebp - 0xd], 0
je 0x405c6a
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 0x405c6a
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 0x408068
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4080f8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4080f8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4080ab
test edx, 3
jne 0x40809a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4080a5
jmp 0x4080ab
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4080ab
cmp dword [ecx - 8], 1
je 0x4080b5
mov edx, ebx
or edx, 3
call fcn.00404dd4
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 0x4080c7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404688

Function at 0x408104
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408194
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408194
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408147
test edx, 3
jne 0x408136
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408141
jmp 0x408147
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408147
cmp dword [ecx - 8], 1
je 0x408151
mov edx, ebx
or edx, 3
call fcn.00404dd4
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 0x408163
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404688

Function at 0x40b3f8
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 0x40b431
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404778
jmp 0x40b43a
mov eax, ebx
mov edx, esi
call fcn.004046dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b970
mov eax, dword [0x46d2e0]
cmp byte [eax], 0
je 0x40bb74
mov eax, dword [0x46d108]
call fcn.0040302c
call fcn.00402dec
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.00408b90
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 0x40bbbc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bbaa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46d0b4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4707f4]
call fcn.00405828
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 0x40c408
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 0x40c4de
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404720
lea eax, [ebp - 4]
call fcn.00404b9c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b4c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c4c8
mov eax, ebx
call fcn.00402c90
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c4c1
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.00404b4c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c4ab
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c4f0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c4ab
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 0x40c4c8
mov eax, dword [ebp - 0x10]
call fcn.00402cac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4e5
lea eax, [ebp - 4]
call fcn.00404688
ret
Function at 0x41b144
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x471300
cmp dword [edi], 0
jne 0x41b1c0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4712fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46bad4
mov ecx, 2
call fcn.00402e80
mov edx, 0x41b11c
lea eax, [esi + 5]
call fcn.0041b13c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b13c
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 0x41b195
mov dword [0x4712fc], 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 0x41d69c
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.00404b4c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d6f4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46d3f4]
mov dl, 1
mov eax, dword [0x41d1c0]
call fcn.0040bcb8
call fcn.004040d0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d2c8
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 0x41e884
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 0x41e88a
ret