joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b2c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push edi
push 0x1002a314
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x1002a32c]
test edi, edi
jne 0x1000b306
push 0x40
push 0x103000
push 0x1000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [0x1002a32c], esi
test esi, esi
jne 0x1000b35c
push 0x1002a314
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
ret
cmp dword [edi + 0xffc], 0
lea eax, [edi + 0xffc]
je 0x1000b331
jmp 0x1000b320
mov edi, dword [eax]
cmp dword [edi + 0xffc], 0
lea eax, [edi + 0xffc]
jne 0x1000b320
mov ecx, dword [edi + 0xff0]
cmp ecx, 0x44
jne 0x1000b394
push 0x40
push 0x103000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x1000b2f6
mov dword [edi + 0xffc], esi
mov dword [esi + 0xff0], 1
mov dword [esi + 0xff4], 0
mov dword [esi + 0xff8], 0
push 0x1002a314
mov dword [esi + 0xffc], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
ret
mov eax, ecx
shl eax, 4
sub eax, ecx
inc ecx
push 0x1002a314
mov dword [edi + 0xff0], ecx
lea esi, [edi + eax*4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
ret

Function at 0x1000ba50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10028008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1002938c], 0
push esi
mov esi, ecx
jne 0x1000bae1
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.100172e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1000bb0a
cmp word [ebp - 0x20c], 0
jne 0x1000bab1
xor ecx, ecx
jmp 0x1000bacf
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000bac0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, 0x1002937c
push eax
call fcn.10001ed0
cmp esi, 0x1002937c
je 0x1000baf9
push 0xffffffffffffffff
push 0
push 0x1002937c
mov ecx, esi
call fcn.10001c30
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db9e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.1000db9e
mov esp, ebp
pop ebp
ret
Function at 0x1000bb20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001da2b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x10028008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.100172e0
add esp, 0xc
mov dword [ebp - 0x21c], 7
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
mov word [ebp - 0x230], ax
push eax
push 0x10024ab0
call fcn.10001ed0
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.1000ba50
cmp dword [esi + 0x14], 8
jb 0x1000bbb8
mov esi, dword [esi]
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x218]
push ecx
push 0
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1000bbf2
push eax
push 0x10024ab0
mov ecx, edi
call fcn.10001ed0
xor bl, bl
jmp 0x1000bc30
cmp word [ebp - 0x218], 0
jne 0x1000bc00
xor ecx, ecx
jmp 0x1000bc1f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000bc10
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.10001ed0
mov bl, 1
cmp dword [ebp - 0x21c], 8
jb 0x1000bc47
push dword [ebp - 0x230]
call fcn.1000e356
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000db9e
mov esp, ebp
pop ebp
ret
Function at 0x1000bc70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001dac6
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x10028008]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x10028008]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [0x1002a434]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x1000bdfe
push 0x206
push eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0x4e]
push eax
call fcn.100172e0
add esp, 0xc
lea eax, [esp + 0x44]
push 0x104
push eax
push str._SystemRoot_System32Kernel32.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
cmp word [esp + 0x44], ax
jne 0x1000bd13
xor ecx, ecx
jmp 0x1000bd2f
lea ecx, [esp + 0x44]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000bd20
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x1c]
call fcn.10001ed0
mov dword [esp + 0x260], 0
lea ecx, [esp + 0x2c]
push 0xb
xor eax, eax
mov dword [esp + 0x44], 7
push 0x10025b28
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
call fcn.10001ed0
sub esp, 8
mov byte [esp + 0x268], 1
lea edx, [esp + 0x34]
lea ecx, [esp + 0x1c]
call fcn.1000c850
add esp, 8
cmp dword [esp + 0x40], 8
jb 0x1000bd9e
push dword [esp + 0x2c]
call fcn.1000e356
add esp, 4
xor eax, eax
mov dword [esp + 0x260], 0xffffffff
cmp dword [esp + 0x28], 8
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
jb 0x1000bdd3
push dword [esp + 0x14]
call fcn.1000e356
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
mov eax, dword [0x1002a434]
mov dword [esp + 0x24], 0
test eax, eax
jne 0x1000bdfe
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x1000be03
push ebx
push edi
push esi
call eax
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.1000db9e
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c490
Capabilities:
Allocate or change rwx memory
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x14], 8
mov dword [ebp - 4], edx
jb 0x1000c4a1
mov ecx, dword [ecx]
push edi
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000c4c9
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0xc], ebx
lea eax, [ebx - 0x1000]
cmp eax, 0x1ff000
ja 0x1000c602
push esi
push ebx
call fcn.1000db95
mov esi, eax
mov dword [ebp - 8], 0
add esp, 4
test esi, esi
je 0x1000c5f2
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000c5e3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
mov ecx, esi
call fcn.1000c9a0
mov bl, al
test bl, bl
je 0x1000c5c8
mov eax, dword [esi + 0x3c]
push 0x40
push 0x103000
push dword [eax + esi + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x1000c55b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x1000c5ca
mov edx, edi
mov ecx, esi
call fcn.1000c9c0
mov bl, al
test bl, bl
je 0x1000c584
mov ecx, edi
call fcn.1000ca60
mov bl, al
test bl, bl
je 0x1000c584
mov ecx, edi
call fcn.1000caf0
mov bl, al
test bl, bl
jne 0x1000c5a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x8000
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 4]
jmp 0x1000c5ca
mov eax, dword [edi + 0x3c]
mov bl, 1
push esi
mov ecx, dword [eax + edi + 0x28]
mov eax, dword [ebp + 8]
add ecx, edi
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov dword [eax], edi
call fcn.1000ee70
add esp, 4
mov al, bl
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call fcn.1000ee70
add esp, 4
mov al, bl
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.1000ee70
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x18
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1000c620
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x14], 8
mov dword [ebp - 8], edx
jb 0x1000c631
mov ecx, dword [ecx]
push edi
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000c659
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ecx, [ebx - 0x1000]
cmp ecx, 0x1ff000
ja 0x1000c75c
push esi
push ebx
call fcn.1000db95
mov esi, eax
mov dword [ebp - 4], 0
add esp, 4
test esi, esi
je 0x1000c74c
push 0
lea eax, [ebp - 4]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000c743
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
mov ecx, esi
xor edi, edi
call fcn.1000c9a0
mov bl, al
test bl, bl
je 0x1000c6dc
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x50]
push eax
mov dword [ebp - 0xc], eax
call fcn.1000db95
mov edi, eax
add esp, 4
test edi, edi
jne 0x1000c6f7
xor bl, bl
push edi
call fcn.1000ee70
add esp, 4
push esi
call fcn.1000ee70
add esp, 4
mov al, bl
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov edx, edi
mov ecx, esi
call fcn.1000c9c0
mov bl, al
test bl, bl
je 0x1000c6dc
mov edx, dword [ebp - 8]
mov ecx, edi
call fcn.1000cb80
mov bl, al
test bl, bl
je 0x1000c6dc
mov eax, dword [edi + 0x3c]
mov bl, 1
mov edx, dword [ebp - 0xc]
push esi
mov ecx, dword [eax + edi + 0x28]
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
call fcn.1000ee70
add esp, 4
mov al, bl
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.1000ee70
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x18
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1000c850
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10028008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x20], 0
push edi
mov edi, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
cmp dword [esi + 0x14], 8
jb 0x1000c886
mov eax, dword [esi]
jmp 0x1000c888
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x1000c8a9
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db9e
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
mov edx, eax
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, esi
call fcn.1000c620
add esp, 0xc
test al, al
je 0x1000c896
mov edx, edi
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x1c]
call fcn.10005a90
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x1c]
mov ecx, ebx
call fcn.1000cc20
add esp, 4
test al, al
je 0x1000c95e
mov edi, dword [ebp - 0x20]
xor esi, esi
cmp byte [esi + edi], 0xe9
lea ecx, [esi + edi]
je 0x1000c95e
call fcn.1000d820
add esi, eax
cmp esi, 6
jl 0x1000c8f3
push 0x40
push 0x103000
lea eax, [esi + 6]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1000c95e
push esi
push edi
push eax
call fcn.1000f880
mov eax, dword [ebp - 0x20]
add esp, 0xc
add eax, esi
sub esi, ebx
add esi, edi
add esi, dword [ebp - 0x2c]
push 0x8000
push dword [ebp - 0x24]
mov byte [eax], 0x68
mov dword [eax + 1], esi
push ebx
mov byte [eax + 5], 0xc3
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x20]
mov bl, 1
mov dword [0x1002a434], eax
jmp 0x1000c96f
push 0x8000
push dword [ebp - 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor bl, bl
cmp dword [ebp - 8], 0x10
jb 0x1000c980
push dword [ebp - 0x1c]
call fcn.1000e356
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000db9e
mov esp, ebp
pop ebp
ret

Function at 0x1000cc20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ecx + 0x3c]
push ebx
push esi
push edi
mov ebx, dword [eax + ecx + 0x78]
mov eax, dword [ebx + ecx + 0x20]
add ebx, ecx
add eax, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov esi, dword [ebx + 0x24]
add esi, ecx
mov dword [ebp - 0x10], esi
mov esi, dword [ebx + 0x1c]
add esi, ecx
mov dword [ebp - 0x14], esi
xor esi, esi
cmp dword [ebx + 0x18], esi
jbe 0x1000cc81
mov edi, dword [eax + esi*4]
add edi, ecx
mov ecx, edx
call fcn.100062a0
push eax
push edi
call fcn.1000f79c
add esp, 8
test eax, eax
je 0x1000cc8a
mov ecx, dword [ebp - 4]
inc esi
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp esi, dword [ebx + 0x18]
jb 0x1000cc58
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
pop edi
movzx eax, word [eax + esi*2]
pop esi
pop ebx
mov ecx, dword [ecx + eax*4]
mov eax, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov dword [eax], ecx
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x1000d950
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
mov eax, ebx
cdq
and edx, 3
push esi
push edi
lea esi, [edx + eax]
mov edx, dword [ebp + 8]
sar esi, 2
lea edi, [ecx + esi*4]
neg esi
je 0x1000d991
mov edi, edi
imul eax, dword [edi + esi*4], 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor edx, eax
rol edx, 0xd
add edx, 0xfaddaf14
lea edx, [edx + edx*4]
inc esi
jne 0x1000d970
mov eax, ebx
xor ecx, ecx
and eax, 3
dec eax
je 0x1000d9b1
dec eax
je 0x1000d9a8
dec eax
jne 0x1000d9c7
movzx ecx, byte [edi + 2]
shl ecx, 0x10
movzx eax, byte [edi + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [edi]
xor eax, ecx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor edx, eax
xor edx, ebx
mov eax, edx
shr eax, 0x10
xor eax, edx
imul ecx, eax, 0x85ebca6b
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0xc2b2ae35
mov ecx, eax
shr ecx, 0x10
xor ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
pop ebp
ret
Function at 0x1001a245
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10028008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10013d53
mov dword [ebp - 0x14], eax
cmp dword [0x1002a2dc], esi
jne 0x1001a338
push 0x800
push esi
push 0x100245ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1001a2c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1001a418
push esi
push esi
push 0x100245ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1001a418
push 0x100245c4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001a418
push eax
call ebx
push 0x100245d0
push edi
mov dword [0x1002a2dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100245e0
push edi
mov dword [0x1002a2e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100245f4
push edi
mov dword [0x1002a2e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1002a2ec], eax
test eax, eax
je 0x1001a335
push 0x10024610
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1002a2e8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1001a35d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1001a350
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1001a372
push 4
pop eax
jmp 0x1001a41a
cmp dword [ebp - 0x14], esi
je 0x1001a372
push dword [0x1002a2dc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1001a357
mov eax, dword [0x1002a2e8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1001a3d0
cmp dword [0x1002a2ec], edi
je 0x1001a3d0
push eax
call ebx
push dword [0x1002a2ec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1001a3d0
test eax, eax
je 0x1001a3d0
call ecx
test eax, eax
je 0x1001a3c5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1001a3c5
test byte [ebp - 8], 1
jne 0x1001a3d0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1001a400
mov eax, dword [0x1002a2e0]
cmp eax, edi
je 0x1001a3fd
push eax
call ebx
test eax, eax
je 0x1001a3fd
call eax
mov esi, eax
test esi, esi
je 0x1001a3fd
mov eax, dword [0x1002a2e4]
cmp eax, edi
je 0x1001a3fd
push eax
call ebx
test eax, eax
je 0x1001a3fd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1002a2dc]
call ebx
test eax, eax
je 0x1001a418
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1001a41a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000db9e
mov esp, ebp
pop ebp
ret
Function at 0x895058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008951a8
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 0x89507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x89506a
add dl, dl
jne 0x895089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8950dc
xor eax, eax
add dl, dl
jne 0x895096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x89517d
add dl, dl
jne 0x8950a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8950b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8950bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8950c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8950d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x895075
mov eax, 1
add dl, dl
jne 0x8950ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8950f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8950e1
sub eax, ebx
mov ebx, 1
jne 0x895128
mov ecx, 1
add dl, dl
jne 0x89510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x895119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x895105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x895075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x89513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x89514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x895136
cmp eax, 0x7d00
jae 0x89516d
cmp eax, 0x500
jb 0x895168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x895075
cmp eax, 0x7f
ja 0x895170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x895075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x89519e
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 0x895075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x405050
Capabilities:
Create thread

Disassembly:
sub esp, 8
mov eax, dword [0x4390f0]
xor eax, esp
mov dword [esp + 4], eax
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push 0
push 0x404c70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 4]
xor eax, eax
xor ecx, esp
call fcn.0040aff0
add esp, 8
ret

Function at 0x40bab1
Capabilities:
Parse pe header

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

Function at 0x418645
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42db68
push 0x42db60
push str.FlsAlloc
push 0x1e
call fcn.004184b2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418679
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a194]
call esi
jmp 0x41867f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4186c3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42db78
push 0x42db70
push str.FlsGetValue
push 0x20
call fcn.004184b2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4186fa
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a194]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]