joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002080
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push str.Hooks_Starting_n
call fcn.10001130
mov esi, dword [esp + 0x10]
add esp, 4
mov dword [0x1000cdf4], esi
call fcn.100031a0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
test edi, edi
je 0x100020bf
push str.Minhook_init_failed__n
call fcn.10001130
add esp, 4
xor eax, eax
pop edi
pop esi
ret 4
push 0x1000cdf0
push 0x10001f70
push str.CreateProcessA
push str.kernel32
call fcn.10003b80
test eax, eax
je 0x100020ea
push eax
push str.Unable_to_hook_CreateProcessA:__d_n
call fcn.10001130
add esp, 8
push 0x1000cdf8
push 0x10002000
push str.CreateProcessW
push str.kernel32
call fcn.10003b80
test eax, eax
je 0x10002114
push str.Unable_to_hook_CreateProcessW_n
call fcn.10001130
add esp, 4
push 0x1000cdfc
push 0x10001c10
push str.NtDeviceIoControlFile
push str.ntdll
call fcn.10003b80
test eax, eax
je 0x10002145
push str.Unable_to_hook_NtDeviceIoControlFile_n
call fcn.10001130
add esp, 4
xor eax, eax
pop edi
pop esi
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push str.DCEAPIHook.dll
call esi
cmp eax, 0xffffffff
je 0x100021b5
push 0
push str.CreateFileA
push str.kernel32.dll
call fcn.10001cb0
push 0x10001d60
push str.CreateFileA
push str.kernel32.dll
mov dword [0x1000cdec], eax
call fcn.10001cb0
add esp, 0x18
push 0x1000cdc0
push 0x10001140
push str.LoadLibraryA
push str.kernel32
call fcn.10003b80
test eax, eax
je 0x100021e6
push str.Unable_to_hook_LoadLibraryA_n
call fcn.10001130
add esp, 4
xor eax, eax
pop edi
pop esi
ret 4
push 0x1000cdec
push 0x10001d60
push str.CreateFileA
push str.kernel32
call fcn.10003b80
test eax, eax
je 0x10002184
push str.Unable_to_hook_CreateFileA_n
call fcn.10001130
add esp, 4
xor eax, eax
pop edi
pop esi
ret 4
push 0
call fcn.10003a30
test eax, eax
je 0x10002205
push str.Enable_Hooks_Failed__n
call fcn.10001130
add esp, 4
xor eax, eax
pop edi
pop esi
ret 4
push str.Hooks_Complete__n
call fcn.10001130
add esp, 4
push str.DCEAPIHook.dll
call esi
cmp eax, 0xffffffff
je 0x10002236
push str.DCEAPIHook.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.Loading_DCEAPIHook.dll__n
call fcn.10001130
add esp, 4
pop edi
mov eax, 1
pop esi
ret 4

Function at 0x100025d0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [0x7ffe0320]
push esi
mov eax, 0xf367ac7f
mov dword [edx], ecx
mov ecx, 0xc
imul eax, eax, 0xd5acb1b
mov esi, 0x361962e9
sub ecx, 4
sub esi, eax
mov eax, esi
mov dword [ecx + edx + 4], eax
mov esi, dword [edx]
xor esi, eax
test ecx, ecx
mov dword [edx], esi
jg 0x100025e7
pop esi
ret
Function at 0x10002880
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x1000d1ac]
test eax, eax
je 0x10002896
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x100028e3
mov eax, dword [eax]
test eax, eax
jne 0x10002889
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100028e3
lea ecx, [eax + 0x20]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov edx, dword [eax + 4]
mov dword [ecx], edx
mov dword [eax + 4], ecx
add ecx, 0x20
mov edx, ecx
sub edx, eax
cmp edx, 0xfe0
jbe 0x100028bf
mov ecx, dword [0x1000d1ac]
mov dword [eax], ecx
mov dword [0x1000d1ac], eax
ret
Function at 0x100032c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
push edi
lea ecx, [eax + eax*4]
mov ebp, 5
lea edx, [eax + ecx*2]
mov eax, dword [0x1000d1a0]
mov edi, dword [eax + edx*4]
lea esi, [eax + edx*4]
mov al, byte [eax + edx*4 + 0x14]
test al, 1
je 0x100032ec
sub edi, ebp
mov ebp, 7
lea ecx, [esp + 0x10]
push ecx
push 0x40
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10003308
pop edi
pop esi
mov eax, 0xa
pop ebp
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x10003331
mov byte [edi], 0xe9
mov edx, dword [esi + 4]
sub edx, edi
sub edx, 5
mov dword [edi + 1], edx
mov al, byte [esi + 0x14]
test al, 1
je 0x1000335f
mov eax, dword [esi]
mov byte [eax], 0xeb
mov byte [eax + 1], 0xf9
jmp 0x1000335f
test byte [esi + 0x14], 1
je 0x10003350
lea eax, [esi + 0xc]
mov ecx, edi
mov edx, dword [eax]
mov dword [ecx], edx
mov dx, word [eax + 4]
mov word [ecx + 4], dx
mov al, byte [eax + 6]
mov byte [ecx + 6], al
jmp 0x1000335f
lea ecx, [esi + 0xc]
mov edx, edi
mov eax, dword [ecx]
mov dword [edx], eax
mov cl, byte [ecx + 4]
mov byte [edx + 4], cl
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, bl
mov dl, byte [esi + 0x14]
and al, 1
and dl, 0xf9
mov cl, al
pop ebx
and cl, 0xfd
pop edi
shl al, 1
or cl, al
xor eax, eax
shl cl, 1
or cl, dl
mov byte [esi + 0x14], cl
pop esi
pop ebp
ret

Function at 0x10003680
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
push edi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.10003890
add esp, 4
test eax, eax
jne 0x100036a7
pop edi
pop esi
mov eax, 9
pop ebx
ret
cmp dword [edi], esi
je 0x100036fd
mov eax, dword [edi + 8]
xor ebx, ebx
cmp eax, esi
jbe 0x100036fd
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, dword [edi]
mov ecx, dword [eax + ebx*4]
push ecx
push 0
push 0x5a
call fcn.10003160
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100036ee
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esp + 0x18]
push ebp
push edx
push esi
call fcn.10003710
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
inc ebx
cmp ebx, eax
jb 0x100036b9
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x10003890
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x24
push esi
push edi
xor edi, edi
push edi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
je 0x100039c5
lea eax, [esp + 0x10]
push ebx
push eax
push esi
mov dword [esp + 0x1c], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x100039b5
mov esi, dword [esp + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esp + 0xc], 1
cmp dword [esp + 0x14], 0x10
jb 0x10003960
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x20], eax
jne 0x10003960
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x1c], eax
je 0x10003960
mov ecx, dword [esi]
test ecx, ecx
jne 0x10003925
push 0x200
mov dword [esi + 4], 0x80
push ecx
mov ecx, dword [0x1000ce2c]
push ecx
call ebx
test eax, eax
mov dword [esi], eax
je 0x1000398a
jmp 0x1000394d
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
cmp edx, eax
jb 0x1000394d
add eax, eax
mov dword [esi + 4], eax
lea edx, [eax*4]
mov eax, dword [0x1000ce2c]
push edx
push ecx
push 0
push eax
call edi
test eax, eax
je 0x1000398a
mov dword [esi], eax
mov ecx, dword [esi + 8]
mov edx, dword [esi]
mov eax, dword [esp + 0x1c]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 8]
inc eax
mov dword [esi + 8], eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], 0x1c
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x100038e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x100039ad
mov eax, dword [esi]
mov dword [esp + 0xc], 0
test eax, eax
je 0x100039ad
push eax
mov eax, dword [0x1000ce2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop ebx
pop edi
pop esi
add esp, 0x24
ret
mov eax, edi
pop edi
pop esi
add esp, 0x24
ret

Function at 0x100039d0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp dword [ebx], 0
je 0x10003a2a
mov eax, dword [ebx + 8]
push edi
xor edi, edi
test eax, eax
jbe 0x10003a18
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4]
push ecx
push 0
push 0x5a
call fcn.10003160
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10003a0e
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 8]
inc edi
cmp edi, eax
jb 0x100039ec
pop esi
pop ebp
mov edx, dword [ebx]
mov eax, dword [0x1000ce2c]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop ebx
ret

Function at 0x10003f20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
mov cl, byte [esi]
test cl, cl
je 0x10003f39
cmp cl, 0x90
je 0x10003f39
cmp cl, 0xcc
je 0x10003f39
pop esi
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, 1
cmp edx, eax
jbe 0x10003f50
cmp byte [eax + esi], cl
jne 0x10003f35
inc eax
cmp eax, edx
jb 0x10003f46
pop esi
mov eax, 1
ret
Function at 0x10007128
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1000c4c0
cmp edx, dword [eax]
je 0x1000714a
add eax, 8
inc ecx
cmp eax, 0x1000c550
jl 0x1000713b
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1000c4c0]
jne 0x10007278
mov eax, dword [0x1000ce3c]
cmp eax, 1
je 0x10007252
test eax, eax
jne 0x1000717b
cmp dword [0x1000ce40], 1
je 0x10007252
cmp edx, 0xfc
je 0x10007278
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100071b2
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10007dc0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10005020
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x100071f5
lea eax, [ebp - 0x1a4]
push eax
call fcn.10005020
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000957c
push edi
call fcn.10007fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10007dc0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10007dd0
lea eax, [ebp - 0xa0]
push 0x1000955c
push eax
call fcn.10007dd0
push dword [esi + 0x1000c4c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.10007dd0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1000891b
add esp, 0x2c
pop edi
jmp 0x10007278
lea eax, [ebp + 8]
lea esi, [esi + 0x1000c4c4]
push 0
push eax
push dword [esi]
call fcn.10005020
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1083058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.010831a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x108307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108306a
add dl, dl
jne 0x1083089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10830dc
xor eax, eax
add dl, dl
jne 0x1083096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108317d
add dl, dl
jne 0x10830a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10830b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10830bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10830c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10830d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1083075
mov eax, 1
add dl, dl
jne 0x10830ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10830f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10830e1
sub eax, ebx
mov ebx, 1
jne 0x1083128
mov ecx, 1
add dl, dl
jne 0x108310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1083119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1083105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1083075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x108313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1083136
cmp eax, 0x7d00
jae 0x108316d
cmp eax, 0x500
jb 0x1083168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1083075
cmp eax, 0x7f
ja 0x1083170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1083075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x108319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1083075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x48cf30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5d000]
push edi
jmp 0x48cf4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48cf51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48cf40
mov eax, 1
add ebx, ebx
jne 0x48cf63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48cf74
jne 0x48cf93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48cf93
dec eax
add ebx, ebx
jne 0x48cf80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48cf58
add ebx, ebx
jne 0x48cf8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48cfe5
xor ecx, ecx
sub eax, 3
jb 0x48cfab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48d01a
sar eax, 1
mov ebp, eax
jmp 0x48cfb6
add ebx, ebx
jne 0x48cfb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48cf84
inc ecx
add ebx, ebx
jne 0x48cfc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48cf84
add ebx, ebx
jne 0x48cfd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48cfc6
jne 0x48cfe2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48cfc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48d004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48cff6
jmp 0x48cf46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48d004
add edi, ecx
jmp 0x48cf46
pop esi
mov edi, esi
mov ecx, 0x38cc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48d022
cmp byte [edi], 0xa
jne 0x48d022
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 0x48d027
lea edi, [esi + 0x8a000]
mov eax, dword [edi]
or eax, eax
je 0x48d096
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8d028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48d054
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8d02c]
or eax, eax
je 0x48d090
mov dword [ebx], eax
add ebx, 4
jmp 0x48d071
call dword [esi + 0x8d03c]
mov ebp, dword [esi + 0x8d030]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x48d0ca
sub esp, 0xffffff80
jmp 0x443da6

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1e7a1d00
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x21d7552f
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402738
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402775
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402795
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00403658
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x402894
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4028c3
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004035dc
jmp 0x4028e1
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402828
mov edi, eax
test ebx, ebx
je 0x4028e1
cmp dword [esi], 0
je 0x4028e1
dec ebx
jmp 0x4028ca
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40432c
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x404388
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x40437a
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40436f
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x40436a
mov eax, 0x64
jmp 0x40437f
call sub.kernel32.dll_GetLastError
call fcn.00402700
xor eax, eax
jmp 0x40436a
mov eax, 0x67
jmp 0x40437f

Function at 0x4043cc
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x4043fc
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x4043f2
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.00402710
or eax, 0xffffffff
jmp 0x4043f0
mov eax, 0x67
call fcn.00402700
or eax, 0xffffffff
jmp 0x4043f0

Function at 0x40623c
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403834
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x406250
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00403834
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x406272
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x407c5c
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 0x407c95
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004035dc
jmp 0x407c9e
mov eax, ebx
mov edx, esi
call fcn.00403590
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x4100b0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004034fc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x410111
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x410111
cmp byte [ebp - 0x102], 0
je 0x410111
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403658
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411350
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x24], 0
je 0x4113d1
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x411382
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x411394
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x4113a0
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.00411228
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4113c5
push ebp
mov eax, dword [ebp - 4]
call fcn.004112c4
pop ecx
mov ebx, eax
cmp bl, 2
je 0x4113a0
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418c28
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x418c2e
ret