joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6223dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0x62242c
cmp dword [ebp - 4], 2
ja 0x62e965
mov ecx, dword [edi]
test cl, 1
jne 0x62242c
cmp esi, ebx
je 0x622425
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jne 0x62242c
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0xd
pop eax
jmp 0x622425

Function at 0x6224ed
Capabilities:
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0x636b05
call fcn.00621350
mov esi, ecx
mov eax, dword [esi + 0x44]
xor edi, edi
mov ebx, 0x8007000e
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0x622519
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
cmp dword [ebp + 8], edi
je 0x62265b
cmp dword [ebp + 0xc], edi
je 0x62265b
push 1
call fcn.0062227c
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x62264a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 4], edi
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea eax, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x20], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006213e0
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x62259b
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.006221cb
mov ebx, eax
test ebx, ebx
jl 0x62259b
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00622436
mov ebx, eax
test ebx, ebx
jl 0x62259b
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
jl 0x622632
push 2
pop ebx
push dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006213e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x622654
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.006221cb
mov ebx, eax
test ebx, ebx
jl 0x622623
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
call fcn.00622436
mov ebx, eax
test ebx, ebx
jl 0x622623
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x622623
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x62f3a2
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x622632
push dword [ebp - 0x14]
call fcn.006213c0
pop ecx
cmp dword [ebp - 0x18], 0
je 0x622641
push dword [ebp - 0x18]
call fcn.006213c0
pop ecx
push dword [ebp - 0x1c]
call fcn.006213c0
pop ecx
mov eax, ebx
call fcn.00621390
ret 8
mov ebx, 0x8007000e
jmp 0x6225fe
mov ebx, 0x80070057
jmp 0x62264a
Function at 0x623a67
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x623ae4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x623ac0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x623ad0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
pop esi
je 0x62e30e
mov eax, dword [ebp - 8]
leave
ret
Function at 0x624267
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x63b00c], esi
jne 0x6242be
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x622c6f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x63b00c], eax
cmp eax, esi
je 0x62e4ec
push 0xffffffffffffffff
push dword [0x63b014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x63b014]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0x63b018], esi
jl 0x62e50a
pop esi
leave
ret

Function at 0x624441
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x624498
call fcn.00622712
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x624490
cmp ecx, 0xffffffff
je 0x624490
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x624489
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x624489
cmp edx, 0x10000000
jae 0x624489
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x62e892
mov dword [ebp - 4], 0xfffffffe
call fcn.00622757
ret 4

Function at 0x62681f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x63b004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
inc eax
cmp dword [esi + 0x2c], 0
jne 0x626933
push edi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x105
push edi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x420], eax
cmp eax, edi
ja 0x62ed16
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.006221cb
test eax, eax
jl 0x626932
mov ecx, dword [ebp - 0x420]
cmp word [ebp + ecx*2 - 0x210], 0x5c
je 0x6268c3
push 0x626994
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00622436
test eax, eax
jl 0x626932
push 0x626980
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00622436
test eax, eax
jl 0x626932
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x62ed20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x626970
push eax
call edi
push 0x62695c
push dword [esi + 0x2c]
mov dword [esi + 0x30], eax
call edi
push 0x626948
push dword [esi + 0x2c]
mov dword [esi + 0x34], eax
call edi
cmp dword [esi + 0x30], 0
mov dword [esi + 0x38], eax
je 0x626940
cmp dword [esi + 0x34], 0
je 0x626940
test eax, eax
je 0x626940
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.006220d4
leave
ret
mov eax, 0x8007007f
jmp 0x626932
Function at 0x6271f8
Capabilities:
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0x63608c
call fcn.006239dd
lea ecx, [ebp - 0x34]
call fcn.00626c55
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.0062758b
test eax, eax
jl 0x62722c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.006272a7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, 0x409
mov edi, 0x627298
cmp ax, si
jne 0x62e4b4
and esi, 0x3ff
push esi
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.00621451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0062758b
mov esi, eax
test esi, esi
jl 0x627280
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.006272a7
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.0062760b
mov eax, esi
call fcn.00622b9f
ret

Function at 0x62791d
Capabilities:
Identify system language via api

Disassembly:
lea eax, [ebp - 0x30]
push eax
call esi
push 8
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x30], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x62dc4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x82
lea edx, [ebp - 0x30]
push edx
push 0x627900
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, ebx
jl 0x6279a8
push 1
lea ecx, [ebp - 0x20]
call fcn.006279e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x6278ec
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.006271e0
cmp esi, ebx
jl 0x6279a8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push 3
movzx eax, ax
pop ecx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x18], eax
jmp 0x627992
push 0x24
mov eax, 0x635c85
call fcn.006226dd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x20]
push eax
call esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], ebx
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0xc], ebx
je 0x627854
push 1
lea ecx, [ebp - 0x20]
call fcn.006279e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x623984
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x6279a6
push 3
pop eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x18], 0x409
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20]
push edx
push 0x6279d0
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00627455
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.006271e0
mov eax, esi
call fcn.00621390
ret 0xc
Function at 0x627b05
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0x635fc0
call fcn.006239dd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x5c], ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], esi
call fcn.00627c2b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x58]
mov ebx, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x627b34
sub eax, ecx
sar eax, 1
mov edi, eax
je 0x627b63
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0x627b5b
inc esi
cmp esi, edi
jb 0x627b46
cmp esi, edi
jb 0x627c0e
xor eax, eax
mov edx, ebx
test edi, edi
jbe 0x627c0e
cmp word [edx], 0x30
jne 0x627b7c
inc eax
inc edx
inc edx
cmp eax, edi
jb 0x627b6f
cmp eax, edi
jae 0x627c0e
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x627b89
sub eax, esi
sar eax, 1
cmp eax, 3
ja 0x627c0e
push 0x10
push 0
push edx
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, si
jne 0x627c03
movzx eax, ax
movzx eax, ax
push eax
push 0x627c18
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00621451
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.00626c60
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.0062760b
mov eax, dword [ebp - 0x54]
call fcn.00622b9f
ret 8
or esi, 0x400
movzx eax, si
jmp 0x627bc6
mov dword [ebp - 0x54], 0x80041001
jmp 0x627be9
Function at 0x627f3e
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x636a7d
call fcn.00621350
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov ebx, 0x8007000e
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], esi
je 0x628046
push 1
call fcn.0062227c
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x62803c
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006213e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x627fcd
push dword [ebp - 0x18]
inc edi
push edi
push eax
call fcn.006221cb
mov ebx, eax
test ebx, ebx
jl 0x628024
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call fcn.00622436
mov ebx, eax
test ebx, ebx
jl 0x628024
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x628024
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x627ff6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x62f33c
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x628024
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x44], eax
cmp eax, 0xffffffff
je 0x62f353
cmp dword [ebp - 0x14], 0
je 0x628033
push dword [ebp - 0x14]
call fcn.006213c0
pop ecx
push dword [ebp - 0x18]
call fcn.006213c0
pop ecx
mov eax, ebx
call fcn.00621390
ret 4
mov ebx, 0x80070057
jmp 0x62803c

Function at 0x6285f1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x63b004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
test eax, eax
je 0x628684
cmp eax, 0xffffffff
je 0x628684
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x628684
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
and dword [ebp - 0xc], 0
push ebx
call esi
push ebx
mov dword [ebp - 0x10], eax
call esi
lea esi, [eax + eax + 2]
mov eax, esi
call fcn.006285b5
mov eax, esp
push esi
push ebx
push eax
call fcn.00628692
mov esi, dword [ebp - 0x10]
mov edi, dword [edi + 0x44]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x62f2da
cmp esi, dword [ebp - 0xc]
jne 0x62f2f6
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006220d4
leave
ret 4
mov dword [ebp - 8], 0x80070057
jmp 0x62866d
Function at 0x6288ef
Capabilities:
Get geographical location

Disassembly:
push 0x210
mov eax, 0x636be9
call fcn.006220e6
xor eax, eax
push 0x1fe
mov word [ebp - 0x214], ax
xor ebx, ebx
lea eax, [ebp - 0x212]
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push 0x100
lea eax, [ebp - 0x214]
push eax
push 0x1001
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x214]
and esi, 0x3ff
push eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 7
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006213e0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x628999
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x21c]
push 0x6289a4
push esi
push edi
call fcn.00621451
add esp, 0x14
mov eax, edi
call fcn.00622126
ret 4
Function at 0x630d7d
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [ecx + eax + 0x18]
test esi, esi
jbe 0x630dba
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x630db2
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x630dbc
inc edx
add eax, 0x28
cmp edx, esi
jb 0x630da2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

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 0x1ecf058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01ecf1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1ecf07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1ecf06a
add dl, dl
jne 0x1ecf089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1ecf0dc
xor eax, eax
add dl, dl
jne 0x1ecf096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1ecf17d
add dl, dl
jne 0x1ecf0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1ecf0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1ecf0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1ecf0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1ecf0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1ecf075
mov eax, 1
add dl, dl
jne 0x1ecf0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1ecf0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1ecf0e1
sub eax, ebx
mov ebx, 1
jne 0x1ecf128
mov ecx, 1
add dl, dl
jne 0x1ecf10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1ecf119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1ecf105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1ecf075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1ecf13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1ecf14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1ecf136
cmp eax, 0x7d00
jae 0x1ecf16d
cmp eax, 0x500
jb 0x1ecf168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1ecf075
cmp eax, 0x7f
ja 0x1ecf170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1ecf075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1ecf19e
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 0x1ecf075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1d3e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01d3e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1d3e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1d3e06a
add dl, dl
jne 0x1d3e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1d3e0dc
xor eax, eax
add dl, dl
jne 0x1d3e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1d3e17d
add dl, dl
jne 0x1d3e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d3e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d3e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d3e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1d3e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1d3e075
mov eax, 1
add dl, dl
jne 0x1d3e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d3e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1d3e0e1
sub eax, ebx
mov ebx, 1
jne 0x1d3e128
mov ecx, 1
add dl, dl
jne 0x1d3e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1d3e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1d3e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1d3e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1d3e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1d3e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1d3e136
cmp eax, 0x7d00
jae 0x1d3e16d
cmp eax, 0x500
jb 0x1d3e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1d3e075
cmp eax, 0x7f
ja 0x1d3e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1d3e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1d3e19e
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 0x1d3e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40b770
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword [0x544900]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40b93b
sub esp, 0x38
mov eax, dword [esp + 0x3c]
cmp eax, 0x7000000
jle 0x40b799
mov eax, 0x7000000
jmp 0x40b7a1
test eax, eax
je 0x40b916
mov dword [esp + 0x14], eax
mov ecx, dword [0x544900]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x94]
mov ebx, dword [ecx + 0x98]
mov ebp, edx
shl edx, 0x11
xor edx, ebp
mov ebp, ebx
xor ebx, edx
shr edx, 7
xor edx, ebx
mov ebx, ebp
shr ebp, 0x10
xor ebp, edx
lea edx, [ebp + ebx]
shr edx, 6
inc edx
mov dword [ecx + 0x94], ebx
mov dword [ecx + 0x98], ebp
mov dword [esp], edx
call fcn.0045de20
movsd xmm0, qword [esp + 4]
movsd qword [esp + 0x28], xmm0
mov eax, dword [esp + 0x2c]
mov ecx, eax
shr ecx, 0x14
and ecx, 0x7ff
mov edx, eax
shr edx, 0xf
and edx, 0x1f
shl eax, 5
mov ebx, dword [esp + 0x28]
shr ebx, 0x1b
or ebx, eax
lea eax, [0x517ca0]
movsd xmm0, qword [eax + edx*8]
mov ebp, ecx
add ecx, 0xfffffc01
add edx, 1
mov esi, 0
adc esi, 0
test esi, esi
jne 0x40b92e
cmp edx, 0x21
jae 0x40b922
movsd qword [esp + 0x18], xmm0
add ebp, 0xfffffc01
mov ebp, 0xffffffff
adc ebp, 0
and ebx, 0xfffff
mov dword [esp + 0x10], ebx
movsd xmm0, qword [eax + edx*8]
movsd qword [esp + 0x20], xmm0
mov dword [esp + 4], ebp
mov dword [esp], ecx
call fcn.00458820
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x30], xmm0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call fcn.004588f0
movsd xmm0, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x18]
addsd xmm0, xmm1
movsd xmm2, qword [esp + 0x20]
subsd xmm2, xmm1
movsd xmm1, qword [esp + 8]
mulsd xmm1, xmm2
movsd xmm2, qword [0x4b78bc]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd xmm1, qword [0x4b78fc]
subsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jbe 0x40b8f1
xorps xmm0, xmm0
mov eax, dword [esp + 0x14]
cvtsi2sd xmm1, eax
movsd xmm2, qword [0x4b7934]
mulsd xmm1, xmm2
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
inc eax
mov dword [esp + 0x40], eax
add esp, 0x38
ret
mov dword [esp + 0x40], 0
add esp, 0x38
ret
mov eax, edx
mov ecx, 0x21
call fcn.0045dee0
mov eax, edx
mov ecx, 0x21
call fcn.0045df80
nop
call fcn.0045ca70
jmp fcn.0040b770