joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ecc0
Capabilities:
Read http header

Disassembly:
sub esp, 0x48
mov eax, dword [0x47a060]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
cmp dword [eax + 4], 0
jne 0x40eceb
xor eax, eax
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0044eeec
add esp, 0x48
ret 4
push esi
mov esi, dword [eax + 0x10]
test esi, esi
je 0x40ed2e
push 0x3a
lea eax, [esp + 0x12]
push 0
push eax
mov word [esp + 0x18], 0
call fcn.00452a60
add esp, 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 5
push esi
mov dword [esp + 0x20], 0x3c
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x40ed42
xor eax, eax
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0044eeec
add esp, 0x48
ret 4
push 0xa
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x10], 0
call fcn.004504a1
mov ecx, dword [esp + 0x54]
add esp, 0xc
pop esi
mov dword [edi], eax
xor ecx, esp
mov eax, 1
call fcn.0044eeec
add esp, 0x48
ret 4
Function at 0x40f410
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x47a060]
xor eax, esp
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x6c]
push esi
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.0040f480
lea esi, [esp + 8]
mov ecx, edi
call fcn.0040f540
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
mov al, 1
call fcn.0044eeec
add esp, 0x68
ret 8
Function at 0x411b40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x411b4f
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x411c37
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x46c658]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46c658]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x46c658]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46c658]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46c658]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46c658]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46c658]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46c658]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x411b60
pop ebp
test edi, edi
je 0x411c5c
jmp 0x411c40
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x46c658]
add ecx, 1
sub edi, 1
jne 0x411c40
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x411c70
Capabilities:
Hash data with crc32

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

Function at 0x411cc0
Capabilities:
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
xor al, bl
movzx ebx, al
xor ebx, edx
shr edx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x46c658]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x46c658]
pop ebx
mov dword [esi + 8], ecx
ret

Function at 0x4123d0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x412402
mov ecx, dword [edi + 4]
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 0x4123f8
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x412415
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.00453d80
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x412430
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x412463
mov edx, dword [esi + 4]
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 0x41245d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x41248f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x412475
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.00453d80
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x4124a6
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 0x4124a0
cmp byte [esi + 8], 0
je 0x4124a0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x4125e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x412625
cmp byte [esi + 1], 0
je 0x41262d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x412642
cmp byte [esi + 1], 0
je 0x412634
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x41264b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x4125fe
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x41264b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
cmp ebp, edi
mov dword [esp + 0xc], edi
jae 0x41265f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0044f136
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x41267d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
cmp edi, eax
mov dword [esp + 0x18], 0xffffffff
jbe 0x412793
jmp 0x4126a0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
cmp eax, edi
mov dword [esp + 0x14], edi
ja 0x4126b1
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
cmp ebp, 0x404
mov dword [esp + 0x20], eax
jbe 0x4126ca
mov ebp, 0x404
cmp byte [esi], 0
je 0x4126ef
cmp byte [esi + 1], 0
je 0x412793
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4126f2
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x41271a
mov ecx, dword [esi + 4]
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 0x412714
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x412740
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x41272b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00453d80
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x412793
lea eax, [ebp - 3]
test eax, eax
jl 0x41277e
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x41276e
cmp byte [eax + ebx + 1], 0x4b
jne 0x41276e
cmp byte [eax + ebx + 2], 5
jne 0x41276e
cmp byte [eax + ebx + 3], 6
je 0x412774
test eax, eax
jge 0x412750
jmp 0x41277e
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x412793
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x412694
push ebx
call fcn.0044f1f9
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x4131f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x413208
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x4131fd
cmp dword [edi + 0x7c], ebx
je 0x413217
call fcn.004135e0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00412f60
add esp, 0xc
test eax, eax
je 0x41323d
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.0044f136
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x41327f
push 0x4000
call fcn.0044f136
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
jne 0x41328b
push ebp
call fcn.0044f1f9
add esp, 4
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
push esi
mov dword [ebp + 0x68], edx
cmp eax, ebx
mov dword [ebp + 0x18], ebx
jne 0x4132d4
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.00411f30
test eax, eax
jne 0x4132d4
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x4132fe
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x413307
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
mov al, byte [ebp + 0x6c]
mov esi, dword [esp + 0x20]
neg al
lea edx, [ebp + 0x70]
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
sbb eax, eax
and eax, 0xc
cmp esi, ebx
mov dword [ebp + 0x7c], eax
je 0x413343
mov cl, byte [esi]
cmp cl, bl
je 0x413343
call fcn.00411c70
add esi, 1
jne 0x413333
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
pop esi
mov dword [edi + 0x7c], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x413740
Capabilities:
Get common file path

Disassembly:
cmp dword [edi], 0
push esi
jne 0x4137e1
cmp dword [edi + 4], 0xffffffff
jne 0x4137e1
lea esi, [edi + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
jmp 0x413770
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413770
sub eax, edx
sar eax, 1
movzx eax, word [edi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x4137a6
cmp ax, 0x2f
je 0x4137a6
push 0x469ad0
push 0x104
push esi
call fcn.00451b6c
add esp, 0xc
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
lea esi, [esp + 0x14]
call fcn.00412390
add esp, 8
test eax, eax
jne 0x4137c8
mov eax, dword [esp + 0xc]
pop esi
ret 8
call fcn.004127b0
mov dword [edi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop esi
ret 8
mov eax, 0x1000000
pop esi
ret 8
Function at 0x413e10
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x47a060]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x41c]
test ebx, ebx
push esi
mov esi, dword [esp + 0x424]
je 0x413e4d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x413e4d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [esi]
test ax, ax
je 0x413f00
mov ecx, esi
mov edx, esi
movzx eax, ax
cmp ax, 0x2f
je 0x413e6c
cmp ax, 0x5c
jne 0x413e6e
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x413e60
cmp ecx, esi
je 0x413eb2
sub ecx, esi
sar ecx, 1
push edi
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x218]
push esi
push eax
call fcn.00453d80
lea ecx, [esp + 0x220]
push ecx
push ebx
mov word [esp + edi + 0x228], 0
call fcn.00413e10
add esp, 0x14
pop edi
test ebx, ebx
mov word [esp + 8], 0
je 0x413ed0
push ebx
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.00451be6
add esp, 0xc
push esi
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00451b6c
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x413f00
push 0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x418]
pop esi
pop ebx
xor ecx, esp
call fcn.0044eeec
add esp, 0x414
ret
Function at 0x414ec0
Capabilities:
Encode data using xor
Hash data with crc32
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
je 0x414fa0
mov eax, dword [esi + 0x3c]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x414ef4
cmp dword [esi + 0x40], edi
jae 0x414ef4
push eax
call fcn.0044eea2
add esp, 4
mov dword [esi + 0x3c], ebp
cmp dword [esi + 0x3c], ebp
jne 0x414f0b
lea eax, [edi + edi]
push eax
call fcn.0044ea80
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.00453d80
add esp, 0xc
cmp edi, ebp
jbe 0x414f9c
mov edx, dword [esi + 0x3c]
mov bl, byte [edx + ebp]
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
movzx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x46ae78]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
add ecx, 1
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x46ae78]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, bl
mov byte [ecx + ebp], al
add ebp, 1
cmp ebp, dword [esp + 0x18]
jb 0x414f21
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
pop ebp
mov edx, dword [esi + 0x20]
test edx, edx
je 0x414fd9
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x414fc1
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.00453d80
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x414ffa
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x415540
Capabilities:
Get local ipv4 addresses
Get mac address on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x465453
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x47a060]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47a060]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x18], esi
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], esi
mov word [esp + 0x3c], si
mov dword [esp + 0xa0], esi
mov dword [esp + 0x18], esi
xor edi, edi
mov eax, dword [esp + 0x18]
push eax
call fcn.0044f136
mov ebp, eax
add esp, 4
cmp ebp, esi
je 0x41572e
lea ecx, [esp + 0x18]
push ecx
push ebp
push esi
push 0x10
push esi
call sub.iphlpapi.dll_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x4155e6
push ebp
call fcn.0044f1f9
add edi, 1
add esp, 4
cmp edi, 3
jb 0x4155a5
jmp 0x41572e
cmp eax, esi
jne 0x415725
mov edi, ebp
cmp dword [edi + 0x34], 6
jne 0x41569f
push 0x3e
lea eax, [esp + 0x5a]
push esi
push eax
mov word [esp + 0x60], si
call fcn.00452a60
mov ecx, dword [edi + 0x24]
mov eax, ecx
add esp, 0xc
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], esi
mov word [esp + 0x20], si
lea ebx, [eax + 2]
jmp 0x415630
mov dx, word [eax]
add eax, 2
cmp dx, si
jne 0x415630
sub eax, ebx
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x24]
call fcn.00401070
push 0x46ce08
mov ebx, 3
xor eax, eax
mov edx, esi
mov byte [esp + 0xa4], 1
call fcn.0040dee0
cmp eax, 0xffffffff
jne 0x4156ac
push 0x46ce10
xor eax, eax
mov edx, esi
call fcn.0040dee0
cmp eax, 0xffffffff
jne 0x4156ac
mov byte [esp + 0xa0], 0
cmp dword [esp + 0x34], 8
jb 0x415699
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0044ec2b
add esp, 4
mov ebx, dword [esp + 0x14]
xor esi, esi
mov edi, dword [edi + 8]
cmp edi, esi
jne 0x4155f0
jmp 0x415725
movzx edx, byte [edi + 0x31]
movzx eax, byte [edi + 0x30]
movzx ecx, byte [edi + 0x2f]
push edx
movzx edx, byte [edi + 0x2e]
push eax
movzx eax, byte [edi + 0x2d]
push ecx
movzx ecx, byte [edi + 0x2c]
push edx
push eax
push ecx
push str._02X:_02X:_02X:_02X:_02X:_02X
lea edx, [esp + 0x70]
push 0x20
push edx
call fcn.00450698
lea eax, [esp + 0x78]
add esp, 0x24
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4156e5
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x58]
push eax
lea esi, [esp + 0x40]
call fcn.00401070
mov byte [esp + 0xa0], 0
cmp dword [esp + 0x34], 8
jb 0x41571f
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0044ec2b
add esp, 4
mov ebx, dword [esp + 0x14]
xor esi, esi
push ebp
call fcn.0044f1f9
add esp, 4
push 0xffffffffffffffff
mov dword [ebx + 0x18], 7
mov dword [ebx + 0x14], esi
push esi
lea eax, [esp + 0x40]
mov ecx, ebx
mov word [ebx + 4], si
call fcn.00401110
cmp dword [esp + 0x50], 8
jb 0x41575e
mov edx, dword [esp + 0x3c]
push edx
call fcn.0044ec2b
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0044eeec
add esp, 0x90
ret
Function at 0x4158e0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x464920
mov eax, dword fs:[0]
push eax
push ebx
push edi
mov eax, dword [0x47a060]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x14], 1
jne 0x41594d
mov edi, 8
cmp dword [esp + 0x34], edi
jb 0x415928
mov eax, dword [esp + 0x20]
push eax
call fcn.0044ec2b
add esp, 4
cmp dword [esp + 0x50], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
jb 0x415a3f
mov ecx, dword [esp + 0x3c]
push ecx
jmp 0x415a37
mov eax, dword [esp + 0x30]
push 0x469acc
xor edi, edi
lea ecx, [esp + 0x20]
call fcn.00401de0
test eax, eax
mov edi, 8
jne 0x415987
cmp dword [esp + 0x50], edi
mov eax, dword [esp + 0x3c]
jae 0x415978
lea eax, [esp + 0x3c]
mov edx, dword [esp + 0x4c]
lea ecx, [edx + edx]
push ecx
push eax
push 1
push ebx
push ebx
jmp 0x4159af
cmp dword [esp + 0x50], edi
mov ecx, dword [esp + 0x3c]
jae 0x415995
lea ecx, [esp + 0x3c]
cmp dword [esp + 0x34], edi
mov eax, dword [esp + 0x20]
jae 0x4159a3
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x4c]
add edx, edx
push edx
push ecx
push 1
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jne 0x415a08
cmp dword [esp + 0x34], edi
jb 0x4159cd
mov eax, dword [esp + 0x20]
push eax
call fcn.0044ec2b
add esp, 4
cmp dword [esp + 0x50], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
jb 0x4159f1
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0044ec2b
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0x34], edi
jb 0x415a1b
mov edx, dword [esp + 0x20]
push edx
call fcn.0044ec2b
add esp, 4
cmp dword [esp + 0x50], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
jb 0x415a3f
mov eax, dword [esp + 0x3c]
push eax
call fcn.0044ec2b
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0xc
ret
Function at 0x415a60
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4648e8
mov eax, dword fs:[0]
push eax
push edi
mov eax, dword [0x47a060]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
test esi, esi
mov dword [esp + 0x10], 0
je 0x415b20
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x415b20
push 0x469acc
xor edi, edi
lea ecx, [esp + 0x1c]
call fcn.00401de0
test eax, eax
mov edi, 8
jne 0x415ac5
push 4
lea eax, [esp + 0x38]
push eax
push 4
push 0
push 0
jmp 0x415adf
cmp dword [esp + 0x30], edi
mov eax, dword [esp + 0x1c]
jae 0x415ad3
lea eax, [esp + 0x1c]
push 4
lea ecx, [esp + 0x38]
push ecx
push 4
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x415b13
cmp dword [esp + 0x30], edi
jb 0x415afd
mov edx, dword [esp + 0x1c]
push edx
call fcn.0044ec2b
add esp, 4
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0xc
ret
cmp dword [esp + 0x30], edi
jb 0x415b34
mov eax, dword [esp + 0x1c]
push eax
jmp 0x415b2c
cmp dword [esp + 0x30], 8
jb 0x415b34
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0044ec2b
add esp, 4
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0xc
ret

Function at 0x415b50
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x464da8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x47a060]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
mov edi, ecx
mov dword [esp + 0x18], eax
test edi, edi
mov dword [esp + 0x28], 0
je 0x415c83
cmp dword [esp + 0x44], 0
je 0x415c83
mov eax, dword [esp + 0x34]
mov esi, 8
cmp dword [esp + 0x48], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 1
jae 0x415bc6
lea eax, [esp + 0x34]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push 0
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push edi
call ebx
test eax, eax
je 0x415bf6
cmp dword [esp + 0x48], esi
jb 0x415c97
mov eax, dword [esp + 0x34]
push eax
jmp 0x415c8f
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0044f136
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
push 0
push esi
call fcn.00452a60
mov eax, dword [esp + 0x44]
add esp, 0x10
cmp dword [esp + 0x48], 8
jae 0x415c21
lea eax, [esp + 0x34]
lea ecx, [esp + 0x10]
push ecx
push esi
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push edi
call ebx
test eax, eax
jne 0x415c49
mov eax, dword [esp + 0x18]
push eax
mov edx, esi
call fcn.00403370
mov edi, 1
jmp 0x415c4d
mov edi, dword [esp + 0x1c]
test esi, esi
je 0x415c5a
push esi
call fcn.0044f1f9
add esp, 4
cmp dword [esp + 0x48], 8
jb 0x415c6e
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0044ec2b
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
cmp dword [esp + 0x48], 8
jb 0x415c97
mov edx, dword [esp + 0x34]
push edx
call fcn.0044ec2b
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x4170d0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
xor esi, esi
call edi
test ax, ax
jge 0x4170e8
mov esi, 8
push 2
call edi
test ax, ax
jge 0x4170f4
or esi, 1
push 1
call edi
test ax, ax
jge 0x417100
or esi, 2
push 0x10
call edi
test ax, ax
jge 0x41710c
or esi, 4
push 0x12
call edi
test ax, ax
jge 0x417118
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret