joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456581
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x47e460]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4565c7
cmp word [ebx], dx
jne 0x4565c7
or byte [eax + edi + 0x28], 4
jmp 0x4565cc
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x45672f
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x45670f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x45660d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x456643
cmp eax, edx
jae 0x456651
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4565e8
jmp 0x45672f
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45670a
cmp dword [ebp - 0x18], 0
je 0x45670a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x47e460]
test byte [eax + edi + 0x28], 0x48
je 0x4566e0
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4566a4
mov word [esi], cx
jmp 0x4566db
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x47e460]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x47e460]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x47e460]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x45672f
pop eax
cmp word [ebp - 4], ax
jne 0x4566f0
cmp esi, ebx
jne 0x4566f0
mov word [esi], ax
jmp 0x45672c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401587
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x45672f
push 0xd
pop eax
jmp 0x4566eb
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x47e460]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x456729
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x45672f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x409930
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x409952
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x409959
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409948
mov eax, 1
add ebx, ebx
jne 0x40996b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409960
jne 0x40997c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409960
xor ecx, ecx
sub eax, 3
jb 0x409990
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x409a02
mov ebp, eax
add ebx, ebx
jne 0x40999b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4099a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4099cc
inc ecx
add ebx, ebx
jne 0x4099b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4099ad
jne 0x4099c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4099ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4099ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4099dd
jmp 0x40994e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4099ec
add edi, ecx
jmp 0x40994e
pop esi
mov edi, esi
mov ecx, 0x16
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x409a0a
cmp byte [edi], 2
jne 0x409a0a
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 0x409a0f
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x409a7e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa0fc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa154]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x409a3c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa15c]
or eax, eax
je 0x409a78
mov dword [ebx], eax
add ebx, 4
jmp 0x409a59
call dword [esi + 0xa158]
mov ebp, dword [esi + 0xa160]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x409ab2
sub esp, 0xffffff80
jmp 0x401786

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x405ac8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x405bda
push ebx
push esi
mov ecx, eax
xor esi, esi
xor edx, edx
and ecx, 7
je 0x405afd
mov ebx, dword [ebp + 8]
mov edx, ecx
mov esi, eax
shr esi, 3
mov bl, byte [esi + ebx]
mov cl, 8
sub cl, dl
shr bl, cl
movzx esi, bl
shr eax, 3
mov dword [ebp - 8], eax
lea eax, [edi + 7]
shr eax, 3
xor edi, edi
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x405bd8
lea ecx, [eax - 1]
cmp edi, ecx
je 0x405b32
mov ecx, dword [ebp + 0xc]
movzx ecx, byte [edi + ecx]
shl esi, 8
xor cx, si
movzx esi, cx
add edx, 8
jmp 0x405b62
mov ecx, dword [ebp + 0x10]
and ecx, 7
mov dword [ebp - 4], 8
je 0x405b44
mov dword [ebp - 4], ecx
mov ebx, dword [ebp + 0xc]
mov bl, byte [edi + ebx]
mov cl, 8
sub cl, byte [ebp - 4]
shr bl, cl
mov ecx, dword [ebp - 4]
shl si, cl
movzx ebx, bl
or bx, si
movzx esi, bx
add edx, ecx
xor ebx, ebx
lea ecx, [eax - 1]
cmp edi, ecx
setne bl
mov dword [ebp - 0xc], ebx
xor ecx, ecx
cmp edx, 8
setge cl
test dword [ebp - 0xc], ecx
jne 0x405b91
xor ebx, ebx
lea ecx, [eax - 1]
cmp edi, ecx
sete bl
xor ecx, ecx
test edx, edx
setg cl
test ecx, ebx
je 0x405bcf
push 8
pop eax
mov dword [ebp - 4], eax
cmp edx, eax
jg 0x405b9e
mov dword [ebp - 4], edx
mov cl, dl
sub cl, byte [ebp - 4]
mov ebx, esi
shr bx, cl
mov ecx, eax
sub ecx, dword [ebp - 4]
mov eax, 0xff00
shl bl, cl
mov ecx, dword [ebp - 4]
sar eax, cl
mov ecx, dword [ebp - 8]
and bl, al
mov eax, dword [ebp + 8]
inc dword [ebp - 8]
sub edx, dword [ebp - 4]
mov byte [ecx + eax], bl
mov eax, dword [ebp - 0x10]
jmp 0x405b6f
inc edi
cmp edi, eax
jl 0x405b16
pop esi
pop ebx
pop edi
leave
ret

Function at 0x4062db
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
mov cl, byte [eax + 0x100]
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x101]
mov byte [ebp - 2], cl
test edx, edx
je 0x406343
mov ecx, dword [ebp + 8]
sub ecx, edi
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
push esi
inc byte [ebp - 1]
movzx esi, byte [ebp - 1]
mov dl, byte [esi + eax]
add byte [ebp - 2], dl
movzx ecx, byte [ebp - 2]
mov bl, byte [ecx + eax]
mov byte [esi + eax], bl
mov byte [ecx + eax], dl
movzx ecx, byte [esi + eax]
movzx edx, dl
add ecx, edx
mov edx, dword [ebp - 0xc]
and ecx, 0xff
mov cl, byte [ecx + eax]
xor cl, byte [edx + edi]
mov byte [edi], cl
inc edi
dec dword [ebp - 8]
jne 0x406307
pop esi
pop ebx
mov cl, byte [ebp - 1]
mov byte [eax + 0x100], cl
mov cl, byte [ebp - 2]
mov byte [eax + 0x101], cl
pop edi
leave
ret
Function at 0x4063c1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [0x4134a0]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
test esi, esi
je 0x4063f9
xor eax, eax
xor edx, edx
cmp dword [ebp + 0x14], eax
jbe 0x4063f9
movzx edi, byte [edx + esi]
mov ecx, eax
shl ecx, 3
shl edi, cl
xor dword [ebp - 4], edi
inc edx
inc eax
and eax, 3
cmp edx, dword [ebp + 0x14]
jb 0x4063e1
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
test edi, edi
je 0x406415
mov eax, dword [ebp - 4]
call fcn.0040958c
mov byte [esi + ebx], al
inc esi
cmp esi, edi
jb 0x406405
call fcn.0040621a
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x4067e5
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
mov byte [0x413a5c], cl
mov edx, 0x4a0d900d
call fcn.004067c9
cmp dword [esp + 8], ecx
jbe 0x406828
push esi
call fcn.004067c9
mov eax, dword [esp + 8]
movsx eax, byte [ecx + eax]
mov esi, edx
shl esi, 5
add eax, esi
mov esi, edx
shr esi, 2
add eax, esi
xor edx, eax
call fcn.004067c9
inc ecx
cmp ecx, dword [esp + 0xc]
jb 0x4067fe
pop esi
call fcn.004067df
and byte [0x413a5c], al
mov eax, edx
ret

Function at 0x40687b
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
push ebx
push esi
push edi
mov edi, dword [eax + 0xc]
push 0x6b
pop eax
push 0x65
mov word [ebp - 0x1c], ax
pop eax
push 0x72
mov word [ebp - 0x1a], ax
pop eax
push 0x6e
mov word [ebp - 0x18], ax
pop eax
push 0x65
mov word [ebp - 0x16], ax
pop eax
push 0x6c
mov word [ebp - 0x14], ax
pop eax
push 0x33
mov word [ebp - 0x12], ax
pop eax
push 0x32
mov word [ebp - 0x10], ax
pop eax
push 0x2e
mov word [ebp - 0xe], ax
pop eax
push 0x64
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x6c
pop eax
xor ebx, ebx
mov word [ebp - 8], ax
mov word [ebp - 6], ax
xor eax, eax
mov esi, edi
mov word [ebp - 4], ax
mov ecx, dword [esi + 0x30]
lea eax, [ebp - 0x1c]
call fcn.00406836
test eax, eax
je 0x406907
mov esi, dword [esi]
cmp dword [esi + 0x18], ebx
je 0x40690a
cmp esi, edi
jne 0x4068eb
jmp 0x40690a
mov ebx, dword [esi + 0x18]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x406954
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x84
push edi
mov edi, dword [ebp + 0x70]
test edi, edi
jne 0x40696e
xor eax, eax
jmp 0x406a79
push ebx
mov eax, 0x5a4d
xor ebx, ebx
push esi
cmp word [edi], ax
jne 0x406a75
mov eax, dword [edi + 0x3c]
lea eax, [eax + edi + 4]
mov ecx, 0x14c
mov dword [ebp + 0x64], eax
cmp word [eax], cx
jne 0x406a75
mov esi, dword [eax + 0x74]
test esi, esi
je 0x406a75
mov ecx, dword [ebp + 0x74]
mov eax, ecx
shr eax, 0x10
add esi, edi
test ax, ax
jne 0x4069ba
movzx eax, cx
sub eax, dword [esi + 0x10]
jmp 0x406a27
test byte [ebp + 0x78], 1
je 0x4069c5
mov dword [ebp + 0x70], ecx
jmp 0x4069d6
call fcn.00406911
push eax
push ecx
call fcn.004067e5
pop ecx
pop ecx
mov dword [ebp + 0x70], eax
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jbe 0x406a01
mov ecx, dword [esi + 0x20]
lea eax, [edi + ebx*4]
mov ecx, dword [eax + ecx]
add ecx, edi
call fcn.00406911
push eax
push ecx
call fcn.004067e5
pop ecx
pop ecx
cmp dword [ebp + 0x70], eax
je 0x406a1d
inc ebx
cmp ebx, dword [esi + 0x18]
jb 0x4069dd
xor ebx, ebx
cmp ebx, esi
jb 0x406a75
mov eax, dword [ebp + 0x64]
mov eax, dword [eax + 0x78]
add eax, esi
cmp ebx, eax
jae 0x406a75
cmp dword [ebp + 0x7c], 0
jne 0x406a39
xor eax, eax
jmp 0x406a77
mov eax, dword [esi + 0x24]
lea eax, [eax + ebx*2]
movzx eax, word [eax + edi]
cmp eax, 0xffffffff
je 0x406a01
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov ebx, dword [eax + edi]
add ebx, edi
jmp 0x406a03
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.00406921
pop ecx
lea eax, [ebp - 0x1c]
xor ebx, ebx
call fcn.0040693a
mov esi, eax
cmp esi, ebx
je 0x406a75
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
mov byte [esi], bl
call dword [ebp + 0x7c]
cmp eax, ebx
je 0x406a75
push dword [ebp + 0x7c]
inc esi
push ebx
push esi
push eax
call fcn.00406954
add esp, 0x10
mov ebx, eax
mov eax, ebx
pop esi
pop ebx
pop edi
add ebp, 0x68
leave
ret

Function at 0x40c206
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
pushal
mov ebp, esp
lea eax, [esp - 8]
and eax, 0xfffffff8
mov esp, eax
push 0x33
call fcn.0040c21c
Function at 0x40fbef
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push esi
mov esi, ecx
and esi, 3
mov eax, esi
neg eax
and eax, 3
push edi
mov edi, edx
je 0x40fc55
cmp eax, dword [ebp + 0x10]
jg 0x40fc55
sub dword [ebp + 0x10], eax
mov dword [ebp - 4], eax
movzx eax, byte [edi]
dec dword [ebp - 4]
shl eax, 0x18
shr ecx, 8
or ecx, eax
inc edi
inc esi
cmp esi, 4
jne 0x40fc4f
imul ecx, ecx, 0xcc9e2d51
rol ecx, 0xf
imul ecx, ecx, 0x1b873593
xor ebx, ecx
rol ebx, 0xd
imul ebx, ebx, 5
add ebx, 0xe6546b64
xor esi, esi
cmp dword [ebp - 4], 0
jne 0x40fc1b
mov eax, dword [ebp + 0x10]
cdq
and edx, 3
add eax, edx
and eax, 0xfffffffc
lea edx, [eax + edi]
mov dword [ebp - 4], edx
cmp edi, edx
jae 0x40fc92
mov edx, dword [edi]
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
imul edx, edx, 0x1b873593
xor ebx, edx
rol ebx, 0xd
imul ebx, ebx, 5
add edi, 4
add ebx, 0xe6546b64
cmp edi, dword [ebp - 4]
jb 0x40fc6b
mov edx, dword [ebp + 0x10]
sub edx, eax
je 0x40fccf
movzx eax, byte [edi]
shl eax, 0x18
shr ecx, 8
dec edx
or ecx, eax
inc edi
inc esi
cmp esi, 4
jne 0x40fccb
imul ecx, ecx, 0xcc9e2d51
rol ecx, 0xf
imul ecx, ecx, 0x1b873593
xor ebx, ecx
rol ebx, 0xd
imul ebx, ebx, 5
add ebx, 0xe6546b64
xor esi, esi
test edx, edx
jne 0x40fc99
mov eax, dword [ebp + 8]
and ecx, 0xffffff00
pop edi
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
or ecx, esi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret

Function at 0x40fce6
Capabilities:
Hash data using murmur3

Disassembly:
mov edx, eax
and edx, 3
push esi
mov esi, ecx
je 0x40fd0b
push 4
pop ecx
sub ecx, edx
shl ecx, 3
shr eax, cl
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor esi, eax
xor esi, dword [esp + 8]
mov eax, esi
shr eax, 0x10
xor eax, esi
imul eax, eax, 0x85ebca6b
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
pop esi
ret
Function at 0x410779
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4107aa
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x4107b1
cmp ebx, dword [ebp + 8]
jae 0x4107b1
xor eax, eax
jmp 0x410997
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4107c2
xor eax, eax
inc eax
jmp 0x410996
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4107d4
cmp ecx, edx
jae 0x410838
cmp dword [eax + 4], 0
je 0x4107dd
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4107c9
cmp dword [ebp + 8], 0
je 0x4107f7
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x410838
cmp eax, esi
jae 0x410838
mov ecx, dword [0x434bf0]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x410819
cmp dword [eax*4 + 0x434bf8], esi
je 0x41083f
inc eax
cmp eax, ecx
jl 0x41080b
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
jl 0x4108af
mov eax, dword [ebp + 8]
jmp 0x4108b1
xor eax, eax
jmp 0x410996
test eax, eax
jle 0x4107ba
xor edx, edx
mov ebx, 0x434c38
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x4107ba
cmp dword [eax*4 + 0x434bf8], esi
je 0x41088e
lea eax, [ecx - 1]
test eax, eax
jl 0x41087b
cmp dword [eax*4 + 0x434bf8], esi
je 0x410877
dec eax
jns 0x41086b
test eax, eax
jge 0x41088c
cmp ecx, 0x10
jge 0x410887
inc ecx
mov dword [0x434bf0], ecx
lea eax, [ecx - 1]
jmp 0x41088e
je 0x4108a6
xor edx, edx
test eax, eax
jl 0x4108a6
lea ecx, [edx*4 + 0x434bf8]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x410894
xor eax, eax
xchg dword [ebx], eax
jmp 0x4107ba
xor eax, eax
test eax, eax
je 0x410994
cmp dword [ebp - 8], 0x1000000
jne 0x410994
test byte [ebp - 0xc], 0xcc
je 0x410926
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x410994
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x410994
cmp word [eax + 0x18], 0x10b
jne 0x410994
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x410994
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x410926
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x410926
test byte [ecx + 0x27], 0x80
jne 0x410838
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x434c38
xchg dword [edx], ecx
test ecx, ecx
jne 0x410996
mov ecx, dword [0x434bf0]
test ecx, ecx
mov edx, ecx
jle 0x410955
lea eax, [ecx*4 + 0x434bf4]
cmp dword [eax], esi
je 0x410955
dec edx
sub eax, 4
test edx, edx
jg 0x410949
test edx, edx
jne 0x410986
push 0xf
pop ebx
cmp ecx, ebx
jg 0x410962
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41097a
lea eax, [edx*4 + 0x434bf8]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x410968
cmp ecx, 0x10
jge 0x410986
inc ecx
mov dword [0x434bf0], ecx
xor eax, eax
mov ecx, 0x434c38
xchg dword [ecx], eax
jmp 0x4107ba
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30a3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.030a378f
jae 0x30a370e
xor ecx, ecx
call fcn.030a378f
jae 0x30a373d
xor eax, eax
call fcn.030a378f
jae 0x30a374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.030a378f
adc al, al
jae 0x30a372f
jne 0x30a3779
stosb byte es:[edi], al
jmp 0x30a3711
call fcn.030a379b
sub ecx, ebx
jne 0x30a3756
call fcn.030a3799
jmp 0x30a3775
lodsb al, byte [esi]
shr eax, 1
je 0x30a3783
adc ecx, ecx
jmp 0x30a3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.030a3799
cmp eax, 0x7d00
jae 0x30a3772
cmp ah, 5
jae 0x30a3773
cmp eax, 0x7f
ja 0x30a3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x30a3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x100027c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x100027f2
jl 0x100027e5
test ecx, ecx
jne 0x100027f2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100028b2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10004090
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000285e
jg 0x1000281d
test esi, esi
je 0x1000285e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10002835
mov eax, dword [esp + 0x10]
jl 0x1000282f
cmp eax, esi
jae 0x10002835
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10006e60
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1000287f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1000289b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10002804
jl 0x1000289b
test ecx, ecx
jne 0x10002804
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x100028f6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x100028f6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.10006e60
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10002967
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1000291c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10002952
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1000b7c8
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10002967
cmp edi, eax
ja 0x10002930
test edi, edi
je 0x10002967
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1000b7c8
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000d1ad
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000d1ec
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000d1ec
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000d1ec
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000d1ec
cmp dword [ecx + 0x74], 0xe
jbe 0x1000d1ec
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10010553
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10021348
push 0x10021340
push str.FlsAlloc
push 0x1f
call fcn.1001041b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010587
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001e158]
call esi
jmp 0x1001058d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100105d1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10021358
push 0x10021350
push str.FlsGetValue
push 0x21
call fcn.1001041b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010608
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001e158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10010610
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10021360
push 0x10021358
push str.FlsSetValue
push 0x22
call fcn.1001041b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001064a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001e158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]