joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40673a
pop dword [ebp - 0x18]
mov eax, 0xb8a426b9
sub eax, 0xb863bf7f
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xd2fbb6a4
add dword [ebp - 0x28], 0x7b568ea7
mov dword [ebp - 0x24], 0xf3200ec4
add dword [ebp - 0x24], 0x3f133d81
mov dword [ebp - 0x20], 0x4d5ebeb7
sub dword [ebp - 0x20], 0x1127a89
mov dword [ebp - 0x1c], 0x5050fcb6
sub dword [ebp - 0x1c], 0x5050fcb6
lea eax, [ebp - 0x28]
push eax
mov eax, 0x6a202c31
add eax, 0x962054d3
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x630b95e5
sub dword [ebp - 0x28], 0xee992c8f
mov dword [ebp - 0x24], 0x521516de
add dword [ebp - 0x24], 0xef574a97
mov dword [ebp - 0x20], 0xf7dce4ec
sub dword [ebp - 0x20], 0x946d7880
mov dword [ebp - 0x1c], 0x2d7ac6
add dword [ebp - 0x1c], 0xffd2853a
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x5cc26131
sub eax, 0x5c81e031
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x36415
push 0
call eax
mov ecx, 0xddec4b46
add ecx, 0x2213f7af
mov ebx, eax
mov edx, str.I1fdZI
add edx, dword [ebp - 0x18]
mov edi, 0xbad6881b
xor dword [ebp - 0x14], 0xdc0e492f
mov esi, dword [edx]
add dword [ebp - 0x14], eax
add esi, edi
xor dword [ebp - 8], eax
mov dword [ebx], esi
mov dword [ebp - 0x10], 0x7e5a084d
add ebx, 4
add edx, 0x9b48962e
add edx, 0x64b769d6
loop 0x406850
add eax, 0x7b2aee87
sub eax, 0x7b29efe0
xor ebx, ebx
add ebx, eax
add eax, 0x7403c9f3
add eax, 0x8bfc3612
mov ecx, 0x797b061f
sub ecx, 0x793b061f
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x40e560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x40e5b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x40e5d6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x40e66a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x40e625
cmp eax, 0x40
je 0x40e625
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x40e5c9
cmp eax, 0x40
je 0x40e5c9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x40e5c9
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040e560
lea esi, [esi]
lea edi, [edi]
Function at 0x40e8f0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.0040e8d0
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
je 0x40e990
movzx edx, byte [ebx]
cmp dl, 9
je 0x40e9d4
cmp dl, 0x20
je 0x40e9d4
cmp dl, 0x22
je 0x40e974
cmp dl, 9
mov eax, edx
je 0x40e988
cmp dl, 0x20
je 0x40e9e0
test dl, dl
lea esi, [esi]
jne 0x40e962
jmp 0x40e990
cmp al, 0x20
je 0x40e9e0
test al, al
nop
je 0x40e990
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x40e954
jmp 0x40e988
cmp al, 0x22
je 0x40e97e
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x40e970
cmp al, 0x22
jne 0x40e988
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x40e9e0
cmp al, 9
je 0x40e9e0
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x40e99f
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004022bb
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 1
jmp 0x40e921
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40e9e0
cmp al, 0x20
jne 0x40e990
nop
jmp 0x40e9e0
Function at 0x4117d4
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [0x48e0e0], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateSemaphoreA
sub esp, 0x10
mov dword [0x48e0e4], eax
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x411838
mov dword [0x48e0ec], eax
mov dword [esp + 4], 0x411844
mov dword [esp], eax
call fcn.0041c430
test eax, eax
jne 0x41183f
leave
ret
call sub.KERNEL32.dll_GetLastError
jmp 0x41182f
call sub.msvcrt.dll_abort
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov edi, dword [esi]
test edi, edi
je 0x411870
xor ebx, ebx
mov eax, dword [esi + ebx*4 + 4]
test eax, eax
je 0x41186b
mov eax, dword [eax - 4]
mov dword [esp], eax
call sub.msvcrt.dll_free
inc ebx
cmp edi, ebx
ja 0x411858
mov dword [ebp + 8], esi
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
jmp sub.msvcrt.dll_free
Function at 0x411880
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ecx, dword [0x48e080]
test ecx, ecx
jne 0x4118ac
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
test eax, eax
je 0x411946
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x411958
mov edi, dword [0x48e0ec]
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov dword [esp], edi
call sub.KERNEL32.dll_TlsGetValue
push edi
mov dword [esp], esi
mov dword [ebp - 0x1c], eax
call sub.KERNEL32.dll_SetLastError
push ecx
mov eax, dword [ebp - 0x1c]
mov esi, eax
test eax, eax
je 0x411906
mov edi, dword [eax]
cmp ebx, edi
ja 0x4119db
dec ebx
mov eax, dword [esi + ebx*4 + 4]
test eax, eax
jne 0x4118a1
mov eax, dword [ebp + 8]
call fcn.00411754
mov dword [esi + ebx*4 + 4], eax
jmp 0x4118a1
lea edi, [ebx + 0x20]
mov dword [esp + 4], 4
lea eax, [ebx + 0x21]
mov dword [esp], eax
call sub.msvcrt.dll_calloc
mov esi, eax
test eax, eax
je 0x411a1e
mov dword [eax], edi
mov dword [esp + 4], esi
mov eax, dword [0x48e0ec]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
push edx
push edx
test eax, eax
jne 0x4118ef
call sub.KERNEL32.dll_GetLastError
jmp 0x4118ef
mov eax, edx
call fcn.00411754
mov edi, dword [ebp + 8]
mov dword [edi + 8], eax
jmp 0x4118a1
cmp dword [0x470014], 0
je 0x411a54
mov dword [esp], 0x48e0e0
call sub.KERNEL32.dll_InterlockedIncrement
push esi
test eax, eax
jne 0x411a23
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 8]
test ebx, ebx
jne 0x411994
mov ebx, dword [0x48e0e8]
inc ebx
mov dword [0x48e0e8], ebx
mov dword [edx + 8], ebx
cmp dword [0x48e080], 0
je 0x4118ba
mov dword [esp], 0x48e0e0
call sub.KERNEL32.dll_InterlockedDecrement
push edx
test eax, eax
js 0x4118ba
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [0x48e0e4]
mov dword [esp], eax
call sub.KERNEL32.dll_ReleaseSemaphore
sub esp, 0xc
jmp 0x4118ba
lea edx, [edi + edi]
cmp ebx, edx
jbe 0x4119e5
lea edx, [ebx + 0x20]
lea ecx, [edx*4 + 4]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [ebp - 0x1c], edx
call sub.msvcrt.dll_realloc
mov esi, eax
test eax, eax
mov edx, dword [ebp - 0x1c]
je 0x411a1e
mov dword [eax], edx
sub edx, edi
lea ecx, [edx*4]
lea edx, [eax + edi*4 + 4]
xor eax, eax
mov edi, edx
rep stosb byte es:[edi], al
jmp 0x411928
call sub.msvcrt.dll_abort
mov dword [esp + 4], 0xffffffff
mov eax, dword [0x48e0e4]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
push ebx
push ebx
test eax, eax
je 0x41197a
mov dword [esp], 0x48e0e0
call sub.KERNEL32.dll_InterlockedDecrement
push ecx
jmp 0x41197a
mov dword [esp], 0x470018
call sub.KERNEL32.dll_InterlockedIncrement
push edx
test eax, eax
je 0x411a7d
cmp dword [0x470014], 0
jne 0x411a8c
mov dword [esp], 0
call sub.KERNEL32.dll_Sleep
push edi
jmp 0x411a65
call fcn.004117d4
mov dword [0x470014], 1
cmp dword [0x48e080], 0
je 0x41197a
jmp 0x411965
Function at 0x44a198
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__read
mov ebx, eax
cmp eax, 0xffffffff
je 0x44a1d0
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
ret
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x44a1a7
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
ret
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x100093d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x100093df
pop dword [ebp - 0x24]
mov eax, 0x100093df
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xc1cae80c
add dword [ebp - 0x34], 0x8c875d3f
mov dword [ebp - 0x30], 0xa008a01e
add dword [ebp - 0x30], 0x922aac27
mov dword [ebp - 0x2c], 0x71ddf086
add dword [ebp - 0x2c], 0xda6e53a8
mov dword [ebp - 0x28], 0x20a26453
sub dword [ebp - 0x28], 0x20a26453
lea eax, [ebp - 0x34]
push eax
mov eax, 0xfff826e7
add eax, 0x10099971
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xda075e15
sub dword [ebp - 0x34], 0x6594f4bf
mov dword [ebp - 0x30], 0x7726c5d
add dword [ebp - 0x30], 0x39f9f518
mov dword [ebp - 0x2c], 0xa3999fdf
add dword [ebp - 0x2c], 0xbfd5cc8d
mov dword [ebp - 0x28], 0x5a0d5bb0
sub dword [ebp - 0x28], 0x5a0d5bb0
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3cb2c
push 0
call eax
mov ecx, 0xf3e10413
sub ecx, 0xf3e0b75a
mov ebx, eax
mov edx, 0x10028800
add edx, dword [ebp - 0x24]
mov edi, 0x48c5969e
sub edi, 0xa8a8420b
add dword [ebp - 0x10], 0xa0de1ede
mov esi, dword [edx]
sub dword [ebp - 0x1c], ebx
xor esi, edi
sub dword [ebp - 0xc], ebx
mov dword [ebx], esi
sub dword [ebp - 8], 0xbedef3f8
add ebx, 0x8050aed6
add ebx, 0x7faf512e
add edx, 4
loop 0x100094f1
add eax, 0x125b7
xor ebx, ebx
add ebx, eax
add eax, 0x1ab95d9c
add eax, 0xe546a269
mov ecx, 0xfd543864
add ecx, 0x12abc79c
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x11a9850
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0xffa015
lea edi, [esi - 0xbf9015]
push edi
or ebp, 0xffffffff
jmp 0x11a9872
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x11a9879
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x11a9868
mov eax, 1
add ebx, ebx
jne 0x11a988b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x11a989c
jne 0x11a98bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x11a98bb
dec eax
add ebx, ebx
jne 0x11a98a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x11a9880
add ebx, ebx
jne 0x11a98b7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x11a990d
xor ecx, ecx
sub eax, 3
jb 0x11a98d3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x11a9942
sar eax, 1
mov ebp, eax
jmp 0x11a98de
add ebx, ebx
jne 0x11a98de
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x11a98ac
inc ecx
add ebx, ebx
jne 0x11a98ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x11a98ac
add ebx, ebx
jne 0x11a98f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x11a98ee
jne 0x11a990a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x11a98ee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x11a992c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x11a991e
jmp 0x11a986e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x11a992c
add edi, ecx
jmp 0x11a986e
pop esi
mov edi, esi
mov ecx, 0x9197d9
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x11a9967
cmp byte [edi], 0xb3
jne 0x11a994c
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 0x11a994a
lea edi, [esi + 0xda7000]
mov eax, dword [edi]
or eax, eax
je 0x11a99af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xda99ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xda9a38]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x11a996d
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xda9a3c]
or eax, eax
je 0x11a99a9
mov dword [ebx], eax
add ebx, 4
jmp 0x11a998a
call dword [esi + 0xda9a44]
mov ebp, dword [esi + 0xda9a40]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x11a99e3
sub esp, 0xffffff80
jmp 0xdd111e
Function at 0x4028dc
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.00403bd0
test esi, esi
jne 0x402912
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403cc0
jmp 0x402930
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004027f0
mov edi, eax
test esi, esi
je 0x402930
cmp dword [ebx], 0
je 0x402930
dec esi
jmp 0x402919
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402fbc
Capabilities:
Query or enumerate registry value

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

Function at 0x403a54
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x417044], 0
je 0x403ab5
cmp word [0x417218], 0xd7b2
jne 0x403a7d
cmp dword [0x417220], 0
jbe 0x403a7d
mov eax, 0x417214
call dword [0x417230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41406c
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 0x403adc
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x414030], 0
jne 0x403ad1
push 0
push 0x414064
push 0x41406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404c94
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_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404ec4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404d17
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404ec4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404d17
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404ee0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404da0
xor eax, eax
push ebp
push 0x404d99
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404adc
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 0x404d7e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404f00
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404d7e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404da0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404eba
cmp byte [ebp - 0xd], 0
jne 0x404de7
cmp byte [ebp - 0x12], 0
je 0x404eba
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404e00
dec ebx
cmp byte [ebx], 0x2e
je 0x404e0f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404dff
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404eba
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404e4c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404eba
cmp byte [ebp - 0xd], 0
je 0x404eba
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404eba
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
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
Function at 0x405550
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 0x4055b6
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403e40
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402bb0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4055a0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4055bd
lea eax, [ebp - 0x10]
call fcn.00403bd0
ret

Function at 0x40994c
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
test eax, eax
jle 0x409985
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403cc0
jmp 0x40998e
mov eax, ebx
mov edx, esi
call fcn.00403c24
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409998
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
test eax, eax
jle 0x4099b9
mov al, byte [esp]
jmp 0x4099bb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ada0
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 0x40ae04
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403e40
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00406d84
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ae0b
lea eax, [ebp - 0xc]
call fcn.00403bd0
ret
Function at 0x4129dc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
cmp bl, 0x90
jne 0x412a31
push 0x90
call sub.user32.dll_GetKeyState
and ax, 1
cmp al, 1
sbb ebx, ebx
inc ebx
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_GetKeyboardState
test bl, bl
je 0x412a1c
and byte [ebp - 0x72], 0xfe
jmp 0x412a20
or byte [ebp - 0x72], 1
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_SetKeyboardState
jmp 0x412ab7
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov byte [ebp - 2], al
test si, si
jbe 0x412ab7
mov eax, ebx
and eax, 0xff
bt dword [0x416cc4], eax
jae 0x412a87
mov eax, dword [ebp + 8]
push eax
mov ecx, 1
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.00412990
pop ecx
cmp byte [ebp - 1], 0
je 0x412ab2
mov eax, dword [ebp + 8]
push eax
mov ecx, 3
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.00412990
pop ecx
jmp 0x412ab2
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.00412990
pop ecx
cmp byte [ebp - 1], 0
je 0x412ab2
mov eax, dword [ebp + 8]
push eax
mov ecx, 2
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.00412990
pop ecx
dec si
jne 0x412a47
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412ac0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov edx, ebx
and edx, 0xff
bt dword [0x416cc4], edx
jae 0x412af8
mov edx, dword [ebp + 8]
push edx
xor ecx, ecx
mov edx, eax
mov eax, ebx
call fcn.00412990
pop ecx
pop ebx
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
mov ecx, 2
mov edx, eax
mov eax, ebx
call fcn.00412990
pop ecx
pop ebx
pop ebp
ret