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

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

Function at 0x407ea9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x407eca
jl 0x407ec1
test edi, edi
jne 0x407eca
xor eax, eax
xor edx, edx
jmp 0x407f8b
cmp dword [ebx + 0x38], 0
je 0x407edf
push eax
push edi
push dword [ebp + 8]
call fcn.00407f91
jmp 0x407f8b
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407f26
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x407f26
cmp eax, edi
jb 0x407f00
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00409160
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x407f2c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x407f80
mov ecx, ebx
call fcn.00407595
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x407f6b
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004100a5
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x407f80
jmp 0x407f3e
test edx, edx
je 0x407f80
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004100a5
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x413e25
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 0x413ec2
push ebx
push esi
call fcn.00413dee
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.00413d37
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x413e6f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x413ec1
push edi
push eax
call fcn.00412b8b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x413e8f
call fcn.00412bd9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x413ec0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00413d37
add esp, 0x20
test eax, eax
jne 0x413eae
push edi
call fcn.00412bd9
jmp 0x413eb6
push ebx
call fcn.00412bd9
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 0x4146ee
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4238c0
push 0x4238b8
push str.FlsAlloc
push 0x1e
call fcn.0041455b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414722
push dword [ebp + 8]
mov ecx, esi
call dword [0x420160]
call esi
jmp 0x414728
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41476c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4238d0
push 0x4238c8
push str.FlsGetValue
push 0x20
call fcn.0041455b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4147a3
push dword [ebp + 8]
mov ecx, esi
call dword [0x420160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x418da6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418c17

Function at 0x4191a0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041f6d0
mov eax, dword [0x42e174]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00417e0c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4191e2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41933e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041f700
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x42fb40]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a197
mov ecx, dword [esi*4 + 0x42fb40]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x419337
cmp eax, dword [edi + ecx + 0x24]
jne 0x419337
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419337
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a197
add esp, 0x14
test edx, edx
jl 0x419337
jg 0x4192ad
test eax, eax
jb 0x419337
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x419337
jl 0x4192c7
cmp dword [ebp - 0x1008], eax
ja 0x419337
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4192e5
test ebx, ebx
je 0x41931e
cmp ecx, edi
jae 0x41931e
mov al, byte [ecx]
cmp al, 0xd
jne 0x4192ff
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41930b
cmp byte [ecx + 1], 0xa
jne 0x41930b
inc ecx
jmp 0x41930b
movzx eax, al
movsx eax, byte [eax + 0x42e900]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4192e5
cmp edx, ebx
jne 0x4192e5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41933c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040668c
leave
ret
Function at 0x419635
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x42fb40]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419675
cmp byte [ebx], 0xa
jne 0x419675
or byte [eax + edi + 0x28], 4
jmp 0x41967a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x419778
mov al, byte [edx]
cmp al, 0x1a
je 0x41975a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4196a9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4196ce
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4196d8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41968b
jmp 0x419778
push 0
lea eax, [ebp - 0xc]
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 0x419755
cmp dword [ebp - 0xc], 0
je 0x419755
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x42fb40]
test byte [eax + edi + 0x28], 0x48
je 0x41972f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41971a
mov byte [esi], dl
jmp 0x41972b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42fb40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419778
cmp byte [ebp - 1], 0xa
jne 0x41973e
cmp esi, ebx
jne 0x41973e
mov byte [esi], 0xa
jmp 0x419777
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a1b5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419778
mov byte [esi], 0xd
jmp 0x419777
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x42fb40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419774
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419778
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419781
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x42fb40]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4197c4
cmp word [esi], dx
jne 0x4197c4
or byte [edi + eax + 0x28], 4
jmp 0x4197c9
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41991c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4198fc
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41980b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419841
cmp eax, edx
jae 0x41984d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4197e3
jmp 0x41991c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4198f8
cmp dword [ebp - 0x14], 0
je 0x4198f8
mov eax, dword [ebx*4 + 0x42fb40]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4198d0
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x419899
mov word [esi], cx
jmp 0x4198cc
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x42fb40]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x42fb40]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x42fb40]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41991c
pop ebx
cmp word [ebp - 4], bx
jne 0x4198e1
cmp esi, dword [ebp + 0xc]
jne 0x4198e1
mov word [esi], bx
jmp 0x419919
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a1b5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41991c
push 0xd
jmp 0x419915
mov ecx, dword [ebx*4 + 0x42fb40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419913
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41991c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41f690
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f6bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f6bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4029d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x445044], 0x8088405
inc edx
mov dword [0x445044], edx
mul edx
mov eax, edx
ret

Function at 0x402b28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402bc0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ba0
xor eax, eax
push ebp
push 0x402b99
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 0x402bdc
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 0x402ba0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404e34
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404ff0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404e95
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x40500c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404f07
xor eax, eax
push ebp
push 0x404f00
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404c8c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404ee9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40502c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404f07
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404fe8
cmp byte [ebp - 0xd], 0
jne 0x404f49
cmp byte [ebp - 0x12], 0
je 0x404fe8
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404f62
dec ebx
cmp byte [ebx], 0x2e
je 0x404f71
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404f61
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404fe8
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404f9e
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404fe8
cmp byte [ebp - 0xd], 0
je 0x404fe8
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404fe8
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4087b4
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 0x4087ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403a08
jmp 0x4087f6
mov eax, ebx
mov edx, esi
call fcn.00403974
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408800
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 0x408821
mov al, byte [esp]
jmp 0x408823
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41401c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x414062
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00413f80
mov eax, dword [ebp - 4]
call fcn.00403d64
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414069
lea eax, [ebp - 4]
call fcn.00403920
ret

Function at 0x41425c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4142e9
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x4142a6
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403a08
jmp 0x4142d3
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x4142ba
lea eax, [ebp - 4]
call fcn.00403920
jmp 0x4142c9
lea edx, [ebp - 4]
call fcn.0041412c
test ebx, ebx
je 0x4142c9
dec ebx
jmp 0x4142ab
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403974
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4142f0
lea eax, [ebp - 4]
call fcn.00403920
ret

Function at 0x4142f8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00408144
add esp, 0x104
pop ebx
ret
Function at 0x41443c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x41455d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x414547
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x414495
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x414547
cmp dword [ebp - 0xc], 0
jne 0x4144aa
mov eax, dword [ebp - 4]
call fcn.00403920
mov bl, 1
jmp 0x414547
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor edx, edx
call fcn.00403a08
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00403d70
push eax
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
je 0x414461
test eax, eax
jne 0x414547
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x4144f1
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x414547
jmp 0x4144f1
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
je 0x414504
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0
je 0x4144ee
cmp dword [ebp - 8], 7
jne 0x414513
cmp dword [ebp - 0xc], 0
je 0x414513
inc dword [ebp - 0xc]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00403e8c
cmp dword [ebp - 8], 7
jne 0x41453a
cmp dword [ebp - 0xc], 0
je 0x41453a
lea eax, [ebp - 0x10]
call fcn.00403d70
mov edx, dword [ebp - 0xc]
mov byte [eax + edx - 1], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.00403974
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414564
lea eax, [ebp - 0x10]
call fcn.00403920
ret

Function at 0x414ef8
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x44569c
mov eax, esi
mov edx, 8
test al, 1
je 0x414f14
shr eax, 1
xor eax, 0xedb88320
jmp 0x414f16
shr eax, 1
dec edx
jne 0x414f07
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x414f00
pop esi
ret

Function at 0x414f2c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x445698], 0
jne 0x414f4f
call fcn.00414ef8
push 1
push 0x445698
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x414f7b
mov edx, ebx
and edx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x44569c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x414f55
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4174dc
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 0x4174e2
ret
Function at 0x419840
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x419891
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x419878
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x419868
jmp 0x419891
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x419879
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420dfc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x445f1c], 0
sete dl
or al, dl
jne 0x420f3c
mov eax, dword [0x445f20]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x445f1c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x420f0b
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x445f1c]
call fcn.0040d410
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x420f03
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x420f03
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x420f03
mov eax, dword [ebp - 0x14]
call fcn.00429040
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x420f03
push ebp
call fcn.00420db8
pop ecx
test al, al
jne 0x420f03
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x420ebf
mov eax, dword [ebp - 0x14]
call fcn.004279cc
dec eax
jle 0x420f03
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00402e8c
cmp byte [ebp - 1], 0
je 0x420f03
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x420f03
mov edx, dword [ebp - 0x14]
mov eax, dword [0x445f20]
call fcn.00420604
inc edi
dec esi
jne 0x420e52
mov eax, dword [0x445f20]
cmp dword [eax + 8], 0
jle 0x420f23
mov eax, dword [0x445f20]
call fcn.00420694
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x420f3c
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00420c20
pop ecx
test al, al
jne 0x420f3c
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret