joyce8/EMBER2024-capa huggingface dataset:
Function at 0x67f917
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg byte [esp + 0xc], al
sub esp, 0x1e
lea esp, [esp + 0x43]
cpuid
mov ax, 0x69d1
lea eax, [edi + ebp]
jmp 0x67f938
lea esp, [esp + 3]
mov edi, eax
pushal
push esp
jmp 0x67f8f1
mov cl, ch
rdtsc
bsf bp, si
xchg cx, dx
sub esp, 0xc
sub esp, 6
jmp 0x67f983
xchg dh, al
mov bp, dx
mov ebp, dword [esp]
mov cl, ch
mov al, 0xc6
rdtsc
jmp 0x67f921
pop edx
shr ch, 5
sub esp, 0x16
btr ebx, edx
cld
mov al, ah
jmp 0x67f9e7
lea ebx, [edx + ebx]
xchg byte [esp + 0xa], bl
clc
xchg bh, cl
mov dh, byte [esp + 0x11]
mov ebx, 0x52e940e8
jmp 0x67f96b
lea ebx, [esi + edi]
xor dl, ch
mov dword [esp + 1], ebp
call fcn.0067f9d0
mov dword [esp + 7], esi
mov word [esp + 1], di
xchg word [esp + 0xd], ax
jmp 0x67fafc
lea edi, [ecx*4]
mov dword [esp + 0xa], eax
xchg ebp, eax
call fcn.0067fa98
Function at 0x4010cc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010de
mov eax, dword [0x40f08b]
shl eax, 2
mov dword [0x40f08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00405298
pop edx
call fcn.00404634
call fcn.0040529c
push 0
call fcn.00406514
pop ecx
push 0x40f034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x40f093], eax
push 0
jmp fcn.0040a2e8
Function at 0x402f90
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 0x402faa
xor eax, eax
jmp 0x40312a
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x402fbe
xor eax, eax
jmp 0x40312a
cmp word [ebx + 0x14], 0xe0
jne 0x402fce
cmp word [ebx + 0x18], 0x10b
je 0x402fd5
xor eax, eax
jmp 0x40312a
mov dword [0x452d60], 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.00402f14
add esp, 8
test eax, eax
jne 0x403000
xor eax, eax
jmp 0x40312a
mov edx, dword [0x452d60]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00402f5c
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x403032
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x40312a
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 0x4030fc
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x4030ee
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x4030e9
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 0x4030e0
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x4030d5
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 0x4030d5
test cl, cl
je 0x4030ca
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x4030d5
add eax, 2
add edx, 2
test cl, cl
jne 0x4030ae
jne 0x4030d5
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x40312a
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 0x403094
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x40306c
jmp 0x403128
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x403120
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x40311c
cmp dword [eax], 0
je 0x40311c
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x40312a
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403103
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403338
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, 0x44f914
rep movsd dword es:[edi], dword [esi]
pop esi
push ebx
call fcn.004032d0
pop ecx
test eax, eax
je 0x403374
push ebx
call fcn.00403318
pop ecx
mov dword [ebp - 0x2cc], 0x94
lea eax, [ebp - 0x2cc]
push eax
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [ebp - 0x2bc], 1
jne 0x4033b2
push ebx
call fcn.004031ac
pop ecx
test eax, eax
jne 0x4033a9
push ebx
call fcn.004031e4
pop ecx
test eax, eax
je 0x4033cf
push ebx
call fcn.00403318
pop ecx
jmp 0x4033cf
push ebx
call fcn.004032f8
pop ecx
test eax, eax
jne 0x4033c8
push ebx
call fcn.0040329c
pop ecx
test eax, eax
je 0x4033cf
push ebx
call fcn.00403318
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 0x40343b
jmp 0x40342a
push str.explorer.exe
lea edx, [ebp - 0x214]
push edx
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x40341c
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 4], ecx
cmp edi, dword [ebp - 0x230]
jne 0x40342a
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x238]
push eax
push ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x4033fe
cmp esi, dword [ebp - 4]
je 0x403460
cmp dword [ebp - 4], 0
je 0x403460
push esi
push 1
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
push 0
push eax
call sub.KERNEL32.DLL_TerminateProcess
jmp 0x40353e
xor edx, edx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0xc], edx
push 0x105
push ecx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x44fab9
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 0x40353e
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 0x40351a
xor esi, esi
lea ebx, [ebp - 0x12cc]
jmp 0x403510
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 0x40350c
lea ecx, [ebp - 0x13d0]
push ecx
lea eax, [ebp - 0x110]
push eax
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x40350c
mov dword [ebp - 0xc], 1
jmp 0x40351a
inc esi
add ebx, 4
mov edx, dword [ebp - 8]
shr edx, 2
cmp esi, edx
jb 0x4034d3
push edi
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0xc], 0
jne 0x40353e
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 0x403598
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 0x4035a9
jne 0x4035a9
jmp fcn.0040352d
cmp esi, 8
jb 0x4035e7
xor ebx, ebx
jmp 0x4035de
mov eax, dword [ebp + 0x10]
mov edx, ebx
add edx, edi
push eax
push edx
call fcn.004035ec
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 0x4035b2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4035ec
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 0x40369f
mov eax, fcn.004012ec
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x40369f
mov eax, fcn.00403848
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x40369f
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 0x40369f
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 0x403667
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 0x4036bc
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 0x403772
mov eax, fcn.004012ec
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403772
mov eax, fcn.004036bc
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403772
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 0x403772
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 0x40373a
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 0x403898
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 0x40394e
mov eax, fcn.004012ec
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x40394e
mov eax, fcn.00403848
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x40394e
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 0x40394e
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 0x403916
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 0x404f8c
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 0x409314
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 0x409376
call fcn.004092c4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0040563c
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.0040563c
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 0x4093d4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4518c8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4094ae
cmp dword [0x4518c4], 0
jne 0x4094ae
cmp dword [0x451ab8], 0
je 0x409468
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.004091c4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40944e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004091c4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40944e
lea ebx, [ebp - 0x84]
jmp 0x40944f
inc ebx
call fcn.00409390
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4094e9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4518cc
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0040563c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4518cf
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4094e9
cmp dword [0x4518c4], 0
je 0x4094c8
cmp dword [0x4518c4], 0xffffffff
je 0x4094e9
push esi
call dword [0x4518c4]
pop ecx
mov eax, dword [0x4518c8]
test eax, eax
je 0x4094e9
cmp dword [0x4518c8], 0xffffffff
je 0x4094e9
cmp byte [eax], 0
je 0x4094e9
push esi
push eax
call fcn.00409314
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409d2c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4537d0], 0
jne 0x409dad
cmp dword [0x4537f0], 0
jne 0x409d5c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4537f0], eax
test eax, eax
jne 0x409d5c
push str.GetEnvironmentStrings_failed
call fcn.00409500
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4537f0]
jmp 0x409d70
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0040563c
pop ecx
mov edi, eax
test eax, eax
jne 0x409d68
lea edi, [ebp + 1]
push edi
call fcn.00404544
pop ecx
mov ebx, eax
mov dword [0x4537d4], ebx
test ebx, ebx
jne 0x409d9a
xor eax, eax
jmp 0x409e70
push edi
mov edx, dword [0x4537f0]
push edx
push ebx
call fcn.00405528
add esp, 0xc
jmp 0x409dcd
xor esi, esi
mov ebx, dword [0x4537d0]
jmp 0x409dc7
push eax
call fcn.0040563c
pop ecx
test eax, eax
jne 0x409dc3
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x409db7
lea ebx, [esi + 4]
push 4
mov dword [0x4537d8], ebx
inc ebx
push ebx
call fcn.004040a8
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x409df0
xor eax, eax
jmp 0x409e70
cmp dword [0x4537d0], 0
jne 0x409e21
xor esi, esi
mov ebx, dword [0x4537d4]
mov eax, dword [esp]
mov ebp, eax
jmp 0x409e12
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0040563c
pop ecx
mov edi, eax
test eax, eax
jne 0x409e08
jmp 0x409e52
xor esi, esi
mov ebx, dword [0x4537d0]
mov eax, dword [esp]
mov edi, eax
jmp 0x409e4c
push eax
call fcn.0040563c
pop ecx
test eax, eax
je 0x409e41
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x409e45
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x409e30
mov eax, dword [0x4537d0]
test eax, eax
je 0x409e62
push eax
call fcn.00404554
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4537d0], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x452528
sub eax, eax
test esi, esi
je 0x40c6d0
sub eax, 1
test ecx, ecx
je 0x40c6ce
test esi, 3
je 0x40c62e
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40c613
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x40c6b5
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 0x40c63c
mov ecx, edx
test ecx, ecx
je 0x40c6ce
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40c6bb
not eax
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x40c9b4
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.0040ca37
jae 0x40c9c2
xor ecx, ecx
call fcn.0040ca37
jae 0x40c9f1
xor eax, eax
call fcn.0040ca37
jae 0x40ca01
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0040ca37
adc al, al
jae 0x40c9e3
jne 0x40ca2d
stosb byte es:[edi], al
jmp 0x40c9c5
call fcn.0040ca43
sub ecx, ebx
jne 0x40ca0a
call fcn.0040ca41
jmp 0x40ca29
lodsb al, byte [esi]
shr eax, 1
je 0x40ca53
adc ecx, ecx
jmp 0x40ca26
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.0040ca41
cmp eax, 0x7d00
jae 0x40ca26
cmp ah, 5
jae 0x40ca27
cmp eax, 0x7f
ja 0x40ca28
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 0x40c9c5
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x40cd80
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 0x40cdef
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 0x40cdb7
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 0x42f13a
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0042f2ea
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x42f238
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x42f1db
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x42f21e
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x42f1f2
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x42f20d
test al, 0x40
je 0x42f204
mov ecx, dword [edi + 0x20]
jmp 0x42f20b
test al, 0x80
je 0x42f21e
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x42f21e
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x42f1aa
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x405615
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b6b0
cmp edx, dword [eax]
je 0x405637
add eax, 8
inc ecx
cmp eax, 0x40b740
jl 0x405628
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b6b0]
jne 0x405765
mov eax, dword [0x40ba6c]
cmp eax, 1
je 0x40573f
test eax, eax
jne 0x405668
cmp dword [0x4095d4], 1
je 0x40573f
cmp edx, 0xfc
je 0x405765
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40569f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004032c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004033b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4056e2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004033b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407608
push edi
call fcn.00406330
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004032c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004032d0
lea eax, [ebp - 0xa0]
push 0x4075e8
push eax
call fcn.004032d0
push dword [esi + 0x40b6b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004032d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004062a7
add esp, 0x2c
pop edi
jmp 0x405765
lea eax, [ebp + 8]
lea esi, [esi + 0x40b6b4]
push 0
push eax
push dword [esi]
call fcn.004033b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40f397
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov ebx, ecx
push eax
call dword [0x100751dc]
mov edi, dword [esp + 0x14]
mov esi, eax
push 3
push edi
push esi
call fcn.0044f717
add esp, 0xc
mov dword [ebx + 0x6d0], eax
test eax, eax
jne 0x40f3e7
test edi, edi
jbe 0x40f3d5
mov cl, byte [eax + esi]
xor cl, 0x50
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x40f3c7
push 3
push edi
push esi
call fcn.0044f717
add esp, 0xc
mov dword [ebx + 0x6d0], eax
mov eax, dword [ebx + 0x6d0]
xor ecx, ecx
test eax, eax
setne cl
pop edi
mov dword [ebx + 0x38], eax
pop esi
mov eax, ecx
pop ebx
ret 8