joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407fd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x407fd7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4080b4
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de28]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x42de28]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x42de28]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de28]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de28]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de28]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de28]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de28]
inc ecx
sub edx, 8
sub esi, 1
jne 0x407ff0
pop edi
test edx, edx
je 0x4080db
jmp 0x4080c0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x42de28]
inc ecx
sub edx, 1
jne 0x4080c0
not eax
pop esi
ret

Function at 0x4080e0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x42de28]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x42de28]
mov dword [edx + 8], ecx
ret

Function at 0x408130
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x42de28]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x42de28]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x408840
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x408872
mov ecx, dword [edi + 2]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408868
mov byte [edi + 6], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x408885
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0xc]
push esi
add eax, ecx
push eax
push edx
call fcn.0041b6d0
add dword [edi + 0x14], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x4088a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x4088d3
mov edx, dword [esi + 2]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4088cd
mov byte [esi + 6], 1
mov edi, dword [esp + 8]
jmp 0x4088ff
mov eax, dword [esi + 0x10]
push ebx
mov ebx, dword [esi + 0x14]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x4088e5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0xc]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.0041b6d0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x14], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x408916
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x408910
cmp byte [esi + 6], 0
je 0x408910
or eax, 0xffffffff
add esp, 8
ret
Function at 0x4089b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x4089f5
cmp byte [esi + 1], 0
je 0x4089fd
mov eax, dword [esi + 2]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x408a12
cmp byte [esi + 1], 0
je 0x408a04
mov edx, dword [esi + 2]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 7]
mov dword [esp + 4], ebp
jmp 0x408a1b
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], ecx
jmp 0x4089ce
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x408a1b
mov eax, dword [esi + 0x14]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x408a2f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0041573c
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x408a4d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x408b61
jmp 0x408a70
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x408a81
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x408a9a
mov ebp, 0x404
cmp byte [esi], 0
je 0x408abf
cmp byte [esi + 1], 0
je 0x408b61
mov ecx, dword [esi + 7]
mov edx, dword [esi + 2]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x408ac2
mov dword [esi + 0x14], eax
cmp byte [esi], 0
mov edi, ebp
je 0x408aea
mov ecx, dword [esi + 2]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408ae4
mov byte [esi + 6], 1
mov eax, dword [esp + 0x1c]
jmp 0x408b10
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x408afb
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0xc]
push edi
add ecx, eax
push ecx
push ebx
call fcn.0041b6d0
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x408b61
lea eax, [ebp - 3]
test eax, eax
jl 0x408b4c
dec eax
cmp byte [eax + ebx], 0x50
jne 0x408b3c
cmp byte [eax + ebx + 1], 0x4b
jne 0x408b3c
cmp byte [eax + ebx + 2], 5
jne 0x408b3c
cmp byte [eax + ebx + 3], 6
je 0x408b42
test eax, eax
jge 0x408b20
jmp 0x408b4c
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x408b61
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x408a64
push ebx
call fcn.00415c97
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x409a70
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x409b23
cmp dword [esi + 4], 0xffffffff
jne 0x409b23
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
jmp 0x409aa0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409aa0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x409ad9
cmp ax, 0x2f
je 0x409ad9
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x409ac6
mov eax, dword [0x42c888]
mov dword [edi], eax
push 0x18
call fcn.0040a3c2
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add esp, 4
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0xb], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 0
mov dword [eax + 7], 0
call fcn.00408b80
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
ret 8
mov eax, 0x1000000
pop edi
ret 8

Function at 0x41482c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432c20]
jne 0x414836
repz ret
jmp fcn.004190eb

Function at 0x423bff
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004193c0
and dword [ebp - 4], 0
cmp dword [0x436abc], 0
mov ebx, eax
jne 0x423cb0
push 0x42b684
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x423d61
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42b678
push edi
call esi
test eax, eax
je 0x423d61
push eax
call fcn.0041934e
mov dword [esp], 0x42b668
push edi
mov dword [0x436abc], eax
call esi
push eax
call fcn.0041934e
mov dword [esp], 0x42b654
push edi
mov dword [0x436ac0], eax
call esi
push eax
call fcn.0041934e
mov dword [esp], 0x42b638
push edi
mov dword [0x436ac4], eax
call esi
push eax
call fcn.0041934e
pop ecx
mov dword [0x436acc], eax
test eax, eax
je 0x423cb0
push 0x42b620
push edi
call esi
push eax
call fcn.0041934e
pop ecx
mov dword [0x436ac8], eax
mov eax, dword [0x436ac8]
cmp eax, ebx
je 0x423d08
cmp dword [0x436acc], ebx
je 0x423d08
push eax
call fcn.004193c9
push dword [0x436acc]
mov esi, eax
call fcn.004193c9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x423d08
test edi, edi
je 0x423d08
call esi
test eax, eax
je 0x423cff
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x423cff
test byte [ebp - 0xc], 1
jne 0x423d08
or dword [ebp + 0x10], 0x200000
jmp 0x423d41
mov eax, dword [0x436ac0]
cmp eax, ebx
je 0x423d41
push eax
call fcn.004193c9
pop ecx
test eax, eax
je 0x423d41
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x423d41
mov eax, dword [0x436ac4]
cmp eax, ebx
je 0x423d41
push eax
call fcn.004193c9
pop ecx
test eax, eax
je 0x423d41
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x436abc]
call fcn.004193c9
pop ecx
test eax, eax
je 0x423d61
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x423d63
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x40673a
pop dword [ebp - 0x34]
mov eax, 0x40673a
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x400d168d
sub dword [ebp - 0x44], 0xf1bad142
mov dword [ebp - 0x40], 0xee497133
add dword [ebp - 0x40], 0x43e9db12
mov dword [ebp - 0x3c], 0x2aed0a47
sub dword [ebp - 0x3c], 0xdea0c619
mov dword [ebp - 0x38], 0x5cc5338f
sub dword [ebp - 0x38], 0x5cc5338f
lea eax, [ebp - 0x44]
push eax
mov eax, 0x7863968c
add eax, 0x87dcea78
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x2ec241ff
add dword [ebp - 0x44], 0x45b02757
mov dword [ebp - 0x40], 0x267d94db
add dword [ebp - 0x40], 0x1aeecc9a
mov dword [ebp - 0x3c], 0xa8d5fb90
add dword [ebp - 0x3c], 0xba9970dc
mov dword [ebp - 0x38], 0xacf500c8
sub dword [ebp - 0x38], 0xacf500c8
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x35f55
push 0
call eax
mov ecx, 0x41c5
xor edi, edi
add edi, eax
mov ebx, 0x9af3d6f9
add ebx, 0x65530d07
add ebx, dword [ebp - 0x34]
mov esi, 0x923647cd
add esi, 0x5c1ef1ab
mov edx, dword [ebx]
xor dword [ebp - 0x14], esi
add edx, esi
add dword [ebp - 0x20], 0x2fab372c
mov dword [edi], edx
xor dword [ebp - 0x18], 0x4c61b115
add edi, 4
add ebx, 0x1187c5d6
sub ebx, 0x1187c5d2
loop 0x40684e
add eax, 0xc59dacf6
sub eax, 0xc59cb30f
mov ebx, eax
add eax, 5
mov ecx, 0xd63108aa
add ecx, 0x2a0ef756
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x4055f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47541b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046a4e8
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x405672
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00468437
mov eax, dword [eax]
push 0x48b1c0
push eax
call fcn.0045b144
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046a773
test bl, bl
je 0x405672
push 0x48b1c0
lea ecx, [esp + 0xc]
call fcn.0046ab03
push 0x48ed0c
lea ecx, [esp + 0xc]
call fcn.0046ab03
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4056ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046a773
jmp 0x405779
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x405732
lea edx, [esp + 0x7c]
push 0x48ed08
push edx
call fcn.0045b144
add esp, 8
test eax, eax
je 0x405732
lea eax, [esp + 0x7c]
push 0x48ed04
push eax
call fcn.0045b144
add esp, 8
test eax, eax
je 0x405732
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4056c2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046a773
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x405f70
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x405fd2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x405fe0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47549b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x498240]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x406118
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x406046
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046a773
xor eax, eax
jmp 0x40618f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046a8b0
push esi
lea ecx, [esp + 0xc]
call fcn.0046ab3f
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40616d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00405f70
test eax, eax
jne 0x40616d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.00405f70
test eax, eax
jne 0x40616d
lea eax, [esp + 0x14]
push 0x48ed20
push eax
call fcn.0045c1c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40614c
lea ecx, [esp + 0x14]
push 0x48ed1c
push ecx
call fcn.0045c140
mov esi, eax
add esp, 8
test esi, esi
jne 0x40614c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40614f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046a860
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40605e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046a773
xor eax, eax
jmp 0x40618f
mov byte [esi], 0
push 0x48ed18
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0046a773
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x4116a0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x41170e
cmp si, 0x69
ja 0x41170e
add esi, 0xffd0
cmp si, 0x11
je 0x4116de
push 0x11
call edi
test ax, ax
jge 0x4116de
or esi, 0x2000
cmp si, 0x10
je 0x4116f3
push 0x10
call edi
test ax, ax
jge 0x4116f3
or esi, 0x4000
cmp si, 0x12
je 0x411708
push 0x12
call edi
test ax, ax
jge 0x411708
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41171b
mov esi, 0xbd
jmp 0x4116cf
cmp si, 0x6e
jne 0x411728
mov esi, 0xbe
jmp 0x4116cf
cmp si, 0x6f
jne 0x4116c9
mov esi, 0xbf
jmp 0x4116cf

Function at 0x412d40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a88f8]
xor edx, edx
cmp eax, edx
jne 0x412d66
xor eax, eax
mov byte [eax + 0x4a87f8], al
inc eax
cmp eax, 0x100
jl 0x412d4e
mov dword [0x4a88f8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a87f8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x412df7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x412dca
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x412d98
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x412e70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x412ec3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x412eaa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d820
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x41d9b8
cmp ebp, ebx
jle 0x41d9b8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x41d87e
dec eax
or eax, 0xfffffff8
inc eax
je 0x41d885
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x41d894
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x41d89b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0046a4b4
add esp, 4
cmp eax, ebx
je 0x41d8bc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.0046a4b4
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x41d9ae
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x41d995
mov al, byte [edx]
cmp al, 0xc0
jbe 0x41d981
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x41d976
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x41d984
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x41d984
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x41d920
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x41d911
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x420ed0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476858
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x44]
mov esi, ecx
test edi, edi
jne 0x420f09
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24
push 0x400
lea ecx, [esp + 0xc]
call fcn.00471e16
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.00471e62
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.00420f90
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.00471e9f
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24