joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427067
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x4270ac
call fcn.0041ec0b
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4270ac
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4270c8
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042d735
mov ebx, eax
test edi, edi
je 0x4270c6
test esi, esi
je 0x4270c6
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x427a92
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x427b50
cmp dword [esi + 0x20], 0
je 0x427b50
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x427b50
cmp dword [ebp + 8], 0
je 0x427b50
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0041ec0b
push 0x587530
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x427b21
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x427b50
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0042e2a3
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x427b41
test edi, edi
je 0x427b41
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x427b4c
mov ecx, esi
call fcn.0042785c
mov eax, ebx
jmp 0x427b52
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42ef2d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x42ef58
cmp dword [ebx + 0x80], 0
jne 0x42ef58
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.0041ec0b
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.0042f1ee
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42ef92
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0041ec0b
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42efc9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0042efe8
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x43112a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x431180
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x431159
call fcn.004237d0
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x43116e
call fcn.004237d0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x431180
call fcn.004237d0
call fcn.0041ec0b
cmp dword [eax + 0x3c], 0
je 0x431195
push edi
mov ecx, ebx
call fcn.0043085a
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00431367
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4311be
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4311ca
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x45419b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push edi
test esi, esi
jne 0x4541b5
call fcn.0041ec0b
mov esi, dword [eax + 0xc]
push 0x58df58
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x45420b
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45420b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4541ea
xor esi, esi
jmp 0x454200
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00454214
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x45420d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x503843
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00564b3b
pop ecx
test eax, eax
jne 0x503885
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x5a1cfc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00418d80
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x50384b
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret
Function at 0x56b0b0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056af2d

Function at 0x56e7ae
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056e450
Function at 0xaa82e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x56d000]
push edi
or ebp, 0xffffffff
jmp 0xaa8302
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xaa8309
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaa82f8
mov eax, 1
add ebx, ebx
jne 0xaa831b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xaa832c
jne 0xaa834b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaa834b
dec eax
add ebx, ebx
jne 0xaa8338
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xaa8310
add ebx, ebx
jne 0xaa8347
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xaa839d
xor ecx, ecx
sub eax, 3
jb 0xaa8363
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xaa83d2
sar eax, 1
mov ebp, eax
jmp 0xaa836e
add ebx, ebx
jne 0xaa836e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaa833c
inc ecx
add ebx, ebx
jne 0xaa837c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaa833c
add ebx, ebx
jne 0xaa8389
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xaa837e
jne 0xaa839a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xaa837e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xaa83bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xaa83ae
jmp 0xaa82fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xaa83bc
add edi, ecx
jmp 0xaa82fe
pop esi
mov edi, esi
mov ecx, 0x66fd1d
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0xaa83f7
cmp byte [edi], 0x23
jne 0xaa83dc
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0xaa83da
lea edi, [esi + 0x6a6000]
mov eax, dword [edi]
or eax, eax
je 0xaa8448
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6a8bd0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6a8c0c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xaa83fd
mov ecx, edi
jns 0xaa842c
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 + 0x6a8c10]
or eax, eax
je 0xaa8442
mov dword [ebx], eax
add ebx, 4
jmp 0xaa841a
call dword [esi + 0x6a8c20]
mov ebp, dword [esi + 0x6a8c14]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0xaa847c
sub esp, 0xffffff80
jmp 0x410e7c
Function at 0x10001f80
Capabilities:
Write file on windows

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.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10001fd8
cmp byte [esi + ebx - 1], 0xa
je 0x10001fac
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10003118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10002080
Capabilities:
Check if process is running under wine
Query or enumerate registry value

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x3e
mov ebp, esp
push edi
push ebx
lea edi, [ebp - 0x308]
sub esp, 0x338
mov dword [ebp - 0x314], 0x6362696c
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x320]
mov dword [ebp - 0x310], 0x69706174
lea edi, [ebp - 0x314]
mov dword [ebp - 0x30c], 0x6f732e
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareWinectapi32
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x10002190
test byte [0x10003018], 8
jne 0x10002160
mov edx, dword [0x10003064]
mov eax, dword [0x10003060]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [0x10003058]
mov edx, eax
sub esp, 0x10
mov eax, 1
test edx, edx
je 0x10002159
mov dword [esp], str.Wine_cannot_find_any_usable_hardware_library__ctapi32.dll_not_working._n
call sym._wine_dbg_printf
mov dword [esp], str.Please_create_the_key__HKEY_CURRENT_USERSoftwareWinectapi32__in_your_registry_n
call sym._wine_dbg_printf
mov dword [esp], str.and_set_the_value__library__to_your_library_name__e.g.__libctapi_cyberjack.so.1__or___usr_lib_readers_libctapi.so__._n
call sym._wine_dbg_printf
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Loading_library__s_n
mov dword [esp + 8], str.load_functions
mov dword [esp + 4], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10002101
lea eax, [ebp - 0x318]
lea ebx, [ebp - 0x210]
mov dword [ebp - 0x318], 0x206
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x31c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x320]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.library
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x100021e7
cmp dword [ebp - 0x31c], 1
je 0x10002200
mov eax, dword [ebp - 0x320]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x100020f8
mov eax, dword [ebp - 0x318]
xor edx, edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
shr eax, 1
mov dword [esp + 0x14], 0x104
mov word [ebp + eax*2 - 0x210], dx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfdf2
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
jmp 0x100021e7
Function at 0x526f3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x526f54
mov edi, dword [esi + 0xc]
jmp 0x526f94
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x526f6d
call fcn.004471f6
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x526f82
call fcn.004471f6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x526f94
call fcn.004471f6
call fcn.00451ba4
cmp dword [eax + 0x3c], 0
je 0x526fa9
push edi
mov ecx, ebx
call fcn.00525df8
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00526e56
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x526fc7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x526fd3
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5470fe
call fcn.0054ab05
mov dword [eax], esi
call fcn.0054aaf2
push 0x16
pop esi
mov dword [eax], esi
call fcn.0054fe52
mov eax, esi
jmp 0x547153
test dword [ebp + 0xc], 0xfffffff9
jne 0x5470e4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x54712b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0054ab18
pop ecx
call fcn.0054aaf2
mov eax, dword [eax]
jmp 0x547153
test al, 0x10
jne 0x547151
test al, 1
je 0x547151
test byte [ebp + 0xc], 2
je 0x547151
call fcn.0054ab05
mov dword [eax], 5
call fcn.0054aaf2
mov dword [eax], 0xd
jmp 0x547122
xor eax, eax
pop esi
pop ebp
ret

Function at 0x55d708
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0055d410
and cl, ch
int3

Function at 0x55d8b3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.0055d410
out dx, al
das
push 0x7c858d16
invalid
Function at 0x55e82e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x55e866
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
test byte [0xfffffc6c], al
test byte [0xfffffc6c], al
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 0x55e810
call fcn.0055d410
and bl, al
adc ecx, esi
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.0055d410
inc ebx
inc ecx
sub byte [edi - 0x73], 0x85
aam 0xf8
invalid
Function at 0x565054
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and dword [ebp + 8], 0
cmp dword [ebp + 0x10], 0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
jle 0x5650b5
push ebx
push esi
push edi
mov esi, 0xff
inc ecx
and ecx, esi
lea edi, [eax + ecx*4 + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [edi]
add edx, ecx
and edx, esi
mov dword [ebp - 8], edx
lea edx, [eax + edx*4 + 8]
mov ebx, dword [edx]
mov dword [edi], ebx
mov ebx, dword [edx]
mov edi, dword [ebp + 8]
add ebx, ecx
mov dword [edx], ecx
mov edx, dword [ebp + 0xc]
and ebx, esi
mov cl, byte [eax + ebx*4 + 8]
xor byte [edx + edi], cl
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
inc edi
mov dword [ebp + 8], edi
cmp edi, dword [ebp + 0x10]
jl 0x565073
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov dword [eax + 4], edx
leave
ret

Function at 0x565ae1
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x402fb0
Capabilities:
Query or enumerate registry value

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

Function at 0x403d0c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45b048], 0
je 0x403d6d
cmp word [0x45b21c], 0xd7b2
jne 0x403d35
cmp dword [0x45b224], 0
jbe 0x403d35
mov eax, 0x45b218
call dword [0x45b234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45906c
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 0x403d94
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x459030], 0
jne 0x403d89
push 0
push 0x459064
push 0x45906c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405a3c
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 0x405aa2
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.004040f8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b74
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a8c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405aa9
lea eax, [ebp - 0x10]
call fcn.00403e88
ret

Function at 0x40aeb8
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 0x40aef1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f78
jmp 0x40aefa
mov eax, ebx
mov edx, esi
call fcn.00403edc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b5ac
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b424
mov eax, dword [0x45a104]
cmp byte [eax], 0
je 0x40b628
mov eax, dword [0x459f20]
call fcn.004029e0
call fcn.00402824
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.004083a4
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 0x40b670
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b65e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x459ecc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45b664]
call fcn.00404f50
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