joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420568
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x513b83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4205a3
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4205bc
lea eax, [ebp - 0x10]
mov edx, dword [0x5315f0]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4205cf
lea eax, [ebp - 0x10]
mov edx, dword [0x5315f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4205db
adc edx, 0
mov edx, dword [edx*4 + 0x5303fc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420755
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420748
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420748
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4206e6
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4206e6
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4206e6
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4206e6
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420748
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420748
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420748
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420748
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x42076d
inc ebx
cmp ebx, 0x19
jne 0x420595
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513b8a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x407b18
Capabilities:
Create process on windows

Disassembly:
push ebp
xor edx, edx
xor ecx, ecx
mov ebp, esp
sub esp, 0x48
mov dword [0x4381e0], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], edx
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0x20], 0x4381e0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, eax
sub esp, 0x28
xor eax, eax
test edx, edx
je 0x407b84
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov eax, dword [ebp - 0x18]
leave
ret 4

Function at 0x407dfe
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
inc eax
push edx
je 0x407e2c
mov eax, ebx
mov dword [esp], esi
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x407e37
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.00407dfe
push ecx
cmp eax, 0xffffffff
je 0x407e8c
test byte [ebp + 0xc], 1
mov esi, eax
mov dword [esp], ebx
je 0x407e84
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edx
test eax, eax
jne 0x407e7d
test byte [ebp + 0xc], 4
jne 0x407e8c
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
jmp 0x407e8c
mov eax, 1
jmp 0x407e8e
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x407e61
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
cmp eax, 0xffffffff
jne 0x407eb2
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
xor edx, edx
xor ecx, ecx
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc
Function at 0x40231e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov byte [ebp - 0x18], al
mov byte [ebp - 5], 0
jmp 0x402398
mov byte [ebp - 6], 0
jmp 0x40238e
movzx eax, byte [ebp - 5]
movzx edx, byte [ebp - 6]
mov ecx, dword [ebp + 0xc]
shl eax, 2
add eax, ecx
add eax, edx
movzx ebx, byte [eax]
movzx eax, byte [ebp - 0x18]
lea edx, [eax*4]
movzx eax, byte [ebp - 5]
add eax, edx
lea edx, [eax*4]
movzx eax, byte [ebp - 6]
add eax, edx
mov edx, eax
mov eax, dword [ebp + 0x10]
add eax, edx
movzx edx, byte [eax]
movzx eax, byte [ebp - 5]
movzx ecx, byte [ebp - 6]
xor edx, ebx
mov ebx, dword [ebp + 0xc]
shl eax, 2
add eax, ebx
add eax, ecx
mov byte [eax], dl
add byte [ebp - 6], 1
cmp byte [ebp - 6], 3
jbe 0x402337
add byte [ebp - 5], 1
cmp byte [ebp - 5], 3
jbe 0x402331
nop
nop
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4023a5
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov byte [ebp - 9], 0
jmp 0x4023fe
mov byte [ebp - 0xa], 0
jmp 0x4023f4
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 9]
mov ecx, dword [ebp + 8]
shl eax, 2
add eax, ecx
add eax, edx
movzx eax, byte [eax]
movzx eax, al
movzx ecx, byte [ebp - 0xa]
movzx ebx, byte [ebp - 9]
movzx edx, byte [eax + str.cw]
mov esi, dword [ebp + 8]
lea eax, [ecx*4]
add eax, esi
add eax, ebx
mov byte [eax], dl
add byte [ebp - 0xa], 1
cmp byte [ebp - 0xa], 3
jbe 0x4023b9
add byte [ebp - 9], 1
cmp byte [ebp - 9], 3
jbe 0x4023b3
nop
nop
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x402ebf
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov byte [ebp - 9], 0
jmp 0x402f18
mov byte [ebp - 0xa], 0
jmp 0x402f0e
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 9]
mov ecx, dword [ebp + 8]
shl eax, 2
add eax, ecx
add eax, edx
movzx eax, byte [eax]
movzx eax, al
movzx ecx, byte [ebp - 0xa]
movzx ebx, byte [ebp - 9]
movzx edx, byte [eax + 0x407c60]
mov esi, dword [ebp + 8]
lea eax, [ecx*4]
add eax, esi
add eax, ebx
mov byte [eax], dl
add byte [ebp - 0xa], 1
cmp byte [ebp - 0xa], 3
jbe 0x402ed3
add byte [ebp - 9], 1
cmp byte [ebp - 9], 3
jbe 0x402ecd
nop
nop
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x40311e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov byte [ebp - 5], 0
jmp 0x403154
movzx edx, byte [ebp - 5]
mov eax, dword [ebp + 8]
add eax, edx
movzx ecx, byte [eax]
movzx edx, byte [ebp - 5]
mov eax, dword [ebp + 0xc]
add eax, edx
movzx edx, byte [eax]
movzx ebx, byte [ebp - 5]
mov eax, dword [ebp + 8]
add eax, ebx
xor edx, ecx
mov byte [eax], dl
add byte [ebp - 5], 1
cmp byte [ebp - 5], 0xf
jbe 0x40312b
nop
nop
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x4035d0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004044f0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004044f0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x403630
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40acb0]
test esi, esi
jle 0x403750
mov eax, dword [0x40acb4]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x403664
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4036e7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x403650
mov dword [esp], ebx
call fcn.00403f90
mov edi, eax
test eax, eax
je 0x403777
mov eax, dword [0x40acb4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004040d0
mov edx, dword [0x40acb4]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x403757
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4036e0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4036f0
add dword [0x40acb0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40acb4]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4036e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004035d0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40366e
mov eax, dword [0x40acb4]
mov eax, dword [eax + ebx + 0xc]
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.004035d0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004035d0
lea esi, [esi]
nop
Function at 0x403c10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40accc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40acc4]
sub esp, 4
test ebx, ebx
je 0x403c65
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
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 0x403c5e
test esi, esi
je 0x403c5e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x403c40
mov dword [esp], 0x40accc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403f90
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x403fb5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x403fc0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x403fb5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x404008
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x403ffe
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40400a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x403ff0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40269d
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 0xc], edi
jle 0x4026ee
push esi
mov esi, dword [sym.imp.KERNEL32.dll_AddAtomA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call esi
mov eax, dword [ebp + 8]
lea edx, [ebx + eax]
call fcn.0040266f
xor byte [edx], al
push edi
call esi
push edi
call dword [sym.imp.USER32.dll_SetThreadDesktop]
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationA]
push 0x433820
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
inc ebx
cmp ebx, dword [ebp + 0xc]
jl 0x4026b2
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x40780a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426c3c]
jne 0x407814
repz ret
jmp fcn.0040ab38

Function at 0x40a919
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404595
and dword [ebp - 4], 0
cmp dword [0x44ce84], 0
mov ebx, eax
jne 0x40a9ca
push 0x402480
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40aa7b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402474
push edi
call esi
test eax, eax
je 0x40aa7b
push eax
call fcn.00404523
mov dword [esp], 0x402464
push edi
mov dword [0x44ce84], eax
call esi
push eax
call fcn.00404523
mov dword [esp], 0x402450
push edi
mov dword [0x44ce88], eax
call esi
push eax
call fcn.00404523
mov dword [esp], 0x402434
push edi
mov dword [0x44ce8c], eax
call esi
push eax
call fcn.00404523
pop ecx
mov dword [0x44ce94], eax
test eax, eax
je 0x40a9ca
push 0x40241c
push edi
call esi
push eax
call fcn.00404523
pop ecx
mov dword [0x44ce90], eax
mov eax, dword [0x44ce90]
cmp eax, ebx
je 0x40aa22
cmp dword [0x44ce94], ebx
je 0x40aa22
push eax
call fcn.0040459e
push dword [0x44ce94]
mov esi, eax
call fcn.0040459e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40aa22
test edi, edi
je 0x40aa22
call esi
test eax, eax
je 0x40aa19
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40aa19
test byte [ebp - 0xc], 1
jne 0x40aa22
or dword [ebp + 0x10], 0x200000
jmp 0x40aa5b
mov eax, dword [0x44ce88]
cmp eax, ebx
je 0x40aa5b
push eax
call fcn.0040459e
pop ecx
test eax, eax
je 0x40aa5b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40aa5b
mov eax, dword [0x44ce8c]
cmp eax, ebx
je 0x40aa5b
push eax
call fcn.0040459e
pop ecx
test eax, eax
je 0x40aa5b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44ce84]
call fcn.0040459e
pop ecx
test eax, eax
je 0x40aa7b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40aa7d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x493d90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5b000]
push edi
jmp 0x493daa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x493db1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x493da0
mov eax, 1
add ebx, ebx
jne 0x493dc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x493dd4
jne 0x493df3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x493df3
dec eax
add ebx, ebx
jne 0x493de0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x493db8
add ebx, ebx
jne 0x493def
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x493e45
xor ecx, ecx
sub eax, 3
jb 0x493e0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x493e7a
sar eax, 1
mov ebp, eax
jmp 0x493e16
add ebx, ebx
jne 0x493e16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x493de4
inc ecx
add ebx, ebx
jne 0x493e24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x493de4
add ebx, ebx
jne 0x493e31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x493e26
jne 0x493e42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x493e26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x493e64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x493e56
jmp 0x493da6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x493e64
add edi, ecx
jmp 0x493da6
pop esi
mov edi, esi
mov ecx, 0x2cc0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x493e82
cmp byte [edi], 0x1a
jne 0x493e82
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 0x493e87
lea edi, [esi + 0x90000]
mov eax, dword [edi]
or eax, eax
je 0x493eff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x94228]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x94340]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x493eb4
mov ecx, edi
jns 0x493ee3
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 + 0x94344]
or eax, eax
je 0x493ef9
mov dword [ebx], eax
add ebx, 4
jmp 0x493ed1
call dword [esi + 0x94354]
mov ebp, dword [esi + 0x94348]
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 0x493f33
sub esp, 0xffffff80
jmp 0x454d3d
Function at 0x4082a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x4082b7
pop dword [ebp - 0x40]
mov eax, 0x4c1a8d79
sub eax, 0x4bda0ac2
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xa4d836f9
sub dword [ebp - 0x50], 0x5685f1ae
mov dword [ebp - 0x4c], 0x944de7f1
sub dword [ebp - 0x4c], 0x621a9bac
mov dword [ebp - 0x48], 0xbaba421f
sub dword [ebp - 0x48], 0x6e6dfdf1
mov dword [ebp - 0x44], 0x61c8c1dd
sub dword [ebp - 0x44], 0x61c8c1dd
lea eax, [ebp - 0x50]
push eax
mov eax, 0xf560b7a5
sub eax, 0xf5201799
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xc77357c9
add dword [ebp - 0x50], 0xacff118d
mov dword [ebp - 0x4c], 0x73259241
sub dword [ebp - 0x4c], 0x31b930cc
mov dword [ebp - 0x48], 0x7d989e5a
sub dword [ebp - 0x48], 0x1a2931ee
mov dword [ebp - 0x44], 0xbfcd33c2
sub dword [ebp - 0x44], 0xbfcd33c2
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x35922
push 0
call eax
mov ecx, 0x3b08
mov edx, eax
mov ebx, 0x43be00
add ebx, dword [ebp - 0x40]
mov esi, 0x2e521ab4
add esi, 0x6ddd8e36
xor dword [ebp - 0x38], 0x83aa9a96
mov edi, dword [ebx]
xor dword [ebp - 8], 0x4d93736a
sub edi, esi
mov dword [ebp - 0x3c], 0x18e88786
mov dword [edx], edi
xor dword [ebp - 0x18], 0x645cde4e
add edx, 0xa8493df2
sub edx, 0xa8493dee
add ebx, 0x25ead7e7
sub ebx, 0x25ead7e3
loop 0x4083c8
add eax, 0xdef3
mov ebx, eax
add eax, 5
mov ecx, 0x28186e19
sub ecx, 0x27d86e19
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x404180
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404338
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4041e1
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404354
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40424e
xor eax, eax
push ebp
push 0x404247
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404230
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404374
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40424e
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40432f
cmp byte [ebp - 0xd], 0
jne 0x404290
cmp byte [ebp - 0x12], 0
je 0x40432f
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4042a9
dec ebx
cmp byte [ebx], 0x2e
je 0x4042b8
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4042a8
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40432f
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4042e5
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40432f
cmp byte [ebp - 0xd], 0
je 0x40432f
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40432f
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret