joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4036b6
Capabilities:
Terminate process

Disassembly:
jmp 0x455334
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x455345
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405a24
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4037ce
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a16e4
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a16f5
pop esi
ret
push ebx
push edi
push esi
call fcn.004a15cb
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004040c5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a171d
push ebx
push esi
push edi
call fcn.00405812
add esp, 0xc
push 0
call fcn.0040636b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4058d5
Capabilities:
Parse pe header

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

Function at 0x4422d3
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0040382d
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x442312
sub eax, 1
je 0x44230d
sub eax, 1
je 0x442309
xor eax, eax
leave
ret
push 3
jmp 0x442314
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x4894f7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x489536
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x489536
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x489536
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x489536
cmp dword [ecx + 0x74], 0xe
jbe 0x489536
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x49b51a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401df7
mov eax, dword [0x4d3040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405f6a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49b55c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49b6b8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004060dc
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4d6870]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00403341
mov ecx, dword [esi*4 + 0x4d6870]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x49b6b1
cmp eax, dword [ecx + edi + 0x24]
jne 0x49b6b1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49b6b1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403341
add esp, 0x14
test edx, edx
jl 0x49b6b1
jg 0x49b627
test eax, eax
jb 0x49b6b1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49b6b1
jl 0x49b641
cmp dword [ebp - 0x1008], eax
ja 0x49b6b1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49b65f
test ebx, ebx
je 0x49b698
cmp ecx, edi
jae 0x49b698
mov al, byte [ecx]
cmp al, 0xd
jne 0x49b679
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49b685
cmp byte [ecx + 1], 0xa
jne 0x49b685
inc ecx
jmp 0x49b685
movzx eax, al
movsx eax, byte [eax + 0x4d33a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49b65f
cmp edx, ebx
jne 0x49b65f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49b6b6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040310c
leave
ret
Function at 0x49bdf7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4d6870]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49be37
cmp byte [ebx], 0xa
jne 0x49be37
or byte [edi + eax + 0x28], 4
jmp 0x49be3c
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x49bf3b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x49bf1e
inc eax
cmp dl, 0xd
je 0x49be68
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x49be8e
cmp eax, ecx
jae 0x49be9c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x49be50
jmp 0x49bf3b
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49bf19
cmp dword [ebp - 0x10], 0
je 0x49bf19
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4d6870]
test byte [eax + edi + 0x28], 0x48
je 0x49bef3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49bede
mov byte [esi], dl
jmp 0x49beef
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d6870]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49bf3b
cmp byte [ebp - 1], 0xa
jne 0x49bf02
cmp esi, ebx
jne 0x49bf02
mov byte [esi], 0xa
jmp 0x49bf3a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040196a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49bf3b
mov byte [esi], 0xd
jmp 0x49bf3a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4d6870]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49bf38
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49bf3b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49bf97
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4d6870]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49bfdd
cmp word [ebx], dx
jne 0x49bfdd
or byte [eax + edi + 0x28], 4
jmp 0x49bfe2
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x49c145
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x49c125
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x49c023
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49c059
cmp eax, edx
jae 0x49c067
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x49bffe
jmp 0x49c145
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49c120
cmp dword [ebp - 0x18], 0
je 0x49c120
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4d6870]
test byte [eax + edi + 0x28], 0x48
je 0x49c0f6
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x49c0ba
mov word [esi], cx
jmp 0x49c0f1
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4d6870]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4d6870]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4d6870]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x49c145
pop eax
cmp word [ebp - 4], ax
jne 0x49c106
cmp esi, ebx
jne 0x49c106
mov word [esi], ax
jmp 0x49c142
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040196a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x49c145
push 0xd
pop eax
jmp 0x49c101
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4d6870]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x49c13f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x49c145
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49fcdd
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d3040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49fd28
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a0152
test al, al
jne 0x49fd22
sub edx, 2
cmp edx, edi
jne 0x49fd08
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49fd4a
lea eax, [edi + 2]
cmp edx, eax
je 0x49fd4a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049f8d6
add esp, 0x10
jmp 0x49fe44
push esi
lea ecx, [ebp - 0x255]
call fcn.004a0152
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49fd8d
push dword [ebp - 0x25c]
jmp 0x49fd3a
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49fdca
cmp word [ebp - 0x226], 0
je 0x49fdeb
cmp word [ebp - 0x226], ax
jne 0x49fdca
cmp word [ebp - 0x224], 0
je 0x49fdeb
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049f8d6
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49fe37
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49fda4
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49fe1f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49fe44
push 0x49f2be
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405664
add esp, 0x10
jmp 0x49fe14
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040310c
leave
ret

Function at 0x4a573f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004043e0
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4a57ae
cmp esi, dword [ebp - 4]
je 0x4a57a9
cmp dword [ebp + 0xc], 0
je 0x4a57a9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a5786
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004a5167
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4a57b0
xor eax, eax
inc eax
jmp 0x4a57b0
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x322b058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x322b1a8
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 0x322b07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x322b06a
add dl, dl
jne 0x322b089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x322b0dc
xor eax, eax
add dl, dl
jne 0x322b096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x322b17d
add dl, dl
jne 0x322b0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x322b0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x322b0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x322b0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x322b0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x322b075
mov eax, 1
add dl, dl
jne 0x322b0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x322b0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x322b0e1
sub eax, ebx
mov ebx, 1
jne 0x322b128
mov ecx, 1
add dl, dl
jne 0x322b10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x322b119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x322b105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x322b075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x322b13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x322b14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x322b136
cmp eax, 0x7d00
jae 0x322b16d
cmp eax, 0x500
jb 0x322b168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x322b075
cmp eax, 0x7f
ja 0x322b170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x322b075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x322b19e
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 0x322b075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x406ced
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x40af98
call fcn.00406fd4
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x406d2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406d2d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406d45
cmp eax, 0x20b
je 0x406d32
mov dword [ebp - 0x1c], ebx
jmp 0x406d59
cmp dword [ecx + 0x84], 0xe
jbe 0x406d2d
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x406d53
cmp dword [ecx + 0x74], 0xe
jbe 0x406d2d
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x40ea78], 0xffffffff
or dword [0x40ea7c], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40d464]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x40d460]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40ea74], eax
call fcn.00406f30
call fcn.0053e000
cmp dword [0x40d320], ebx
jne 0x406db9
push 0x406fd0
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00406fbe
push 0x40c00c
push 0x40c008
call sub.MSVCR71.dll__initterm
push 0x406f74
call fcn.00406f1e
mov eax, dword [0x40d45c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40d458]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x406e0d
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40c004
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x406e8b
cmp al, bl
je 0x406e37
cmp dword [ebp - 0x20], ebx
jne 0x406e8b
mov al, byte [esi]
cmp al, bl
je 0x406e47
cmp al, 0x20
ja 0x406e47
inc esi
mov dword [ebp - 0x24], esi
jmp 0x406e37
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x406e63
movzx eax, word [ebp - 0x54]
jmp 0x406e66
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00404254
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x406e83
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x406ee0
cmp al, 0x22
jne 0x406e9a
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x406ead
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x406e25
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040700f
ret
Function at 0xa08058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a081a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa0807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa0806a
add dl, dl
jne 0xa08089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa080dc
xor eax, eax
add dl, dl
jne 0xa08096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa0817d
add dl, dl
jne 0xa080a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa080b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa080bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa080c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa080d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa08075
mov eax, 1
add dl, dl
jne 0xa080ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa080f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa080e1
sub eax, ebx
mov ebx, 1
jne 0xa08128
mov ecx, 1
add dl, dl
jne 0xa0810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa08119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa08105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa08075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa0813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa0814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa08136
cmp eax, 0x7d00
jae 0xa0816d
cmp eax, 0x500
jb 0xa08168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa08075
cmp eax, 0x7f
ja 0xa08170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa08075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa0819e
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 0xa08075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x44b610
Capabilities:
Accept command line arguments

Disassembly:
mov ecx, dword [sym.imp.KERNEL32.dll_RaiseException]
mov al, 2
mov byte [0x662210], al
mov byte [0xa646f4], al
mov eax, 0xd7b0
push esi
mov dword [0x662228], ecx
mov word [0xa6474c], ax
mov word [0xa6474e], ax
mov word [0x662624], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x662258], eax
call esi
and eax, 0x80000000
cmp eax, 0x80000000
je 0x44b665
call esi
cmp al, 4
ja 0x44b66b
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x662254], eax
pop esi
ret

Function at 0x654d05
Capabilities:
Encode data using xor

Disassembly:
lar ecx, edx
movsd dword es:[edi], dword [esi]
add dl, byte [ecx + edi*2 + 0x16]
rcl byte [ebp + 0x34c93ebc], 0xed
xchg ebp, eax
mov esp, 0xed34c93e
add bh, byte [esi + 0x78140adc]
fmul qword [edx]
adc al, 0x78
rol byte [eax + 0x15], cl
xor cl, bh
push ds
adc al, 0x6d
fisttp word [edx]
stc
rcr byte [0x9645b9fd], 1
sahf
jns 0x654d0d
lcall 0x3288, 0xa3cd5201
outsb dx, byte [esi]
and dword [esi - 0x31], esp
pop ebp
pop edx
mov al, byte [ebx - 0x40e562a7]
jns 0x654dbb
test dword [ebx + ecx], ecx
test eax, 0x42f377f9
call 0xca68f057
jge 0x654d04
push ebp
mov edx, 0xbd38ad2d
div dword [ecx + 0x65]
stc
cmp cl, byte [eax - 0x48]
sbb ch, byte [esi - 0x33]
jge 0x654cfc
push es
cmp eax, 0x6963b9fd
sub eax, 0xba3a7dfe
xchg esp, eax
sub dword [esi], esp
sbb eax, 0xd2b10b6b
dec ebx
push esp
push ss
invalid
movsd dword es:[edi], dword [esi]
bsr ecx, dword [edi - 7]
sbb ebx, dword [edi + 0xa]
mov esi, 0x1d68c0ed
jbe 0x654de5
hlt
push ds
leave
xor bh, byte [edi]
mov ecx, 0x894db5ad
mov ch, 0x5c
ficomp word [ebp - 0x4aa1183c]
or al, byte [ebx + 0x4233e1c]
push edi
inc esi
mov dword [esi - 0xd5c6d41], esi
mov bl, 0x6f
ror dword cs:[esi - 0x51], 0xb
xchg byte [ecx], bh
in eax, 0x2d
inc ecx
aam 0x1e
add ebp, dword [edi]
and ebx, dword [edx - 0x17]
ret 0xc373