joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x532756ef
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x83b2187
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x406cfc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4378ac], 0
jne 0x406d3a
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406d10
mov dword [ecx*4 + 0x4378a8], eax
inc ecx
cmp ecx, 0x100
jl 0x406d0b
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406d67
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4378a8]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406d48
not eax
pop ebp
ret 0xc

Function at 0x406da5
Capabilities:
Hash data using murmur3

Disassembly:
mov eax, dword [esp + 4]
shr eax, 0xf
xor eax, dword [esp + 4]
imul eax, eax, 0x85ebca77
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0xc2b2ae3d
mov eax, ecx
shr eax, 0x10
xor eax, ecx
ret

Function at 0x43b361
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x43b3a3
call fcn.0043df26
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x43b3a3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x43b39a
xor eax, eax
jmp 0x43b3ab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0043b3b1
pop edi
pop esi
pop ebx
ret 4

Function at 0x43e413
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43e441
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43e45f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043e379
jmp 0x43e45f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43e45f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0043e379
test edi, edi
mov eax, edi
jne 0x43e449
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x7ca50e07
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x1aac369e
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401420
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x42e79c]
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov ecx, dword [0x42e798]
push ecx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push 0
push 0
push 0x405580
push 0xe
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x42e798], eax
push 0
push 0
push 0x405800
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x42e79c], eax
pop ebp
ret
Function at 0x405cc0
Capabilities:
Check mutex on windows
Create thread
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x42ca00]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00405960
push str.dual_key_remap.single_instance
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405d0c
push str.dual_key_remap.exe_is_already_running__n
call fcn.00405fa0
add esp, 4
jmp 0x405ef6
lea eax, [ebp - 0x20c]
push eax
call fcn.00405b30
add esp, 4
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00405a10
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x405d3e
jmp 0x405ef6
cmp dword [0x42b780], 0
je 0x405da2
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
test eax, eax
jne 0x405d76
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_setting_process_priority:__d_n
call fcn.00405fa0
add esp, 8
jmp 0x405ef6
push 2
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x405da2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_setting_thread_priority:__d_n
call fcn.00405fa0
add esp, 8
jmp 0x405ef6
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x42e7a0], eax
cmp dword [0x42e7a0], 0
jne 0x405dd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateEvent_error:__d_n
call fcn.00405fa0
add esp, 8
jmp 0x405ef6
push 0x42db68
call fcn.00401010
add esp, 4
lea edx, [ebp - 0x220]
push edx
push 0
push 0x42db68
push 0x405b90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x405e29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_creating_the_thread:__d_n
call fcn.00405fa0
add esp, 8
jmp 0x405ef6
call dword [sym.imp.KERNEL32.dll_CreateTimerQueue]
mov dword [0x42db64], eax
cmp dword [0x42d338], 0
jne 0x405e5a
push str.DEBUG
call fcn.004098ea
add esp, 4
test eax, eax
jne 0x405e5a
mov dword [ebp - 0x210], 0
jmp 0x405e64
mov dword [ebp - 0x210], 1
mov eax, dword [ebp - 0x210]
mov dword [0x42d338], eax
push 0
push 0
push 0x405580
push 0xe
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x42e798], eax
push 0
push 0
push 0x405800
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x42e79c], eax
cmp dword [0x42d338], 0
je 0x405eb3
push str.___DEBUG_MODE____n
call fcn.00405fa0
add esp, 4
jmp 0x405eb9
call fcn.004059d0
nop
push 0
push 0
push 0
lea ecx, [ebp - 0x23c]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jle 0x405eed
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
nop
jmp 0x405eb9
call fcn.00405c40
xor eax, eax
jmp 0x405f0d
push str._nPress_any_key_to_exit..._n
call fcn.00405fa0
add esp, 4
call fcn.00411d98
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406293
mov esp, ebp
pop ebp
ret
Function at 0x406719
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406758
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406758
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406758
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406758
cmp dword [ecx + 0x74], 0xe
jbe 0x406758
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41332e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425260
push 0x425258
push str.FlsAlloc
push 0x1f
call fcn.004131ed
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413362
push dword [ebp + 8]
mov ecx, esi
call dword [0x421184]
call esi
jmp 0x413368
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4133ac
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425270
push 0x425268
push str.FlsGetValue
push 0x21
call fcn.004131ed
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4133e3
push dword [ebp + 8]
mov ecx, esi
call dword [0x421184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4133eb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425278
push 0x425270
push str.FlsSetValue
push 0x22
call fcn.004131ed
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413425
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x421184]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x416ddc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x416e79
push ebx
push esi
call fcn.00416da5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00416d39
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x416e26
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416e78
push edi
push eax
call fcn.00412b65
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x416e46
call fcn.00412b2b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416e77
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00416d39
add esp, 0x20
test eax, eax
jne 0x416e65
push edi
call fcn.00412b2b
jmp 0x416e6d
push ebx
call fcn.00412b2b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x41dd03
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x42e520]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41dd43
cmp byte [ebx], 0xa
jne 0x41dd43
or byte [edi + eax + 0x28], 4
jmp 0x41dd48
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41de47
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41de2a
inc eax
cmp dl, 0xd
je 0x41dd74
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41dd9a
cmp eax, ecx
jae 0x41dda8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41dd5c
jmp 0x41de47
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41de25
cmp dword [ebp - 0x10], 0
je 0x41de25
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42e520]
test byte [eax + edi + 0x28], 0x48
je 0x41ddff
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ddea
mov byte [esi], dl
jmp 0x41ddfb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42e520]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41de47
cmp byte [ebp - 1], 0xa
jne 0x41de0e
cmp esi, ebx
jne 0x41de0e
mov byte [esi], 0xa
jmp 0x41de46
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041dca5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41de47
mov byte [esi], 0xd
jmp 0x41de46
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42e520]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41de44
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41de47
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41de50
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x42e520]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41de96
cmp word [ebx], dx
jne 0x41de96
or byte [eax + edi + 0x28], 4
jmp 0x41de9b
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41dffe
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41dfde
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41dedc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41df12
cmp eax, edx
jae 0x41df20
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41deb7
jmp 0x41dffe
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41dfd9
cmp dword [ebp - 0x18], 0
je 0x41dfd9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x42e520]
test byte [eax + edi + 0x28], 0x48
je 0x41dfaf
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41df73
mov word [esi], cx
jmp 0x41dfaa
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x42e520]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x42e520]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42e520]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41dffe
pop eax
cmp word [ebp - 4], ax
jne 0x41dfbf
cmp esi, ebx
jne 0x41dfbf
mov word [esi], ax
jmp 0x41dffb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041dca5
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41dffe
push 0xd
pop eax
jmp 0x41dfba
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x42e520]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41dff8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41dffe
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e707
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041e683
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41e876
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41e876
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41e82b
jg 0x41e763
test eax, eax
je 0x41e821
push 1
push 0x1000
call fcn.0041305d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41e786
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41e818
push 0x8000
push ebx
call fcn.00411425
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41e7af
jg 0x41e7aa
cmp ecx, 0x1000
jb 0x41e7af
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041990b
add esp, 0x10
cmp eax, 0xffffffff
je 0x41e7f4
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x41e7aa
jl 0x41e7db
test ecx, ecx
jne 0x41e79c
push dword [ebp - 0xc]
push ebx
call fcn.00411425
push esi
call fcn.00412b2b
add esp, 0xc
xor ebx, ebx
jmp 0x41e884
cmp byte [edi + 0x24], 0
je 0x41e80b
cmp dword [edi + 0x20], 5
jne 0x41e80b
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41e816
mov ebx, dword [edi + 0x18]
jmp 0x41e818
xor ebx, ebx
push esi
call fcn.00412b2b
pop ecx
jmp 0x41e884
test ecx, ecx
jg 0x41e7ed
jl 0x41e82b
test eax, eax
jae 0x41e7ed
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041dca5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41e84b
cmp byte [edi + 0x1c], 0
je 0x41e7ed
jmp 0x41e87c
push ebx
call fcn.0041761c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41e7ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41e884
cmp byte [edi + 0x1c], 0
je 0x41e881
mov ebx, dword [edi + 0x18]
jmp 0x41e884
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041dca5
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4202e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42030d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42030d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404010
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
je 0x404036
cmp dword [ebp + 0xc], 0
je 0x404036
cmp dword [ebp + 0x10], 0
jg 0x404040
mov eax, 0xffffffea
jmp 0x404159
lea eax, [ebp - 0x14]
push eax
call fcn.00404160
add esp, 4
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
push edx
push 0
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_SearchPathA]
test eax, eax
je 0x404077
mov dword [ebp - 8], 0
jmp 0x40407e
mov dword [ebp - 8], 0xfffffff2
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jle 0x404099
mov edx, dword [ebp + 0xc]
add edx, dword [ebp + 0x10]
mov byte [edx - 1], 0
jmp 0x404144
cmp dword [0x71700c], 0
je 0x4040e9
lea eax, [ebp - 0x38]
push eax
call fcn.00403fa0
add esp, 4
movzx ecx, word [ebp - 0x38]
cmp ecx, 9
jne 0x4040c1
mov dword [0x72c538], 1
cmp dword [0x72c538], 0
je 0x4040df
push 0x103
push 0x72c540
push 0x716f9c
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
mov dword [0x71700c], 0
mov edx, 1
imul eax, edx, 0
movsx ecx, byte [eax + 0x72c540]
test ecx, ecx
je 0x404144
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
sub eax, 1
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x72c540
call dword [sym.imp.KERNEL32.DLL_SearchPathA]
test eax, eax
je 0x404127
mov dword [ebp - 0xc], 0
jmp 0x40412e
mov dword [ebp - 0xc], 0xfffffff2
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jle 0x404144
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov byte [eax - 1], 0
cmp dword [ebp - 0x10], 0
je 0x404156
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004041c0
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x404d20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00405070
movzx eax, al
test eax, eax
jne 0x404d3f
xor eax, eax
jmp 0x404e41
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00404ed0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x404d5b
xor eax, eax
jmp 0x404e41
mov ecx, dword [ebp + 8]
call fcn.004052b0
push eax
push 0x2712
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call sym.hrkill.exe_curl_easy_setopt
add esp, 0xc
push 0xa
push 0x4e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call sym.hrkill.exe_curl_easy_setopt
add esp, 0xc
push 1
push 0x50
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call sym.hrkill.exe_curl_easy_setopt
add esp, 0xc
push 0x404e80
push 0x4e2b
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call sym.hrkill.exe_curl_easy_setopt
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
push 0x2711
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call sym.hrkill.exe_curl_easy_setopt
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call sym.hrkill.exe_curl_easy_perform
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x10], 0
je 0x404df4
jmp 0x404e29
mov ecx, dword [ebp + 0x10]
push ecx
push 0x200002
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call sym.hrkill.exe_curl_easy_getinfo
add esp, 0xc
test eax, eax
je 0x404e11
jmp 0x404e29
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0xc8
je 0x404e1e
jmp 0x404e29
mov dword [ebp - 0xc], 1
xor edx, edx
jne 0x404dec
cmp dword [ebp - 0xc], 0
jne 0x404e3e
mov ecx, dword [ebp + 0xc]
call fcn.00405220
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404ed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6607fb
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x70e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x440], ecx
mov dword [ebp - 0x424], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.00404660
mov dword [ebp - 4], 0
push 0x208
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.005f46f0
add esp, 0xc
lea ecx, [ebp - 0x420]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x404f72
mov edx, dword [ebp - 0x424]
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.004046c0
mov eax, dword [ebp - 0x430]
jmp 0x405054
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.005f46f0
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0x6d35c0
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
test eax, eax
jne 0x404fd0
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x434], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.004046c0
mov eax, dword [ebp - 0x434]
jmp 0x405054
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0xffffffff
jne 0x405021
mov edx, dword [ebp - 0x424]
mov dword [ebp - 0x438], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.004046c0
mov eax, dword [ebp - 0x438]
jmp 0x405054
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405260
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.004046c0
mov eax, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret 4