joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ec90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14
xor edx, edx
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
test esi, esi
je 0x41ecb0
cmp eax, esi
jae 0x41ee28
mov cl, byte [eax]
mov byte [ebp - 3], cl
test cl, cl
je 0x41ee28
movzx ecx, cl
xor ebx, ebx
shr ecx, 3
mov edx, esi
movsx ecx, byte [ecx + 0x463178]
test ecx, ecx
mov dword [ebp - 0xc], ecx
sete bl
add ebx, ecx
mov dword [ebp - 0x14], ebx
test esi, esi
jne 0x41ece2
lea edx, [ebx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, byte [ebp - 3]
mov byte [ebp - 4], cl
cmp esi, edx
jae 0x41ecfa
mov bl, byte [esi]
mov byte [ebp - 1], bl
jmp 0x41ecfe
mov byte [ebp - 1], 0
lea esi, [eax + 2]
cmp esi, edx
jae 0x41ed09
mov ch, byte [esi]
jmp 0x41ed0b
xor ch, ch
lea ebx, [eax + 3]
mov byte [ebp - 3], ch
cmp ebx, edx
jae 0x41ed19
mov bl, byte [ebx]
jmp 0x41ed1b
xor bl, bl
movzx esi, byte [ebp - 1]
movzx edx, ch
movzx ecx, cl
movzx edi, bl
mov byte [ebp - 2], bl
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx*4 + 0x463198]
and ebx, ecx
mov ecx, esi
and ecx, 0x3f
mov dword [ebp - 8], ebx
shl dword [ebp - 8], 6
and esi, 0xc0
or dword [ebp - 8], ecx
mov ecx, edx
shl dword [ebp - 8], 6
and ecx, 0x3f
or dword [ebp - 8], ecx
and edx, 0xc0
shl dword [ebp - 8], 6
mov ecx, edi
mov ebx, dword [ebp - 8]
and ecx, 0x3f
or ebx, ecx
shr edi, 2
mov ecx, dword [ebp - 0xc]
or edi, edx
shr edi, 2
or edi, esi
shr edi, 2
mov ecx, dword [ecx*4 + 0x4631c0]
shr ebx, cl
mov esi, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0xc]
cmp esi, dword [ebx*4 + 0x4631ac]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or edi, ecx
mov ecx, esi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
mov ecx, 0xffff
or edi, edx
cmp ecx, esi
sbb ecx, ecx
and ecx, 0x100
or edi, ecx
mov ecx, dword [ebx*4 + 0x4631d4]
mov ebx, dword [ebp - 0x14]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x41ee0f
xor edx, edx
cmp byte [ebp - 4], dl
setne dl
xor ecx, ecx
cmp byte [ebp - 2], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 3], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 1], cl
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
add eax, edx
mov edx, dword [ebp - 0x10]
inc edx
jmp 0x41ec9e
add eax, ebx
test esi, esi
je 0x41ee1e
mov edx, dword [ebp - 0x10]
inc edx
jmp 0x41ec9e
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41eea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
dec eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 0x10], ecx
lea eax, [ebx + eax*2]
mov dword [ebp - 0x18], eax
cmp ebx, eax
mov eax, dword [ebp + 0x10]
jae 0x41f05e
push esi
mov esi, dword [ebp + 0x14]
push edi
nop dword [eax]
test esi, esi
je 0x41eedc
cmp eax, esi
jae 0x41f059
mov bl, byte [eax]
mov byte [ebp + 0xf], bl
test bl, bl
je 0x41f059
movzx ecx, bl
mov edx, esi
shr ecx, 3
xor ebx, ebx
movsx ecx, byte [ecx + 0x463178]
test ecx, ecx
mov dword [ebp - 0xc], ecx
sete bl
add ebx, ecx
mov dword [ebp - 0x14], ebx
test esi, esi
jne 0x41ef0e
lea edx, [ebx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, byte [ebp + 0xf]
mov byte [ebp - 3], cl
cmp esi, edx
jae 0x41ef23
mov bh, byte [esi]
jmp 0x41ef25
xor bh, bh
lea esi, [eax + 2]
mov byte [ebp - 2], bh
cmp esi, edx
jae 0x41ef33
mov ch, byte [esi]
jmp 0x41ef35
xor ch, ch
lea esi, [eax + 3]
mov byte [ebp - 1], ch
cmp esi, edx
jae 0x41ef43
mov bl, byte [esi]
jmp 0x41ef45
xor bl, bl
movzx edx, ch
movzx ecx, cl
movzx esi, bh
movzx edi, bl
mov byte [ebp + 0xf], bl
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx*4 + 0x463198]
and ebx, ecx
mov ecx, esi
and ecx, 0x3f
mov dword [ebp - 8], ebx
shl dword [ebp - 8], 6
and esi, 0xc0
or dword [ebp - 8], ecx
mov ecx, edx
shl dword [ebp - 8], 6
and ecx, 0x3f
or dword [ebp - 8], ecx
and edx, 0xc0
shl dword [ebp - 8], 6
mov ecx, edi
mov ebx, dword [ebp - 8]
and ecx, 0x3f
or ebx, ecx
shr edi, 2
mov ecx, dword [ebp - 0xc]
or edi, edx
shr edi, 2
or edi, esi
shr edi, 2
mov ecx, dword [ecx*4 + 0x4631c0]
shr ebx, cl
mov esi, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0xc]
cmp esi, dword [ebx*4 + 0x4631ac]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or edi, ecx
mov ecx, esi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
mov ecx, 0xffff
or edi, edx
cmp ecx, esi
sbb ecx, ecx
and ecx, 0x100
or edi, ecx
mov ecx, dword [ebx*4 + 0x4631d4]
mov ebx, dword [ebp - 0x14]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x41f036
xor edx, edx
mov esi, 0xfffd
cmp byte [ebp + 0xf], dl
setne dl
xor ecx, ecx
cmp byte [ebp - 1], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 2], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 3], cl
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
add eax, edx
jmp 0x41f03c
add eax, ebx
test esi, esi
je 0x41f056
mov ecx, dword [ebp - 0x10]
mov word [ecx], si
add ecx, 2
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp - 0x18]
jb 0x41eed0
jmp 0x41f059
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
pop edi
pop esi
xor edx, edx
mov word [ecx], dx
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x41f06c
mov dword [edx], eax
sub ecx, ebx
sar ecx, 1
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4203c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x5250], 0
lea esi, [edi + 0x5254]
je 0x42043b
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x4203f6
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.0042c030
push dword [ebp + 0x10]
mov ecx, esi
mov dword [esi], 0
push dword [ebp + 0xc]
call fcn.0042bbd0
mov edx, dword [esi]
mov ecx, 0x48e94c
push dword [edi + 0x5250]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x525c]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebp
ret
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.0042bbd0
pop edi
pop esi
pop ebp
ret
Function at 0x423c30
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [0x48e948]
movss xmm0, dword [0x463870]
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
comiss xmm0, dword [ebx + 0x4144]
ja 0x423ea9
cmp dword [ebx + 0x4140], 0
push esi
push edi
jne 0x423cae
or edx, 0xffffffff
mov esi, 0x46375d
mov al, 0x23
or edi, 0xffffffff
nop
cmp al, 0x23
jne 0x423c7e
cmp byte [esi], al
jne 0x423c7e
cmp byte [esi + 1], al
cmove edx, edi
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x462a18]
test al, al
jne 0x423c70
not edx
push edx
call fcn.0041d9f0
mov dword [ebx + 0x4140], eax
add esp, 4
mov ecx, dword [0x48e948]
mov eax, dword [ecx + 0x3fe4]
mov dword [ebp - 0xc], 0x7f7fffff
mov dword [ebp - 8], 0x7f7fffff
mov eax, dword [eax]
movss xmm2, dword [eax + 0xc]
movss xmm1, dword [eax + 0x10]
mulss xmm2, dword [0x463874]
or dword [ecx + 0x3f18], 0x10
mulss xmm1, dword [0x463874]
mov dword [ecx + 0x3f64], 0
mov dword [ecx + 0x3f68], 0
movss dword [ebp - 0x14], xmm2
movss dword [ebp - 0x10], xmm1
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [ecx + 0x3f54], xmm0
movss xmm2, dword [eax + 0xc]
movss xmm1, dword [eax + 0x10]
mulss xmm2, dword [0x46387c]
mulss xmm1, dword [0x46387c]
addss xmm2, dword [eax + 4]
addss xmm1, dword [eax + 8]
mov eax, dword [0x48e948]
or dword [eax + 0x3f18], 1
movss dword [eax + 0x3f28], xmm2
movss dword [eax + 0x3f2c], xmm1
mov dword [eax + 0x3f30], 0x3f000000
mov dword [eax + 0x3f34], 0x3f000000
mov dword [eax + 0x3f1c], 1
lea eax, [ebp - 0xc]
movss xmm0, dword [ebx + 0x37b8]
addss xmm0, xmm0
push eax
push 2
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [ebx + 0x37bc]
addss xmm0, xmm0
movss dword [ebp - 8], xmm0
call fcn.00425620
push 0xc1347
push 0
push str.NavWindowingList
call fcn.00418450
mov edi, dword [ebx + 0x3df4]
add esp, 0x14
sub edi, 1
js 0x423e98
nop dword [eax]
mov eax, dword [ebx + 0x3dfc]
mov esi, dword [eax + edi*4]
cmp byte [esi + 0x8f], 0
je 0x423e8f
cmp esi, dword [esi + 0x2e8]
jne 0x423e8f
test dword [esi + 8], 0x80000
jne 0x423e8f
mov ecx, dword [esi]
mov edx, ecx
cmp ecx, 0xffffffff
jae 0x423e15
mov bl, byte [edx]
test bl, bl
je 0x423e0e
cmp bl, 0x23
jne 0x423e08
cmp byte [edx + 1], bl
je 0x423e0e
inc edx
cmp edx, 0xffffffff
jb 0x423df8
mov ebx, dword [ebp - 4]
cmp ecx, edx
jne 0x423e65
mov eax, dword [esi + 8]
test eax, 0x4000000
je 0x423e26
mov ecx, str._Popup_
jmp 0x423e65
test eax, 0x400
je 0x423e60
mov eax, str.MainMenuBar
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x423e52
test dl, dl
je 0x423e4e
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x423e52
add ecx, 2
add eax, 2
test dl, dl
jne 0x423e32
xor eax, eax
jmp 0x423e57
sbb eax, eax
or eax, 1
mov ecx, str._Main_menu_bar_
test eax, eax
je 0x423e65
mov ecx, str._Untitled_
cmp dword [ebx + 0x4138], esi
lea eax, [ebp - 0xc]
push eax
sete al
mov dword [ebp - 0xc], 0
push 0
movzx eax, al
push eax
push ecx
mov dword [ebp - 8], 0
call fcn.004462f0
add esp, 0x10
sub edi, 1
jns 0x423dc0
call fcn.0041c750
push 1
call fcn.004252f0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427b90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x48e948]
push esi
mov esi, dword [ebp + 8]
mov dword [eax + 0x5204], 0
test esi, esi
je 0x427be9
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push edi
push eax
call fcn.00427bf0
push 0x463784
push esi
mov edi, eax
call fcn.0041e810
mov esi, eax
add esp, 0xc
test esi, esi
je 0x427be8
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebp
ret

Function at 0x42a9e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [0x48e948]
cmp byte [edi + 0x5201], 0
lea eax, [edi + 0x20]
jne 0x42ab05
mov ecx, dword [eax]
push ebx
test ecx, ecx
je 0x42aafd
push esi
push 0x463780
push ecx
call fcn.0041e810
mov esi, eax
add esp, 8
test esi, esi
je 0x42aaf9
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
add esp, 4
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x42aaef
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x42aaef
push esi
call ebx
mov ebx, eax
add esp, 4
mov dword [ebp - 4], ebx
cmp ebx, 0xffffffff
je 0x42aaef
push 0
push dword [ebp - 8]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x42aaef
mov eax, dword [0x48e948]
test eax, eax
je 0x42aa85
inc dword [eax + 0xa8]
push dword [0x48e950]
push ebx
call dword [0x48e034]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x42aaef
push esi
push dword [ebp - 4]
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp - 4]
je 0x42aadb
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [0x48e948]
test eax, eax
je 0x42aac9
dec dword [eax + 0xa8]
push dword [0x48e950]
push ebx
call dword [0x48e038]
add esp, 8
jmp 0x42aaf9
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push dword [ebp - 4]
push ebx
call fcn.0041ff80
add esp, 0xc
jmp 0x42aaba
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea eax, [edi + 0x20]
pop esi
mov byte [edi + 0x5201], 1
pop ebx
movss xmm0, dword [edi + 0x5204]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x42ab56
subss xmm0, dword [edi + 0x18]
comiss xmm1, xmm0
movss dword [edi + 0x5204], xmm0
jb 0x42ab56
mov eax, dword [eax]
test eax, eax
je 0x42ab45
push eax
call fcn.00427b90
add esp, 4
mov dword [edi + 0x5204], 0
pop edi
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x90], 1
mov dword [edi + 0x5204], 0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x431760
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bd10
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x48e080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
lea ecx, [edi + 0x54]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x4c], ebx
jle 0x4317d6
xor esi, esi
nop dword [eax]
mov eax, dword [ecx]
mov ecx, dword [eax + esi]
test ecx, ecx
je 0x4317c8
cmp byte [eax + esi + 8], 0
je 0x4317c8
push ecx
call fcn.004204d0
mov eax, dword [edi + 0x54]
lea ecx, [edi + 0x54]
add esp, 4
mov dword [esi + eax], 0
jmp 0x4317cb
lea ecx, [edi + 0x54]
inc ebx
add esi, 0x78
cmp ebx, dword [edi + 0x4c]
jl 0x4317a0
jmp 0x4317d9
mov dword [ebp - 0x10], ecx
xor edx, edx
lea ebx, [edi + 0x34]
cmp dword [ebx], edx
jle 0x431821
mov eax, dword [edi + 0x3c]
mov esi, dword [eax + edx*4]
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
cmp dword [esi + 0x34], eax
jb 0x431819
mov ecx, dword [edi + 0x4c]
shl ecx, 4
sub ecx, dword [edi + 0x4c]
lea eax, [eax + ecx*8]
cmp dword [esi + 0x34], eax
jae 0x431816
mov dword [esi + 0x34], 0
xor ecx, ecx
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edx*4]
mov word [eax + 0x38], cx
mov ecx, dword [ebp - 0x10]
inc edx
cmp edx, dword [ebx]
jl 0x4317e2
lea ebx, [edi + 0x34]
mov eax, dword [edi + 0x54]
test eax, eax
je 0x431846
push eax
mov dword [edi + 0x50], 0
mov dword [edi + 0x4c], 0
call fcn.004204d0
add esp, 4
mov dword [edi + 0x54], 0
mov eax, dword [edi + 0x48]
mov esi, ebx
test eax, eax
je 0x431870
push eax
mov dword [edi + 0x44], 0
mov dword [edi + 0x40], 0
call fcn.004204d0
add esp, 4
mov dword [edi + 0x48], 0
lea esi, [edi + 0x34]
mov eax, dword [edi + 0x14]
mov dword [edi + 0x464], 0xffffffff
mov dword [edi + 0x460], 0xffffffff
test eax, eax
je 0x431896
push eax
call fcn.004204d0
add esp, 4
mov ebx, esi
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4318a6
push eax
call fcn.004204d0
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov byte [edi + 0x12], 0
mov dword [ebp - 0x10], ecx
cmp dword [ebx], ecx
jle 0x431930
mov eax, dword [ebx + 8]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x431928
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00431a50
mov eax, dword [esi + 0x28]
mov byte [ebp - 4], 1
test eax, eax
je 0x4318ed
push eax
call fcn.004204d0
add esp, 4
mov eax, dword [esi + 0x1c]
mov byte [ebp - 4], 2
test eax, eax
je 0x431901
push eax
call fcn.004204d0
add esp, 4
mov eax, dword [esi + 8]
mov byte [ebp - 4], 3
test eax, eax
je 0x431915
push eax
call fcn.004204d0
add esp, 4
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004204d0
mov ecx, dword [ebp - 0x10]
add esp, 4
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebx]
jl 0x4318c1
mov eax, dword [ebx + 8]
test eax, eax
je 0x431954
push eax
mov dword [ebx + 4], 0
mov dword [ebx], 0
call fcn.004204d0
add esp, 4
mov dword [ebx + 8], 0
mov byte [edi + 0x11], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x436a90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x436ab7
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.004204d0
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x436adc
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.004204d0
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x436b01
push eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.004204d0
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x436b42
push eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
call fcn.004204d0
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x436b67
push eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
call fcn.004204d0
add esp, 4
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x436b8c
push eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
call fcn.004204d0
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.00431970
Function at 0x456c10
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [ebp + 0x14]
mov cl, byte [eax]
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
mov byte [esi + 1], cl
mov ecx, dword [0x48ea8c]
mov byte [esi], al
mov byte [ebp + 0x18], al
mov eax, dword fs:[0x2c]
mov dword [esi + 4], edx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x48ea24]
cmp eax, dword [ecx + 4]
jg 0x456c6b
push dword [0x48ea20]
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_VkKeyScanExA]
mov ecx, 0xff
and ax, cx
mov word [esi + 8], ax
pop esi
pop ebp
ret
push 0x48ea24
call fcn.004594a0
add esp, 4
cmp dword [0x48ea24], 0xffffffff
jne 0x456c4d
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0x48ea24
mov dword [0x48ea20], eax
call fcn.0045944f
add esp, 4
jmp 0x456c4d
Function at 0x457560
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movsd xmm1, qword [0x4638b8]
xorps xmm3, xmm3
movsd xmm4, qword [0x46af58]
xorps xmm2, xmm2
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 2
nop dword [eax]
mov eax, dword [esi]
cmp eax, 0x270
jne 0x4575dd
lea edx, [esi + 8]
mov edi, eax
nop
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x4575a0
mov eax, dword [esi]
jmp 0x4576be
cmp eax, 0x4e0
jb 0x4576be
mov ebx, dword [esi + 0x9c4]
lea edi, [esi + 0x9c4]
mov esi, 0xe3
nop dword [eax]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x457600
mov edi, dword [ebp + 8]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x457648
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov ecx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [esi + 0x1384]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
sub dword [ebp - 4], 1
addsd xmm0, qword [eax*8 + 0x463930]
subsd xmm0, xmm3
mulsd xmm0, xmm1
mulsd xmm1, xmm4
addsd xmm2, xmm0
jne 0x457590
pop edi
movsd qword [ebp - 8], xmm2
fld qword [ebp - 8]
pop esi
movsd qword [ebp - 0x10], xmm1
fdiv qword [ebp - 0x10]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x457740
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x457760
pop edi
pop esi
mov dword [ecx], 0x270
mov eax, ecx
pop ebp
ret 4
Function at 0x459beb
Capabilities:
Parse pe header

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

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401729
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x40302c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push ecx
call fcn.004015e1
xor esi, esi
cmp dword [section..data], 5
jbe 0x4017a1
mov ecx, dword [0x40300c]
mov edx, 0x20000
and ecx, edx
mov eax, esi
or eax, ecx
je 0x4017a1
mov ecx, dword [0x403014]
mov eax, ecx
and eax, edx
cmp esi, dword [0x403010]
jne 0x4017a1
cmp eax, ecx
jne 0x4017a1
lea eax, [ebp - 0x38]
mov dword [ebp - 0x18], 0x401108
push eax
push 3
push esi
push esi
push 0x401221
push section..data
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x12
mov dword [ebp - 0xc], esi
call fcn.00401688
push 1
push esi
push esi
push 0x40111c
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004017d0
leave
ret 0x10

Function at 0x401d30
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x402058
call fcn.00401f90
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401d90
cmp eax, 0xffffffff
je 0x401d90
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401d89
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401d89
cmp edx, 0x10000000
jae 0x401d89
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x401d86
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401e10
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x401e4e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x401e46
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x401e50
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x401e36
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401f30
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x401f61
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401f61
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x401f61
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret