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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x40c]
sub esp, 0x42c
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x101
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftCryptography
mov dword [esp], 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x4c8f60
xor eax, eax
xor edx, edx
mov dword [ebx], 0
mov word [ebx + 4], ax
mov word [ebx + 6], dx
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x408]
lea esi, [ebp - 0x400]
mov dword [ebp - 0x408], 0x3e8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x40c]
mov dword [esp + 0x10], esi
mov dword [esp + 4], str.MachineGuid
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x4c8f35
mov eax, dword [ebp - 0x408]
lea edi, [ebp - 0x404]
mov dword [esp + 4], esi
mov dword [esp], edi
shr eax, 1
mov dword [esp + 8], eax
call dword [method.QString.fromUtf16_unsigned_short_const__int_]
mov dword [esp], edi
mov ecx, ebx
call dword [method.QUuid.QUuid_QString_const_]
mov eax, dword [ebp - 0x404]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x4c9000
cmp edx, 0xffffffff
je 0x4c8f55
lock sub dword [eax], 1
jne 0x4c8f55
mov eax, dword [ebp - 0x404]
nop
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x4c8f55
Function at 0x4c9540
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov eax, dword [sym.imp.Qt5Core.dll_QArrayData::shared_null]
mov ebx, dword [ebp + 8]
mov dword [esp], 0x4ca770
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
call dword [sym.imp.USER32.dll_EnumWindows]
mov edx, dword [ebp - 0xc]
sub esp, 8
mov eax, dword [edx]
test eax, eax
je 0x4c95b0
cmp eax, 0xffffffff
je 0x4c9584
lock add dword [edx], 1
mov edx, dword [ebp - 0xc]
mov dword [ebx], edx
mov eax, dword [edx]
test eax, eax
je 0x4c9625
cmp eax, 0xffffffff
je 0x4c959f
lock sub dword [edx], 1
je 0x4c96dc
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
cmp byte [edx + 0xb], 0
js 0x4c9645
mov eax, dword [edx + 4]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 4
mov dword [esp], 4
mov dword [esp + 8], eax
call dword [method.QArrayData.allocate_unsigned_int__unsigned_int__unsigned_int__QFlags_QArrayData::AllocationOption__]
test eax, eax
mov dword [ebx], eax
je 0x4c9680
test dword [eax + 8], 0x7fffffff
mov edx, dword [ebp - 0xc]
je 0x4c9586
mov ecx, dword [edx + 4]
add eax, dword [eax + 0xc]
add edx, dword [edx + 0xc]
shl ecx, 2
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov eax, dword [edx]
test eax, eax
jne 0x4c9590
mov dword [esp + 8], 4
mov dword [esp + 4], 4
mov dword [esp], edx
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [edx + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 4
mov dword [esp], 4
and eax, 0x7fffffff
mov dword [esp + 8], eax
call dword [method.QArrayData.allocate_unsigned_int__unsigned_int__unsigned_int__QFlags_QArrayData::AllocationOption__]
test eax, eax
mov dword [ebx], eax
je 0x4c9690
or byte [eax + 0xb], 0x80
jmp 0x4c95e8
call dword [sym.imp.Qt5Core.dll_qBadAlloc__]
mov eax, dword [ebx]
jmp 0x4c95e8
call dword [sym.imp.Qt5Core.dll_qBadAlloc__]
mov eax, dword [ebx]
jmp 0x4c9674
mov edx, dword [ebp - 0xc]
jmp 0x4c9625
Function at 0x4c9c00
Capabilities:
Create process on windows

Disassembly:
push ebp
push edi
xor eax, eax
push esi
push ebx
mov ecx, 0x82
sub esp, 0x44c
lea ebx, [esp + 0x30]
mov esi, dword [esp + 0x464]
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x460]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add eax, dword [eax + 0xc]
mov dword [esp], ebx
lea edx, [ecx + ecx]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call sub.msvcrt.dll_memcpy
mov dword [esp + 4], 1
mov dword [esp], str._runas
call dword [method.QString.fromAscii_helper_char_const__int_]
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], eax
lea edx, [esp + 0x2c]
mov dword [esp + 0xc], ecx
add eax, dword [eax + 0xc]
mov dword [esp + 4], esi
mov dword [esp], edx
mov dword [esp + 8], eax
call dword [method.QtPrivate.QStringList_join_QStringList_const__QChar_const__int_]
mov edi, dword [esp + 0x2c]
lea ebp, [esp + 0x238]
mov eax, dword [edi + 4]
mov edx, dword [edi + 0xc]
mov dword [esp], ebp
add eax, eax
add edx, edi
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
mov eax, dword [edi]
test eax, eax
je 0x4c9d40
cmp eax, 0xffffffff
je 0x4c9cb8
lock sub dword [edi], 1
je 0x4c9d40
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
test edx, edx
je 0x4c9d20
cmp edx, 0xffffffff
je 0x4c9ccd
lock sub dword [eax], 1
je 0x4c9d18
mov eax, dword [esi]
mov esi, dword [eax + 8]
cmp dword [eax + 0xc], esi
mov eax, 0
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0x55d208
mov dword [esp], 0
cmove ebp, eax
mov dword [esp + 0xc], ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
sub esp, 0x18
add esp, 0x44c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x28]
lea esi, [esi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x4c9ccd
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x4c9cb8

Function at 0x4c9d80
Capabilities:
Get hostname

Disassembly:
push esi
push ebx
sub esp, 0x44
lea eax, [esp + 0x1c]
lea esi, [esp + 0x20]
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x1c], 0x10
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
sub esp, 8
test eax, eax
jne 0x4c9dc0
mov eax, dword [sym.imp.Qt5Core.dll_QArrayData::shared_null]
mov dword [ebx], eax
add esp, 0x44
mov eax, ebx
pop ebx
pop esi
ret
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], 0xffffffff
call dword [method.QString.fromUtf16_unsigned_short_const__int_]
add esp, 0x44
mov eax, ebx
pop ebx
pop esi
ret
Function at 0x4ca7e0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x23c
mov ebx, dword [ebp + 8]
call fcn.004c7190
test al, al
jne 0x4ca810
mov eax, dword [sym.imp.Qt5Core.dll_QArrayData::shared_null]
mov dword [ebx], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], 0x1000
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
sub esp, 0xc
test eax, eax
mov esi, eax
je 0x4caa00
mov eax, dword [0x63a110]
mov dword [ebp - 0x230], 0x104
lea edi, [ebp - 0x220]
test eax, eax
je 0x4ca87e
lea edx, [ebp - 0x230]
lea edi, [ebp - 0x220]
mov dword [esp + 4], 0
mov dword [esp], esi
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
call eax
sub esp, 0x10
test eax, eax
jne 0x4ca9b0
mov dword [esp], esi
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
sub esp, 0xc
mov dword [esp], esi
lea esi, [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 4], 1
mov dword [esp], 0x55d299
call dword [method.QString.fromAscii_helper_char_const__int_]
mov dword [esp + 8], 0xffffffff
mov dword [ebp - 0x228], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [method.QString.fromUtf16_unsigned_short_const__int_]
lea edi, [ebp - 0x228]
mov dword [esp + 0xc], 1
invalid
inc esp
and al, 8
invalid

Function at 0x4cbd70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and dword [ebp - 0x700], 0
jmp 0x4cbd86
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x4cbdcf
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x4cbd79
call fcn.004ca979
jo 0x4cbddc
fcmovnbe st(0), st(3)
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.004ca979
or bl, byte [0x858dcb46]
aam 0xf8
invalid
invalid

Function at 0x4d5f00
Capabilities:
Reference http user-agent string

Disassembly:
sub esp, 0x1c
cmp dword [esp + 0x24], 0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
jne 0x4d5f24
cmp eax, 1
je 0x4d5f30
cmp eax, 2
je 0x4d5f50
test eax, eax
je 0x4d5f44
add esp, 0x1c
ret
mov eax, dword [edx + 4]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.0046a9d0
sub esp, 4
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.004703a0
add esp, 0x1c
jmp fcn.0046eca0
Function at 0x4dc5f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.004dc650

Function at 0x4dc650
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x63a4e0]
test esi, esi
jle 0x4dc73d
mov edi, dword [0x63a4e4]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4dc684
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4dc736
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x4dc670
mov dword [esp], eax
mov ebx, eax
call fcn.004dcf80
test eax, eax
mov edi, eax
je 0x4dc77a
lea ebx, [esi + esi*2]
mov esi, dword [0x63a4e4]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.004dd080
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x63a4e4]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4dc75a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x4dc72f
sub eax, 0x40
and eax, 0xffffffbf
je 0x4dc72f
mov eax, dword [esp + 0x20]
add ebx, dword [0x63a4e4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x4dc744
add dword [0x63a4e0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x4dc68e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004dc5f0
mov eax, dword [0x63a4e4]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004dc5f0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004dc5f0
lea esi, [esi]
Function at 0x4dcbf0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x63a4f8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x63a4f0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4dcc45
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4dcc3e
test esi, esi
je 0x4dcc3e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4dcc20
mov dword [esp], 0x63a4f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4dcea0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4dced8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x4dcece
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4dceda
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4dcec0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4dd1b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub esp, 8
test eax, eax
mov dword [esp + 0x2c], eax
je 0x4dd32c
mov eax, dword [esp + 0x3c]
add eax, 1
lea edx, [eax*4]
cmp eax, 0x1fc00000
mov eax, 0xffffffff
cmovbe eax, edx
mov dword [esp], eax
call sub.libstdc_6.dll_operator_new___unsigned_int_
mov edi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x4dd2bb
xor ebx, ebx
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax + ebx*4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp], eax
mov dword [esp + 0x28], eax
call sub.libstdc_6.dll_operator_new___unsigned_int_
mov ecx, dword [esp + 0x28]
mov esi, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [edi + ebx*4], esi
add ebx, 1
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jg 0x4dd210
mov dword [edi + eax*4], 0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00401fb0
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x4dd318
mov edx, dword [edi]
test edx, edx
je 0x4dd318
xor ebx, ebx
jmp 0x4dd307
mov edx, dword [edi + ebx*4]
test edx, edx
je 0x4dd318
mov dword [esp], edx
add ebx, 1
call sub.libstdc_6.dll_operator_delete___void_
cmp dword [esp + 0x3c], ebx
jg 0x4dd300
mov dword [esp], edi
call sub.libstdc_6.dll_operator_delete___void_
mov eax, esi
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, 0xffffffff
jmp 0x4dd322
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401d40
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401d7f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401d7f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401d7f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401d7f
cmp dword [ecx + 0x74], 0xe
jbe 0x401d7f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407923
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4079c0
push ebx
push esi
call fcn.004078ec
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00407880
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40796d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4079bf
push edi
push eax
call fcn.00408540
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40798d
call fcn.004063e1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4079be
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407880
add esp, 0x20
test eax, eax
jne 0x4079ac
push edi
call fcn.004063e1
jmp 0x4079b4
push ebx
call fcn.004063e1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x408cbd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411098
push 0x411090
push str.FlsAlloc
push 0x1f
call fcn.00408b7c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408cf1
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f13c]
call esi
jmp 0x408cf7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408d3b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4110a8
push 0x4110a0
push str.FlsGetValue
push 0x21
call fcn.00408b7c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408d72
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f13c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408d7a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4110b0
push 0x4110a8
push str.FlsSetValue
push 0x22
call fcn.00408b7c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408db4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f13c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40e210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e23d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e23d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x13142a48
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x1314c008], 0x8088405
inc edx
mov dword [ebx + 0x1314c008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x13142ccc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x1314c018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x13142d64
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x13142d44
xor eax, eax
push ebp
push 0x13142d3d
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 0x13142d80
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 0x13142d44
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x1314c018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x1314c018], ax
mov esp, ebp
pop ebp
ret

Function at 0x131433c8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x1314d034], 0
je 0x13143429
cmp word [0x1314d208], 0xd7b2
jne 0x131433f1
cmp dword [0x1314d210], 0
jbe 0x131433f1
mov eax, 0x1314d204
call dword [0x1314d220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x1314c064
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x13143450
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x1314c024], 0
jne 0x13143445
push 0
push 0x1314c05c
push 0x1314c064
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x131446cc
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 0x13144732
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.13143700
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.13142a64
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x1314471c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13144739
lea eax, [ebp - 0x10]
call fcn.13143544
ret