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

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47e6c0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47e6de
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047e5f8
jmp 0x47e6de
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47e6de
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047e5f8
test edi, edi
mov eax, edi
jne 0x47e6c8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..retplne
nop
mov ebx, 0x40de38
nop
mov ecx, 0x15840b95
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x66dc5ca7
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x5b67d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x159000]
push edi
jmp 0x5b67ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5b67f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b67e0
mov eax, 1
add ebx, ebx
jne 0x5b6803
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5b6814
jne 0x5b6833
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b6833
dec eax
add ebx, ebx
jne 0x5b6820
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5b67f8
add ebx, ebx
jne 0x5b682f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5b6885
xor ecx, ecx
sub eax, 3
jb 0x5b684b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5b68ba
sar eax, 1
mov ebp, eax
jmp 0x5b6856
add ebx, ebx
jne 0x5b6856
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b6824
inc ecx
add ebx, ebx
jne 0x5b6864
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b6824
add ebx, ebx
jne 0x5b6871
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5b6866
jne 0x5b6882
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5b6866
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5b68a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5b6896
jmp 0x5b67e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5b68a4
add edi, ecx
jmp 0x5b67e6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5b68c2
cmp byte [edi], 0x11
jne 0x5b68c2
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 0x5b68c7
lea edi, [esi + 0x1af000]
mov eax, dword [edi]
or eax, eax
je 0x5b693f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x287cf0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x287e6c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5b68f4
mov ecx, edi
jns 0x5b6923
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 + 0x287e70]
or eax, eax
je 0x5b6939
mov dword [ebx], eax
add ebx, 4
jmp 0x5b6911
call dword [esi + 0x287e80]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5b6970
cmp al, 0xef
ja 0x5b6963
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5b6945
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5b6952
mov ebp, dword [esi + 0x287e74]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x5b69a4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x2f5c41f6
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data_1
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x34d638a3
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x1000108e
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x100010de
push ebx
push edi
push esi
push eax
mov esi, ecx
mov edi, dword [esp + 0x18]
mov ebx, esp
push 0
push ebx
push edi
push dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
sete al
cmp dword [ebx], edi
setne cl
or cl, al
mov eax, ecx
xor al, 1
test cl, cl
jne 0x100010d5
cmp byte [esp + 0x1c], 0
je 0x100010d5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
add esp, 4
pop esi
pop edi
pop ebx
ret 0xc
xor eax, eax
ret 0xc
Function at 0x100038b4
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
sub esp, 8
mov byte [0x7bf728], 0
push str.._settings.ini
push 0
push str.Mode
push str.Windowed
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
and esi, 0xff
je 0x10003974
lea eax, [esp + 4]
mov dword [eax], 1
push 4
push eax
push 0x4586f2
call fcn.10001798
add esp, 0xc
cmp esi, 2
jne 0x1000391b
push 0x100035bf
push 0x45728f
push 0xe9
call fcn.1000184a
add esp, 0xc
mov eax, esp
mov byte [eax], 0xbd
xor esi, esi
inc esi
push esi
push eax
push 0x6546f1
call fcn.10001798
add esp, 0xc
lea eax, [esp + 1]
mov byte [eax], 0x9d
push esi
push eax
push 0x6546f7
call fcn.10001798
add esp, 0xc
mov bl, 1
lea eax, [esp + 2]
mov byte [eax], bl
push esi
push eax
push 0x65495a
call fcn.10001798
add esp, 0xc
lea eax, [esp + 3]
mov byte [eax], bl
push esi
push eax
push 0x654abc
call fcn.10001798
add esp, 0xc
push str.._settings.ini
push 0
push str.DebugMenu
push 0x100052b5
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x1000399b
xor eax, eax
mov byte [0x7c1c54], al
mov byte [0x7c1c55], al
add esp, 8
pop esi
pop ebx
ret

Function at 0x100039a1
Capabilities:
Read .ini file

Disassembly:
push edi
push esi
sub esp, 8
mov eax, dword fs:[0x30]
and byte [eax + 0x68], 0x8f
xor eax, eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
test eax, eax
je 0x10003a19
mov esi, eax
lea eax, [eax*4]
xor edi, edi
dec edi
cmp esi, 0x40000000
cmovb edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
test eax, eax
je 0x10003a09
xor eax, eax
mov ecx, dword [edi + eax*4]
and dword [ecx + 0x40], 0xbfffff9f
mov dword [ecx + 0x44], 0
inc eax
cmp esi, eax
jne 0x100039f3
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push str.._settings.ini
push 1
push str.TapePlayerAuto
push str.Scarface
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x10003a4b
lea eax, [esp + 1]
mov byte [eax], 0
push 1
push eax
push 0x43274f
call fcn.10001798
add esp, 0xc
lea eax, [esp + 4]
mov dword [eax], 0x10006058
push 4
push eax
push 0x708899
call fcn.10001798
add esp, 0xc
mov esi, 0x6ddb15
push 7
push esi
call fcn.100017e0
add esp, 8
lea eax, [esp + 2]
mov word [eax], 0x6a
push 2
push eax
push esi
call fcn.10001798
add esp, 0x14
pop esi
pop edi
ret
Function at 0x10003aa2
Capabilities:
Set current directory

Disassembly:
push esi
sub esp, 0x104
cmp dword [esp + 0x110], 1
jne 0x10003c1e
mov esi, dword [esp + 0x10c]
call fcn.1000352d
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [0x400128], 0x455cad51
jne 0x10003c2b
mov esi, esp
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10003b0f
mov cl, byte [esp]
cmp cl, 0x5c
cmove eax, esi
mov cl, byte [esi + 1]
inc esi
test cl, cl
jne 0x10003af1
test eax, eax
je 0x10003b0f
mov byte [eax], 0
mov eax, esp
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor esi, esi
test eax, eax
je 0x10003b34
push str.wine_get_version
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10003b34
call eax
mov esi, eax
mov dword [0x10006454], esi
mov ecx, section..data
push str.GangstaPatch.log
call fcn.1000104c
call fcn.10003c44
mov dword [0x10006474], eax
call fcn.10001783
mov esi, 0xe8
push 0x10003a8d
push 0x702bac
push esi
call fcn.1000184a
add esp, 0xc
call fcn.10003cbf
call fcn.100035ce
call fcn.100038b4
call fcn.100039a1
push 0x10001028
push 0x401167
push esi
call fcn.1000184a
add esp, 0xc
call fcn.10002f06
mov ecx, section..data
push str.INFO
call fcn.100010e4
mov ecx, section..data
push 1
push 0x57
push str.GangstaPatch_has_been_successfully_initialized.__Build_Date:_Sun_Aug__4_13:19:14_2024__n
call fcn.1000108e
cmp dword [0x10006454], 0
je 0x10003c1e
mov ecx, section..data
push str.INFO
call fcn.100010e4
mov ecx, section..data
push 0
push 0x27
push str.Running_under_Linux_with_Wine_version:
call fcn.1000108e
xor edx, edx
dec edx
mov eax, dword [0x10006454]
cmp byte [eax + edx + 1], 0
lea edx, [edx + 1]
jne 0x10003bf1
mov ecx, section..data
push 0
push edx
push eax
call fcn.1000108e
mov eax, esp
mov byte [eax], 0xa
xor edx, edx
inc edx
mov ecx, section..data
push edx
push edx
push eax
call fcn.1000108e
xor eax, eax
inc eax
add esp, 0x104
pop esi
ret 0xc
push 0x10
push str.GangstaPatch
push str.Youre_using_wrong_game_version__only_v1.00.2_is_usable__nVisit_abandonware_site_for_download_or_find_alternative_way_to_obtain_this_version.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
inc ecx
int 0x29

Function at 0x10003c44
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [0x100064d4]
test eax, eax
jne 0x10003cbb
lea eax, [esp + 0x10]
mov byte [eax + 8], 0
mov dword [eax + 4], 0x32336c65
mov dword [eax], 0x6e72656b
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10003cb6
mov dword [esp], 0x676e6147
mov dword [esp + 0xb], 0x6b6f6f
mov dword [esp + 8], 0x6f486e69
mov dword [esp + 4], 0x4d617473
mov byte [esp], 0x56
xor ecx, ecx
inc ecx
mov dl, byte [ecx + 0x100051f8]
xor byte [esp + ecx], dl
inc ecx
cmp ecx, 0xe
jne 0x10003c96
mov ecx, esp
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100064d4], eax
jmp 0x10003cbb
mov eax, dword [0x100064d4]
add esp, 0x1c
ret
Function at 0x100044a6
Capabilities:
Resume thread

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [ecx]
test eax, eax
je 0x100044fa
mov esi, ecx
cmp dword [ecx + 8], 0
je 0x100044eb
xor ebx, ebx
inc ebx
mov ebp, dword [sym.imp.KERNEL32.dll_OpenThread]
push dword [eax + ebx*4 - 4]
push 0
push 0x5a
call ebp
test eax, eax
je 0x100044df
mov edi, eax
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, dword [esi + 8]
jae 0x100044e9
mov eax, dword [esi]
inc ebx
jmp 0x100044c1
mov eax, dword [esi]
push eax
push 0
push dword [0x100064d0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404568
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test dh, dh
or edi, edi
push dword [edx + 0x5e]
pop ebx
leave
mov eax, dword [eax]
movzx eax, word [eax + edx*2]
mov dword [ebp + 8], eax
movzx eax, word [ebx]
cmp word [ebp + 8], ax
je 0x404578
inc ecx
movzx eax, word [ebx + ecx*2]
or edi, edi
push dword [ebp - 0x10]
jne 0x40455a
jne 0x40455a
movzx eax, word [ebx]
dec edx
inc esi
cmp esi, edi
jb 0x404544
fld st(7)
inc ebp
clc
add cl, byte [ebx + 0x1e7d1cc2]
mov eax, edx
sbb al, 0x7d
push ds
lea eax, [edx - 0x77]
pop es
invalid

Function at 0x4073e6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [esp + 0x2c], ebx
call 0x7f48a6d1
cmp dword [esp + 0x34], 0
jle 0xc64d74cf
mov eax, dword [esp + 0x30]
sub eax, ebx
je 0x444fa6
sbb bh, al
dec ecx
add byte [ecx - 0x39f2ff4e], bh
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
dec dword [esp + 0x20]
push edi
mov dx, word [ecx]
mov ecx, eax
call 0xc99e74ff
enter 0xffffffffffffd9e8, 0
pop esi
leave
mov dword [edi], edi
sub byte [eax], al
call 0xb7428ec0
add byte [0x2bc88bc6], cl
dec esp
and al, 0x10
sar ecx, 1
sub edi, ecx
dec dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov edx, edi
sub edi, ecx
js 0x4074fa
push ecx
push dword [esp + 0x24]
dec ebp
call 0xff4263fc
inc edi
or al, 0x41
add al, 0x8b
inc esp
and al, 0x24
invalid
push esi
push edi
push 0xf
dec dword [eax]
add byte [ebx + 0x88e9fb], cl
add bh, bh
jbe 0x407530
and al, 0x10
lea eax, [eax + edi*2]
mov dword [edi], edi
and al, 0xe9
outsd dx, dword [esi]
pop ecx
push eax
push esi
lea eax, [eax + edx*2]
add dl, dh
push ebp
jge 0x40750e
add byte [edi], cl
test dword [ecx + 0x660d7401], ebp
cmp dword [ecx], edx
je 0x40751a
add ecx, 2
jmp 0x4074dc
mov eax, ecx
pop ebp
ret
neg ecx
or ebp, dword [edx + 4]
pop edx
test ecx, 0x6a2e4d8b
invalid
invalid
test edi, edi
invalid
Function at 0x471fac
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4d06e0], 1
jne 0x471fba
call fcn.00472096
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x471ff2
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
sub dword [0x4d06e0], 1
jne 0x472005
call fcn.00472096
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x472048
fadd qword [0x4c81c0]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4c8190]
leave
ret

Function at 0x472056
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0x4d2630], ecx
inc esi
mov edx, esi
mov eax, dword [edx*4 + 0x4d262c]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x4d2630], eax
inc edx
cmp edx, 0x270
jl 0x472062
mov dword [0x4d06e0], esi
mov dword [0x4d2ff0], esi
pop esi
ret

Function at 0x472096
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d2ff0], 0
push esi
push edi
mov esi, 0x4d2630
jne 0x4720b9
push 0
call fcn.0042e538
pop ecx
mov ecx, eax
call fcn.00472056
mov dword [0x4d06e0], 0x270
mov edx, 0xe3
mov dword [0x4d2ff4], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi + 0x634]
mov dword [esi], ecx
add esi, 4
sub edx, 1
jne 0x4720ce
mov eax, dword [esi]
mov dword [ebp - 4], 0xc306018c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
sub dword [ebp - 4], 1
mov dword [esi], ecx
lea esi, [esi + 4]
jne 0x472108
mov eax, dword [0x4d2630]
mov ecx, edi
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, edi
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
leave
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x89e1c86
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6243665c
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x403340
Capabilities:
Query or enumerate registry value

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

Function at 0x4040b8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x465048], 0
je 0x404119
cmp word [0x46521c], 0xd7b2
jne 0x4040e1
cmp dword [0x465224], 0
jbe 0x4040e1
mov eax, 0x465218
call dword [0x465234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x463054
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 0x404140
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46301c], 0
jne 0x404135
push 0
push 0x463074
push 0x463054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4095a0
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 0x4095d9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404324
jmp 0x4095e2
mov eax, ebx
mov edx, esi
call fcn.00404288
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x409c94
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409b0c
mov eax, dword [0x46474c]
cmp byte [eax], 0
je 0x409cfc
mov eax, dword [0x4645a0]
call fcn.00402c5c
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004087d8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x409d44
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409d32
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x464560]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x465714]
call fcn.00405950
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 0x40a828
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40a88c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040449c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408458
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a893
lea eax, [ebp - 0xc]
call fcn.00404234
ret
Function at 0x41c430
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x465a20
cmp dword [edi], 0
jne 0x41c4ac
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x465a1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4634bc
mov ecx, 2
call fcn.004028c0
mov edx, 0x41c408
lea eax, [esi + 5]
call fcn.0041c428
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c428
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 0x41c481
mov dword [0x465a1c], 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 0x41d940
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 0x41d946
ret

Function at 0x41fd9c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41fded
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41fdd4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41fdc4
jmp 0x41fded
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41fdd5
pop ebx
mov esp, ebp
pop ebp
ret