joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008dadc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101871e0]
jne 0x1008dae6
repz ret
jmp fcn.1008dd8d

Function at 0x1008e13f
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa0
call fcn.1000108f
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x2c], ecx
je 0x1008e248
mov eax, dword [esp + 0x2c]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x70], ecx
mov dword [0x101871bc], 0x10cc
mov edx, dword [esp + 0x24]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x4c], esi
mov dword [0x101871b8], 0xfd
mov esi, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.1008e670
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x20], eax
jmp 0x1008e2b6
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.1008ea44
lea ecx, [esp + 0x40]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x50], edx
add ecx, 0x40
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
lea eax, [0x1008e09e]
mov ecx, dword [esp + 0x18]
mov dword [ecx], 0x315400
mov edx, dword [0x101871a4]
mov dword [esp + 0x64], edx
mov edx, dword [0x101871a8]
mov dword [esp + 0x78], edx
mov edx, dword [0x101871ac]
mov dword [esp + 0x60], edx
mov edx, dword [0x101871b0]
mov dword [esp + 0x48], edx
mov dword [0x101871bc], 0x19b2
mov edx, dword [0x101871b4]
mov dword [esp + 0x90], edx
mov dword [0x101871b8], 0x1c3
mov dword [esp + 0x14], eax
jmp 0x1008e27b
lea eax, [esp + 0x40]
mov dword [0x101871b8], 0x23dd
mov dword [esp + 0x10], eax
call fcn.1008e32f
mov dword [esp + 0xc], eax
xor eax, eax
mov ecx, dword [esp + 0xc]
cmp ecx, 0
mov dword [esp + 0x20], eax
je 0x1008e1c3
jmp 0x1008e2b6
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x28], eax
jne 0x1008e2a2
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x24], ecx
je 0x1008e16c
mov eax, dword [esp + 0x28]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1008e27b
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
jmp 0x1008e162
Function at 0x1008e32f
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1008e39a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1008e472
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1008e443
jmp 0x1008e472
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x1008e401
jmp 0x1008e472
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x1008e3db
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x21], cl
mov al, byte [ebp - 0x21]
test al, 1
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], edx
jne 0x1008e39a
jmp 0x1008e3db
mov eax, dword [ebp - 0x1c]
mov ecx, dword [0x101871bc]
add ecx, 0xffffe365
mov dword [0x101871bc], ecx
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x1008e386
jmp 0x1008e472
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dx, word [eax + ecx*2 - 0x16]
mov word [ebp - 0x24], dx
mov ax, word [ebp - 0x24]
cmp ax, 0x61
jne 0x1008e472
mov dword [0x101871bc], 0x1fa8
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff6
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2], 0x64
je 0x1008e35b
jmp 0x1008e472
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff9
mov dword [0x101871bc], 0x454
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x2c], ecx
mov eax, 1
mov ecx, dword [ebp - 0x2c]
cmp word [ecx], 0x6c
mov dword [ebp - 0x30], eax
je 0x1008e479
xor eax, eax
mov dword [ebp - 0x30], eax
jmp 0x1008e479
mov eax, dword [ebp - 0x30]
add esp, 0x30
pop ebp
ret
Function at 0x1008e506
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [0x101871b8], 0x1573
mov dword [0x101871bc], 0x16cd
mov dword [ebp - 0x10], eax
call fcn.1008f1af
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov esi, dword [eax + esi + 0x78]
mov dword [0x101871b8], 0x18ab
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x101871bc], 0xfffff700
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x1008e5c8
jmp 0x1008e5d3
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax]
mov dword [0x101871bc], 0xfffffc3d
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x101871b8], 0x25e0
mov dword [ebp - 0x24], edi
jmp 0x1008e5c8
mov eax, dword [ebp - 0x2c]
add eax, 1
mov cl, byte [ebp - 0x2d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x2e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x34], eax
jne 0x1008e609
jmp 0x1008e636
mov eax, dword [ebp - 0x24]
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [0x101871b8], 0x1573
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov ecx, eax
mov edx, dword [ebp - 0x44]
add ecx, edx
mov esi, dword [ebp - 0x1c]
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 - 0x2c], eax
mov byte [ebp - 0x2d], bh
mov byte [ebp - 0x2e], cl
jne 0x1008e59e
mov al, byte [ebp - 0x2e]
test al, 1
jne 0x1008e56f
jmp 0x1008e643
xor eax, eax
mov ecx, dword [ebp - 0x28]
add ecx, 2
mov edx, dword [ebp - 0x40]
add edx, 1
mov esi, dword [ebp - 0x18]
cmp edx, esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edx
jb 0x1008e5e5
jmp 0x1008e5c8
Function at 0x1008e670
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
xor eax, eax
mov dword [ebp - 0x30], eax
jmp 0x1008e76e
xor eax, eax
add esp, 0x54
pop esi
pop ebp
ret
lea eax, [ebp - 0x24]
mov dword [0x101871b8], 0x1da9
mov dword [ebp - 0x34], eax
call fcn.1008f03f
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov ecx, dword [ebp - 0x34]
mov dword [esp + 4], ecx
call fcn.1008f319
cmp eax, 0
mov dword [ebp - 0x3c], eax
je 0x1008e68d
mov eax, dword [ebp - 0x3c]
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 - 0x40], eax
call fcn.1008e931
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx], 0x5a4d
mov dword [0x101871bc], 0x25b8
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx], ecx
mov ecx, dword [0x101871bc]
add ecx, 0xffffdb01
mov dword [0x101871b8], ecx
mov ecx, dword [ebp - 0x40]
mov dword [edx + 4], ecx
add ecx, 0x1f57
mov esi, dword [ebp - 0x40]
cmp esi, 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
je 0x1008e765
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add esp, 0x54
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x10091572]
mov dl, byte [eax + 0x10091543]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
je 0x1008e695
jmp 0x1008e76e
Function at 0x1008e79a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x101871c0], 0
mov dword [0x101871c4], 0
mov dword [0x101871d0], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov ecx, dword [0x101871b8]
add ecx, 0xfffff5dd
mov dword [0x101871b8], ecx
mov edx, dword [ebp - 0x10]
cmp edx, 0
mov esi, eax
mov edi, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], ecx
je 0x1008e91c
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101871c0], edx
mov dword [0x101871b8], 0x5da
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x34]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x101871c4], edx
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x101871c8], cl
mov dword [0x101871bc], 0xfffff29a
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x101871b8], 0x1926
mov cl, byte [0x101871c8]
mov edx, dword [0x101871c4]
mov byte [edi + edx], cl
mov edx, dword [0x101871c0]
movzx edx, byte [edi + edx]
mov ebx, dword [0x101871c4]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x101871d0], ebx
mov dword [0x101871b8], 0x145c
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x30]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
mov byte [ebx + edx], cl
mov ecx, dword [0x101871bc]
add ecx, 0x22d8
mov dword [0x101871bc], ecx
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x3c], edx
je 0x1008e90c
mov eax, dword [0x101871c0]
mov ecx, dword [0x101871c4]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
jmp 0x1008e80c
mov eax, dword [0x101871b8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
jmp 0x1008e91c
mov eax, dword [ebp - 0x2c]
add eax, 0xfffff31d
mov dword [0x101871b8], eax
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1008ea44
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x16c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [0x101871bc]
add edx, 0xffffc57a
mov dword [0x101871bc], edx
mov dword [0x101871b8], 0x1040
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x1008eb33
lea eax, [0x10091551]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x101871b8], 0x593
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x140], ecx
call fcn.1008edf1
mov dword [0x101871b8], 0x1f8d
mov eax, dword [ebp - 0x13c]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x148]
mov dword [esp + 0xc], edx
call fcn.1008e79a
xor eax, eax
mov ecx, dword [ebp - 0x144]
add ecx, 0x4f244
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x315400
mov ecx, dword [ebp - 0x144]
add ecx, 0x158ea
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f30
add esp, 0x16c
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, 0x11c
mov edi, edx
add edi, esi
add edi, 0x70
mov esi, dword [edi]
imul edi, eax, 0x11c
add edx, edi
add edx, 0x5e
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0xdcf
mov ecx, edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x1008eb33
mov dword [0x101871b8], 0xffffd635
xor eax, eax
mov dword [ebp - 0x14c], eax
jmp 0x1008eba0
mov eax, dword [ebp - 0x14c]
mov cl, byte [eax + 0x10091572]
mov dl, byte [eax + 0x10091543]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x14c], eax
jne 0x1008eba0
lea eax, [ebp - 0x12c]
mov dword [0x101871b8], 0xf86
mov dword [ebp - 0x150], eax
call fcn.1008f03f
mov dword [esp], eax
mov eax, dword [ebp - 0x150]
mov dword [esp + 4], eax
call fcn.1008f319
mov dword [0x101871d8], eax
mov dword [0x101871b8], 0x4c9
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x154]
mov ecx, esp
mov edx, dword [ebp - 0x148]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 4
mov dword [ecx + 8], 0x1000
mov dword [ecx], 0
call eax
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x15c], ecx
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
lea edx, section..data
imul esi, eax, 0x11c
mov edi, edx
add edi, esi
add edi, 0x70
mov esi, dword [edi]
imul edi, eax, 0x11c
mov ebx, edx
add ebx, edi
add ebx, 0x50
mov edi, dword [ebx]
imul ebx, eax, 0x11c
add edx, ebx
add edx, 0x5e
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x144]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], edx
call fcn.1008e4a6
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x164]
add eax, ecx
mov edx, dword [ebp - 0x160]
add edx, 1
cmp edx, 0xdcf
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x15c], edx
je 0x1008ea8a
jmp 0x1008ec51
Function at 0x1008edf1
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 edi, dword [0x101871b8]
add edi, 0x2328
mov dword [0x101871b8], edi
mov dword [0x101871c4], 0
mov byte [0x101871c8], 0
mov dword [0x101871bc], 0x7d9
mov dword [0x101871c0], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1008ee66
mov dword [0x101871b8], 0x23ae
mov dword [0x101871bc], 0x13e9
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x101871b8], 0x21bf
mov dword [0x101871bc], 0x18c6
mov eax, dword [0x101871c0]
add eax, 1
mov dword [0x101871c0], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1008ee66
xor eax, eax
mov dword [0x101871b8], 0x2160
mov dword [0x101871c0], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101871cc], 0
mov dword [0x101871b8], 0x1ffd
mov edx, dword [0x101871c4]
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 [0x101871cc], edi
mov dword [0x101871b8], 0x23c4
mov eax, edi
cdq
idiv ecx
mov dword [0x101871c4], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x101871c8], cl
mov dword [0x101871bc], 0x1bb3
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov dword [0x101871b8], 0x2629
mov dword [0x101871bc], 0xd8f
mov cl, byte [0x101871c8]
mov edx, dword [0x101871c4]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x101871c0]
add edx, 1
mov dword [0x101871c0], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1008eeb9
jmp 0x1008ee4a
Function at 0x1008f4a8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [0x101871b8], 0x2396
cmp ecx, 0
sete dl
cmp eax, 0
sete dh
and dl, dh
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], dl
mov eax, 0xffffffff
mov cl, byte [ebp - 0x15]
test cl, 1
mov dword [ebp - 0x1c], eax
jne 0x1008f6c4
jmp 0x1008f5cd
mov dword [0x101871bc], 0x16ea
mov dword [0x101871b8], 0xaeb
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
jmp 0x1008f6c4
mov eax, dword [ebp - 0x24]
mov ecx, eax
add ecx, 1
mov edx, dword [ebp - 0x28]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov word [ebp - 0x32], si
mov word [ebp - 0x34], bx
jb 0x1008f554
mov ax, word [ebp - 0x32]
mov word [ebp - 0x34], ax
mov ax, word [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
setne bh
mov al, bl
and al, bh
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x38]
cmp esi, edi
setb bh
and al, bh
test al, 1
mov byte [ebp - 0x39], bl
mov dword [ebp - 0x24], esi
jne 0x1008f515
mov eax, 0x16ea
mov cl, byte [ebp - 0x39]
test cl, 1
mov dword [ebp - 0x40], eax
jne 0x1008f4f6
jmp 0x1008f697
mov eax, 0xd99
xor ecx, ecx
mov edx, dword [ebp - 0x44]
mov si, word [edx]
shr si, 1
movzx edi, si
cmp si, 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x40], eax
je 0x1008f697
jmp 0x1008f515
mov dword [0x101871b8], 0x1b38
mov dword [0x101871bc], 0x133d
mov ecx, dword fs:[0x18]
xor eax, eax
mov dword [0x101871b8], 0x1b91
mov edx, dword [0x101871bc]
add edx, 0xfffff7a6
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
mov esi, ecx
add esi, 0x14
mov ecx, dword [ecx + 0x14]
mov dword [0x101871b8], edx
cmp ecx, esi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x1c], eax
je 0x1008f6c4
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x48]
mov byte [ebp - 0x4d], cl
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov ecx, eax
add ecx, 0x24
mov edx, dword [eax + 0x28]
mov esi, dword [eax + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x4d]
and bh, bl
test bh, 1
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], esi
jne 0x1008f670
jmp 0x1008f5a0
mov dword [0x101871bc], 0x1a58
mov dword [0x101871b8], 0x4ef
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff8
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x1c], eax
jmp 0x1008f6c4
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x4c]
cmp edx, esi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x54], edx
jne 0x1008f63c
xor eax, eax
mov ecx, dword [ebp - 0x60]
mov dword [0x101871bc], ecx
mov dword [0x101871b8], 0x4ef
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401c0e
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.004042f0
mov dword [esp], eax
mov eax, dword [0x40b450]
push eax
push eax
call fcn.004063e2
lea ecx, [esp + 8]
pop edx
call fcn.004030f0
push dword [esp]
push 0
push 0x40a00d
push dword [esp + 0x10]
call sub.KERNEL32.DLL_GetTempFileNameA
mov eax, dword [0x40b450]
push eax
push eax
push dword [esp + 8]
call fcn.00404380
lea ecx, [0x40b1c0]
pop edx
call fcn.004030f0
push dword [esp]
call fcn.00404360
push dword [0x40b1c0]
call fcn.004063d0
push dword [0x40b1c0]
call fcn.00406443
mov eax, dword [0x40b450]
push eax
push eax
call fcn.00406305
lea ecx, [0x40b1b8]
pop edx
call fcn.004030f0
mov eax, dword [esp + 0x14]
call fcn.004043d0
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x401d1b
mov ebx, dword [esp + 0x18]
inc ebx
mov eax, ebx
call fcn.004043d0
mov ebx, eax
cmp ebx, 1
jne 0x401cf4
push dword [0x40b450]
mov edx, 0x40a00e
call fcn.00407a20
mov edx, dword [0x40b1b8]
call fcn.00407a20
mov edx, 0x40a011
call fcn.00407a20
lea ecx, [0x40b1bc]
pop edx
call fcn.004030f0
mov edx, dword [0x40b1c0]
push dword [0x40b450]
call fcn.00407a20
lea ecx, [0x40b1b8]
pop edx
call fcn.004030f0
mov dword [esp + 0xc], 2
jmp 0x401d2d
mov ebx, 1
cmp ebx, dword [esp]
jne 0x401d2d
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
mov eax, ebx
call fcn.004043d0
mov dword [0x40b1b0], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
mov eax, ebx
call fcn.004043d0
mov dword [0x40b1b4], eax
mov eax, 1
jmp 0x401d60
push dword [esp + 4]
call fcn.00407a80
add esp, 0xc
pop ebx
ret 4
Function at 0x4020e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.00403100
push 0xa
push dword [esp + 4]
push dword [esp + 0x14]
call sub.KERNEL32.DLL_FindResourceA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x402133
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.DLL_LoadResource
mov dword [0x40b1c4], eax
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.DLL_SizeofResource
mov dword [0x40b200], eax
mov eax, dword [esp + 4]
jmp 0x40213b
push dword [esp]
call fcn.00407a80
add esp, 8
ret 8

Function at 0x4038b5
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x4038cd
push dword [esp + 4]
push 0x40384e
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x40390a
push esi
mov esi, dword [0x40b25c]
test esi, esi
je 0x403909
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x403901
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x40b25c
call fcn.00406d4d
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x4038da
pop edi
pop ebx
pop esi
ret 4
Function at 0x404207
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExA]
push edi
push 0x64
pop edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call esi
test eax, eax
je 0x4042ab
mov eax, dword [ebp - 0xc]
dec eax
je 0x40428e
dec eax
jne 0x4042ab
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x40428a
dec eax
je 0x404286
dec eax
je 0x40426c
dec eax
jne 0x4042ab
push 0x46
pop edi
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0xb8], 0x9c
call esi
test eax, eax
je 0x4042ab
cmp byte [ebp - 0x1e], 1
je 0x4042ab
push 0x4b
jmp 0x4042aa
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x404282
dec eax
je 0x40427e
dec eax
jne 0x4042ab
push 0x41
jmp 0x4042aa
push 0x3c
jmp 0x4042aa
push 0x32
jmp 0x4042aa
push 0x14
jmp 0x4042aa
push 5
jmp 0x4042aa
cmp dword [ebp - 0x14], 0
je 0x4042a8
cmp dword [ebp - 0x14], 0xa
je 0x4042a4
cmp dword [ebp - 0x14], 0x5a
jne 0x4042ab
push 0x28
jmp 0x4042aa
push 0x1e
jmp 0x4042aa
push 0xa
pop edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x404b2c
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x40b4c4]
call fcn.00406bc0
mov edi, eax
test edi, edi
je 0x404b8e
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x404b55
push dword [esp + 0xc]
push edi
call eax
jmp 0x404b8e
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.00407c80
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.00407d20
pop esi
pop ebx
pop edi
ret 8