joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448373
Capabilities:
Enumerate process modules

Disassembly:
push 0x28
mov eax, 0x47146c
call fcn.00466e87
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [sym.imp.PSAPI.DLL_EnumProcessModules]
lea ecx, [ebp - 0x14]
push ecx
xor esi, esi
mov dword [ebp - 0x18], eax
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], esi
push ecx
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
call edi
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 4
shr eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00465da0
mov ebx, eax
pop ecx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
push ebx
push dword [ebp - 0x18]
call edi
jmp 0x44841c
xor ecx, ecx
shr eax, 2
push 4
pop edx
mul edx
mov edi, ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00465da0
mov ebx, eax
mov dword [ebp - 0x24], ebx
pop ecx
test edi, edi
je 0x448404
push edi
call fcn.00465da9
pop ecx
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
push ecx
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
ja 0x4483da
test eax, 0xfffffffc
jbe 0x4484bd
mov eax, dword [ebx + esi*4]
lea edi, [ebp - 0x30]
mov dword [ebp - 0x34], eax
xor eax, eax
stosd dword es:[edi], eax
push 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x18]
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x34]
mov ecx, dword [eax + 4]
cmp edx, ecx
jae 0x448486
cmp dword [eax], edx
ja 0x448486
mov edi, edx
sub edi, dword [eax]
cmp ecx, dword [eax + 8]
jne 0x448474
push ecx
mov ecx, eax
call fcn.00448f24
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x4484a7
and edi, 0xfffffff0
add edi, dword [eax]
mov esi, edi
mov edi, dword [eax + 4]
jmp 0x4484a0
cmp ecx, dword [eax + 8]
jne 0x448496
push ecx
mov ecx, eax
call fcn.00448f24
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
test edi, edi
je 0x4484a7
lea esi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1c]
add dword [eax + 4], 0x10
inc esi
mov eax, dword [ebp - 0x10]
shr eax, 2
mov dword [ebp - 0x1c], esi
cmp esi, eax
jb 0x44842f
test ebx, ebx
je 0x4484c8
push ebx
call fcn.00465da9
pop ecx
call fcn.00466e50
ret 4
Function at 0x457c1a
Capabilities:
Get disk information

Disassembly:
push 0x418
mov eax, 0x473cbc
call fcn.00466ebb
mov ebx, ecx
mov dword [ebp - 0x418], ebx
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x414], eax
cmp dword [eax + 0x10], edi
jne 0x457c48
xor al, al
jmp 0x457d93
lea esi, [ebx + 0x118]
mov ecx, esi
mov dword [ebp - 0x424], esi
call dword [sym.imp.infra.dll_public:_void___thiscall_base::Lock::Acquire_void_]
mov dword [ebp - 4], edi
cmp dword [ebx + 0x134], edi
jne 0x457cef
push 0x400
lea eax, [ebp - 0x410]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x410], 0
lea edi, [ebp - 0x410]
je 0x457cef
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x457cca
push dword [ebp - 0x418]
lea eax, [ebp - 0x420]
push edi
push ecx
push eax
lea ecx, [ebx + 0x130]
call fcn.00458703
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x457ccf
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], si
jne 0x457ca4
lea esi, [ebx + 0x118]
mov ecx, dword [ebp - 0x414]
mov edi, dword [ebx + 0x130]
cmp dword [ecx + 0x14], 8
jb 0x457d09
mov ecx, dword [ecx]
mov dword [ebp - 0x414], ecx
mov eax, edi
mov dword [ebp - 0x41c], eax
mov ebx, dword [eax + 4]
cmp byte [ebx + 0xd], 0
jne 0x457d55
mov esi, dword [ebp - 0x414]
push esi
lea eax, [ebx + 0xe]
push eax
call fcn.00456566
test al, al
je 0x457d39
mov ebx, dword [ebx + 8]
mov eax, dword [ebp - 0x41c]
jmp 0x457d43
mov eax, ebx
mov ebx, dword [ebx]
mov dword [ebp - 0x41c], eax
cmp byte [ebx + 0xd], 0
je 0x457d20
mov esi, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x414]
mov ebx, dword [ebp - 0x418]
cmp eax, dword [ebx + 0x130]
je 0x457d77
add eax, 0xe
push eax
push ecx
call fcn.00456566
test al, al
mov eax, dword [ebp - 0x41c]
je 0x457d7d
mov eax, dword [ebx + 0x130]
cmp eax, edi
setne bl
mov ecx, esi
mov dword [ebp - 4], 1
call dword [sym.imp.infra.dll_public:_void___thiscall_base::Lock::Release_void_]
mov al, bl
call fcn.00466e65
ret 4
Function at 0x45c6f0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x45c75a
push esi
lea edi, [eax + 0x400]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x45c72a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45c776
push ecx
push esi
call fcn.0045d960
add esp, 8
mov ebx, eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x45c7d0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x45c7ee
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x45c7e3
pop esi
ret

Function at 0x45c840
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x45c8d2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x45c8c4
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x45c8bc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x45c885
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x47f676eb
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x20092081
nop
nop
nop
test eax, eax
nop
je 0x431084
nop
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
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x100010fa
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp dword [ebp + 0x1c], esi
je 0x1000111f
push dword [ebp + 0x1c]
mov eax, dword [edi]
push edi
call dword [eax + 0x398]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], esi
je 0x10001166
mov eax, dword [edi]
push esi
push dword [ebp + 0x10]
push edi
call dword [eax + 0x2a4]
mov ebx, eax
cmp ebx, esi
jne 0x10001166
mov eax, dword [edi]
push 0x10004078
push edi
call dword [eax + 0x18]
mov esi, eax
mov eax, dword [edi]
push edi
call dword [eax + 0x390]
test al, al
jne 0x1000115d
mov eax, dword [edi]
push str.Failed_to_get_UTF_8_chars_for_argument__lpFileName__in_native_dispatcher_for__CreateFileA_
push esi
push edi
call dword [eax + 0x38]
xor eax, eax
xor edx, edx
jmp 0x10001208
push dword [ebp + 0x28]
mov esi, dword [sym.imp.kernel32.dll_CreateFileA]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp - 4]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
call esi
cmp byte [ebp + 0x30], 0
mov dword [ebp + 0x1c], eax
je 0x100011f1
cmp eax, 0xffffffff
jne 0x100011f1
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x100011d8
push 1
push 0
push str..pipe_
call dword [sym.imp.kernel32.dll_FindFirstChangeNotificationA]
cmp eax, 0xffffffff
je 0x100011f1
push 0xfa
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
jne 0x100011f1
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp - 4]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
call esi
mov dword [ebp + 0x1c], eax
jmp 0x100011f1
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xe7
jne 0x100011f1
push 0xfa
push ebx
call dword [sym.imp.kernel32.dll_WaitNamedPipeA]
cmp dword [ebp + 0x10], 0
je 0x10001204
mov eax, dword [edi]
push ebx
push dword [ebp + 0x10]
push edi
call dword [eax + 0x2a8]
mov eax, dword [ebp + 0x1c]
cdq
pop edi
pop esi
pop ebx
leave
ret 0x2c
Function at 0x1000120f
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
xor edi, edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x2c], ebx
je 0x1000123b
push dword [ebp + 0x2c]
mov eax, dword [esi]
push esi
call dword [eax + 0x398]
mov edi, eax
cmp dword [ebp + 0x10], ebx
je 0x10001283
mov eax, dword [esi]
push ebx
push dword [ebp + 0x10]
push esi
call dword [eax + 0x2a4]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x10001283
mov eax, dword [esi]
push 0x10004100
push esi
call dword [eax + 0x18]
mov edi, eax
mov eax, dword [esi]
push esi
call dword [eax + 0x390]
test al, al
jne 0x1000127a
mov eax, dword [esi]
push str.Failed_to_get_UTF_8_chars_for_argument__lpName__in_native_dispatcher_for__CreateNamedPipeA_
push edi
push esi
call dword [eax + 0x38]
xor eax, eax
xor edx, edx
jmp 0x10001343
cmp dword [ebp + 0x30], ebx
je 0x100012ec
mov eax, dword [esi]
push ebx
push dword [ebp + 0x30]
push esi
call dword [eax + 0x2a4]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x100012bb
mov edi, dword [esi]
push str.Failed_to_get_UTF_8_chars_for_argument__lpSecurityDescriptor__in_native_dispatcher_for__CreateNamedPipeA_
push 0x100041ec
push esi
call dword [edi + 0x18]
push eax
push esi
call dword [edi + 0x38]
or edx, 0xffffffff
mov eax, edx
jmp 0x10001343
push ebx
lea ecx, [ebp - 4]
push ecx
push 1
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
test eax, eax
je 0x100012ec
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x100012ec
cmp edi, ebx
jne 0x100012e9
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], eax
lea edi, [ebp - 0x18]
jmp 0x100012ec
mov dword [edi + 4], eax
push edi
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CreateNamedPipeA]
mov edi, eax
cmp dword [ebp - 4], ebx
je 0x10001318
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_LocalFree]
cmp dword [ebp + 0x10], ebx
je 0x1000132c
push dword [ebp - 8]
mov eax, dword [esi]
push dword [ebp + 0x10]
push esi
call dword [eax + 0x2a8]
cmp dword [ebp + 0x30], ebx
je 0x10001340
push dword [ebp - 0xc]
mov eax, dword [esi]
push dword [ebp + 0x30]
push esi
call dword [eax + 0x2a8]
mov eax, edi
cdq
pop edi
pop esi
pop ebx
leave
ret 0x2c
Function at 0x10001437
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
cmp dword [ebp + 0x18], edi
je 0x1000145e
push dword [ebp + 0x18]
mov eax, dword [esi]
push esi
call dword [eax + 0x398]
mov ebx, eax
add ebx, dword [ebp + 0x1c]
cmp dword [ebp + 0x24], edi
je 0x10001474
push dword [ebp + 0x24]
mov eax, dword [esi]
push esi
call dword [eax + 0x398]
mov edi, eax
add edi, dword [ebp + 0x28]
cmp dword [ebp + 0x2c], 0
je 0x10001489
push dword [ebp + 0x2c]
mov eax, dword [esi]
push esi
call dword [eax + 0x398]
mov dword [ebp - 4], eax
push dword [ebp - 4]
push edi
push dword [ebp + 0x20]
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
pop ebx
leave
ret 0x28

Function at 0x100014cc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
cmp dword [ebp + 0x18], edi
je 0x100014f3
push dword [ebp + 0x18]
mov eax, dword [esi]
push esi
call dword [eax + 0x398]
mov ebx, eax
add ebx, dword [ebp + 0x1c]
cmp dword [ebp + 0x24], edi
je 0x10001509
push dword [ebp + 0x24]
mov eax, dword [esi]
push esi
call dword [eax + 0x398]
mov edi, eax
add edi, dword [ebp + 0x28]
cmp dword [ebp + 0x2c], 0
je 0x1000151e
push dword [ebp + 0x2c]
mov eax, dword [esi]
push esi
call dword [eax + 0x398]
mov dword [ebp - 4], eax
push dword [ebp - 4]
push edi
push dword [ebp + 0x20]
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.kernel32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret 0x28
Function at 0x10001de4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x10001df3
pop dword [ebp - 0x40]
mov eax, 0x70f49e9b
add eax, 0x9f0b7f58
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xc1bd8f84
add dword [ebp - 0x50], 0x8c94b5c7
mov dword [ebp - 0x4c], 0x4cd844ad
sub dword [ebp - 0x4c], 0x1aa4f868
mov dword [ebp - 0x48], 0xdf79cacb
add dword [ebp - 0x48], 0x6cd27963
mov dword [ebp - 0x44], 0x47053d24
add dword [ebp - 0x44], 0xb8fac2dc
lea eax, [ebp - 0x50]
push eax
mov eax, 0x3a3ce36a
add eax, 0xd5c34c9a
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x714c713
add dword [ebp - 0x50], 0x6d5da243
mov dword [ebp - 0x4c], 0xd853ec19
add dword [ebp - 0x4c], 0x6918755c
mov dword [ebp - 0x48], 0xa0ca70a
add dword [ebp - 0x48], 0x5962c562
mov dword [ebp - 0x44], 0x5f892cc2
add dword [ebp - 0x44], 0xa076d33e
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xd6b68106
sub eax, 0xc6b650fa
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x394f4
push 0
call eax
mov ecx, 0x96a04db1
sub ecx, 0x969ffa62
xor ebx, ebx
add ebx, eax
mov edi, 0xb1f09ce1
add edi, 0x5e0fc71f
add edi, dword [ebp - 0x40]
mov edx, 0xc2098ff0
add edx, 0x22fe8daf
mov esi, dword [edi]
sub dword [ebp - 0x34], edx
add esi, edx
xor dword [ebp - 0x28], ecx
mov dword [ebx], esi
mov dword [ebp - 0x38], 0xe3144d57
add ebx, 0x46d2c6cb
sub ebx, 0x46d2c6c7
add edi, 0xecfb2509
add edi, 0x1304dafb
loop 0x10001f17
add eax, 0xc4a9f539
sub eax, 0xc4a8b52a
xor ebx, ebx
add ebx, eax
add eax, 0x182b0445
sub eax, 0x182b0440
mov ecx, 0x10000000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x403358
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004050b8
test esi, esi
jne 0x40338e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004051a8
jmp 0x4033ac
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031fc
mov edi, eax
test esi, esi
je 0x4033ac
cmp dword [ebx], 0
je 0x4033ac
dec esi
jmp 0x403395
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403fd0
Capabilities:
Query or enumerate registry value

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

Function at 0x404e84
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47f04c], 0
je 0x404ee5
cmp word [0x47f220], 0xd7b2
jne 0x404ead
cmp dword [0x47f228], 0
jbe 0x404ead
mov eax, 0x47f21c
call dword [0x47f238]
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 0x404f0c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47c02c], 0
jne 0x404f01
push 0
push 0x47c77c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40503c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x47c034], 0
je 0x405062
mov edx, esi
mov eax, ebx
call dword [0x47c034]
jmp 0x405071
mov eax, 8
call fcn.00402f00
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x47f04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405004
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x409470
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4094c2
test eax, edx
je 0x4094c5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409485
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4094ab
add ecx, 4
js 0x40949b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4094a8
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4094d1
test edx, edx
jne 0x409478
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x409e90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405548
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409ea9
test al, 0x10
je 0x409ead
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409eb4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405548
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409ecd
test al, 0x10
jne 0x409ed1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d328
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 0x40d361
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004051a8
jmp 0x40d36a
mov eax, ebx
mov edx, esi
call fcn.0040510c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d9ec
mov eax, dword [0x47e5dc]
cmp byte [eax], 0
je 0x40dbf0
mov eax, dword [0x47e3a4]
call fcn.00403774
call fcn.0040305c
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.0040a1d8
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 0x40dc38
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40dc26
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47e344]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4817f8]
call fcn.00406500
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 0x40e4f0
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 0x40e5c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405150
lea eax, [ebp - 4]
call fcn.004055a0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405548
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e5b0
mov eax, ebx
call fcn.00402f00
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e5a9
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.00405548
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e593
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e5d8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e593
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 0x40e5b0
mov eax, dword [ebp - 0x10]
call fcn.00402f1c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e5cd
lea eax, [ebp - 4]
call fcn.004050b8
ret

Function at 0x420f90
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x420fde
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00420ccc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x420ff7
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret