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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x593450]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5350b1
cmp byte [ebx], 0xa
jne 0x5350b1
or byte [eax + edi + 0x28], 4
jmp 0x5350b6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x5351b4
mov al, byte [edx]
cmp al, 0x1a
je 0x535196
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x5350e5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x53510a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x535114
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x5350c7
jmp 0x5351b4
push 0
lea eax, [ebp - 0xc]
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 0x535191
cmp dword [ebp - 0xc], 0
je 0x535191
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x593450]
test byte [eax + edi + 0x28], 0x48
je 0x53516b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x535156
mov byte [esi], dl
jmp 0x535167
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x593450]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5351b4
cmp byte [ebp - 1], 0xa
jne 0x53517a
cmp esi, ebx
jne 0x53517a
mov byte [esi], 0xa
jmp 0x5351b3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005320c7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5351b4
mov byte [esi], 0xd
jmp 0x5351b3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x593450]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5351b0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5351b4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5351bd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x593450]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x535200
cmp word [esi], dx
jne 0x535200
or byte [edi + eax + 0x28], 4
jmp 0x535205
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x535358
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x535338
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x535247
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x53527d
cmp eax, edx
jae 0x535289
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x53521f
jmp 0x535358
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x535334
cmp dword [ebp - 0x14], 0
je 0x535334
mov eax, dword [ebx*4 + 0x593450]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x53530c
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x5352d5
mov word [esi], cx
jmp 0x535308
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x593450]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x593450]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x593450]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x535358
pop ebx
cmp word [ebp - 4], bx
jne 0x53531d
cmp esi, dword [ebp + 0xc]
jne 0x53531d
mov word [esi], bx
jmp 0x535355
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005320c7
add esp, 0x10
cmp word [ebp - 4], bx
je 0x535358
push 0xd
jmp 0x535351
mov ecx, dword [ebx*4 + 0x593450]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x53534f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x535358
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x538e46
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x55d4b4
push 0x55d4ac
push str.FlsAlloc
push 0x1e
call fcn.00538c73
mov esi, eax
add esp, 0x10
test esi, esi
je 0x538e7a
push dword [ebp + 8]
mov ecx, esi
call dword [0x54a488]
call esi
jmp 0x538e80
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x538ec4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x55d4c4
push 0x55d4bc
push str.FlsGetValue
push 0x20
call fcn.00538c73
mov esi, eax
add esp, 0x10
test esi, esi
je 0x538efb
push dword [ebp + 8]
mov ecx, esi
call dword [0x54a488]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x53a8dd
Capabilities:
Read file on windows

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

Function at 0x53a8e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053a70e
Function at 0x53dcd9
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]
push dword [ebp + 0xc]
push ebx
call fcn.0053dc55
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x53de51
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x53de51
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x53de00
jg 0x53dd32
test eax, eax
je 0x53ddf6
push 1
push 0x1000
call fcn.00538975
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x53dd58
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x53dded
push 0x8000
push ebx
call fcn.00532a9e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x53dd84
jg 0x53dd7f
cmp ecx, 0x1000
jb 0x53dd84
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005362d7
add esp, 0x10
cmp eax, 0xffffffff
je 0x53ddc9
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 0x53dd7f
jl 0x53ddb0
test ecx, ecx
jne 0x53dd71
push dword [ebp - 0xc]
push ebx
call fcn.00532a9e
push esi
call fcn.0053770a
add esp, 0xc
xor edi, edi
jmp 0x53de62
cmp byte [edi + 0x24], 0
je 0x53dde0
cmp dword [edi + 0x20], 5
jne 0x53dde0
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x53ddeb
mov edi, dword [edi + 0x18]
jmp 0x53dded
xor edi, edi
push esi
call fcn.0053770a
pop ecx
jmp 0x53de62
test ecx, ecx
jg 0x53ddc2
jl 0x53de00
test eax, eax
jae 0x53ddc2
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005320c7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x53de23
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x53ddc2
jmp 0x53de5a
push ebx
call fcn.0053bcdf
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x53ddc2
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x53de62
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x53de5f
mov edi, dword [edi + 0x18]
jmp 0x53de62
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005320c7
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x53e100
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x57f0b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x53e14b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0053e29f
test al, al
jne 0x53e145
sub edx, 2
cmp edx, edi
jne 0x53e12b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x53e16d
lea eax, [edi + 2]
cmp edx, eax
je 0x53e16d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0053e04c
add esp, 0x10
jmp 0x53e267
push esi
lea ecx, [ebp - 0x255]
call fcn.0053e29f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x53e1b0
push dword [ebp - 0x25c]
jmp 0x53e15d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x53e1ed
cmp word [ebp - 0x226], 0
je 0x53e20e
cmp word [ebp - 0x226], ax
jne 0x53e1ed
cmp word [ebp - 0x224], 0
je 0x53e20e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0053e04c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x53e25a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x53e1c7
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x53e242
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x53e267
push 0x53de7c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005304a0
add esp, 0x10
jmp 0x53e237
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00518690
leave
ret

Function at 0x53eb8b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x53eb9c
pop esi
ret
push ebx
push edi
push esi
call fcn.0053eb54
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00537744
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x53ebc4
push ebx
push esi
push edi
call fcn.0051ad20
add esp, 0xc
push 0
call fcn.0053770a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x53ef88
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053ebd9
Function at 0x401000
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x6b8e64
call fcn.0040121c
mov edi, 0x94
mov eax, edi
call fcn.004011dc
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x6b8e64], ecx
mov eax, dword [esi + 4]
mov dword [0x6b8e68], eax
mov edx, dword [esi + 8]
mov dword [0x6b8e6c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x6b8e70], esi
cmp ecx, 2
je 0x401060
or esi, 0x8000
mov dword [0x6b8e74], esi
shl eax, 8
add eax, edx
mov dword [0x6b8e64], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40109b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40109b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4010b3
cmp eax, 0x20b
je 0x4010a0
mov dword [ebp - 0x1c], esi
jmp 0x4010c7
cmp dword [ecx + 0x84], 0xe
jbe 0x40109b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4010c1
cmp dword [ecx + 0x74], 0xe
jbe 0x40109b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00401224
pop ecx
test eax, eax
jne 0x4010f3
cmp dword [0x6b8e64], 1
jne 0x4010e0
call fcn.00401224
push 0x1c
call fcn.00401224
push 0xff
call fcn.00401224
pop ecx
pop ecx
call fcn.00401224
mov dword [ebp - 4], esi
call fcn.00401224
test eax, eax
jge 0x40110c
push 0x1b
call fcn.00401224
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x6b8e64], eax
call fcn.00401224
mov dword [0x6b8e68], eax
call fcn.00401224
test eax, eax
jge 0x401132
push 8
call fcn.00401224
pop ecx
call fcn.00401224
test eax, eax
jge 0x401143
push 9
call fcn.00401224
pop ecx
push 1
call fcn.00401224
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401159
push eax
call fcn.00401224
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401224
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40117a
movzx eax, word [ebp - 0x40]
jmp 0x40117d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401228
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40119b
push edi
call fcn.00401220
call fcn.00401224
jmp 0x4011cd
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401224
ret

Function at 0x401228
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push esi
push edi
push ebx
lea eax, [ebp - 4]
push eax
push 0x40
push 0x1ce000
push section..rdata
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401252
push 0x4eb3b8
jmp 0x40125e
pop ebx
pop edi
pop esi
leave
ret 0x14
ret
Function at 0x430002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x224422ba
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..rsrc
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x3cb51218
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x100019f8
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.10001ba8
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x10001af6
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x10001a99
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x10001adc
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x10001ab0
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x10001acb
test al, 0x40
je 0x10001ac2
mov ecx, dword [edi + 0x20]
jmp 0x10001ac9
test al, 0x80
je 0x10001adc
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x10001adc
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x10001a68
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x10002700
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10002769
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.10002230
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x401ae6
Capabilities:
Parse pe header

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

Function at 0x7775b3
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
shr ecx, 2
xor dword [edx], eax
add edx, 4
dec ecx
jne 0x7775cd
pop ebp
ret 0xc

Function at 0x77767e
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebp
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x7776af
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x77768d
add dl, dl
jne 0x7776c2
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x777732
xor eax, eax
add dl, dl
jne 0x7776d7
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x777807
add dl, dl
jne 0x7776ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7776f9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x777708
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x777717
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x777725
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x7776a2
mov eax, 1
add dl, dl
jne 0x777744
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x777753
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x777737
sub eax, ebx
mov ebx, 1
jne 0x77779a
mov ecx, 1
add dl, dl
jne 0x777778
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x777787
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x77776b
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7776a2
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7777b5
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7777c4
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7777a8
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7776a2
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x77782f
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 0x7776a2
pop ebp
sub edi, dword [ebp + 8]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x100112b6
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, 0x811c9dc5
xor esi, esi
movzx eax, byte [esi + ecx]
xor eax, edi
imul edi, eax, 0x1000193
inc esi
cmp esi, 4
jb 0x100112c2
mov eax, edi
xor edx, edx
div ebx
pop edi
pop esi
mov eax, edx
pop ebx
ret

Function at 0x10013556
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov edx, dword [ebx + 0x30]
lea eax, [edx + 1]
mov dword [ebx + 0x30], eax
test edx, edx
jne 0x1001366b
cmp dword [ebx + 0x1c], edx
mov ecx, dword [ebx + 0x14]
setne al
push esi
mov byte [ebp - 0x1d], al
cmp dword [ebx + 0x18], edx
jne 0x1001363a
test al, al
sete al
movzx eax, al
push eax
push dword [ebx + 0x28]
push dword [ebx + 0x24]
call fcn.10020ec6
cmp byte [ebp - 0x1d], 0
jne 0x10013646
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, eax
lea ecx, [ebp - 0x1c]
push ebx
call fcn.1001795f
mov edx, dword [ebp - 0x24]
lea edi, [ebp - 0x10]
push ebx
mov cx, word [eax + 4]
mov word [edx + 0xc], cx
mov ecx, dword [eax]
mov dword [edx + 8], ecx
mov ecx, dword [edx + 0x14]
imul edx, dword [edx + 0x24], 0x34
mov eax, dword [ecx + 0x10]
movzx ecx, word [edx + eax + 0xc]
mov esi, dword [edx + eax]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov word [ebp - 0xc], cx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
call fcn.100179c2
mov ebx, dword [ebp - 0x24]
push ebx
mov ecx, dword [ebx + 0x14]
call fcn.1002187b
mov edi, dword [ebx + 0x14]
lea esi, [edi + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
imul edx, dword [ebx + 0x24], 0x34
imul ecx, dword [ebx + 0x28], 0x34
mov eax, dword [edi + 0x10]
push ebx
add ecx, 0xc
mov eax, dword [edx + eax + 0x30]
add ecx, eax
call fcn.10021b53
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
jmp 0x10013646
push ebx
add ecx, 0xc4
call fcn.10021b53
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x70]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ebx
push esi
mov dword [ebx + 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
test eax, eax
jne 0x1001366b
call fcn.10016550
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10027f20
mov esp, ebp
pop ebp
ret