joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58bf90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59dab8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x600088]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x600bd4]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
je 0x58bfd8
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x58bff0
call fcn.0058c780
mov eax, dword [0x600bd4]
cmp eax, 0xffffffff
jne 0x58bfeb
xor ebx, ebx
jmp 0x58bff0
push eax
call esi
mov ebx, eax
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
test esi, esi
je 0x58c00f
mov ecx, 1
lea edx, [esi + 4]
mov eax, ecx
lock xadd dword [edx], eax
lock xadd dword [edx], ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
or edi, 0xffffffff
mov byte [ebp - 4], 1
test esi, esi
je 0x58c04a
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x58c04a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x58c04a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebx + 0x14]
call fcn.0058a7f0
push eax
add eax, 0x10
lea ecx, [ebx + 0x14]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.0058ac10
mov esi, dword [ebp - 0x28]
mov byte [ebp - 4], 4
test esi, esi
je 0x58c0c5
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x58c0c5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, edi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x58c0c5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], 6
test esi, esi
je 0x58c0fb
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x58c0fb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], edi
cmp edi, 1
jne 0x58c0fb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x58c580
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x600bd4]
cmp eax, 0xffffffff
je 0x58c5d0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x58c5d0
push esi
mov esi, dword [eax + 0x14]
mov eax, esi
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x58c5c5
mov edx, dword [esp + 8]
cmp dword [ecx + 0x10], edx
jae 0x58c5b2
mov ecx, dword [ecx + 8]
jmp 0x58c5b6
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x58c5a8
cmp eax, esi
je 0x58c5c5
cmp edx, dword [eax + 0x10]
jae 0x58c5c7
mov eax, esi
cmp eax, esi
pop esi
je 0x58c5d0
add eax, 0x14
ret
xor eax, eax
ret
Function at 0x58c780
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59dbd0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x600088]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.0058aed0
mov esi, eax
mov dword [ebp - 4], 0
push 0x58c450
push 0x60d5cc
mov dword [ebp - 0x14], esi
call fcn.0058c110
mov eax, dword [0x600bd4]
add esp, 8
cmp eax, 0xffffffff
je 0x58c7e0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403630
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x180c
call fcn.0040e920
mov eax, dword [0x2b8bc04]
mov ecx, dword [0x2b8bb78]
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x40373b
mov edi, dword [sym.imp.KERNEL32.dll_SetHandleCount]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x2b8bc04], 0x959
jne 0x403721
push 0
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
push 0
push 0
lea ecx, [esp + 0x820]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea edx, [esp + 0x101c]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push 0x402db4
push 0x402de8
call esi
push 0
push 0x402e44
push 0x402e5c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.00403470
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403674
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180c
ret
Function at 0x4061ab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431aac]
jne 0x4061b5
repz ret
jmp fcn.0040b02c

Function at 0x40bf8b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00408988
and dword [ebp - 4], 0
cmp dword [0x4350b0], 0
mov ebx, eax
jne 0x40c03c
push 0x401c2c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c0ed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401c20
push edi
call esi
test eax, eax
je 0x40c0ed
push eax
call fcn.00408916
mov dword [esp], 0x401c10
push edi
mov dword [0x4350b0], eax
call esi
push eax
call fcn.00408916
mov dword [esp], 0x401bfc
push edi
mov dword [0x4350b4], eax
call esi
push eax
call fcn.00408916
mov dword [esp], 0x401be0
push edi
mov dword [0x4350b8], eax
call esi
push eax
call fcn.00408916
pop ecx
mov dword [0x4350c0], eax
test eax, eax
je 0x40c03c
push 0x401bc8
push edi
call esi
push eax
call fcn.00408916
pop ecx
mov dword [0x4350bc], eax
mov eax, dword [0x4350bc]
cmp eax, ebx
je 0x40c094
cmp dword [0x4350c0], ebx
je 0x40c094
push eax
call fcn.00408991
push dword [0x4350c0]
mov esi, eax
call fcn.00408991
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c094
test edi, edi
je 0x40c094
call esi
test eax, eax
je 0x40c08b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c08b
test byte [ebp - 0xc], 1
jne 0x40c094
or dword [ebp + 0x10], 0x200000
jmp 0x40c0cd
mov eax, dword [0x4350b4]
cmp eax, ebx
je 0x40c0cd
push eax
call fcn.00408991
pop ecx
test eax, eax
je 0x40c0cd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c0cd
mov eax, dword [0x4350b8]
cmp eax, ebx
je 0x40c0cd
push eax
call fcn.00408991
pop ecx
test eax, eax
je 0x40c0cd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4350b0]
call fcn.00408991
pop ecx
test eax, eax
je 0x40c0ed
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c0ef
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000bcf3
Capabilities:
Parse pe header

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

Function at 0x10014440
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001446d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001446d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42725c
Capabilities:
Parse pe header

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

Function at 0x4288e1
Capabilities:
Query environment variable

Disassembly:
jmp 0x459c8f
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x459ca3
xor edi, edi
jmp 0x459cda
push ebx
push esi
call fcn.00459b98
sub eax, esi
sar eax, 1
lea ebx, [eax + eax]
push ebx
call fcn.004283b4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x459cca
push ebx
push esi
push edi
call fcn.00426c08
add esp, 0xc
push 0
call fcn.004270ef
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x4289bd
Capabilities:
Terminate process

Disassembly:
jmp 0x452b1b
push 0x17
call fcn.00428850
test eax, eax
je 0x452b2b
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00426d84
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x1005413e
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x10064c04]
push esi
xor esi, esi
test eax, eax
jne 0x1005415e
push esi
push esi
push 1
push esi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov dword [0x10064c04], eax
test eax, eax
je 0x100541b0
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
lock inc dword [0x10064a94]
push 0x10064c0c
push esi
push 0x10064bf8
push 0x100543d0
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [0x10064c08], eax
test eax, eax
je 0x1005419e
push 0xffffffffffffffff
push dword [0x10064c04]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
push dword [0x10064c04]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov dword [0x10064c04], esi
pop esi
ret

Function at 0x1005b775
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmp eax, ebx
je 0x1005bcf6
mov edi, dword [eax + 0x3c]
add edi, eax
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.1005b4fd
xor dl, byte [ebx - 0x48f01d9d]
inc edi
push es
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.1005b4fd
jle 0x1005b796
mov dl, 0x75
mov ax, word [edi + 6]
cmp ax, bx
jbe 0x1005b757
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x1005b751
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x1005b742
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
inc ebp
mov al, 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
mov eax, 0xb945c6c8
cmpsd dword [esi], dword es:[edi]
call fcn.1005b4fd
pop edx
lds ecx, [ebp - 0x57ba721e]
push eax
call fcn.1005b50d
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.1005b4c2
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x1005b7eb
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.1005b4fd
shl dword [ebx + 0x458d8135], 1
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x1005fa2f
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x10065680]
push esi
push edi
test eax, eax
jne 0x1005fa48
call fcn.1005fb04
test eax, eax
je 0x1005fa94
mov eax, dword [0x10065680]
cmp eax, 1
jne 0x1005fa64
push 0xd
push 8
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
test eax, eax
je 0x1005fa94
jmp 0x1005fada
push eax
call dword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPopEntrySList]
mov ecx, eax
test ecx, ecx
je 0x1005fa7d
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, ecx
jmp 0x1005fada
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1005fa98
xor eax, eax
jmp 0x1005fada
mov eax, dword [esi]
push dword [0x10065680]
call dword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPopEntrySList]
mov edi, eax
test edi, edi
je 0x1005fabe
push 0x8000
push 0
push esi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualFree]
mov eax, edi
jmp 0x1005fada
lea edi, [esi + 0xff0]
push esi
push dword [0x10065680]
call dword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1005fac4
mov eax, esi
pop edi
pop esi
ret
Function at 0x7e9769
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov bx, 0xf333
neg dx
jb 0x7e973b
lea esp, [esp + 1]
jmp fcn.007e9757

Function at 0x9ceef0
Capabilities:
Access peb ldr_data

Disassembly:
call fcn.009cd16d
lea esp, [esp + 3]
lea esp, [esp + 1]
mov dword [esp + 0x50], edi
lea esp, [esp + 0x50]
jmp 0x9cef70
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x9cd168
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x9cef3c
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4a4008], 0x8088405
inc edx
mov dword [ebx + 0x4a4008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
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 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
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 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f04c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x48853a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f09b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
jmp 0x41f0ba
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f12c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f115
test esi, esi
jbe 0x41f12c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f107
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f12c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0e4
jmp 0x41f12c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f12c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488541
ret