joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ae1a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], ecx
xor edi, edi
mov ecx, dword [ebp + 8]
lea edx, [ebx - 1]
mov esi, ecx
test edx, edx
js 0x46ae43
movzx eax, byte [esi]
shl edi, 2
xor edi, eax
inc esi
sub edx, 1
jns 0x46ae35
mov esi, 0x3f5
mov eax, edi
xor edx, edx
div esi
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], edx
mov eax, dword [eax]
mov esi, dword [eax + edx*4]
jmp 0x46ae7b
cmp dword [esi + 0x10], edi
jne 0x46ae79
cmp dword [esi + 0xc], ebx
jne 0x46ae79
push ebx
push ecx
push dword [esi + 8]
call fcn.0049821d
add esp, 0xc
test eax, eax
je 0x46aeb6
mov ecx, dword [ebp + 8]
mov esi, dword [esi]
test esi, esi
jne 0x46ae5b
push 0x14
call fcn.00471986
mov edx, eax
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp + 0x10]
and dword [edx], esi
mov esi, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
mov dword [edx + 0x10], edi
mov dword [edx + 0xc], ebx
mov dword [edx + 4], ecx
mov ecx, dword [eax]
mov ecx, dword [ecx + esi*4]
mov dword [edx], ecx
mov eax, dword [eax]
mov dword [eax + esi*4], edx
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
jmp 0x46aeaf

Function at 0x46aebe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea edx, [ebx - 1]
xor edi, edi
test edx, edx
js 0x46aee1
movzx eax, byte [esi]
shl edi, 2
xor edi, eax
inc esi
sub edx, 1
jns 0x46aed3
mov esi, 0x3f5
mov eax, edi
xor edx, edx
div esi
mov eax, dword [ecx]
mov esi, dword [eax + edx*4]
jmp 0x46af12
cmp dword [esi + 0x10], edi
jne 0x46af10
cmp dword [esi + 0xc], ebx
jne 0x46af10
push ebx
push dword [ebp + 8]
push dword [esi + 8]
call fcn.0049821d
add esp, 0xc
test eax, eax
je 0x46af1f
mov esi, dword [esi]
test esi, esi
jne 0x46aef3
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 4]
jmp 0x46af18

Function at 0x46af24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov edx, ebx
push esi
push edi
push 3
xor esi, esi
pop edi
movzx eax, byte [edx]
shl esi, 2
xor esi, eax
inc edx
sub edi, 1
jns 0x46af34
xor edx, edx
mov eax, esi
mov edi, 0x3f5
div edi
mov eax, dword [ecx]
lea edx, [eax + edx*4]
mov ecx, dword [edx]
jmp 0x46af6e
cmp dword [ecx + 0x10], esi
jne 0x46af6a
cmp dword [ecx + 0xc], 4
jne 0x46af6a
mov eax, dword [ecx + 8]
mov eax, dword [eax]
cmp eax, dword [ebx]
je 0x46af7b
mov edx, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x46af56
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [ecx]
push 0x14
mov dword [edx], eax
mov esi, dword [ecx + 4]
push ecx
call fcn.004719b6
pop ecx
pop ecx
mov eax, esi
jmp 0x46af74
Function at 0x4723aa
Capabilities:
Parse pe header

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

Function at 0x47bd72
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00497e70
mov eax, dword [section..data]
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.0048732e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x47bdb4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x47bf10
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00497dc0
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 + 0x4c8228]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004893d3
mov ecx, dword [esi*4 + 0x4c8228]
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 0x47bf09
cmp eax, dword [ecx + edi + 0x24]
jne 0x47bf09
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 0x47bf09
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004893d3
add esp, 0x14
test edx, edx
jl 0x47bf09
jg 0x47be7f
test eax, eax
jb 0x47bf09
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x47bf09
jl 0x47be99
cmp dword [ebp - 0x1008], eax
ja 0x47bf09
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x47beb7
test ebx, ebx
je 0x47bef0
cmp ecx, edi
jae 0x47bef0
mov al, byte [ecx]
cmp al, 0xd
jne 0x47bed1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x47bedd
cmp byte [ecx + 1], 0xa
jne 0x47bedd
inc ecx
jmp 0x47bedd
movzx eax, al
movsx eax, byte [eax + 0x4c7140]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x47beb7
cmp edx, ebx
jne 0x47beb7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x47bf0e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00471848
leave
ret
Function at 0x47ea7f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4a1a40
push esi
call fcn.0048e7f3
pop ecx
pop ecx
test eax, eax
jne 0x47eaad
xor al, al
jmp 0x47eb2a
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0047e7c0
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x47eae7
push dword [ebp - 0x210]
call fcn.0047b580
xor al, al
jmp 0x47eb28
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x47eaed
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x47eb0d
push edx
call fcn.0047e9b6
pop ecx
test al, al
je 0x47ead8
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x47eb1b
mov bl, 1
push dword [ebp - 0x210]
call fcn.0047b580
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00471848
leave
ret
Function at 0x488304
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 + 0x4c8228]
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 0x488344
cmp byte [ebx], 0xa
jne 0x488344
or byte [edi + eax + 0x28], 4
jmp 0x488349
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 0x488448
mov dl, byte [eax]
cmp dl, 0x1a
je 0x48842b
inc eax
cmp dl, 0xd
je 0x488375
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x48839b
cmp eax, ecx
jae 0x4883a9
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 0x48835d
jmp 0x488448
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 0x488426
cmp dword [ebp - 0x10], 0
je 0x488426
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4c8228]
test byte [eax + edi + 0x28], 0x48
je 0x488400
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4883eb
mov byte [esi], dl
jmp 0x4883fc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4c8228]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x488448
cmp byte [ebp - 1], 0xa
jne 0x48840f
cmp esi, ebx
jne 0x48840f
mov byte [esi], 0xa
jmp 0x488447
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004893f1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x488448
mov byte [esi], 0xd
jmp 0x488447
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4c8228]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x488445
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x488448
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x488451
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 + 0x4c8228]
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 0x488497
cmp word [ebx], dx
jne 0x488497
or byte [eax + edi + 0x28], 4
jmp 0x48849c
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 0x4885ff
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 0x4885df
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4884dd
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x488513
cmp eax, edx
jae 0x488521
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 0x4884b8
jmp 0x4885ff
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 0x4885da
cmp dword [ebp - 0x18], 0
je 0x4885da
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4c8228]
test byte [eax + edi + 0x28], 0x48
je 0x4885b0
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 0x488574
mov word [esi], cx
jmp 0x4885ab
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4c8228]
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 + 0x4c8228]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4c8228]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4885ff
pop eax
cmp word [ebp - 4], ax
jne 0x4885c0
cmp esi, ebx
jne 0x4885c0
mov word [esi], ax
jmp 0x4885fc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004893f1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4885ff
push 0xd
pop eax
jmp 0x4885bb
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4c8228]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4885f9
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4885ff
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 0x488f06
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x488f49
call fcn.0047ef44
mov dword [eax], 0xf
call fcn.0047ef57
mov dword [eax], 0xd
call fcn.0048a877
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471848
leave
ret
test eax, eax
jne 0x488f50
inc eax
jmp 0x488f3d
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x488f3b
xor eax, eax
cmp ecx, 1
setne al
jmp 0x488f3d
Function at 0x48c727
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a2a50
push 0x4a2a48
push str.FlsAlloc
push 0x1f
call fcn.0048c5e6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48c75b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a019c]
call esi
jmp 0x48c761
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48c7a5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a2a60
push 0x4a2a58
push str.FlsGetValue
push 0x21
call fcn.0048c5e6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48c7dc
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a019c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x48c7e4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a2a68
push 0x4a2a60
push str.FlsSetValue
push 0x22
call fcn.0048c5e6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48c81e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4a019c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x48c826
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.GetTempPath2W
push 0x4a29c8
push str.GetTempPath2W
push 5
call fcn.0048c5e6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48c860
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4a019c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]

Function at 0x48ddc6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048d8e1
Function at 0x48f694
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x48f731
push ebx
push esi
call fcn.0048f65d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0048d615
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x48f6de
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x48f730
push edi
push eax
call fcn.0048a8f5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x48f6fe
call fcn.0048a8bb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x48f72f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0048d615
add esp, 0x20
test eax, eax
jne 0x48f71d
push edi
call fcn.0048a8bb
jmp 0x48f725
push ebx
call fcn.0048a8bb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x48f734
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x48f745
pop esi
ret
push ebx
push edi
push esi
call fcn.0048f65d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0048a8f5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x48f76d
push ebx
push esi
push edi
call fcn.004745e0
add esp, 0xc
push 0
call fcn.0048a8bb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x493350
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004932cc
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4934bf
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4934bf
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x493474
jg 0x4933ac
test eax, eax
je 0x49346a
push 1
push 0x1000
call fcn.0048c456
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4933cf
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x493461
push 0x8000
push ebx
call fcn.0047d80b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4933f8
jg 0x4933f3
cmp ecx, 0x1000
jb 0x4933f8
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0048a0fa
add esp, 0x10
cmp eax, 0xffffffff
je 0x49343d
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4933f3
jl 0x493424
test ecx, ecx
jne 0x4933e5
push dword [ebp - 0xc]
push ebx
call fcn.0047d80b
push esi
call fcn.0048a8bb
add esp, 0xc
xor ebx, ebx
jmp 0x4934cd
cmp byte [edi + 0x24], 0
je 0x493454
cmp dword [edi + 0x20], 5
jne 0x493454
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x49345f
mov ebx, dword [edi + 0x18]
jmp 0x493461
xor ebx, ebx
push esi
call fcn.0048a8bb
pop ecx
jmp 0x4934cd
test ecx, ecx
jg 0x493436
jl 0x493474
test eax, eax
jae 0x493436
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004893f1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x493494
cmp byte [edi + 0x1c], 0
je 0x493436
jmp 0x4934c5
push ebx
call fcn.0047c373
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x493436
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4934cd
cmp byte [edi + 0x1c], 0
je 0x4934ca
mov ebx, dword [edi + 0x18]
jmp 0x4934cd
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004893f1
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x497ab0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x497add
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x497add
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4071a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x405015
lea edi, [esi - 0x4015]
push edi
or ebp, 0xffffffff
jmp 0x4071c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4071c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4071b8
mov eax, 1
add ebx, ebx
jne 0x4071db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4071d0
jne 0x4071ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4071d0
xor ecx, ecx
sub eax, 3
jb 0x407200
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x407272
mov ebp, eax
add ebx, ebx
jne 0x40720b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407218
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40723c
inc ecx
add ebx, ebx
jne 0x407228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40721d
jne 0x407239
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40721d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40725c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40724d
jmp 0x4071be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40725c
add edi, ecx
jmp 0x4071be
pop esi
lea edi, [esi + 0x1000]
mov ecx, 1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40727e
cmp byte [edi], 1
jne 0x40727e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x407283
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4072f2
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x818c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8200]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4072b0
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8208]
or eax, eax
je 0x4072ec
mov dword [ebx], eax
add ebx, 4
jmp 0x4072cd
call dword [esi + 0x8204]
mov ebp, dword [esi + 0x820c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x407326
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x1006efc
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xbc], ebx
je 0x1006f17
mov eax, dword [esi + 0x4c]
jmp 0x1006f1a
mov eax, dword [esi + 0x44]
movzx edx, word [esi + 0xd4]
mov dword [esi + 0xa4], eax
lea eax, [esi + 0xb0]
mov ecx, dword [eax]
dec edx
cmp ecx, edx
jge 0x1006f4a
inc ecx
mov dword [eax], ecx
mov eax, dword [esi + 0xac]
inc eax
inc eax
add dword [esi + 0xa8], eax
jmp 0x10070d7
mov eax, dword [esi + 0xd0]
push dword [eax]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 0xd0]
pop ecx
xor ecx, ecx
inc ecx
mov dword [eax], ebx
cmp word [esi + 0xd4], cx
jbe 0x1006f8f
mov eax, dword [esi + 0xd0]
lea eax, [eax + ecx*4]
mov edx, dword [eax]
mov dword [eax - 4], edx
mov eax, dword [esi + 0xd0]
mov dword [eax + ecx*4], ebx
movzx eax, word [esi + 0xd4]
inc ecx
cmp ecx, eax
jl 0x1006f6c
push edi
push dword [esi + 0x84]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, dword [sym.imp.USER32.dll_CopyRect]
mov dword [ebp - 8], eax
lea eax, [esi + 0x44]
push eax
lea eax, [ebp - 0x30]
push eax
call edi
push ebx
push 2
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
call edi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
call edi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0xb4]
test eax, eax
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
jge 0x1006fef
fadd qword [0x1001ef8]
fmul qword [0x1001ef0]
fdivr qword [0x1001ee8]
call sub.msvcrt.dll__ftol
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esi + 0xac]
inc edi
inc edi
cmp edi, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ebx
jle 0x10070cd
jmp 0x1007023
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jb 0x1007057
mov eax, dword [esi + 0xb4]
cmp eax, 1
jne 0x100704c
cmp dword [esi + 0xb8], ebx
je 0x100704c
mov dword [esi + 0xb8], ebx
jmp 0x1007057
cmp eax, edi
jge 0x1007057
inc eax
mov dword [esi + 0xb4], eax
mov ebx, dword [esi + 0xb4]
mov eax, dword [ebp - 4]
add eax, ebx
cmp eax, edi
jle 0x100706b
mov ebx, edi
sub ebx, dword [ebp - 4]
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x40]
push ecx
mov ecx, ebx
neg ecx
push ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ScrollDC]
push dword [ebp - 8]
sub dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x20]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_FillRect]
push 0
mov ecx, esi
call fcn.010069c4
sub dword [ebp - 0x34], ebx
sub dword [ebp - 0x14], ebx
cmp dword [esi + 0xb8], 1
jne 0x10070b9
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
add eax, dword [esi + 0xb4]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x1007021
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebx
leave
ret