joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f1c
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x402f36
xor eax, eax
jmp 0x4030b6
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x402f4a
xor eax, eax
jmp 0x4030b6
cmp word [ebx + 0x14], 0xe0
jne 0x402f5a
cmp word [ebx + 0x18], 0x10b
je 0x402f61
xor eax, eax
jmp 0x4030b6
mov dword [0x452d40], edi
mov ebx, dword [edi + 0x3c]
mov esi, edi
add ebx, esi
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
push ebx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00402ea0
add esp, 8
test eax, eax
jne 0x402f8c
xor eax, eax
jmp 0x4030b6
mov edx, dword [0x452d40]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00402ee8
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x402fbe
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x4030b6
add ebx, esi
mov edx, dword [ebx + 0x24]
add edx, esi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x20]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x10
test cx, cx
je 0x403088
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x40307a
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x403075
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 0x1c], edx
jmp 0x40306c
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x403061
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x403061
test cl, cl
je 0x403056
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x403061
add eax, 2
add edx, 2
test cl, cl
jne 0x40303a
jne 0x403061
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x4030b6
inc dword [ebp - 0x14]
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 2
mov edx, dword [ebx + 0x18]
dec edx
cmp edx, dword [ebp - 0x14]
jae 0x403020
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x402ff8
jmp 0x4030b4
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x4030ac
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x4030a8
cmp dword [eax], 0
je 0x4030a8
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x4030b6
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x40308f
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4031c8
Capabilities:
Query service status

Disassembly:
push ebx
add esp, 0xffffffe4
push 0xf003f
push str.ServicesActive
push 0
call sub.ADVAPI32.DLL_OpenSCManagerA
test eax, eax
jne 0x4031e5
xor eax, eax
jmp 0x403222
push 0xf01ff
push str.NTice
push eax
call sub.ADVAPI32.DLL_OpenServiceA
mov ebx, eax
push esp
push ebx
call sub.ADVAPI32.DLL_QueryServiceStatus
test eax, eax
jne 0x40320c
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
xor eax, eax
jmp 0x403222
cmp dword [esp + 4], 4
jne 0x403220
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, 1
jmp 0x403222
xor eax, eax
add esp, 0x1c
pop ebx
ret

Function at 0x403284
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x40329d
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4032a4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call sub.KERNEL32.DLL_GetCurrentProcessId
push eax
push 1
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
push 0
push eax
call sub.KERNEL32.DLL_TerminateProcess
pop ebp
ret
Function at 0x4032c4
Capabilities:
Enumerate process modules
Enumerate processes
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
mov ecx, 0x4a
push eax
add esp, 0xfffffc30
push ebx
push esi
push edi
lea edi, [ebp - 0x238]
mov ebx, dword [ebp + 8]
push esi
mov esi, 0x44f8f4
rep movsd dword es:[edi], dword [esi]
pop esi
push ebx
call fcn.0040325c
pop ecx
test eax, eax
je 0x403300
push ebx
call fcn.004032a4
pop ecx
mov dword [ebp - 0x2cc], 0x94
lea eax, [ebp - 0x2cc]
push eax
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [ebp - 0x2bc], 1
jne 0x40333e
push ebx
call fcn.00403138
pop ecx
test eax, eax
jne 0x403335
push ebx
call fcn.00403170
pop ecx
test eax, eax
je 0x40335b
push ebx
call fcn.004032a4
pop ecx
jmp 0x40335b
push ebx
call fcn.00403284
pop ecx
test eax, eax
jne 0x403354
push ebx
call fcn.00403228
pop ecx
test eax, eax
je 0x40335b
push ebx
call fcn.004032a4
pop ecx
mov dword [ebp - 0x238], 0x128
call sub.KERNEL32.DLL_GetCurrentProcessId
mov edi, eax
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [ebp - 0x238]
push eax
push ebx
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x4033c7
jmp 0x4033b6
push str.explorer.exe
lea edx, [ebp - 0x214]
push edx
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x4033a8
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 4], ecx
cmp edi, dword [ebp - 0x230]
jne 0x4033b6
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x238]
push eax
push ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x40338a
cmp esi, dword [ebp - 4]
je 0x4033ec
cmp dword [ebp - 4], 0
je 0x4033ec
push esi
push 1
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
push 0
push eax
call sub.KERNEL32.DLL_TerminateProcess
jmp 0x4034ca
xor edx, edx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0xc], edx
push 0x105
push ecx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x44fa99
lea eax, [ebp - 0x110]
push eax
call sub.KERNEL32.DLL_lstrcatA
push str.EXPLORER.EXE
lea edx, [ebp - 0x110]
push edx
call sub.KERNEL32.DLL_lstrcatA
push esi
push 0
push 0x410
call sub.KERNEL32.DLL_OpenProcess
mov edi, eax
test edi, edi
je 0x4034ca
lea eax, [ebp - 8]
lea edx, [ebp - 0x12cc]
push eax
push 0x1000
push edx
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4034a6
xor esi, esi
lea ebx, [ebp - 0x12cc]
jmp 0x40349c
push 0x104
lea eax, [ebp - 0x13d0]
push eax
mov edx, dword [ebx]
push edx
push edi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x403498
lea ecx, [ebp - 0x13d0]
push ecx
lea eax, [ebp - 0x110]
push eax
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403498
mov dword [ebp - 0xc], 1
jmp 0x4034a6
inc esi
add ebx, 4
mov edx, dword [ebp - 8]
shr edx, 2
cmp esi, edx
jb 0x40345f
push edi
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0xc], 0
jne 0x4034ca
mov ecx, dword [ebp - 4]
push ecx
push 1
push 0x1f0fff
dec dword [edi]
pop ds
add al, ch
push es
scasd eax, dword es:[edi]
add byte [eax], al
Function at 0x403524
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
je 0x403535
jne 0x403535
jmp fcn.004034b9
cmp esi, 8
jb 0x403573
xor ebx, ebx
jmp 0x40356a
mov eax, dword [ebp + 0x10]
mov edx, ebx
add edx, edi
push eax
push edx
call fcn.00403578
add esp, 8
movsx ecx, word [ebp + 0xc]
mov eax, 0x64
sub eax, ecx
imul esi
mov ecx, 0x64
xor edx, edx
div ecx
add ebx, eax
add ebx, 8
mov eax, esi
sub eax, 8
cmp ebx, eax
jbe 0x40353e
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x403578
Capabilities:
Check for software breakpoints
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.0040163c
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x40362b
mov eax, fcn.004012ec
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x40362b
mov eax, fcn.004037d4
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x40362b
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
xor ebx, ebx
mov edi, 0x20
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x40362b
add ebx, 0x9e3779b9
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
add edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
add ecx, eax
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x4035f3
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403648
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.0040163c
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x4036fe
mov eax, fcn.004012ec
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x4036fe
mov eax, fcn.00403648
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x4036fe
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x4036fe
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x4036c6
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403824
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.0040163c
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x4038da
mov eax, fcn.004012ec
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x4038da
mov eax, fcn.004037d4
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x4038da
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x4038da
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x4038a2
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404f18
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x4092a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x409302
call fcn.00409250
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004055c8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004055c8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x409360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4518a8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x40943a
cmp dword [0x4518a4], 0
jne 0x40943a
cmp dword [0x451a98], 0
je 0x4093f4
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00409150
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4093da
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00409150
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4093da
lea ebx, [ebp - 0x84]
jmp 0x4093db
inc ebx
call fcn.0040931c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x409475
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4518ac
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004055c8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4518af
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x409475
cmp dword [0x4518a4], 0
je 0x409454
cmp dword [0x4518a4], 0xffffffff
je 0x409475
push esi
call dword [0x4518a4]
pop ecx
mov eax, dword [0x4518a8]
test eax, eax
je 0x409475
cmp dword [0x4518a8], 0xffffffff
je 0x409475
cmp byte [eax], 0
je 0x409475
push esi
push eax
call fcn.004092a0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409cb8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4537b0], 0
jne 0x409d39
cmp dword [0x4537d0], 0
jne 0x409ce8
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4537d0], eax
test eax, eax
jne 0x409ce8
push str.GetEnvironmentStrings_failed
call fcn.0040948c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4537d0]
jmp 0x409cfc
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004055c8
pop ecx
mov edi, eax
test eax, eax
jne 0x409cf4
lea edi, [ebp + 1]
push edi
call fcn.004044d0
pop ecx
mov ebx, eax
mov dword [0x4537b4], ebx
test ebx, ebx
jne 0x409d26
xor eax, eax
jmp 0x409dfc
push edi
mov edx, dword [0x4537d0]
push edx
push ebx
call fcn.004054b4
add esp, 0xc
jmp 0x409d59
xor esi, esi
mov ebx, dword [0x4537b0]
jmp 0x409d53
push eax
call fcn.004055c8
pop ecx
test eax, eax
jne 0x409d4f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x409d43
lea ebx, [esi + 4]
push 4
mov dword [0x4537b8], ebx
inc ebx
push ebx
call fcn.00404034
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x409d7c
xor eax, eax
jmp 0x409dfc
cmp dword [0x4537b0], 0
jne 0x409dad
xor esi, esi
mov ebx, dword [0x4537b4]
mov eax, dword [esp]
mov ebp, eax
jmp 0x409d9e
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004055c8
pop ecx
mov edi, eax
test eax, eax
jne 0x409d94
jmp 0x409dde
xor esi, esi
mov ebx, dword [0x4537b0]
mov eax, dword [esp]
mov edi, eax
jmp 0x409dd8
push eax
call fcn.004055c8
pop ecx
test eax, eax
je 0x409dcd
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x409dd1
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x409dbc
mov eax, dword [0x4537b0]
test eax, eax
je 0x409dee
push eax
call fcn.004044e0
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4537b0], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40c57c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x452508
sub eax, eax
test esi, esi
je 0x40c65c
sub eax, 1
test ecx, ecx
je 0x40c65a
test esi, 3
je 0x40c5ba
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40c59f
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x40c641
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40c5c8
mov ecx, edx
test ecx, ecx
je 0x40c65a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40c647
not eax
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x40c940
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0040c9c3
jae 0x40c94e
xor ecx, ecx
call fcn.0040c9c3
jae 0x40c97d
xor eax, eax
call fcn.0040c9c3
jae 0x40c98d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0040c9c3
adc al, al
jae 0x40c96f
jne 0x40c9b9
stosb byte es:[edi], al
jmp 0x40c951
call fcn.0040c9cf
sub ecx, ebx
jne 0x40c996
call fcn.0040c9cd
jmp 0x40c9b5
lodsb al, byte [esi]
shr eax, 1
je 0x40c9df
adc ecx, ecx
jmp 0x40c9b2
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.0040c9cd
cmp eax, 0x7d00
jae 0x40c9b2
cmp ah, 5
jae 0x40c9b3
cmp eax, 0x7f
ja 0x40c9b4
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40c951
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x40cd0c
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, dword [ebx]
mov eax, dword [eax]
mov edx, dword [edx + 4]
mov dword [ebp - 4], esi
mov esi, dword [ebx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, 0x20
jmp 0x40cd7b
add ecx, 0x9e3779b9
mov esi, edx
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
add eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
add edx, esi
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x40cd43
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x417757
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4bfb88
call fcn.00483c30
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebx], 0x4c86f8
and dword [ebp - 4], 0
lea esi, [ebx + 8]
mov ecx, esi
call fcn.00482cac
mov dword [esi], 0x4c9610
mov esi, str.Arial
lea edi, [ebp - 0x18]
mov dword [ebx], 0x4c95fc
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x18]
movsw word es:[edi], word [esi]
and byte [ebx + 0x4c], 0
and byte [ebx + 0x4d], 0
and byte [ebx + 0x4e], 0
push eax
lea eax, [ebx + 0x54]
xor esi, esi
push eax
mov byte [ebx + 0x4f], 0x86
mov dword [ebx + 0x3c], esi
mov dword [ebx + 0x38], 0xfffffff4
mov dword [ebx + 0x40], esi
mov dword [ebx + 0x44], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 9
mov ecx, dword [ebp - 0xc]
pop eax
mov dword [ebx + 4], esi
push 1
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
pop eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x28], eax
pop edi
mov dword [ebx + 0x30], 0x32
mov dword [ebx + 0x34], 0x64
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x423daa
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x4c060e
call fcn.00483c30
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4c86f8
xor edi, edi
lea ecx, [esi + 8]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_2
fldz
mov dword [esi + 0x18], edi
mov byte [ebp - 4], 2
fstp qword [esi + 0x10]
fldz
mov dword [esi + 0x24], edi
fstp qword [esi + 0x1c]
mov dword [esi + 0x30], edi
lea edi, [esi + 0x94]
fldz
mov ecx, edi
fstp qword [esi + 0x28]
call fcn.00482cac
push 0xe
mov dword [edi], 0x4c9974
pop ecx
lea edi, [esi + 0xa8]
push 1
mov dword [esi], 0x4c9960
pop eax
rep stosd dword es:[edi], eax
push 0x18
lea edi, [esi + 0x34]
pop ecx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x43ffb3
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, 0x4c2149
call fcn.00483c30
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x4c86f8
xor edi, edi
lea ecx, [esi + 0xc]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString_2
push 1
lea ecx, [esi + 0x1c]
pop ebx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_2
fldz
mov dword [esi + 0x2c], edi
lea ecx, [esi + 0x48]
fstp qword [esi + 0x24]
fldz
mov dword [esi + 0x38], edi
mov byte [ebp - 4], 3
fstp qword [esi + 0x30]
fldz
mov dword [esi + 0x44], edi
fstp qword [esi + 0x3c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString_2
push 0x4fb7c4
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 0xb
mov dword [esi], 0x4caf48
call fcn.00482d54
fldz
lea eax, [ebp - 0x2c]
mov dword [esi + 8], ebx
fstp qword [ebp - 0x20]
push eax
mov dword [esi + 4], ebx
mov dword [ebp - 0x18], edi
call sub.MFC42.DLL_COleDateTime::GetTickCount
fld qword [eax]
lea ecx, [ebp - 0x20]
fstp qword [ebp - 0x20]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
call sub.MFC42.DLL_COleDateTime::GetDay
lea ecx, [ebp - 0x20]
mov ebx, eax
call sub.MFC42.DLL_COleDateTime::GetMonth
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], eax
call sub.MFC42.DLL_COleDateTime::GetYear
push edi
push edi
push edi
push ebx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
push eax
call sub.MFC42.DLL_COleDateTime::SetDateTime
fld qword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
fstp qword [esi + 0x24]
mov dword [esi + 0x2c], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret