joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002d13f
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002d190
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
inc eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [ecx + 0xc], eax
jmp 0x1002d19d
push 0
push 0x13e6
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret

Function at 0x10031b50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
push 0x17d9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push 1
call fcn.10030de8
add esp, 0x10
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10031b85
xor eax, eax
jmp 0x10031ca8
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push 0x592a
lea eax, [ebp + 8]
push eax
call fcn.10030e46
add esp, 0x14
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10031bb2
xor eax, eax
jmp 0x10031ca8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 1
call fcn.10030ec9
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x10031bd1
xor eax, eax
jmp 0x10031ca8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.10030f23
add esp, 0x18
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp - 4]
push 0
call fcn.10029f1b
add esp, 0x10
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
je 0x10031c25
push 0
push dword [ebp - 4]
push 0x711f
push dword [ebp - 0x14]
call fcn.10030fb1
add esp, 0x10
push dword [ebp - 4]
call fcn.1002fb1e
pop ecx
test eax, eax
jne 0x10031c36
xor eax, eax
jmp 0x10031ca8
push 1
push 0xfc8
lea eax, [ebp - 4]
push eax
push 0x591a
call fcn.10030fb1
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10031c90
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x10031c6d
xor eax, eax
jmp 0x10031ca8
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10031c86
xor eax, eax
jmp 0x10031ca8
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10031ca1
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10031ca5
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x1006b445
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10071170]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10067b02
mov dword [ebp - 0x14], eax
cmp dword [0x1065d348], esi
jne 0x1006b538
push 0x800
push esi
push 0x100064b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1006b4c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1006b618
push esi
push esi
push 0x100064b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1006b618
push 0x100064cc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006b618
push eax
call ebx
push 0x100064d8
push edi
mov dword [0x1065d348], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100064e8
push edi
mov dword [0x1065d34c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100064fc
push edi
mov dword [0x1065d350], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065d358], eax
test eax, eax
je 0x1006b535
push 0x10006518
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065d354], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006b55d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1006b550
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1006b572
push 4
pop eax
jmp 0x1006b61a
cmp dword [ebp - 0x14], esi
je 0x1006b572
push dword [0x1065d348]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1006b557
mov eax, dword [0x1065d354]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1006b5d0
cmp dword [0x1065d358], edi
je 0x1006b5d0
push eax
call ebx
push dword [0x1065d358]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1006b5d0
test eax, eax
je 0x1006b5d0
call ecx
test eax, eax
je 0x1006b5c5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1006b5c5
test byte [ebp - 8], 1
jne 0x1006b5d0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1006b600
mov eax, dword [0x1065d34c]
cmp eax, edi
je 0x1006b5fd
push eax
call ebx
test eax, eax
je 0x1006b5fd
call eax
mov esi, eax
test esi, esi
je 0x1006b5fd
mov eax, dword [0x1065d350]
cmp eax, edi
je 0x1006b5fd
push eax
call ebx
test eax, eax
je 0x1006b5fd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1065d348]
call ebx
test eax, eax
je 0x1006b618
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1006b61a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100602c2
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x16e41ec5
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x13db049e
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x404c6c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40f034], 0
je 0x404ccd
cmp word [0x40f310], 0xd7b2
jne 0x404c95
cmp dword [0x40f318], 0
jbe 0x404c95
mov eax, 0x40f30c
call dword [0x40f328]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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 0x404cf8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40e01c], 0
jne 0x404ce9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406438
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40659f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00405550
cmp si, word [0x40e7dc]
jb 0x4064d2
cmp si, word [0x40e9dc]
ja 0x4064d2
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4064d2
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x40e7dc]
jae 0x4064ac
mov edi, ebx
dec edi
jmp 0x4064cd
cmp si, word [ebx*8 + 0x40e7dc]
jbe 0x4064bc
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4064cd
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x40e7e0]
call fcn.00406348
jmp 0x4064d2
cmp edi, dword [ebp - 0xc]
jae 0x406496
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x406581
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x406581
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00405738
push dword [ebp - 0x164]
push 0x4065bc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00405738
push dword [ebp - 0x168]
push 0x4065cc
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00405738
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00405a10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4065a6
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00405548
ret
Function at 0x406758
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40685d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x411b3c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x411b54]
jne 0x4067a4
mov eax, esi
mov edx, 0x411b58
mov ecx, 0x55
call fcn.00405738
push 0x411b3c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x406847
push 0x411b3c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00405550
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x406815
cmp byte [0x411b38], 0
je 0x4067da
mov edx, esi
mov eax, ebx
call fcn.00406638
jmp 0x406815
mov edx, esi
mov eax, ebx
call fcn.00406438
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x406815
cmp dword [esi], 0
je 0x4067fe
mov eax, esi
mov edx, 0x406878
call fcn.0040586c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00406438
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040586c
push 0x411b3c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x411b54], bx
push 0xaa
mov eax, dword [esi]
call fcn.004055dc
push eax
push 0x411b58
call sub.kernel32.dll_lstrcpynW
push 0x411b3c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406864
lea eax, [ebp - 4]
call fcn.00405540
ret
Function at 0x406a9c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405538
xor eax, eax
push ebp
push 0x406c81
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x406adc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x406af6
push 0x105
mov eax, dword [ebp - 4]
call fcn.004055dc
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x406c6b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x406c90
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x406b85
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x406c90
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x406b85
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x406cc4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x406b85
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x406cf8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x406c6b
xor eax, eax
push ebp
push 0x406c64
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004068a0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x406bf4
mov eax, dword [ebp - 0x10]
call fcn.0040302c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004056fc
jmp 0x406c3f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x406d38
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x406c3f
mov eax, dword [ebp - 0x10]
call fcn.0040302c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x406d38
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004056fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c6b
cmp dword [ebp - 8], 0
je 0x406c5a
mov eax, dword [ebp - 8]
call fcn.00403048
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c88
lea eax, [ebp - 4]
call fcn.00405540
ret
Function at 0x406f4c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00405538
mov eax, dword [ebp - 0x21c]
call fcn.00405538
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4070eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00405550
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004055dc
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x406fec
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x406ffe
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x406fe9
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4070b7
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x407027
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00406a9c
cmp dword [ebp - 0x220], 0
je 0x40705f
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00406e40
pop ecx
mov ebx, eax
jmp 0x4070b7
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00406758
mov eax, dword [ebp - 0x224]
call fcn.00406e40
pop ecx
mov ebx, eax
test bl, bl
jne 0x4070aa
cmp byte [0x411b38], 0
jne 0x4070aa
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00406758
mov eax, dword [ebp - 0x228]
call fcn.00406e40
pop ecx
mov ebx, eax
test bl, bl
jne 0x4070b7
push ebp
call fcn.00406ef0
pop ecx
mov ebx, eax
test bl, bl
je 0x4070cd
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00405738
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4070f2
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00405548
ret

Function at 0x4072e8
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x407e1c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x407e55
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040568c
jmp 0x407e5e
mov eax, ebx
mov edx, esi
call fcn.00405550
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x407e68
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x407e8a
movzx eax, word [esp]
jmp 0x407e8c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x409020
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004050ec
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x408fca
mov eax, edi
add eax, eax
call fcn.0040302c
mov esi, eax
jmp 0x408fcc
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x409005
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x408fef
mov eax, esp
cmp esi, eax
je 0x409012
mov eax, esi
call fcn.00403048
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40904c
cmp bl, 0
je 0x409048
cmp bl, 0x41
jl 0x409043
cmp bl, 0x5a
jg 0x409043
or bl, 0x20
xor al, bl
inc esi
jmp 0x409027
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x408f8c
Function at 0x47d430
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x67000]
push edi
jmp 0x47d44a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47d451
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d440
mov eax, 1
add ebx, ebx
jne 0x47d463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47d474
jne 0x47d493
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d493
dec eax
add ebx, ebx
jne 0x47d480
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x47d458
add ebx, ebx
jne 0x47d48f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47d4e5
xor ecx, ecx
sub eax, 3
jb 0x47d4ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47d51a
sar eax, 1
mov ebp, eax
jmp 0x47d4b6
add ebx, ebx
jne 0x47d4b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d484
inc ecx
add ebx, ebx
jne 0x47d4c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d484
add ebx, ebx
jne 0x47d4d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47d4c6
jne 0x47d4e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47d4c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47d504
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47d4f6
jmp 0x47d446
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47d504
add edi, ecx
jmp 0x47d446
pop esi
mov edi, esi
mov ecx, 0x2a04
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47d522
cmp byte [edi], 6
jne 0x47d522
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x47d527
lea edi, [esi + 0x7a000]
mov eax, dword [edi]
or eax, eax
je 0x47d59f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7d000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7d118]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47d554
mov ecx, edi
jns 0x47d583
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7d11c]
or eax, eax
je 0x47d599
mov dword [ebx], eax
add ebx, 4
jmp 0x47d571
call dword [esi + 0x7d12c]
mov ebp, dword [esi + 0x7d120]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47d5d3
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x402350
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x402379
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40238f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402386
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4023c2
nop
cmp esi, ecx
jae 0x402386
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4023b0
cmp esi, ecx
jae 0x402386
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.0040445b
mov ebx, eax
test ebx, ebx
jne 0x402b90
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x402c77
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402c77
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402c77
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402bf8
cmp esi, ecx
jae 0x402c77
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402be2
cmp esi, ecx
jae 0x402c77
movzx eax, word [esi]
test ax, ax
je 0x402c77
push 0
push 0
push 0
push 0
push eax
lea ecx, [esi + 2]
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x402c82
mov ebx, dword [ebp - 4]
mov edx, 1
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x402c41
push edi
mov ecx, ebx
call fcn.00403170
mov eax, dword [ebx]
push 0
push 0
push edi
push eax
movzx eax, word [esi]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x402c82
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
pop esi
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00402300
int3