joyce8/EMBER2024-capa huggingface dataset:
Function at 0x16998a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4f9000]
push edi
or ebp, 0xffffffff
jmp 0x16998c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16998c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16998b8
mov eax, 1
add ebx, ebx
jne 0x16998db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16998ec
jne 0x169990b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x169990b
dec eax
add ebx, ebx
jne 0x16998f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16998d0
add ebx, ebx
jne 0x1699907
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x169995d
xor ecx, ecx
sub eax, 3
jb 0x1699923
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1699992
sar eax, 1
mov ebp, eax
jmp 0x169992e
add ebx, ebx
jne 0x169992e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16998fc
inc ecx
add ebx, ebx
jne 0x169993c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16998fc
add ebx, ebx
jne 0x1699949
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x169993e
jne 0x169995a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x169993e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x169997c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x169996e
jmp 0x16998be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x169997c
add edi, ecx
jmp 0x16998be
pop esi
mov edi, esi
mov ecx, 0xbe4b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x169999a
cmp byte [edi], 0x8a
jne 0x169999a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x169999f
lea edi, [esi + 0x795000]
mov eax, dword [edi]
or eax, eax
je 0x1699a0e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x815514]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x815640]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16999cc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x815644]
or eax, eax
je 0x1699a08
mov dword [ebx], eax
add ebx, 4
jmp 0x16999e9
call dword [esi + 0x815654]
mov ebp, dword [esi + 0x815648]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1699a42
sub esp, 0xffffff80
jmp 0x113e9d0
Function at 0x1001db80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x18]
mov eax, edi
sub eax, ebp
sub eax, 0x40
sar eax, 2
push ebx
push eax
mov eax, ebp
call fcn.1001d940
add esp, 8
test eax, eax
jne 0x1001dc47
lea ecx, [ebp + 0x40]
mov dword [esp + 0x18], ecx
sub edi, 4
cmp edi, dword [esp + 0x18]
jbe case.0x1001dc1d.17
mov eax, dword [edi]
mov edx, eax
and edx, 0xff
mov si, word [edx*2 + 0x1004e340]
mov ecx, eax
shr ecx, 8
and si, 7
and ecx, 0xff
cmp si, 2
jne 0x1001dbfc
cmp ebx, ecx
jb 0x1001dbb5
cmp edx, 0x2a
jne case.0x1001dc1d.17
shr eax, 0x10
cmp ebx, eax
ja 0x1001dbb5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cmp si, 1
jne 0x1001dbb5
cmp ecx, ebx
jne 0x1001dbb5
mov edx, eax
and edx, 0xff
add edx, 0xfffffff0
cmp edx, 0x27
ja case.0x1001dc1d.17
movzx edx, byte [edx + 0x1001dd20]
jmp dword [edx*4 + 0x1001dd0c]
shr eax, 0x10
mov ebx, eax
mov eax, edi
sub eax, ebp
sub eax, 0x40
sar eax, 2
push ebx
push eax
mov eax, ebp
call fcn.1001d940
add esp, 8
test eax, eax
je 0x1001dbb5
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, str.local
pop ebx
ret
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x20]
shr eax, 0x10
not eax
mov eax, dword [edx + eax*4]
pop edi
pop esi
add eax, 0x10
pop ebp
mov dword [ecx], eax
mov eax, str.global
pop ebx
ret
mov esi, dword [ebp + 0x10]
mov edx, eax
shr edx, 0x10
and edx, 0xff
not edx
mov edx, dword [esi + edx*4]
mov esi, dword [esp + 0x20]
add edx, 0x10
mov dword [esi], edx
cmp edi, dword [esp + 0x18]
jbe 0x1001dcc5
mov edx, dword [edi - 4]
cmp dl, 0x10
jne 0x1001dcc5
mov esi, edx
shr esi, 8
and esi, 0xff
inc ecx
cmp esi, ecx
jne 0x1001dcc5
shr eax, 8
xor eax, edx
test eax, 0xffff0000
jne 0x1001dcc5
pop edi
pop esi
pop ebp
mov eax, str.method
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, str.field
pop ebx
ret
mov ecx, dword [ebp + 0x38]
shr eax, 0x10
test ecx, ecx
jne 0x1001dcee
mov eax, dword [esp + 0x20]
pop edi
pop esi
mov ecx, 0x1004ea9a
pop ebp
mov dword [eax], ecx
mov eax, str.upvalue
pop ebx
ret
test eax, eax
je 0x1001dcfc
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1001dcf2
dec eax
jne 0x1001dcf2
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov eax, str.upvalue
pop ebx
ret
Function at 0x1001e8e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
mov al, byte [esi + 0x81]
mov edx, dword [esi + 0x210]
mov cl, byte [esi + 0x82]
mov bl, al
and bl, 0xc
neg bl
sbb bl, bl
and bl, 4
neg edx
sbb dl, dl
and al, 3
add al, al
add al, al
and dl, 0xe
add al, al
or bl, dl
or bl, al
movzx eax, byte [esi + 0x1e0]
and al, 1
or bl, al
mov byte [esp + 0xa], cl
cmp cl, bl
je 0x1001eb0e
mov cl, bl
and cl, 3
push ebp
push edi
lea edx, [esi + 0xb10]
mov byte [esi + 0x82], bl
cmp cl, 1
jne 0x1001e989
movzx esi, word [0x1004e29e]
movzx edi, word [0x1004e2a4]
movzx ebp, word [0x1004e2aa]
movzx eax, word [0x1004e2b2]
add esi, 0x1003e8c0
add edi, 0x1003e8c0
add ebp, 0x1003e8c0
add eax, 0x1003e8c0
mov dword [esp + 0x14], eax
movzx eax, word [0x1004e2b8]
jmp 0x1001e9b2
movzx eax, word [0x1004e2b4]
mov esi, dword [edx + 0x39c]
mov edi, dword [edx + 0x3a8]
mov ebp, dword [edx + 0x3b4]
add eax, 0x1003e8c0
mov dword [esp + 0x14], eax
movzx eax, word [0x1004e2ba]
add eax, 0x1003e8c0
mov dword [esp + 0x18], eax
mov al, bl
xor al, byte [esp + 0x12]
mov dword [edx + 0x398], esi
mov dword [edx + 0x3a4], edi
mov dword [edx + 0x3b0], ebp
mov byte [esp + 0x13], al
test al, 6
je 0x1001ea2f
test bl, 6
jne 0x1001ea11
lea esi, [edx + 0x26c]
mov ecx, 0x55
mov edi, edx
rep movsd dword es:[edi], dword [esi]
test bl, 0x10
je 0x1001ea7b
mov ecx, 0x1004175a
mov dword [edx + 0x114], ecx
mov dword [edx + 0x118], ecx
mov dword [edx + 0x11c], ecx
jmp 0x1001ea75
mov eax, 0x1004173f
test bl, 2
jne 0x1001ea20
mov eax, 0x10041767
mov ecx, 0x55
mov edi, edx
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x13]
jmp 0x1001ea7b
test bl, 6
jne 0x1001ea7b
mov dword [edx + 0x12c], esi
mov dword [edx + 0x138], edi
mov dword [edx + 0x144], ebp
test bl, 0x10
jne 0x1001e9f8
mov ecx, dword [edx + 0x380]
mov dword [edx + 0x114], ecx
mov ecx, dword [edx + 0x384]
mov dword [edx + 0x118], ecx
mov ecx, dword [edx + 0x388]
mov dword [edx + 0x11c], ecx
mov ecx, dword [edx + 0x38c]
mov dword [edx + 0x120], ecx
test al, 8
je 0x1001eac0
test bl, 8
jne 0x1001eaae
lea ecx, [edx + 0x154]
mov eax, 0xaa
nop
movzx esi, word [eax + 0x1004e208]
add esi, 0x1003e8c0
mov dword [ecx], esi
add eax, 2
add ecx, 4
cmp eax, 0x136
jb 0x1001ea90
jmp 0x1001eac0
lea edi, [edx + 0x154]
mov ecx, 0x46
mov eax, 0x100417e4
rep stosd dword es:[edi], eax
test bl, 8
jne 0x1001ead9
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [edx + 0x154], eax
mov dword [edx + 0x160], ecx
test bl, 1
je 0x1001eb0c
test byte [esp + 0x12], 1
jne 0x1001eb0c
mov ecx, dword [esp + 0x20]
mov dx, word [ecx + 0x758]
add dx, dx
dec dx
movzx eax, dx
mov edx, eax
lea edi, [ecx + 0xa90]
shl edx, 0x10
mov ecx, 0x20
or eax, edx
rep stosd dword es:[edi], eax
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x1001f2d0
Capabilities:
Terminate process

Disassembly:
mov edx, dword [esp + 4]
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x10]
mov ebx, dword [edi + 0x28]
sub eax, 8
test ebx, ebx
je 0x1001f358
mov ecx, ebx
and ecx, 0xfffffffc
mov esi, dword [ecx + 0x38]
test esi, esi
jns 0x1001f2ff
mov ecx, dword [edi + 0x1c]
sub ecx, esi
cmp eax, ecx
jb 0x1001f390
cmp eax, dword [edi + 0x1c]
jbe 0x1001f358
mov ecx, dword [eax + 4]
mov esi, ecx
and esi, 7
cmp esi, 7
ja case.default.0x1001f311
jmp dword [esi*4 + 0x1001f430]
movzx ecx, byte [ecx - 3]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov esi, 0xfffffff8
sub esi, ecx
add eax, esi
jmp case.default.0x1001f311
cmp dword [eax - 8], 1
jne case.0x1001f311.3
mov ebx, dword [ebx + 0x34]
jmp case.0x1001f311.3
test edx, edx
je 0x1001f41f
cmp dword [esp + 0x10], 1
jne 0x1001f3f5
mov edx, dword [esp + 0x10]
and ecx, 0xfffffff8
sub eax, ecx
test ebx, ebx
jne 0x1001f2e6
test edx, edx
je 0x1001f428
mov eax, dword [edi + 0x1c]
add eax, 8
mov dword [edi + 0x28], 0
mov dword [edi + 0x10], eax
call fcn.1001f290
mov edx, dword [edi + 8]
mov eax, dword [edx + 0xc8]
test eax, eax
je 0x1001f388
push edi
call eax
add esp, 4
push 1
call dword [sym.imp.MSVCR100.dll_exit]
test edx, edx
je 0x1001f3a7
mov edx, dword [ebx + 0x34]
add eax, 8
mov dword [edi + 0x10], eax
mov eax, ecx
mov dword [edi + 0x28], edx
call fcn.1001f290
pop edi
pop esi
mov eax, ebx
pop ebx
ret
test bl, 1
je 0x1001f3d0
test edx, edx
je 0x1001f3ca
mov eax, dword [edi + 8]
and byte [eax + 0x81], 0xef
mov dword [edi + 0x28], 0
mov byte [edi + 7], dl
pop edi
pop esi
mov eax, ebx
pop ebx
ret
test edx, edx
je 0x1001f3ef
mov ecx, dword [ebx + 0x34]
mov dword [edi + 0x28], ecx
mov edx, dword [eax + 4]
and edx, 0xfffffff8
mov ecx, eax
sub ecx, edx
add ecx, 8
mov dword [edi + 0x10], ecx
call fcn.1001f290
pop edi
pop esi
mov eax, ebx
pop ebx
ret
mov edx, ecx
and edx, 7
cmp dl, 6
jne 0x1001f409
mov ecx, dword [edi + 8]
and byte [ecx + 0x81], 0xef
mov dword [edi + 0x28], ebx
mov ecx, dword [eax + 4]
and ecx, 0xfffffff8
sub eax, ecx
add eax, 8
mov dword [edi + 0x10], eax
call fcn.1001f290
pop edi
mov eax, ebx
pop esi
or eax, 2
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x10021980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push esi
mov esi, dword [esp + 0x10]
movzx edx, byte [esi + 0x24]
push edi
lea edx, [edx*4 + 0x14]
call fcn.10022f10
mov edx, dword [esp + 0x18]
mov ebp, eax
mov dword [ebp + 8], edx
xor ecx, ecx
lea eax, [esi + 0x40]
mov dword [ebp + 0x10], eax
mov word [ebp + 5], 8
mov byte [ebp + 7], cl
movzx eax, byte [esi + 0x25]
add eax, 0x20
mov edx, eax
shr edx, 3
and dl, 0x20
sub al, dl
mov byte [esi + 0x25], al
movzx eax, byte [esi + 0x24]
xor edi, edi
mov dword [esp + 0x14], eax
cmp eax, ecx
jbe 0x10021a2a
push ebx
lea ebx, [ebp + 0x14]
jmp 0x100219e0
mov ecx, dword [esp + 0x14]
mov edx, 0x18
call fcn.10022f10
lea ecx, [eax + 8]
mov dword [eax + 0x10], ecx
mov word [eax + 5], 0x105
mov dword [eax + 0xc], 0xffffffff
mov edx, dword [esi + 0x14]
movzx ecx, word [edx + edi*2]
shl ecx, 0x18
xor ecx, esi
mov dword [eax + 0x14], ecx
mov dword [ebx], eax
inc edi
add ebx, 4
cmp edi, dword [esp + 0x18]
jb 0x100219e0
mov dl, byte [esp + 0x18]
pop ebx
pop edi
pop esi
mov byte [ebp + 7], dl
mov eax, ebp
pop ebp
ret
pop edi
mov byte [ebp + 7], al
pop esi
mov eax, ebp
pop ebp
ret

Function at 0x1002c870
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
movzx eax, word [esp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
movzx ebp, word [ebx + eax*2 + 0x11a]
push esi
push edi
mov dword [esp + 0x10], eax
cmp ebp, ecx
jbe 0x1002c8eb
mov eax, dword [ebx + 0x10]
movzx edx, word [eax + ebp*8]
cmp edx, ecx
je 0x1002c919
test byte [eax + ebp*8 + 4], 0x1f
jne 0x1002c8db
cmp word [esp + 0x1c], 0x40
mov eax, dword [ebx + 0x10]
movzx edx, word [eax + edx*8 + 2]
movzx esi, word [eax + ecx*8 + 2]
je 0x1002c8c7
mov edi, eax
mov al, byte [edi + esi*8 + 4]
xor al, byte [edi + edx*8 + 4]
test al, 0x1f
jne 0x1002c8db
cmp edx, esi
je 0x1002c911
cmp edx, 0x8000
jae 0x1002c911
cmp esi, 0x8000
jae 0x1002c911
mov eax, dword [ebx + 0x10]
movzx ebp, word [eax + ebp*8 + 6]
cmp ebp, ecx
ja 0x1002c895
mov eax, dword [esp + 0x10]
movzx eax, word [ebx + eax*2 + 0x10c]
cmp eax, ecx
jbe 0x1002c911
mov ebx, dword [ebx + 0x10]
lea ebx, [ebx]
movzx edx, word [ebx + eax*8]
cmp edx, ecx
je 0x1002c92c
movzx eax, word [ebx + eax*8 + 6]
cmp eax, ecx
ja 0x1002c900
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
test byte [eax + ebp*8 + 4], 0x1f
pop edi
pop esi
mov eax, 0
pop ebp
setne al
pop ebx
pop ecx
ret
test byte [ebx + eax*8 + 4], 0x1f
pop edi
pop esi
mov eax, 0
pop ebp
setne al
pop ebx
pop ecx
ret
Function at 0x1002df20
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
movzx eax, word [ecx]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
movzx ebp, word [ecx + 2]
dec dword [esi + 8]
mov ecx, dword [esp + 0x10]
movzx edx, word [ecx + eax*2]
movzx eax, word [ebx + eax*8 + 6]
push edi
mov edi, dword [esi + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 0x18], eax
cmp edi, dword [esi + 0xdc]
jb 0x1002df5d
mov ecx, esi
call fcn.100236b0
mov edx, dword [esi + 0x10]
lea ecx, [edi + 1]
mov dword [esi + 8], ecx
lea eax, [edx + edi*8]
mov dx, word [esp + 0x18]
mov ecx, 0x5d00
mov word [eax + 4], cx
mov cx, word [esp + 0xc]
mov word [eax], dx
mov word [eax + 2], cx
movzx edx, word [ebx + ebp*8 + 6]
mov ebx, dword [esi + 8]
mov dword [esp + 0x18], edx
cmp ebx, dword [esi + 0xdc]
jb 0x1002df9e
mov ecx, esi
call fcn.100236b0
mov ecx, dword [esi + 0x10]
lea eax, [ebx + 1]
mov dword [esi + 8], eax
lea eax, [ecx + ebx*8]
mov cx, word [esp + 0x18]
mov edx, 0x5d00
mov word [eax + 4], dx
mov edx, dword [esp + 0x14]
mov word [eax], di
mov word [eax + 2], cx
movzx edi, word [edx + ebp*2]
mov ebp, dword [esi + 8]
cmp ebp, dword [esi + 0xdc]
jb 0x1002dfd9
mov ecx, esi
call fcn.100236b0
mov ecx, dword [esi + 0x10]
lea eax, [ebp + 1]
mov dword [esi + 8], eax
lea eax, [ecx + ebp*8]
mov edx, 0x5d00
mov word [eax + 4], dx
mov word [eax], bx
mov word [eax + 2], di
mov edi, dword [esi + 8]
cmp edi, dword [esi + 0xdc]
jb 0x1002e007
mov ecx, esi
call fcn.100236b0
mov ecx, dword [esi + 0x10]
lea eax, [edi + 1]
mov dword [esi + 8], eax
lea eax, [ecx + edi*8]
mov cx, word [esp + 0x20]
mov edx, 0x5913
mov word [eax + 4], dx
mov edx, dword [esp + 0x1c]
mov word [eax], bp
mov word [eax + 2], cx
mov word [edx + 6], di
mov ebx, dword [esi + 8]
cmp ebx, dword [esi + 0xdc]
jb 0x1002e042
mov ecx, esi
call fcn.100236b0
mov ecx, dword [esi + 0x10]
lea eax, [ebx + 1]
mov dword [esi + 8], eax
lea eax, [ecx + ebx*8]
mov word [eax], di
mov word [eax + 2], di
pop edi
mov edx, 0x1013
mov word [eax + 4], dx
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x10036950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
je 0x1003696c
mov esi, ecx
shr esi, 0x10
sub esi, 0x8000
jmp 0x1003696e
xor esi, esi
movzx edx, word [eax + 0x18]
mov ebx, dword [eax + 0x1c]
lea edx, [ebx + edx*8 - 8]
lea esi, [edi + esi*4 + 8]
movzx edi, byte [edx + 6]
movzx edx, word [edx]
add edi, edx
mov edx, dword [eax + 0x20]
mov dword [edx + edi*4], esi
shr ecx, 8
pop edi
and ecx, 0xff
pop esi
mov byte [eax + 0x6d], 1
pop ebx
cmp ecx, dword [eax + 0x64]
jae 0x100369a4
mov dword [eax + 0x64], ecx
mov dword [esp + 4], eax
jmp 0x10038da0
sub esp, 0x114
mov eax, dword [0x10054190]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x128]
movzx eax, word [edi + 0x18]
mov ecx, dword [edi + 0x1c]
movzx edx, word [ecx + eax*8 - 8]
mov ebx, dword [edi + 0x64]
lea eax, [ecx + eax*8 - 8]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x14], eax
movzx eax, byte [eax + 6]
lea ebp, [ecx + edx*4]
mov edx, dword [ebp + eax*4]
mov dword [esp + 0x10], eax
push ebx
push edx
lea esi, [esp + 0x28]
mov eax, edi
call fcn.100389b0
mov ecx, eax
mov eax, dword [edi + 0x68]
add ecx, eax
add ebx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
xor edx, edx
add esp, 8
xor esi, esi
mov dword [esp + 0x1c], eax
mov byte [ecx + 4], bl
cmp dword [esp + 0x10], edx
jbe 0x10038e50
lea ebx, [ebx]
mov ecx, dword [ebp + esi*4]
shr ecx, 0x18
cmp ecx, dword [esp + 0x18]
jb 0x10038e3c
cmp ecx, ebx
jae 0x10038e45
sub ecx, dword [esp + 0x1c]
cmp byte [esp + ecx + 0x20], 0
jne 0x10038e45
mov eax, dword [ebp + esi*4]
mov dword [ebp + edx*4], eax
inc edx
inc esi
cmp esi, dword [esp + 0x10]
jb 0x10038e20
mov ecx, dword [esp + 0x14]
movzx ebx, word [ecx]
mov byte [ecx + 6], dl
movzx eax, word [edi + 0x1a]
sub eax, ebx
dec eax
cmp esi, eax
ja 0x10038e75
sub eax, esi
lea ebx, [ebp + esi*4]
inc eax
mov esi, dword [ebx]
mov dword [ebp + edx*4], esi
inc edx
add ebx, 4
dec eax
jne 0x10038e68
mov ax, word [ecx]
mov ecx, dword [esp + 0x120]
add ax, dx
mov word [edi + 0x1a], ax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1004c940
add esp, 0x114
ret
Function at 0x10046740
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx + 8]
push ebp
push esi
push edi
mov esi, 0x200
push esi
add eax, 0x4c
push eax
push ebx
call fcn.1003af30
mov ecx, dword [esp + 0x24]
push ecx
push esi
mov ebp, eax
push 1
push ebp
call dword [sym.imp.MSVCR100.dll_fread]
mov edi, eax
add esp, 0x1c
cmp edi, esi
jne 0x100467a6
mov edx, dword [ebx + 8]
add esi, esi
push esi
add edx, 0x4c
push edx
push ebx
call fcn.1003af30
mov ebp, eax
mov eax, dword [esp + 0x24]
push eax
mov ecx, esi
sub ecx, edi
push ecx
lea edx, [edi + ebp]
push 1
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add edi, eax
add esp, 0x1c
cmp edi, esi
je 0x10046775
mov esi, dword [ebx + 0x14]
push edi
lea eax, [esi + 8]
push ebp
push ebx
mov dword [ebx + 0x14], eax
call fcn.1003ab50
add esp, 0xc
mov dword [esi], eax
mov dword [esi + 4], 0xfffffffb
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x14]
pop edi
pop esi
pop ebp
cmp ecx, dword [eax + 0x18]
jb 0x100467d9
mov ecx, ebx
pop ebx
jmp fcn.100231b0
pop ebx
ret

Function at 0x100467e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
mov edi, eax
test edi, edi
je 0x10046845
mov eax, dword [esi + 8]
push ebx
push edi
add eax, 0x4c
push eax
push esi
call fcn.1003af30
push ebp
push edi
mov ebx, eax
push 1
push ebx
call dword [sym.imp.MSVCR100.dll_fread]
mov edi, dword [esi + 0x14]
mov ebp, eax
push ebp
lea ecx, [edi + 8]
push ebx
push esi
mov dword [esi + 0x14], ecx
call fcn.1003ab50
mov dword [edi], eax
mov dword [edi + 4], 0xfffffffb
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x14]
add esp, 0x28
pop ebx
cmp edx, dword [eax + 0x18]
jb 0x1004683a
mov ecx, esi
call fcn.100231b0
xor eax, eax
cmp eax, ebp
sbb eax, eax
pop edi
neg eax
pop ebp
ret
push ebp
call dword [sym.imp.MSVCR100.dll_getc]
mov edi, eax
push ebp
push edi
call dword [sym.imp.MSVCR100.dll_ungetc]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
lea ecx, [eax + 8]
add edx, 0x70
mov dword [esi + 0x14], ecx
add esp, 0xc
mov dword [eax], edx
mov dword [eax + 4], 0xfffffffb
xor eax, eax
cmp edi, 0xffffffff
pop edi
setne al
pop ebp
ret
Function at 0x1004c940
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10054190]
jne 0x1004c94a
repz ret
jmp fcn.1004d0e9
Function at 0x401000
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, 0x415940
push edi
push 0x1c
mov ecx, esi
call fcn.00401289
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::data_void_const]
push 1
pop ebx
cmp byte [eax], bl
jne 0x401030
call fcn.004010f1
test al, al
je 0x401030
push ebx
call fcn.00401234
pop ecx
push 0x1d
mov ecx, esi
call fcn.00401289
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::data_void_const]
cmp byte [eax], bl
jne 0x401055
call fcn.00401102
test al, al
je 0x401055
push ebx
call fcn.00401234
pop ecx
push 0x1f
mov ecx, esi
call fcn.00401289
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::data_void_const]
cmp byte [eax], bl
jne 0x40107a
call fcn.00401178
test al, al
je 0x40107a
push ebx
call fcn.00401234
pop ecx
push 0x20
mov ecx, esi
call fcn.00401289
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::data_void_const]
cmp byte [eax], bl
jne 0x40109f
call fcn.004011a3
test al, al
je 0x40109f
push ebx
call fcn.00401234
pop ecx
push 0x21
mov ecx, esi
call fcn.00401289
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::data_void_const]
xor edi, edi
cmp byte [eax], bl
jne 0x4010c6
push edi
push edi
push edi
push 0x4011f8
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0x22
mov ecx, esi
call fcn.00401289
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::data_void_const]
cmp byte [eax], bl
jne 0x4010eb
push edi
push edi
push edi
push 0x401216
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x4010f1
Capabilities:
Check for sandbox and av modules

Disassembly:
push str.SbieDll.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
test eax, eax
setne al
ret

Function at 0x401102
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410510
push 0x40fc60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
and dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
jmp 0x401162
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4011a3
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x30]
add eax, 0x68
mov eax, dword ds:[eax]
cmp eax, 0x70
je 0x4011c1
mov dword [ebp - 4], 0
jmp 0x4011c8
mov dword [ebp - 4], 1
xor eax, eax
cmp dword [ebp - 4], eax
setne al
leave
ret

Function at 0x401234
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
push edi
je 0x401285
mov edi, 0x415940
push 0x410560
push 0x2f
mov ecx, edi
call fcn.00401289
mov esi, dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
push eax
call esi
pop ecx
test al, al
pop ecx
je 0x401269
push 2
call dword [sym.imp.MSVCRT.dll_exit]
push 0x41055c
push 0x2f
mov ecx, edi
call fcn.00401289
push eax
call esi
pop ecx
test al, al
pop ecx
je 0x401285
call fcn.00406988
pop edi
pop esi
pop ebp
ret

Function at 0x4013c9
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
push edi
movzx esi, ax
movzx edi, dx
shr esi, 3
imul edi, esi
mov ecx, dword [ebp + 0x10]
mov word [0x4151e6], ax
imul edi, ecx
shr ax, 3
mov dword [0x4151e0], edi
imul eax, edx
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edi
mov word [0x4151d8], 1
fild qword [ebp - 8]
mov word [0x4151da], dx
mov dword [0x4151dc], ecx
mov word [0x4151e4], ax
mov word [0x4151e8], di
fmul dword [0x410580]
call sub.MSVCRT.dll__ftol
imul esi, eax
push 0x30008
push edi
push 0x401528
push 0x4151d8
push 0xffffffffffffffff
push 0x415158
mov dword [0x415190], eax
mov dword [0x415194], esi
call dword [sym.imp.WINMM.dll_waveInOpen]
push edi
call fcn.0040147c
inc edi
pop ecx
cmp edi, 2
jb 0x40145f
push dword [0x415158]
call dword [sym.imp.WINMM.dll_waveInStart]
pop edi
pop esi
leave
ret