joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a4c6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40a563
push ebx
push esi
call fcn.0040a48f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040a3d8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40a510
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a562
push edi
push eax
call fcn.0040b0c6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40a530
call fcn.00409001
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a561
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040a3d8
add esp, 0x20
test eax, eax
jne 0x40a54f
push edi
call fcn.00409001
jmp 0x40a557
push ebx
call fcn.00409001
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40b849
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45e468
push 0x45e460
push str.FlsAlloc
push 0x1e
call fcn.0040b70a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b87d
push dword [ebp + 8]
mov ecx, esi
call dword [0x41212c]
call esi
jmp 0x40b883
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40b8c7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45e478
push 0x45e470
push str.FlsGetValue
push 0x20
call fcn.0040b70a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b8fe
push dword [ebp + 8]
mov ecx, esi
call dword [0x41212c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x410d90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x410dbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410dbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x510024
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [edx], al
add al, byte [eax]
add byte [eax], al
cld
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add al, byte [eax]
add byte [eax], al
cld
invalid
stc
jb 0x51002e
pop ds
xor esi, dword [ecx - 0x49]
jno 0x50ffe2
cwde
leave
jmp 0x51008f
pushal
jmp 0x510034
call 0x51003f
dec ecx
stc
mov dl, 0xed
pop ecx
pop ebx
jb 0x510049
jne 0x50ffd9
jge 0x510029
sbb dword [edx - 0x383c7edc], 0xffffffff
invalid
add ebx, 0xffffffc7
jmp 0x510058
cmp dword [ebx], 0
stc
jmp 0x510067
je 0x5100ed
jmp 0x510076
mov ecx, ebx
jmp 0x510081
add ebx, 4
jmp 0x510089
mov edx, dword [ebx]
jmp 0x510097
and eax, 0x8ced9cec
in eax, dx
cmp ebp, dword [ebx + 3]
sar ecx, cl
add edx, ebx
stc
jb 0x5100a3
mov ah, 0xb1
mov ebx, 0xc91a740d
mov eax, dword [ebx + 4]
jmp 0x5100ac
sub dword [edx], 0x3c62176a
jmp 0x5100b6
add edx, 4
jmp 0x5100bf
sub eax, 1
jmp 0x5100c6
jne 0x5100a6
jmp 0x5100d0
add ebx, 8
jmp 0x5100d7
sub dword [ecx], 1
stc
jb 0x5100de
and ecx, dword [edi]
test dword [eax + 0x72ffffff], esp
add dh, byte [ecx + 0xee83b]
add byte [eax], al
jne 0x510084
jb 0x5100e8
mov cl, 0x3b
call 0x5100fb
jmp 0x5100f1
popal
jmp 0x5100f6
jmp 0x50ed00
Function at 0x85c06c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x85c076
pushal
call 0x85c07c
pop ebp
sub ebp, 0x10
sub ebp, 0x45c06c
jmp 0x85c092
mov eax, 0x45c06c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5fb
mov edx, 0xd29ac9ae
xor byte [eax], dl
inc eax
dec ecx
jne 0x85c0a9
jmp 0x85c0bc
and eax, 0x92272563
scasb al, byte es:[edi]
scasb al, byte es:[edi]
scasb al, byte es:[edi]
das
outsd dx, dword [esi]
push esi
scasb al, byte es:[edi]
scasb al, byte es:[edi]
scasb al, byte es:[edi]
lodsd eax, dword [esi]
arpl word [esi], dx
stosb byte es:[edi], al
scasb al, byte es:[edi]
scasb al, byte es:[edi]
scasb al, byte es:[edi]
adc al, 0x86
scasb al, byte es:[edi]
scasb al, byte es:[edi]
scasb al, byte es:[edi]
pop ecx
dec esp
lodsd eax, dword [esi]
and ax, 0xa22f
scasb al, byte es:[edi]
scasb al, byte es:[edi]
scasb al, byte es:[edi]
lodsd eax, dword [esi]
imul edi, esi, 0xfffffffe
invalid
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x79cf5bb3
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x59034e6
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x423334]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push ebx
push esi
push edi
push 0x420dfc
push ecx
push eax
mov ebx, edx
call fcn.0040c0a1
add esp, 0xc
test eax, eax
jne 0x40104e
cmp dword [ebp - 8], eax
je 0x40104e
push 2
push eax
push dword [ebp - 8]
call fcn.0040c526
add esp, 0xc
push dword [ebp - 8]
test eax, eax
je 0x401060
call fcn.0040c20d
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407715
leave
ret
call fcn.0040bfb0
mov esi, eax
pop ecx
push dword [ebp - 8]
cmp esi, 0xffffffff
je 0x401048
call fcn.0040c947
lea eax, [esi + 1]
pop ecx
test eax, eax
jne 0x401082
push dword [ebp - 8]
jmp 0x401048
xor ecx, ecx
mov eax, esi
add eax, 1
push 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0040bfe0
pop ecx
mov edi, eax
pop ecx
push dword [ebp - 8]
test edi, edi
je 0x401048
push esi
push 1
push edi
call fcn.0040cb65
add esp, 0x10
cmp eax, esi
je 0x4010c4
push edi
call fcn.0040c971
push dword [ebp - 8]
call fcn.0040c20d
pop ecx
jmp 0x40104d
mov byte [edi + esi], 0
push dword [ebp - 8]
mov dword [ebx], edi
call fcn.0040c20d
pop ecx
mov eax, esi
jmp 0x401051

Function at 0x4010da
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x423334]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
push esi
push edi
cmp edx, 0xd
jb 0x40116f
mov eax, dword [ebx]
mov ecx, 0xfaac85f0
mov edi, dword [ebx + 4]
xor eax, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 8]
xor eax, ecx
add eax, 0x78752c
mov dword [ebp - 8], eax
lea eax, [edx - 0xc]
cmp eax, edi
jne 0x40116f
push edi
call fcn.0040772b
push edi
lea ecx, [ebx + 0xc]
mov esi, eax
push ecx
push esi
call fcn.00408f40
add esp, 0x10
xor eax, eax
test edi, edi
je 0x401144
mov ecx, dword [ebp - 0xc]
xor byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x40113c
push dword [ebp - 8]
call fcn.0040772b
push edi
mov ebx, eax
lea eax, [ebp - 8]
push esi
push eax
push ebx
call fcn.00401b30
add esp, 0x14
test eax, eax
je 0x401180
push ebx
call fcn.00407726
push esi
call fcn.00407726
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407715
leave
ret
push esi
call fcn.00407726
mov eax, dword [ebp - 0x10]
pop ecx
mov dword [eax], ebx
mov eax, dword [ebp - 8]
jmp 0x401171
Function at 0x401191
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x423334]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x401234
push str.SteamtoolsUI.vdf
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040c560
and dword [ebp - 0x214], 0
add esp, 0xc
xor esi, esi
lea edx, [ebp - 0x214]
lea ecx, [ebp - 0x20c]
call section..text
test eax, eax
jle 0x40122e
mov edx, dword [ebp - 0x214]
test edx, edx
je 0x40122e
and dword [ebp - 0x210], 0
push ecx
push eax
lea ecx, [ebp - 0x210]
call fcn.004010da
pop ecx
pop ecx
test eax, eax
je 0x40122e
cmp dword [ebp - 0x210], 0
je 0x40122e
push eax
push dword [ebp - 0x210]
call fcn.00401670
pop ecx
pop ecx
test eax, eax
jne 0x401234
inc esi
cmp esi, 5
jl 0x4011da
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00407715
leave
ret
Function at 0x40bd46
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00418460
mov eax, dword [0x423334]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040eb11
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x40bd88
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x40bee4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004183b0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x424230]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0040f01e
mov ecx, dword [esi*4 + 0x424230]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x40bedd
cmp eax, dword [ecx + edi + 0x24]
jne 0x40bedd
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40bedd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040f01e
add esp, 0x14
test edx, edx
jl 0x40bedd
jg 0x40be53
test eax, eax
jb 0x40bedd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x40bedd
jl 0x40be6d
cmp dword [ebp - 0x1008], eax
ja 0x40bedd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x40be8b
test ebx, ebx
je 0x40bec4
cmp ecx, edi
jae 0x40bec4
mov al, byte [ecx]
cmp al, 0xd
jne 0x40bea5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x40beb1
cmp byte [ecx + 1], 0xa
jne 0x40beb1
inc ecx
jmp 0x40beb1
movzx eax, al
movsx eax, byte [eax + 0x423508]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x40be8b
cmp edx, ebx
jne 0x40be8b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x40bee2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407715
leave
ret

Function at 0x40dd72
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ddb1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ddb1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ddb1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ddb1
cmp dword [ecx + 0x74], 0xe
jbe 0x40ddb1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40f6c3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x424230]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40f703
cmp byte [ebx], 0xa
jne 0x40f703
or byte [edi + eax + 0x28], 4
jmp 0x40f708
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x40f807
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40f7ea
inc eax
cmp dl, 0xd
je 0x40f734
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40f75a
cmp eax, ecx
jae 0x40f768
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x40f71c
jmp 0x40f807
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f7e5
cmp dword [ebp - 0x10], 0
je 0x40f7e5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x424230]
test byte [eax + edi + 0x28], 0x48
je 0x40f7bf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40f7aa
mov byte [esi], dl
jmp 0x40f7bb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x424230]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40f807
cmp byte [ebp - 1], 0xa
jne 0x40f7ce
cmp esi, ebx
jne 0x40f7ce
mov byte [esi], 0xa
jmp 0x40f806
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040f03c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40f807
mov byte [esi], 0xd
jmp 0x40f806
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x424230]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40f804
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40f807
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40f810
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 + 0x424230]
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 0x40f856
cmp word [ebx], dx
jne 0x40f856
or byte [eax + edi + 0x28], 4
jmp 0x40f85b
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 0x40f9be
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 0x40f99e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x40f89c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40f8d2
cmp eax, edx
jae 0x40f8e0
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 0x40f877
jmp 0x40f9be
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 0x40f999
cmp dword [ebp - 0x18], 0
je 0x40f999
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x424230]
test byte [eax + edi + 0x28], 0x48
je 0x40f96f
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 0x40f933
mov word [esi], cx
jmp 0x40f96a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x424230]
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 + 0x424230]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x424230]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x40f9be
pop eax
cmp word [ebp - 4], ax
jne 0x40f97f
cmp esi, ebx
jne 0x40f97f
mov word [esi], ax
jmp 0x40f9bb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040f03c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40f9be
push 0xd
pop eax
jmp 0x40f97a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x424230]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x40f9b8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x40f9be
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 0x4110f0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41d8b0
push 0x41d8a8
push str.FlsAlloc
push 0x1f
call fcn.0041100c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411124
push dword [ebp + 8]
mov ecx, esi
call dword [0x419134]
call esi
jmp 0x41112a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41116e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41d8c0
push 0x41d8b8
push str.FlsGetValue
push 0x21
call fcn.0041100c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4111a5
push dword [ebp + 8]
mov ecx, esi
call dword [0x419134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4111ad
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41d8c8
push 0x41d8c0
push str.FlsSetValue
push 0x22
call fcn.0041100c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4111e7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x419134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x412939
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4129d6
push ebx
push esi
call fcn.00412902
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00412896
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x412983
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4129d5
push edi
push eax
call fcn.00410de3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4129a3
call fcn.004108b5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4129d4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00412896
add esp, 0x20
test eax, eax
jne 0x4129c2
push edi
call fcn.004108b5
jmp 0x4129ca
push ebx
call fcn.004108b5
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4160c5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00416041
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x416234
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x416234
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4161e9
jg 0x416121
test eax, eax
je 0x4161df
push 1
push 0x1000
call fcn.00410235
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x416144
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4161d6
push 0x8000
push ebx
call fcn.0040df38
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41616d
jg 0x416168
cmp ecx, 0x1000
jb 0x41616d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004155ce
add esp, 0x10
cmp eax, 0xffffffff
je 0x4161b2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x416168
jl 0x416199
test ecx, ecx
jne 0x41615a
push dword [ebp - 0xc]
push ebx
call fcn.0040df38
push esi
call fcn.004108b5
add esp, 0xc
xor ebx, ebx
jmp 0x416242
cmp byte [edi + 0x24], 0
je 0x4161c9
cmp dword [edi + 0x20], 5
jne 0x4161c9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4161d4
mov ebx, dword [edi + 0x18]
jmp 0x4161d6
xor ebx, ebx
push esi
call fcn.004108b5
pop ecx
jmp 0x416242
test ecx, ecx
jg 0x4161ab
jl 0x4161e9
test eax, eax
jae 0x4161ab
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040f03c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x416209
cmp byte [edi + 0x1c], 0
je 0x4161ab
jmp 0x41623a
push ebx
call fcn.00412e8f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4161ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x416242
cmp byte [edi + 0x1c], 0
je 0x41623f
mov ebx, dword [edi + 0x18]
jmp 0x416242
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0040f03c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1018058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10181a8
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 0x101807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x101806a
add dl, dl
jne 0x1018089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10180dc
xor eax, eax
add dl, dl
jne 0x1018096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x101817d
add dl, dl
jne 0x10180a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10180b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10180bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10180c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10180d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1018075
mov eax, 1
add dl, dl
jne 0x10180ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10180f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10180e1
sub eax, ebx
mov ebx, 1
jne 0x1018128
mov ecx, 1
add dl, dl
jne 0x101810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1018119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1018105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1018075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x101813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x101814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1018136
cmp eax, 0x7d00
jae 0x101816d
cmp eax, 0x500
jb 0x1018168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1018075
cmp eax, 0x7f
ja 0x1018170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1018075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x101819e
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 0x1018075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10