joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10065708
Capabilities:
Encode data using xor

Disassembly:
pushfd
push dword [esp + 4]
ret 8
cmp bl, 3
add dl, dl
push 0x5b7e76ec
lea esp, [esp + 0xc]
jne 0x10063f27
mov dl, bl
pushal
pushfd
not dl
pushf
pop word [esp + 0x22]
setg dl
sbb dl, 0x98
xor dl, 0x2f
mov dl, byte [esi]
mov dword [esp], ebp
sub dl, 0x76
stc
xor dl, 0xa
mov byte [esp], 0x84
ror dl, 1
call fcn.1007453a
pop ecx
jge 0x10065732
movsd dword es:[edi], dword [esi]
xchg byte [edx + 0x23fe0377], ah
adc dword [ebp + 0x8e7a304], esi
retf

Function at 0x1006d6a9
Capabilities:
Encode data using xor

Disassembly:
wait
mov eax, dword [ebx + ebp*2]
lea sp, [ebx]
pop edx
pop ebx
mov dh, 0x8a
and eax, dword [esi + esi*8 - 0xf]
adc cl, dh
in al, 0x84
jmp dword [esi]
sub byte [edi + 0x68], dh
inc esi
or byte [edx + 0x76acd3af], al
in eax, 0x45
cmp eax, 0x97b39b23
xor ah, byte [ebp - 0x5ffe19f]
movsd dword es:[edi], dword [esi]
popal
push ds
add dl, bh
cmc
cdq
jo 0x1006d652
dec ecx
cwde
push ds
pushal
push ebx
cmc
scasb al, byte es:[edi]
jecxz 0x1006d61d
xchg ebp, eax
stc
dec edi
invalid
lea esp, [esp + 4]
jb 0x1006510a
bt cx, 7
cmp byte [edi - 1], 0
call fcn.10074d41
sbb edi, edi
loopne 0x1006d664
add eax, 0x20f77a3
mov eax, dword [0x6ccc8ca5]
cmpsd dword [esi], dword es:[edi]
push cs
mov bh, 0xd8
push edx
mov bh, 0x31
sal al, 1
adc byte [ebx], cl
scasd eax, dword es:[edi]
invalid
Function at 0x1000455d
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x10060d08], 0x121e
mov dword [0x10060d0c], 0x1c3
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.100057ef
mov ecx, 0xc67
lea edx, [0x100046af]
mov dword [0x10060d0c], 0xc67
mov esi, dword [esp + 0x28]
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], 0x12ec00
mov dword [0x10060d08], 0x423d
mov esi, dword [0x10060cf4]
mov dword [esp + 0x38], esi
mov esi, dword [0x10060cf8]
mov dword [esp + 0x58], esi
mov esi, dword [0x10060cfc]
mov dword [esp + 0x88], esi
mov esi, dword [0x10060d00]
mov dword [esp + 0x7c], esi
mov esi, dword [0x10060d04]
mov dword [esp + 0x48], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jne 0x1000462d
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x10004655
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov ecx, dword [esp + 0x10]
add ecx, 0x954
mov dword [0x10060d0c], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
jmp 0x10004602
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x10]
add edx, 0xffffe1fb
mov dword [0x10060d08], edx
mov edx, dword [esp + 0xc]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x78], esi
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.10005680
mov dword [0x10060d0c], 0xe4a
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x10004cb2
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x10060d14], 0
mov esi, dword [0x10060d08]
add esi, 0xac6
mov dword [0x10060d08], esi
mov byte [0x10060d18], 0
mov esi, dword [0x10060d0c]
add esi, 0x899
mov dword [0x10060d0c], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [0x10060d10], 0
mov dword [ebp - 0x1c], eax
jmp 0x10004d36
xor eax, eax
mov ecx, 0x117c
mov dword [0x10060d08], 0x117c
mov dword [0x10060d10], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x10004d68
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x10060d0c], 0x21f
mov eax, dword [0x10060d10]
add eax, 1
mov dword [0x10060d10], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10004d36
jmp 0x10004d13
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x100
add eax, 0xfffff2bb
mov dword [0x10060d0c], eax
mov eax, dword [0x10060d14]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + ecx]
add edi, eax
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 0x28], edx
mov edx, ebx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov eax, edi
cdq
mov edi, dword [ebp - 0x28]
idiv edi
mov dword [0x10060d14], edx
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov byte [0x10060d18], bl
mov dword [0x10060d0c], 0x19c9
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x10060d18]
mov ecx, dword [0x10060d14]
mov byte [esi + ecx], bl
mov dword [0x10060d0c], 0x237e
mov ecx, dword [0x10060d10]
add ecx, 1
mov dword [0x10060d10], ecx
cmp ecx, 0x100
mov dword [ebp - 0x2c], ecx
jge 0x10004e1b
mov eax, dword [0x10060d08]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x10004d68
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10004e3a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x10060d10], 0
mov dword [0x10060d14], 0
mov dword [0x10060d1c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, 0xfffff7ea
xor ecx, ecx
mov dword [0x10060d08], 0x1640
mov edx, dword [ebp - 0x10]
cmp edx, 0
mov esi, ecx
mov edi, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], eax
je 0x10004fc6
jmp 0x10004ec1
mov eax, dword [ebp - 0x30]
add eax, 0xfffff418
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
jmp 0x10004fc6
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x38], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
idiv esi
mov dword [0x10060d10], edx
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x3c]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x40], edx
cdq
idiv esi
mov dword [0x10060d14], edx
mov esi, dword [ebp - 0x40]
mov cl, byte [ecx + esi]
mov byte [0x10060d18], cl
mov edi, dword [0x10060d0c]
add edi, 0xfffff1b0
mov dword [0x10060d0c], edi
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x10060d18]
mov edx, dword [0x10060d14]
mov byte [edi + edx], cl
mov edx, dword [0x10060d10]
movzx edx, byte [edi + edx]
mov ebx, dword [0x10060d14]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x10060d0c], 0x494
and ebx, 0xff
mov dword [0x10060d1c], ebx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x38]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x38]
mov byte [ebx + edx], cl
mov ecx, dword [0x10060d08]
mov edx, ecx
add edx, 0x126e
mov dword [0x10060d08], edx
mov edx, dword [ebp - 0x38]
add edx, 1
mov esi, dword [ebp - 0x10]
cmp edx, esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x44], edx
je 0x10004eab
mov eax, dword [0x10060d10]
mov dword [ebp - 0x48], eax
mov eax, dword [0x10060d14]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
jmp 0x10004ec1
mov eax, dword [ebp - 0x2c]
mov dword [0x10060d0c], eax
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10005128
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 8]
mov dword [0x10060d08], 0xf07
mov dword [ebp - 0x10], eax
call fcn.10004fd6
mov ecx, eax
mov edx, dword [eax + 0x3c]
mov esi, ecx
add esi, edx
mov eax, dword [eax + edx]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov dword [0x10060d08], 0x1d5b
mov edx, dword [ebp - 0x1c]
cmp edx, 0x4550
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
je 0x10005181
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x18]
add ecx, dword [ecx + eax + 0x20]
mov edx, dword [ebp - 0x18]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
je 0x100052a0
jmp 0x1000520e
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
add edx, dword [edx + esi + 0x1c]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
add eax, dword [ecx + edx*4]
mov dword [0x10060d08], 0x249e
mov dword [ebp - 0x34], eax
jmp 0x100052a0
mov al, byte [ebp - 0x41]
test al, 1
jne 0x100051b2
jmp 0x10005278
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
xor edx, edx
mov esi, dword [ebp - 0x2c]
mov edi, dword [esi + ecx*4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], edx
jmp 0x10005222
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
jmp 0x100051f2
mov eax, dword [ebp - 0x58]
mov ecx, eax
mov edx, dword [ebp - 0x54]
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 - 0x5c], eax
mov byte [ebp - 0x5d], bh
mov byte [ebp - 0x41], cl
je 0x100051e6
mov eax, dword [ebp - 0x5c]
add eax, 1
mov cl, byte [ebp - 0x5d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x41]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x58], eax
jne 0x10005222
jmp 0x100051e6
xor eax, eax
mov ecx, dword [ebp - 0x38]
add ecx, 2
mov edx, dword [ebp - 0x50]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x34], eax
jb 0x100051f2
mov eax, dword [ebp - 0x34]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10005680
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x10060d08], 0x24bc
mov esi, dword [0x10060d0c]
add esi, 0xfffff2ac
mov dword [0x10060d0c], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + str.qPFl]
mov dh, byte [eax + 0x10020370]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x100056b4
lea eax, [ebp - 0x24]
mov dword [0x10060d08], 0x380
mov dword [ebp - 0x34], eax
mov dword [0x10060d0c], 0xffffeaa5
call fcn.100053d1
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.100054e3
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
je 0x100057b7
mov eax, dword [ebp - 0x38]
mov dword [0x10060d08], 0x761
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.100049b6
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x24], ecx
mov dword [0x10060d08], 0x1e36
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0x4c], ecx
cmp ecx, 0
mov dword [ebp - 0x3c], eax
je 0x100057b7
mov eax, dword [ebp - 0x40]
add eax, 0x1527
mov dword [0x10060d08], 0x1327
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add esp, 0x4c
pop esi
pop ebp
ret
Function at 0x100057ef
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 [0x10060d08], 0xec4
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x100058fb
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x140]
lea edx, [0x1004003c]
imul esi, eax, 0xe8
mov edi, edx
add edi, esi
add edi, 0x94
mov esi, dword [edi]
imul edi, eax, 0xe8
mov ebx, edx
add ebx, edi
add ebx, 0x30
mov edi, dword [ebx]
imul ebx, eax, 0xe8
add edx, ebx
add edx, 0x68
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 - 0x148], eax
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x150], edx
call fcn.10004bef
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
add eax, ecx
mov edx, dword [ebp - 0x148]
add edx, 1
cmp edx, 0x243
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], edx
je 0x100059f7
jmp 0x10005823
mov eax, dword [ebp - 0x154]
mov cl, byte [eax + str.qPFl]
mov dl, byte [eax + 0x10020370]
sub dl, cl
mov byte [ebp + eax - 0x2c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x154], eax
je 0x1000596b
jmp 0x100058cd
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, [0x1004003c]
imul esi, eax, 0xe8
mov edi, edx
add edi, esi
add edi, 0x94
mov esi, dword [edi]
imul edi, eax, 0xe8
add edx, edi
add edx, 0x68
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x243
mov ecx, edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x100058fb
mov dword [0x10060d0c], 0x1562
xor eax, eax
mov dword [ebp - 0x154], eax
jmp 0x100058cd
lea eax, [ebp - 0x2c]
mov dword [0x10060d08], 0xdb0
mov dword [0x10060d0c], 0xffffeaa5
mov dword [ebp - 0x15c], eax
call fcn.100053d1
mov dword [esp], eax
mov eax, dword [ebp - 0x15c]
mov dword [esp + 4], eax
call fcn.100054e3
mov ecx, eax
mov dword [0x10060d20], eax
mov eax, esp
mov edx, dword [ebp - 0x158]
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, dword [0x10060d08]
add edx, 0x1adc
mov dword [0x10060d0c], edx
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x13c], ecx
jmp 0x10005823
lea eax, [0x1002037e]
mov ecx, 0x20
lea edx, [ebp - 0x12c]
mov dword [0x10060d08], 0x1f64
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.10004cb2
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x158]
mov dword [esp + 0xc], edx
call fcn.10004e3a
mov eax, dword [ebp - 0x144]
add eax, 0x46716
mov ecx, dword [ebp - 0x130]
mov dword [ecx], eax
mov dword [ecx + 4], 0x12ec00
mov eax, dword [ebp - 0x144]
add eax, 0x28dca
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0x2010
xor eax, eax
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402dbb
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x41ddbf
call fcn.00414f0c
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x420344
cmp dword [esi + 0x50], 0xffffffff
mov dword [ebp - 4], 4
je 0x402e10
mov eax, dword [esi + 0x54]
mov dword [esi + 0x58], 1
test eax, eax
je 0x402dfb
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x50]
cmp eax, 0xffffffff
je 0x402e10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
or dword [esi + 0x50], 0xffffffff
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, dword [esi + 0xc]
je 0x402e5a
mov eax, dword [edi + 4]
test eax, eax
je 0x402e36
push eax
call ebx
and dword [edi + 4], 0
mov eax, dword [edi + 0x18]
test eax, eax
je 0x402e44
push eax
call ebx
and dword [edi + 0x18], 0
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x402e52
push eax
call ebx
and dword [edi + 0x1c], 0
add edi, 0x24
cmp edi, dword [esi + 0xc]
jne 0x402e28
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call edi
mov eax, dword [esi + 0x54]
test eax, eax
je 0x402e7b
push eax
call ebx
and dword [esi + 0x54], 0
mov ecx, esi
call fcn.00402ee5
lea eax, [esi + 0x38]
push eax
call edi
mov eax, dword [esi + 0x64]
test eax, eax
je 0x402e96
push eax
call ebx
and dword [esi + 0x64], 0
push 1
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 3
call fcn.0040389d
push 1
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.0040389d
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 1
call fcn.004077a0
and byte [ebp - 4], 0
lea ecx, [esi + 0x2c]
call fcn.00403787
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
call fcn.004036ef
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x403294
Capabilities:
Create thread

Disassembly:
mov eax, 0x41de33
call fcn.00414f0c
sub esp, 0x2a8
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
cmp esi, eax
mov ebx, ecx
je 0x403420
push edi
mov ecx, 0xaa
lea edi, [ebp - 0x2b4]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x2b4], eax
mov dword [ebp - 4], eax
je 0x40341b
lea edi, [ebx + 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0x2b4], 0x90000000
jne 0x40332e
cmp dword [ebx + 0x34], 0
je 0x4033be
mov esi, dword [ebx + 0x30]
cmp esi, dword [esi]
je 0x4033be
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x2b4]
cmp dword [eax + 8], ecx
jne 0x403324
lea ecx, [ebp - 0x2b0]
push 0x3f
add eax, 0xc
push ecx
push eax
call fcn.00415b45
add esp, 0xc
test eax, eax
je 0x40337e
mov eax, dword [ebx + 0x30]
mov esi, dword [esi + 4]
cmp esi, dword [eax]
jne 0x4032fd
cmp dword [ebp - 0x2b4], 0xa0000000
jne 0x4033be
cmp dword [ebx + 0x34], 0
je 0x4033be
mov esi, dword [ebx + 0x30]
cmp esi, dword [esi]
je 0x4033be
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x2b4]
cmp dword [eax + 8], ecx
jne 0x403372
lea ecx, [ebp - 0x2b0]
push 0x3f
add eax, 0xc
push ecx
push eax
call fcn.00415b45
add esp, 0xc
test eax, eax
je 0x40339e
mov eax, dword [ebx + 0x30]
mov esi, dword [esi + 4]
cmp esi, dword [eax]
jne 0x40334b
jmp 0x4033be
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x120]
mov dword [eax + 0x19c], ecx
mov esi, dword [esi + 4]
mov eax, dword [ebp - 0x11c]
mov dword [esi + 0x1a0], eax
jmp 0x4033ef
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x124]
mov dword [eax + 0x198], ecx
mov esi, dword [esi + 4]
mov eax, dword [ebp - 0x22c]
mov dword [esi + 0x90], eax
jmp 0x4033ef
cmp dword [ebx + 0x34], 0x100
jbe 0x4033d8
mov eax, dword [ebx + 0x30]
lea ecx, [ebx + 0x2c]
push dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.00403917
mov eax, dword [ebx + 0x30]
lea ecx, [ebx + 0x2c]
lea edx, [ebp - 0x2b4]
push edx
push eax
lea eax, [ebp + 8]
push eax
call fcn.004038da
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx + 0x50], 0xffffffff
jne 0x403418
push ebx
push 0
push 0x403430
call fcn.004159d2
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebx + 0x50], eax
jne 0x403418
xor eax, eax
jmp 0x40341b
push 1
pop eax
or dword [ebp - 4], 0xffffffff
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4046d1
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0xffffffff
je 0x4046df
push 1
pop eax
jmp 0x404703
mov eax, dword [esp + 8]
push esi
push 0
push 0x40436d
mov dword [esi + 0x48], eax
call fcn.004159d2
add esp, 0xc
xor ecx, ecx
cmp eax, 0xffffffff
mov dword [esi + 0x38], eax
setne cl
mov eax, ecx
pop esi
ret 4
Function at 0x404707
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0xffffffff
je 0x40475c
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x404747
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x404741
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x404741
push dword [esi + 0x44]
call edi
push dword [esi + 0x3c]
call edi
pop edi
mov eax, dword [esi + 0x38]
cmp eax, 0xffffffff
je 0x40475c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
or dword [esi + 0x38], 0xffffffff
pop esi
ret

Function at 0x405043
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41e060
call fcn.00414f0c
push ecx
push ecx
mov al, byte [ebp - 0xd]
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0xc]
push edi
mov byte [ecx], al
call fcn.0040389d
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x20]
mov dword [ebp - 4], edi
push edi
mov byte [ecx], al
call fcn.0040389d
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
push edi
mov byte [ecx], al
call fcn.0040389d
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 2
push edi
mov byte [ecx], al
call fcn.0040389d
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00405113
mov ecx, dword [ebp - 0xc]
or dword [ebp - 4], 0xffffffff
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4050ba
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41e098
call fcn.00414f0c
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push 1
lea ecx, [esi + 0x44]
mov dword [ebp - 4], 2
call fcn.0040389d
push 1
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.0040389d
and byte [ebp - 4], 0
push 1
lea ecx, [esi + 0x20]
call fcn.0040389d
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [esi + 0xc]
call fcn.0040389d
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4075b1
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41e712
call fcn.00414f0c
push ecx
push ecx
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push ebx
mov dword [ebp - 0x14], esi
mov byte [esi], al
call fcn.0040389d
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x14]
mov dword [ebp - 4], ebx
push ebx
mov byte [ecx], al
call fcn.0040389d
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
push ebx
mov byte [ecx], al
call fcn.0040389d
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 2
push ebx
mov byte [ecx], al
call fcn.0040389d
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 3
push ebx
mov byte [ecx], al
call fcn.0040389d
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 4
push ebx
mov byte [ecx], al
call fcn.0040389d
mov cl, byte [ebp - 0xd]
lea eax, [esi + 0x7c]
mov byte [ebp - 4], 5
mov byte [eax], cl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov edi, 0x42a110
mov byte [ebp - 4], 6
push edi
call fcn.00415945
pop ecx
push eax
push edi
mov ecx, esi
call fcn.0040396c
push edi
mov dword [esi + 0x10], ebx
call fcn.00415945
pop ecx
push eax
push edi
lea ecx, [esi + 0x14]
call fcn.0040396c
or dword [esi + 0x2c], 0xffffffff
push edi
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call fcn.00415945
pop ecx
push eax
push edi
lea ecx, [esi + 0x30]
call fcn.0040396c
push edi
call fcn.00415945
pop ecx
push eax
push edi
lea ecx, [esi + 0x40]
call fcn.0040396c
push edi
call fcn.00415945
pop ecx
push eax
push edi
lea ecx, [esi + 0x50]
call fcn.0040396c
push edi
call fcn.00415945
pop ecx
push eax
push edi
lea ecx, [esi + 0x60]
call fcn.0040396c
mov ecx, dword [ebp - 0xc]
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x8c], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret