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

Disassembly:
mov eax, 0x14
call fcn.1005b330
mov edx, dword [esp + 0x18]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x34]
or ecx, 0xffffffff
push ebp
mov ebp, dword [esp + 0x34]
cmp ebp, 1
push esi
mov esi, dword [edx]
setne al
add eax, ebx
mov dword [esp + 0x1c], esi
cmp eax, esi
jbe 0x101d3849
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
cmp ebp, 1
je 0x101d3914
mov ecx, dword [esp + 0x2c]
dec ecx
add ecx, esi
cmp dword [esp + 0x40], 0
mov dword [esp + 0x10], ecx
mov cl, byte [ecx]
mov byte [esp + 0xf], cl
movzx ebp, cl
je 0x101d3880
sub esi, ebp
mov eax, 1
sub esi, ebx
dec esi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
lea ecx, [eax + ebp]
mov ebx, esi
sub ebx, ecx
mov eax, esi
xor ebx, ecx
xor eax, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
push edi
cmovb eax, esi
xor edi, edi
mov dword [esp + 0x18], eax
test eax, eax
je 0x101d38f7
mov esi, dword [esp + 0x14]
mov edx, ebp
shr edx, 0x1f
mov dword [esp + 0x1c], edx
mov ecx, ebp
lea esi, [esi - 1]
sub ecx, edi
mov eax, edi
shr ecx, 0x1f
inc edi
shr eax, 0x1f
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [esp + 0x13]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [esi + 1]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x1c]
cmp edi, dword [esp + 0x18]
jb 0x101d38b7
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
not ebx
lea eax, [ebp + 1]
mov ebp, dword [esp + 0x3c]
movzx ecx, bl
mov ebx, dword [esp + 0x40]
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov dword [edx], esi
pop edi
push dword [esp + 0x44]
push ecx
push ebx
push ebp
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x44]
push edx
call fcn.101d3500
add esp, 0x24
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x101d3dd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x30
call fcn.1005b330
mov eax, dword [0x102db074]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push esi
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x30]
test eax, eax
je 0x101d3ee2
movups xmm0, xmmword [edi + 0x10]
mov ebx, dword [esp + 0x50]
lea esi, [edi + 0x10]
dec eax
mov dword [esp + 0x10], ebx
movups xmmword [esp + 0x2c], xmm0
and byte [esp + 0x38], 0x7f
lea ecx, [esp + 0x2c]
push 1
mov dword [edi + 0x30], eax
push ecx
psrldq xmm0, 8
movd eax, xmm0
push 0
push 0
and al, 0x7f
mov byte [esp + 0x44], al
mov eax, dword [edi + 0x20]
push 0
push eax
mov dword [esp + 0x30], eax
call fcn.1010f560
add esp, 0x18
test eax, eax
je 0x101d3ee2
push dword [esp + 0x10]
lea eax, [esp + 0x14]
push dword [esp + 0x18]
push eax
push ebp
push dword [esp + 0x28]
call fcn.1010fff0
add esp, 0x14
test eax, eax
je 0x101d3ee2
push ebx
push ebp
lea eax, [esp + 0x24]
push eax
push edi
call fcn.101d4380
add esp, 0x10
test eax, eax
je 0x101d3ee2
lea eax, [esi + 0xf]
xor edx, edx
lea ecx, [esp + 0x1c]
cmp ecx, eax
ja 0x101d3eb3
lea eax, [esp + 0x2b]
cmp eax, esi
jb 0x101d3eb3
mov eax, ecx
sub esi, eax
lea ecx, [esp + 0x1c]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor byte [ecx], al
cmp edx, 0x10
jl 0x101d3ea0
jmp 0x101d3ec4
movups xmm1, xmmword [esp + 0x1c]
movups xmm0, xmmword [esi]
pxor xmm1, xmm0
movups xmmword [esp + 0x1c], xmm1
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
or ecx, dword [esp + 0x24]
or eax, dword [esp + 0x28]
or ecx, eax
je 0x101d3ef7
push ebx
push ebp
call fcn.10001320
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1005a1f2
add esp, 0x30
ret
mov ecx, dword [esp + 0x3c]
mov eax, ebx
mov dword [edi + 0x2c], 0
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005a1f2
add esp, 0x30
ret
Function at 0x102319de
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10231854

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x78d412ca
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x7d843702
nop
nop
nop
nop
test eax, eax
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x526839
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052643e

Function at 0x526844
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005265bf

Function at 0x52d7c7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052cfa1

Function at 0x52d7d2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052d1dc

Function at 0x52dc65
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052d9ec

Function at 0xe6c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00e6c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xe6c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe6c06a
add dl, dl
jne 0xe6c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe6c0dc
xor eax, eax
add dl, dl
jne 0xe6c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe6c17d
add dl, dl
jne 0xe6c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe6c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe6c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe6c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xe6c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xe6c075
mov eax, 1
add dl, dl
jne 0xe6c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe6c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe6c0e1
sub eax, ebx
mov ebx, 1
jne 0xe6c128
mov ecx, 1
add dl, dl
jne 0xe6c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe6c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe6c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe6c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xe6c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe6c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe6c136
cmp eax, 0x7d00
jae 0xe6c16d
cmp eax, 0x500
jb 0xe6c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe6c075
cmp eax, 0x7f
ja 0xe6c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe6c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xe6c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xe6c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x49b9c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8b000]
push edi
jmp 0x49b9da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x49b9e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49b9d0
mov eax, 1
add ebx, ebx
jne 0x49b9f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x49ba04
jne 0x49ba23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49ba23
dec eax
add ebx, ebx
jne 0x49ba10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x49b9e8
add ebx, ebx
jne 0x49ba1f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x49ba75
xor ecx, ecx
sub eax, 3
jb 0x49ba3b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49baaa
sar eax, 1
mov ebp, eax
jmp 0x49ba46
add ebx, ebx
jne 0x49ba46
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49ba14
inc ecx
add ebx, ebx
jne 0x49ba54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49ba14
add ebx, ebx
jne 0x49ba61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x49ba56
jne 0x49ba72
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x49ba56
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x49ba94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x49ba86
jmp 0x49b9d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x49ba94
add edi, ecx
jmp 0x49b9d6
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x49bab2
cmp byte [edi], 0x12
jne 0x49bab2
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 0x49bab7
lea edi, [esi + 0x99000]
mov eax, dword [edi]
or eax, eax
je 0x49bb2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x111a2c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x111b0c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x49bae4
mov ecx, edi
jns 0x49bb13
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x111b14]
or eax, eax
je 0x49bb29
mov dword [ebx], eax
add ebx, 4
jmp 0x49bb01
call dword [esi + 0x111b10]
mov ebp, dword [esi + 0x111b18]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x49bb63
sub esp, 0xffffff80
jmp 0x41942f
Function at 0xbf49a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xc38e10
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0xc52014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov ecx, 0xc530ec
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.00c080c0
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0xc52a8c
push eax
call fcn.00c080c0
mov esi, dword [0xc530fc]
xor ebx, ebx
mov edi, dword [0xc53100]
nop word [eax + eax]
cmp edi, 0x10
mov byte [ebx + 0xc56390], bl
mov eax, ebx
mov ecx, 0xc530ec
cmovae ecx, dword [0xc530ec]
cdq
idiv esi
mov al, byte [edx + ecx]
mov byte [ebx + 0xc564a0], al
inc ebx
cmp ebx, 0x100
jl 0xbf4a20
xor edi, edi
xor esi, esi
mov dl, byte [esi + 0xc56390]
movzx eax, byte [esi + 0xc564a0]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0xbf4a74
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0xc56390]
mov byte [esi + 0xc56390], al
inc esi
mov byte [edi + 0xc56390], dl
cmp esi, 0x100
jl 0xbf4a50
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.00bf4690
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0xbf4ac9
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0xbf4abf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0xbf4b1f
push edx
push ecx
call fcn.00c0d663
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0xbf4b0b
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0xbf4b01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0xbf4b1f
push edx
push ecx
call fcn.00c0d663
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00c26c6a
int3
Function at 0xbf70a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0xc52014]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
call 0x9d0657
nop
mov eax, 0x5a4d
cmp word [esi], ax
jne 0xbf7289
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0xbf7289
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.00c240f0
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
call 0x9d0701
nop
test eax, eax
je 0xbf7289
push 4
push 0x1000
push 4
push 0
call 0x9d0000
nop
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call 0x8f00f0
nop
test eax, eax
je 0xbf7289
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0xc48df8
push dword [esp + 0x30]
call 0x8f05a6
nop
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0xbf71ac
push 0xc48dfc
push 0xc48e14
call 0x9c0b28
nop
push eax
call 0x8f02f4
nop
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call 0x8f03f1
nop
mov dword [esp + 0x14], eax
test eax, eax
je 0xbf7289
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
call 0x9d057d
nop
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0xbf7243
mov dword [esp + 0xc], eax
call fcn.00bf6ef0
push eax
call 0x9b0657
nop
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
call 0x9d057d
nop
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0xbf71f2
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
call 0x9d057d
nop
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call 0x8f07f1
nop
push dword [esp + 0x24]
call 0x9c0c27
nop
push 0x8000
push 0
push esi
call 0x9d04b0
nop
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.00c0cff1
mov esp, ebp
pop ebp
ret
Function at 0xbfaf20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xc39726
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0xc52014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x414], ebx
push 0
mov dword [ebp - 0x414], ebx
call fcn.00c28b63
push eax
call fcn.00c26660
add esp, 8
call fcn.00c2663f
cdq
mov ecx, 0x3313
idiv ecx
mov edi, edx
call fcn.00c2663f
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
imul esi, edi
call fcn.00c2663f
imul edx, eax, 0x4d
lea ecx, [ebp - 0x444]
add edx, 0x64
add edx, esi
call fcn.00bf45b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x430], 0x10
lea edx, [ebp - 0x410]
cmovae eax, dword [ebp - 0x444]
sub edx, eax
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0xbfafd0
lea esi, [ebp - 0x410]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0xbfafe6
push 0x40
push 0
push 0xc58560
sub esi, ecx
call fcn.00c240f0
add esp, 0xc
mov dword [0xc58554], 0
mov edx, esi
mov dword [0xc58550], 0
lea ecx, [ebp - 0x410]
mov dword [0xc58540], 0x67452301
mov dword [0xc58544], 0xefcdab89
mov dword [0xc58548], 0x98badcfe
mov dword [0xc5854c], 0x10325476
call fcn.00bf5530
call fcn.00bf55f0
mov ecx, 0xc565a0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0xbfb071
sub ecx, edx
push ecx
push 0xc565a0
lea ecx, [ebp - 0x42c]
call fcn.00c080c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0xbfb0cc
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0xbfb0c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0xbfb18c
push edx
push ecx
call fcn.00c0d663
add esp, 8
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x41c]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
cmp eax, 1
jb 0xbfb187
dec eax
mov ecx, 0xa
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x418], 0x10
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push ecx
inc eax
mov ecx, ebx
push eax
call fcn.00c080c0
mov edx, dword [ebp - 0x418]
cmp edx, 0x10
jb 0xbfb169
mov ecx, dword [ebp - 0x42c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0xbfb15f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0xbfb18c
push edx
push ecx
call fcn.00c0d663
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00c0cff1
mov esp, ebp
pop ebp
ret
call fcn.00c08200
call fcn.00c26c6a
int3
Function at 0xc0dcc7
Capabilities:
Parse pe header

Disassembly:
push 0
call 0xb70378
nop
test eax, eax
je 0xc0dd07
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xc0dd07
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xc0dd07
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0xc0dd07
cmp dword [ecx + 0x74], 0xe
jbe 0xc0dd07
cmp dword [ecx + 0xe8], 0
je 0xc0dd07
mov al, 1
ret
xor al, al
ret
Function at 0x401050
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x4097e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x406170
lea eax, [ebp - 0x110]
push eax
call fcn.00401350
add esp, 8
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x114], eax
push 0x6dff
call fcn.004012ba
add esp, 4
push 0x104
push 0
lea ecx, [ebp - 0x278]
push ecx
call fcn.00401240
add esp, 0xc
push str.rwEn
call fcn.004011b0
add esp, 4
push 0x17dc5
call fcn.004012ba
add esp, 4
push 0x58
push 0
lea edx, [ebp - 0x170]
push edx
call fcn.00401240
add esp, 0xc
push edi
jp 0x4010e0
add esp, 0
pop edi
js 0x4010ea
push edx
test eax, 0x7affe4b8
pop edx
push edx
jnp 0x4010f2
add eax, 0
pop edx
push ebx
jl 0x4010f9
add dh, 0
pop ebx
dec ebp
inc ebp
mov dword [ebp - 0x27c], 0x14
jmp 0x401117
mov eax, dword [ebp - 0x27c]
add eax, 1
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0x4f
jge 0x401186
jmp 0x401125
pushal
jmp 0x40112b
lea eax, section..data
jmp 0x401136
mov ecx, 0x7d8
jmp 0x401142
mov bl, byte [ebp - 0x27c]
jmp 0x40114e
jmp 0x401155
xor byte [eax], bl
jmp 0x40115d
inc eax
jmp 0x401165
dec ecx
cmp ecx, 0
je 0x401176
jmp 0x40114e
jmp 0x40117c
popal
jmp 0x401184
jmp 0x401108
mov dword [ebp - 0x118], section..data
call dword [ebp - 0x118]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401448
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401448
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4097e0]
jne 0x401452
repz ret
jmp fcn.00401c64
Function at 0x40351c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4097e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004025bc
and dword [ebp - 0x14], 0
cmp dword [0x40af94], 0
mov dword [ebp - 0x18], eax
jne 0x4035cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403677
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403677
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40af94], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40af98], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40af9c], eax
call edi
push eax
call esi
mov dword [0x40afa4], eax
test eax, eax
je 0x4035cf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40afa0], eax
mov eax, dword [0x40afa0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403628
cmp dword [0x40afa4], ecx
je 0x403628
push eax
call esi
push dword [0x40afa4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403628
test ebx, ebx
je 0x403628
call edi
test eax, eax
je 0x40361f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40361f
test byte [ebp - 8], 1
jne 0x403628
or dword [ebp + 0x10], 0x200000
jmp 0x40365b
mov eax, dword [0x40af98]
cmp eax, dword [ebp - 0x18]
je 0x40365b
push eax
call esi
test eax, eax
je 0x40365b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40365b
mov eax, dword [0x40af9c]
cmp eax, dword [ebp - 0x18]
je 0x40365b
push eax
call esi
test eax, eax
je 0x40365b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40af94]
call esi
test eax, eax
je 0x403677
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403679
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401448
leave
ret
Function at 0x61d370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x61d38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x646074
push ecx
mov edi, eax
call fcn.00631198
mov esi, eax
add esp, 8
test esi, esi
jne 0x61d3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0063102e
push esi
call fcn.00630fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret