joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a9f5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a866

Function at 0x41adef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a430
mov eax, dword [0x432180]
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.00418914
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ae31
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41af8d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424d30
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 + 0x480d50]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041bde6
mov ecx, dword [esi*4 + 0x480d50]
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 0x41af86
cmp eax, dword [edi + ecx + 0x24]
jne 0x41af86
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 0x41af86
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041bde6
add esp, 0x14
test edx, edx
jl 0x41af86
jg 0x41aefc
test eax, eax
jb 0x41af86
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41af86
jl 0x41af16
cmp dword [ebp - 0x1008], eax
ja 0x41af86
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41af34
test ebx, ebx
je 0x41af6d
cmp ecx, edi
jae 0x41af6d
mov al, byte [ecx]
cmp al, 0xd
jne 0x41af4e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41af5a
cmp byte [ecx + 1], 0xa
jne 0x41af5a
inc ecx
jmp 0x41af5a
movzx eax, al
movsx eax, byte [eax + 0x432460]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41af34
cmp edx, ebx
jne 0x41af34
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41af8b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409366
leave
ret
Function at 0x41b284
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 + 0x480d50]
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 0x41b2c4
cmp byte [ebx], 0xa
jne 0x41b2c4
or byte [eax + edi + 0x28], 4
jmp 0x41b2c9
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41b3c7
mov al, byte [edx]
cmp al, 0x1a
je 0x41b3a9
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41b2f8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41b31d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41b327
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 0x41b2da
jmp 0x41b3c7
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 0x41b3a4
cmp dword [ebp - 0xc], 0
je 0x41b3a4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x480d50]
test byte [eax + edi + 0x28], 0x48
je 0x41b37e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41b369
mov byte [esi], dl
jmp 0x41b37a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x480d50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41b3c7
cmp byte [ebp - 1], 0xa
jne 0x41b38d
cmp esi, ebx
jne 0x41b38d
mov byte [esi], 0xa
jmp 0x41b3c6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041be04
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b3c7
mov byte [esi], 0xd
jmp 0x41b3c6
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x480d50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b3c3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b3c7
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b3d0
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 + 0x480d50]
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 0x41b413
cmp word [esi], dx
jne 0x41b413
or byte [edi + eax + 0x28], 4
jmp 0x41b418
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 0x41b56b
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 0x41b54b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41b45a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41b490
cmp eax, edx
jae 0x41b49c
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 0x41b432
jmp 0x41b56b
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 0x41b547
cmp dword [ebp - 0x14], 0
je 0x41b547
mov eax, dword [ebx*4 + 0x480d50]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41b51f
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41b4e8
mov word [esi], cx
jmp 0x41b51b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x480d50]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x480d50]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x480d50]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41b56b
pop ebx
cmp word [ebp - 4], bx
jne 0x41b530
cmp esi, dword [ebp + 0xc]
jne 0x41b530
mov word [esi], bx
jmp 0x41b568
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041be04
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41b56b
push 0xd
jmp 0x41b564
mov ecx, dword [ebx*4 + 0x480d50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b562
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b56b
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 0x43aa30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x18]
sub esp, 0x78
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x3c], 0x40d370
mov dword [ebp - 0x38], 0x43fa0c
mov dword [ebp - 0x30], 0x43abca
mov dword [ebp - 0x2c], esp
mov dword [esp], eax
call fcn.00418b80
mov edx, dword [0x440804]
test edx, edx
je 0x43aba2
cmp dword [ebp + 8], 0x80
ja 0x43aa88
mov eax, dword [0x440804]
test eax, eax
jle 0x43aab8
mov dword [ebp - 0x50], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call fcn.00411060
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x54]
mov dword [esp], eax
call fcn.00418c30
mov eax, dword [ebp - 0x58]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
add eax, 7
mov dword [ebp - 0x5c], eax
shr eax, 3
lea eax, [eax*4 - 4]
mov dword [ebp - 0x60], eax
mov eax, dword [0x440810]
test eax, eax
je 0x43ab8a
mov eax, dword [0x449350]
test eax, eax
jne 0x43ab72
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x449530]
test edx, edx
je 0x43ab57
mov eax, dword [edx]
mov dword [ebp - 0x58], edx
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 0x449530], eax
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x43ab49
mov eax, dword [0x440810]
test eax, eax
je 0x43ab34
mov eax, dword [0x449350]
test eax, eax
je 0x43aa9d
mov dword [esp], 0x44081c
mov dword [ebp - 0x50], 0xffffffff
call fcn.00419a10
jmp 0x43aa9d
mov dword [esp], 0x440810
mov dword [ebp - 0x50], 0xffffffff
call fcn.004387c0
jmp 0x43ab13
mov dword [ebp - 0x50], 1
call fcn.004137b0
jmp 0x43ab0a
and dword [ebp - 0x5c], 0xfffffff8
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.0043ac30
mov dword [ebp - 0x58], eax
jmp 0x43ab03
mov dword [esp], 0x44081c
mov dword [ebp - 0x50], 0xffffffff
call fcn.004199b0
jmp 0x43aae8
mov dword [esp], 0x440810
mov dword [ebp - 0x50], 0xffffffff
call fcn.004387c0
jmp 0x43aadb
mov dword [esp], 0x418460
call sub.msvcrt.dll_getenv
test eax, eax
je 0x43abc3
mov eax, 1
lock add dword [0x440804], eax
jmp 0x43aa76
mov eax, 0xffffffff
jmp 0x43abb7
Function at 0x514ec9
Capabilities:
Contain obfuscated stackstrings
Get number of processors
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [ebp - 0xc1c]
mov dx, word [ecx]
mov word [ebp - 0xf80], dx
mov eax, dword [ebp - 0xc1c]
add eax, 2
mov dword [ebp - 0xc1c], eax
mov cx, word [ebp - 0xf80]
mov word [ebp - 0x100], cx
push edx
xor edx, 0x1bc8
call 0x514ec9
add byte [edi + 0x43], al
cmp eax, 0x464c4934
add esp, 4
sub edx, 0x4192
pop edx
push esi
add esi, 0x2366
xor esi, 0x16dee
and esi, 0xdea7
pop esi
movzx edx, word [ebp - 0x100]
test edx, edx
jne 0x514f0a
movzx eax, word [ebp - 0x1f8]
movzx ecx, word [ebp - 0x100]
sub eax, ecx
mov dword [ebp - 0x1498], eax
jmp 0x514f6d
movzx edx, word [ebp - 0x1f8]
movzx eax, word [ebp - 0x100]
cmp edx, eax
je 0x514e29
movzx ecx, word [ebp - 0x1f8]
xor ecx, 0x20
movzx edx, word [ebp - 0x100]
cmp ecx, edx
je 0x514e29
movzx eax, word [ebp - 0x1f8]
movzx ecx, word [ebp - 0x100]
cmp eax, ecx
jge 0x514f57
mov dword [ebp - 0x14d8], 0xffffffff
jmp 0x514f61
mov dword [ebp - 0x14d8], 1
mov edx, dword [ebp - 0x14d8]
mov dword [ebp - 0x1498], edx
cmp dword [ebp - 0x1498], 0
jne 0x514fb6
push eax
push eax
add esp, 4
or eax, 0xa31c
pop eax
push edx
xor edx, 0xcfde
pop edx
push edi
push esi
add esp, 4
add edi, 0x5378
and edi, 0x180c3
pop edi
push ecx
push ebx
add esp, 4
sub ecx, 0x5afb
pop ecx
mov eax, dword [ebp - 0x4d4]
mov dword [ebp - 0x2e0], eax
jmp 0x51501e
push ebx
push eax
add esp, 4
sub ebx, 0x160dc
pop ebx
push ebx
push eax
add esp, 4
sub ebx, 0xeed1
pop ebx
push esi
add esi, 0x4e88
jmp 0x514fdb
xor esi, 0x9834
jmp 0x514fe7
pop esi
mov ecx, dword [ebp - 0x4d4]
mov edx, dword [ecx]
mov dword [ebp - 0x4d4], edx
mov eax, dword [ebp - 0x4d4]
cmp eax, dword [ebp - 0xc20]
je 0x515014
mov ecx, dword [ebp - 0x4d4]
cmp dword [ecx + 0x30], 0
jne 0x514dca
mov dword [ebp - 0x2e0], 0
Function at 0x5156b8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pop eax
out 0xff, eax
dec dword [ebx - 0x2f77b]
inc dword [ebx]
add al, 0x8a
Function at 0x51643e
Capabilities:
Get number of processors

Disassembly:
add esp, 4
pop ebx
lea edx, [ebp - 0x1628]
mov dword [ebp - 0xc48], edx
mov eax, dword [ebp - 0x4e4]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc44], ecx
xor edx, edx
mov word [ebp - 0x204], dx
xor eax, eax
mov word [ebp - 0x38], ax
push eax
and eax, 0x15969
jmp 0x516394
or eax, 0xb6a2
pop eax
push esi
push edx
add esp, 4
or esi, 0x1467e
add esi, 0x3398
or esi, 0x17915
xor esi, 0x37b9
pop esi
mov ecx, dword [ebp - 0xc44]
mov dx, word [ecx]
mov word [ebp - 0xf8a], dx
mov eax, dword [ebp - 0xc44]
add eax, 2
mov dword [ebp - 0xc44], eax
mov cx, word [ebp - 0xf8a]
mov word [ebp - 0x204], cx
mov edx, dword [ebp - 0xc48]
mov ax, word [edx]
mov word [ebp - 0xf8c], ax
mov ecx, dword [ebp - 0xc48]
add ecx, 2
mov dword [ebp - 0xc48], ecx
mov dx, word [ebp - 0xf8c]
mov word [ebp - 0x38], dx
push eax
or eax, 0x12a63
and eax, 0xda1e
pop eax
push ebx
and ebx, 0xa30d
and ebx, 0x15718
xor ebx, 0x416d
call 0x51643e
add byte [edx], bh
dec ecx
xor cl, byte [ebp + 0x4b]
inc ebx
dec ebx
add esp, 4
pop ebx
movzx eax, word [ebp - 0x38]
test eax, eax
jne 0x51645f
movzx ecx, word [ebp - 0x204]
movzx edx, word [ebp - 0x38]
sub ecx, edx
mov dword [ebp - 0x1514], ecx
jmp 0x5164b9
movzx eax, word [ebp - 0x204]
movzx ecx, word [ebp - 0x38]
cmp eax, ecx
je 0x516387
movzx edx, word [ebp - 0x204]
xor edx, 0x20
movzx eax, word [ebp - 0x38]
cmp edx, eax
je 0x516387
movzx ecx, word [ebp - 0x204]
movzx edx, word [ebp - 0x38]
cmp ecx, edx
jge 0x5164a3
mov dword [ebp - 0x1510], 0xffffffff
jmp 0x5164ad
mov dword [ebp - 0x1510], 1
mov eax, dword [ebp - 0x1510]
mov dword [ebp - 0x1514], eax
cmp dword [ebp - 0x1514], 0
jne 0x516502
push edi
push edi
add esp, 4
add edi, 0x7541
or edi, 0xf30a
pop edi
push ebx
xor ebx, 0x16b61
and ebx, 0xd185
pop ebx
push edx
push eax
add esp, 4
and edx, 0x1768a
and edx, 0x6c22
pop edx
mov ecx, dword [ebp - 0x4e4]
mov dword [ebp - 0x2a8], ecx
jmp 0x51656a
push esi
sub esi, 0xd5dd
and esi, 0x22f9
jmp 0x516517
jmp 0x51651e
pop esi
push ecx
push eax
add esp, 4
call 0x516530
add byte [ecx], bh
inc eax
aaa
dec ebx
cmp al, 0x50
add esp, 4
pop ecx
mov edx, dword [ebp - 0x4e4]
mov eax, dword [edx]
mov dword [ebp - 0x4e4], eax
mov ecx, dword [ebp - 0x4e4]
cmp ecx, dword [ebp - 0xc4c]
je 0x516560
mov edx, dword [ebp - 0x4e4]
cmp dword [edx + 0x30], 0
xor byte [eax], al
jne 0x51632b
mov dword [ebp - 0x2a8], 0
Function at 0x516530
Capabilities:
Contain obfuscated stackstrings
Get number of processors

Disassembly:
add esp, 4
pop ebx
lea edx, [ebp - 0x1628]
mov dword [ebp - 0xc48], edx
mov eax, dword [ebp - 0x4e4]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc44], ecx
xor edx, edx
mov word [ebp - 0x204], dx
xor eax, eax
mov word [ebp - 0x38], ax
push eax
and eax, 0x15969
jmp 0x516394
or eax, 0xb6a2
pop eax
push esi
push edx
add esp, 4
or esi, 0x1467e
add esi, 0x3398
or esi, 0x17915
xor esi, 0x37b9
pop esi
mov ecx, dword [ebp - 0xc44]
mov dx, word [ecx]
mov word [ebp - 0xf8a], dx
mov eax, dword [ebp - 0xc44]
add eax, 2
mov dword [ebp - 0xc44], eax
mov cx, word [ebp - 0xf8a]
mov word [ebp - 0x204], cx
mov edx, dword [ebp - 0xc48]
mov ax, word [edx]
mov word [ebp - 0xf8c], ax
mov ecx, dword [ebp - 0xc48]
add ecx, 2
mov dword [ebp - 0xc48], ecx
mov dx, word [ebp - 0xf8c]
mov word [ebp - 0x38], dx
push eax
or eax, 0x12a63
and eax, 0xda1e
pop eax
push ebx
and ebx, 0xa30d
and ebx, 0x15718
xor ebx, 0x416d
call 0x51643e
add byte [edx], bh
dec ecx
xor cl, byte [ebp + 0x4b]
inc ebx
dec ebx
add esp, 4
pop ebx
movzx eax, word [ebp - 0x38]
test eax, eax
jne 0x51645f
movzx ecx, word [ebp - 0x204]
movzx edx, word [ebp - 0x38]
sub ecx, edx
mov dword [ebp - 0x1514], ecx
jmp 0x5164b9
movzx eax, word [ebp - 0x204]
movzx ecx, word [ebp - 0x38]
cmp eax, ecx
je 0x516387
movzx edx, word [ebp - 0x204]
xor edx, 0x20
movzx eax, word [ebp - 0x38]
cmp edx, eax
je 0x516387
movzx ecx, word [ebp - 0x204]
movzx edx, word [ebp - 0x38]
cmp ecx, edx
jge 0x5164a3
mov dword [ebp - 0x1510], 0xffffffff
jmp 0x5164ad
mov dword [ebp - 0x1510], 1
mov eax, dword [ebp - 0x1510]
mov dword [ebp - 0x1514], eax
cmp dword [ebp - 0x1514], 0
jne 0x516502
push edi
push edi
add esp, 4
add edi, 0x7541
or edi, 0xf30a
pop edi
push ebx
xor ebx, 0x16b61
and ebx, 0xd185
pop ebx
push edx
push eax
add esp, 4
and edx, 0x1768a
and edx, 0x6c22
pop edx
mov ecx, dword [ebp - 0x4e4]
mov dword [ebp - 0x2a8], ecx
jmp 0x51656a
push esi
sub esi, 0xd5dd
and esi, 0x22f9
jmp 0x516517
jmp 0x51651e
pop esi
push ecx
push eax
add esp, 4
call 0x516530
add byte [ecx], bh
inc eax
aaa
dec ebx
cmp al, 0x50
add esp, 4
pop ecx
mov edx, dword [ebp - 0x4e4]
mov eax, dword [edx]
mov dword [ebp - 0x4e4], eax
mov ecx, dword [ebp - 0x4e4]
cmp ecx, dword [ebp - 0xc4c]
je 0x516560
mov edx, dword [ebp - 0x4e4]
cmp dword [edx + 0x30], 0
xor byte [eax], al
jne 0x51632b
mov dword [ebp - 0x2a8], 0
Function at 0x517240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x304], edx
push ecx
sub ecx, 0x509f
call 0x517240
add byte [ecx], bh
dec edi
inc esp
aaa
xor eax, 0x4c48349
sub ecx, 0x14b03
pop ecx
push edx
jmp 0x517250
pop edx
push esi
and esi, 0x8952
xor esi, 0x17ce2
pop esi
mov dword [ebp - 0x730], 0
mov eax, dword [ebp - 0x304]
mov dword [ebp - 0x1580], eax
cmp dword [ebp - 0x1580], 0
jne 0x51728f
mov ecx, dword [ebp - 0x730]
mov dword [ebp - 0x4f0], ecx
jmp 0x517580
mov edx, dword [ebp - 0x1580]
mov eax, dword [ebp - 0x304]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x1584], eax
jne 0x5172b7
mov ecx, dword [ebp - 0x730]
mov dword [ebp - 0x4f0], ecx
jmp 0x517580
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x1584]
mov edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0x1588], edx
cmp dword [ebp - 0x1588], 0
jne 0x5172e9
mov eax, dword [ebp - 0x730]
mov dword [ebp - 0x4f0], eax
jmp 0x517580
mov ecx, dword [ebp - 0x304]
add ecx, dword [ebp - 0x1588]
mov dword [ebp - 0x724], ecx
jne 0x51730e
mov edx, dword [ebp - 0x730]
mov dword [ebp - 0x4f0], edx
jmp 0x517580
mov eax, dword [ebp - 0x724]
mov ecx, dword [ebp - 0x304]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x1900], ecx
mov edx, dword [ebp - 0x724]
mov eax, dword [ebp - 0x304]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x1904], eax
mov ecx, dword [ebp - 0x724]
mov edx, dword [ebp - 0x304]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x1908], edx
mov dword [ebp - 0x728], 0
jmp 0x517368
Function at 0x5b5508
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5b56b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5b5694
mov dl, 1
mov eax, dword [0x440b94]
call fcn.00468ec8
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.0040a1c8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5b5683
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00521c90
test al, al
je 0x5b5676
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5b56c4
lea eax, [ebp - 0x394]
call fcn.00424440
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x5b5676
xor eax, eax
push ebp
push 0x5b566f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x5b5734
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x5b5658
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040b318
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x5b5658
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040b318
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b5676
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5b5579
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.00468df0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b56ba
lea eax, [ebp - 0x3a0]
call fcn.0040a1c8
ret
Function at 0x5c7a88
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp al, 2
je 0x5c7a9c
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyW
pop esi
pop ebx
ret
cmp dword [0x6d77e4], 0
jne 0x5c7abf
push 0x5c7ae4
push 0x5c7b04
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00414030
mov dword [0x6d77e4], eax
cmp dword [0x6d77e4], 0
je 0x5c7ad9
push 0
push pe_nt_image_headers32
push esi
push ebx
call dword [0x6d77e4]
jmp 0x5c7ade
mov eax, 0x7f
pop esi
pop ebx
ret

Function at 0x5c7a89
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp al, 2
je 0x5c7a9c
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyW
pop esi
pop ebx
ret
cmp dword [0x6d77e4], 0
jne 0x5c7abf
push 0x5c7ae4
push 0x5c7b04
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00414030
mov dword [0x6d77e4], eax
cmp dword [0x6d77e4], 0
je 0x5c7ad9
push 0
push pe_nt_image_headers32
push esi
push ebx
call dword [0x6d77e4]
jmp 0x5c7ade
mov eax, 0x7f
pop esi
pop ebx
ret
Function at 0x6a70e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x20c], edx
mov esi, eax
xor eax, eax
push ebp
push 0x6a7179
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x208]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebx, eax
test ebx, ebx
jle 0x6a714f
cmp ebx, 0x104
jge 0x6a714f
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.0040b318
mov eax, dword [ebp - 0x20c]
mov edx, esi
call fcn.006a6fd8
jmp 0x6a7160
mov eax, 0x6a7194
call fcn.0060d278
mov eax, esi
call fcn.0040a1c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6a7180
lea eax, [ebp - 0x20c]
call fcn.0040a1c8
ret

Function at 0x6a7418
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x6a74e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x6a6ab8]
call fcn.006a7510
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x6a74c0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x6a7500
call fcn.00424510
mov edx, dword [ebp - 8]
mov eax, dword [0x6cff3c]
mov eax, dword [eax]
call fcn.005b8268
call fcn.006a6ce4
call sub.user32.dll_GetFocus
mov edx, dword [0x6cff3c]
mov edx, dword [edx]
cmp eax, dword [edx + 0x188]
jne 0x6a74a3
push 0x7a
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x6a74aa
call sub.user32.dll_WaitMessage
jmp 0x6a747d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6a74c7
mov eax, dword [ebp - 4]
call fcn.00408444
ret