joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403cff
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, 0x80000
cmp esi, 0x7ff80000
mov ebx, edx
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
cmp byte [esi], 0xe9
jne 0x403d64
lea ecx, [esi + 5]
add ecx, dword [esi + 1]
cmp ecx, esi
jae 0x403d53
cmp ecx, 0x80000000
lea eax, [ecx + 0x7ff80000]
mov edi, 0xfff80000
cmovb edi, eax
jmp 0x403d64
cmp ecx, 0x7ff80000
lea eax, [ecx - 0x7ff80000]
mov ebx, edx
cmova ebx, eax
mov edx, dword [0x44dea8]
mov eax, dword [0x44dea0]
test edx, edx
jne 0x403d7f
test eax, eax
je 0x403d92
mov edx, eax
mov dword [0x44dea8], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x403d92
cmp ecx, ebx
jb 0x403d92
cmp ecx, edi
jbe 0x403e16
mov edx, eax
test eax, eax
jmp 0x403db0
test edx, edx
je 0x403dab
mov eax, dword [edx + 8]
test eax, eax
je 0x403dab
cmp eax, ebx
jb 0x403dab
cmp eax, edi
jbe 0x403e16
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x44dea8], edx
jne 0x403d98
and esi, 0xffff0000
mov ecx, ebx
mov edx, esi
call fcn.00403c57
mov edx, eax
test edx, edx
jne 0x403ddc
mov edx, edi
mov ecx, esi
call fcn.00403baf
mov edx, eax
test edx, edx
je 0x403e3b
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x44dea0]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x44dea8], edx
mov dword [0x44dea0], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x403e06
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x403e3b
cmp esi, edi
ja 0x403e3b
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.0041e010
add esp, 0xc
mov eax, esi
jmp 0x403e3d
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x403f16
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x44c074]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x44deac], eax
je 0x403f3d
mov eax, 0x10dd
jmp 0x403fcb
push ebx
push esi
push edi
mov edi, dword [0x44de90]
xor ebx, ebx
test edi, edi
je 0x403f8a
lea eax, [ebp - 8]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [edi + 4], ebx
jne 0x403f78
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x403f78
call fcn.00403e41
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push 0x18
push edi
call fcn.0041ac94
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x403f4c
mov dword [0x44de90], ebx
call fcn.00403b57
mov edi, dword [0x44de98]
test edi, edi
je 0x403fba
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push 8
push edi
call fcn.0041ac94
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x403f9f
pop edi
pop esi
mov dword [0x44de98], ebx
xor eax, eax
mov dword [0x44deac], ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ac4b
mov esp, ebp
pop ebp
ret
Function at 0x4042a5
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x44deb0]
push edi
mov edi, ecx
test eax, eax
jne 0x404315
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp edi, eax
jne 0x4042bf
xor eax, eax
pop edi
ret
push esi
push 8
call fcn.0041ac5c
mov esi, eax
pop ecx
test esi, esi
jne 0x4042d3
push 8
pop edi
jmp 0x4042f1
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x404302
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push 8
push esi
call fcn.0041ac94
pop ecx
pop ecx
and dword [0x44dea4], 0
mov eax, edi
mov dword [0x44deb0], edi
jmp 0x404314
mov eax, dword [0x44de98]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
mov dword [0x44de98], esi
pop esi
pop edi
ret
Function at 0x404597
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x44c074]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x44deac], eax
je 0x4045c2
mov eax, 0x10dd
jmp 0x4046ae
mov eax, dword [0x44deb0]
test eax, eax
jne 0x4046ae
test edi, edi
jne 0x4045db
push 6
pop eax
jmp 0x4046ae
cmp dword [edi], 0
jne 0x4045f3
push 6
pop eax
mov dword [0x44deb0], eax
mov dword [0x44dea4], edi
jmp 0x4046ae
push ebx
push esi
push 0x18
call fcn.0041ac5c
mov esi, eax
pop ecx
test esi, esi
jne 0x40460b
push 8
pop ebx
jmp 0x404690
mov ecx, dword [edi]
call fcn.00403e66
mov ecx, 0x403860
mov ebx, eax
call fcn.00403e66
movzx ecx, byte [ebx + 0x36]
mov edx, eax
mov eax, dword [ebx + 0x40]
sub eax, ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x404684
cmp ecx, 0x1e
ja 0x404684
cmp dword [ebx + 0x44], edx
jne 0x404684
and dword [ebp - 8], 0
lea edx, [ebp - 8]
push edx
push 0x40
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40465a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x404690
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xc], eax
mov dword [esi + 4], 1
mov dword [esi + 8], edi
mov dword [esi + 0x10], ebx
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], eax
mov eax, dword [0x44de90]
mov dword [esi], eax
xor eax, eax
mov dword [0x44de90], esi
jmp 0x4046ac
cmp dword [0x44de94], 0
push 9
pop ebx
jne 0x404696
mov dword [0x44deb0], ebx
test esi, esi
je 0x4046a4
push 0x18
push esi
call fcn.0041ac94
pop ecx
pop ecx
mov dword [0x44dea4], edi
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0041ac4b
mov esp, ebp
pop ebp
ret
Function at 0x405410
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x44c074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00422c9a
mov ebx, dword [ebp + 0x10]
add esp, 4
mov eax, ebx
sub eax, 0x113
je 0x405589
sub eax, 0x587
je 0x40555e
sub eax, 0x6f
jne 0x405565
test esi, esi
je 0x4055a0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add eax, 0x1326468
cmp dword [ebp + 0x14], eax
jne 0x4055a0
movaps xmm0, xmmword [str.CheckRemoteDebugABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
xor eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov word [ebp - 0x14], ax
mov byte [ebp - 0x2e], al
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4c], 0
push eax
mov dword [ebp - 0x2c], 0x65004b
mov dword [ebp - 0x28], 0x6e0072
mov dword [ebp - 0x24], 0x6c0065
mov dword [ebp - 0x20], 0x320033
mov dword [ebp - 0x1c], 0x64002e
mov dword [ebp - 0x18], 0x6c006c
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0x50726567
mov dword [ebp - 0x34], 0x65736572
mov word [ebp - 0x30], 0x746e
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x405501
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 0x4c], 0
jne 0x40553f
call fcn.00422c79
cdq
mov ecx, 0x64
idiv ecx
cmp edx, 0xa
jge 0x40553f
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x74697845
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xc], 0x636f7250
push eax
mov dword [ebp - 8], 0x737365
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x405554
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
jmp 0x4055a0
mov ecx, edi
call fcn.004057f0
push esi
push dword [ebp + 0x14]
push ebx
push dword [ebp - 0x4c]
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ac4b
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 0x14]
cmp esi, 0x64
jne 0x405598
mov ecx, edi
call fcn.004055c0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ac4b
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4055c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438a78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x44c074]
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 ebx, ecx
lea eax, [ebx + 0x28]
mov dword [ebp - 0x18], 1
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x1c]
mov dword [ebp - 4], 0
test eax, 0xfffffffc
je 0x4056c0
mov dl, byte [ebp - 0x14]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
mov byte [ebp - 0x14], dl
lea edx, [ebp - 0x14]
push edx
mov edx, eax
sub edx, ecx
sar edx, 2
push edx
push eax
push ecx
call fcn.00405130
mov eax, dword [ebx + 0x1c]
add esp, 0x10
mov eax, dword [eax]
mov esi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
jb 0x405670
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
cmp eax, edi
jbe 0x4056a5
mov eax, dword [ebx + 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add eax, 0x1326468
push eax
push 0x709
push dword [ebx + 0xc]
call esi
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
lea edx, [eax + 4]
sub ecx, edx
push ecx
push edx
push eax
call fcn.0041cfe0
add esp, 0xc
add dword [ebx + 0x20], 0xfffffffc
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x1c]
test eax, 0xfffffffc
je 0x4056c0
push 0
push 0
push 0x69a
push dword [ebx + 0xc]
call esi
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.0041ac4b
mov esp, ebp
pop ebp
ret
Function at 0x4057f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438a78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x44c074]
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 ebx, ecx
lea eax, [ebx + 0x28]
mov dword [ebp - 0x18], 1
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x1c]
mov dword [ebp - 4], 0
test eax, 0xfffffffc
je 0x4058f3
mov dl, byte [ebp - 0x14]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
mov byte [ebp - 0x14], dl
lea edx, [ebp - 0x14]
push edx
mov edx, eax
sub edx, ecx
sar edx, 2
push edx
push eax
push ecx
call fcn.00405130
mov eax, dword [ebx + 0x1c]
add esp, 0x10
mov eax, dword [eax]
mov esi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
jb 0x4058ba
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, edi
ja 0x4058ba
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov esi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
lea ecx, [esi + edi]
sub ecx, eax
push ecx
push 0x64
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x4058f3
mov eax, dword [ebx + 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add eax, 0x1326468
push eax
push 0x709
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
lea edx, [eax + 4]
sub ecx, edx
push ecx
push edx
push eax
call fcn.0041cfe0
add esp, 0xc
add dword [ebx + 0x20], 0xfffffffc
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.0041ac4b
mov esp, ebp
pop ebp
ret

Function at 0x4059f0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x44c074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x405a49
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x405a29
cmp dword [ebp - 8], 0x103
jne 0x405a49
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405a49
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ac4b
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [esi + 8]
push eax
push 4
push esi
push 0x405a90
push 0
push 0
call fcn.00422e00
xor ebx, ebx
mov dword [esi + 4], eax
add esp, 0x18
test eax, eax
setne bl
test eax, eax
je 0x405a77
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
xor ecx, ebp
pop esi
call fcn.0041ac4b
mov esp, ebp
pop ebp
ret
Function at 0x406d20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
pop ebp
ret
Function at 0x4078a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x4078b7
pop dword [ebp - 0x30]
mov eax, 0x4078b7
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3b644
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x3e51
mov ebx, eax
mov esi, 0x75e6cb9c
add esi, 0x8a5c8864
add esi, dword [ebp - 0x30]
mov edi, 0x907c5a64
add edi, 0x1065dfe3
xor dword [ebp - 4], eax
mov edx, dword [esi]
xor dword [ebp - 0x18], 0xc78ac380
xor edx, edi
add dword [ebp - 0x18], edi
mov dword [ebx], edx
sub dword [ebp - 0x2c], 0x90e951ab
add ebx, 0xb4be4517
sub ebx, 0xb4be4513
add esi, 4
loop 0x407906
add eax, 0xec17
xor ebx, ebx
add ebx, eax
add eax, 0x4a0ffaa4
sub eax, 0x4a0ffa9f
mov ecx, 0xb1c66450
sub ecx, 0xb1866450
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x4a42b0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a42e8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a233d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a2315
jmp 0x4a42f4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a59a2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a59e4
call fcn.004ab5e5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a59e4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a59db
xor eax, eax
jmp 0x4a59ec
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a59f2
pop edi
pop esi
pop ebx
ret 4

Function at 0x4abb15
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4abb43
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4abb61
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004aba7b
jmp 0x4abb61
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4abb61
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004aba7b
test edi, edi
mov eax, edi
jne 0x4abb4b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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

Disassembly:
call 0xa3c1a8
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 0xa3c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa3c06a
add dl, dl
jne 0xa3c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa3c0dc
xor eax, eax
add dl, dl
jne 0xa3c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa3c17d
add dl, dl
jne 0xa3c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa3c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa3c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa3c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa3c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa3c075
mov eax, 1
add dl, dl
jne 0xa3c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa3c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa3c0e1
sub eax, ebx
mov ebx, 1
jne 0xa3c128
mov ecx, 1
add dl, dl
jne 0xa3c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa3c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa3c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa3c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa3c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa3c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa3c136
cmp eax, 0x7d00
jae 0xa3c16d
cmp eax, 0x500
jb 0xa3c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa3c075
cmp eax, 0x7f
ja 0xa3c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa3c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa3c19e
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 0xa3c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x406798
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409088
test esi, esi
jne 0x4067ce
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409210
jmp 0x4067ec
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004066dc
mov edi, eax
test esi, esi
je 0x4067ec
cmp dword [ebx], 0
je 0x4067ec
dec esi
jmp 0x4067d5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x407df0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004081c8
mov byte [esp], al
cmp byte [esp], 0
jne 0x407f70
test edi, edi
je 0x407f70
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407eb0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x407e8b
cmp edi, 0xffffffff
je 0x407e4f
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407e4f
mov byte [esp], 0
jmp 0x407f70
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407e8b
test ebx, ebx
jne 0x407e81
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x407e81
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x407f70
call 0x4082e8
dec ebp
test ebp, ebp
jg 0x407e34
cmp edi, 0xffffffff
je 0x407eb0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407eae
mov byte [esp], 0
jmp 0x407f70
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407dfe
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407eb0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00407fdc
mov edx, eax
mov ebx, dword [0x63b8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407f14
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407f12
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407f14
xor edi, edi
cmp byte [esp], 0
je 0x407f3a
mov ebx, dword [esi]
test bl, 1
jne 0x407f50
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407f1a
mov byte [esp + 1], 1
jmp 0x407f50
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407f3a
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407ec7
cmp byte [esp], 0
je 0x407f70
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x408d24
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x63b058], 0
je 0x408d8b
cmp word [0x63b344], 0xd7b2
jne 0x408d4d
cmp dword [0x63b34c], 0
jbe 0x408d4d
mov eax, 0x63b340
call dword [0x63b35c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x408db8
call fcn.004098d4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x632032], 0
jne 0x408da7
push 0
push 0x6329ea
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408f48
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x632034], 0
je 0x408f73
mov edx, edi
mov eax, esi
call dword [0x632034]
mov ebx, eax
jmp 0x408f84
mov eax, 8
call fcn.00406418
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x63b059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x408f10
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x408fb4
mov eax, ebx
call fcn.00406434
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc