joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100251b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
cmp word [esp + 0x24], 0x24
jb 0x100251c5
mov eax, dword [esp + 0x2c]
cmp word [eax], 0x10
jae 0x100251cd
mov al, 1
add esp, 0x20
ret 0xc
push esi
push edi
lea ecx, [eax + 3]
lea eax, [esp + 9]
mov edi, 2
jmp 0x100251e0
movzx esi, byte [ecx - 1]
mov edx, esi
shr edx, 4
mov dl, byte [edx + str.0123456789abcdef]
mov byte [eax - 1], dl
and esi, 0xf
mov dl, byte [esi + str.0123456789abcdef]
movzx esi, byte [ecx]
mov byte [eax], dl
mov edx, esi
shr edx, 4
mov dl, byte [edx + str.0123456789abcdef]
mov byte [eax + 1], dl
and esi, 0xf
mov dl, byte [esi + str.0123456789abcdef]
movzx esi, byte [ecx + 1]
mov byte [eax + 2], dl
mov edx, esi
shr edx, 4
mov dl, byte [edx + str.0123456789abcdef]
mov byte [eax + 3], dl
and esi, 0xf
mov dl, byte [esi + str.0123456789abcdef]
movzx esi, byte [ecx + 2]
mov byte [eax + 4], dl
mov edx, esi
shr edx, 4
mov dl, byte [edx + str.0123456789abcdef]
mov byte [eax + 5], dl
and esi, 0xf
mov dl, byte [esi + str.0123456789abcdef]
movzx esi, byte [ecx + 3]
mov byte [eax + 6], dl
mov edx, esi
shr edx, 4
mov dl, byte [edx + str.0123456789abcdef]
mov byte [eax + 7], dl
and esi, 0xf
mov dl, byte [esi + str.0123456789abcdef]
movzx esi, byte [ecx + 4]
mov byte [eax + 8], dl
mov edx, esi
shr edx, 4
mov dl, byte [edx + str.0123456789abcdef]
mov byte [eax + 9], dl
and esi, 0xf
mov dl, byte [esi + str.0123456789abcdef]
movzx esi, byte [ecx + 5]
mov byte [eax + 0xa], dl
mov edx, esi
shr edx, 4
mov dl, byte [edx + str.0123456789abcdef]
mov byte [eax + 0xb], dl
and esi, 0xf
mov dl, byte [esi + str.0123456789abcdef]
movzx esi, byte [ecx + 6]
mov byte [eax + 0xc], dl
mov edx, esi
shr edx, 4
mov dl, byte [edx + str.0123456789abcdef]
and esi, 0xf
mov byte [eax + 0xd], dl
mov dl, byte [esi + str.0123456789abcdef]
mov byte [eax + 0xe], dl
add ecx, 8
add eax, 0x10
dec edi
jne 0x100251e0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [eax + 6], edx
mov edx, dword [esp + 0x10]
mov dword [eax + 0xb], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 2], ecx
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x18]
mov cl, 0x2d
mov byte [eax + 0xa], cl
mov byte [eax + 0xf], cl
mov byte [eax + 0x14], cl
mov dword [eax + 0x15], edx
mov edx, dword [esp + 0x1c]
mov byte [eax + 0x19], cl
lea ecx, [eax + 0x1a]
mov dword [ecx], edx
mov edx, dword [esp + 0x20]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x24]
pop edi
mov word [eax], 0x24
mov dword [ecx + 8], edx
xor al, al
pop esi
add esp, 0x20
ret 0xc

Function at 0x100316c0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x14]
push 0
lea eax, [esp + 8]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100316ed
cmp dword [esp + 4], esi
jne 0x100316ed
mov al, 1
pop esi
pop ecx
ret
xor al, al
pop esi
pop ecx
ret
Function at 0x10031700
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x14]
push 0
lea eax, [esp + 8]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003172d
cmp dword [esp + 4], esi
jne 0x1003172d
mov al, 1
pop esi
pop ecx
ret
xor al, al
pop esi
pop ecx
ret

Function at 0x10041c30
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test byte [esi + 0xe], 1
mov ecx, dword [esi]
je 0x10041c55
mov dl, byte [esi + 0x10]
mov al, byte [ecx]
add dl, 0x3b
xor al, dl
inc ecx
test al, al
jne 0x10041c40
mov byte [esi + 0x10], dl
mov dword [esi], ecx
pop esi
ret 4
mov eax, ecx
push edi
lea edi, [eax + 1]
jmp 0x10041c60
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10041c60
sub eax, edi
lea eax, [ecx + eax + 1]
pop edi
mov dword [esi], eax
pop esi
ret 4

Function at 0x10041cc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x10]
mov cl, byte [edi + 0xe]
mov eax, dword [edi]
test cl, 1
mov cl, byte [eax]
lea esi, [ebp + 2]
je 0x10041d0a
mov dl, byte [edi + 0x10]
add dl, 0x3b
xor cl, dl
inc eax
test cl, cl
je 0x10041cf6
mov byte [esi], cl
mov cl, byte [eax]
add dl, 0x3b
inc esi
xor cl, dl
inc eax
test cl, cl
jne 0x10041ce7
sub esi, ebp
sub esi, 2
mov byte [edi + 0x10], dl
mov word [ebp], si
mov dword [edi], eax
pop edi
pop esi
pop ebp
ret 8
inc eax
test cl, cl
je 0x10041d1a
nop
mov byte [esi], cl
mov cl, byte [eax]
inc esi
inc eax
test cl, cl
jne 0x10041d10
sub esi, ebp
sub esi, 2
mov word [ebp], si
mov dword [edi], eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x10045040
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x20
cmp eax, 0x80
je 0x10045062
cmp eax, 0xc0
je 0x10045062
cmp eax, 0x100
je 0x10045062
xor eax, eax
add esp, 0x20
ret
cdq
push ebx
and edx, 0x1f
add eax, edx
push ebp
sar eax, 5
add eax, 6
push esi
push edi
mov edi, dword [esp + 0x34]
lea ecx, [eax - 6]
mov dword [edi], eax
lea eax, [ecx - 1]
test eax, eax
jl 0x1004509e
mov edx, dword [esp + 0x38]
lea esi, [esp + 0x10]
sub edx, esi
lea esp, [esp]
lea esi, [edx + eax*4]
dec eax
mov esi, dword [esp + esi + 0x10]
mov dword [esp + eax*4 + 0x14], esi
jns 0x10045090
xor esi, esi
xor edx, edx
xor eax, eax
test ecx, ecx
jle 0x100450d5
mov ebx, dword [edi]
inc ebx
cmp esi, ebx
jge 0x100450d5
cmp eax, ecx
jge 0x100450c9
cmp edx, 4
jge 0x100450cc
mov ebp, dword [esp + eax*4 + 0x10]
lea ebx, [edx + esi*4]
inc eax
inc edx
cmp eax, ecx
mov dword [edi + ebx*4 + 4], ebp
jl 0x100450b3
cmp edx, 4
jne 0x100450d1
inc esi
xor edx, edx
cmp eax, ecx
jl 0x100450a8
mov eax, dword [edi]
inc eax
cmp esi, eax
jge 0x1004523d
mov dword [esp + 0x3c], 0x100656e8
jmp 0x100450f0
movzx ebx, byte [esp + ecx*4 + 0xd]
mov al, byte [esp + 0x10]
xor al, byte [ebx + str.cw]
mov byte [esp + 0x10], al
movzx ebx, byte [esp + ecx*4 + 0xe]
mov bl, byte [ebx + str.cw]
xor byte [esp + 0x11], bl
movzx ebx, byte [esp + ecx*4 + 0xf]
mov bl, byte [ebx + str.cw]
xor byte [esp + 0x12], bl
movzx ebx, byte [esp + ecx*4 + 0xc]
mov bl, byte [ebx + str.cw]
xor byte [esp + 0x13], bl
mov ebx, dword [esp + 0x3c]
xor al, byte [ebx]
inc ebx
cmp ecx, 8
mov byte [esp + 0x10], al
mov dword [esp + 0x3c], ebx
mov eax, 1
je 0x10045170
cmp ecx, eax
jle 0x100451f4
mov ebp, dword [esp + eax*4 + 0x10]
mov ebx, dword [esp + eax*4 + 0xc]
xor ebp, ebx
mov dword [esp + eax*4 + 0x10], ebp
inc eax
cmp eax, ecx
jl 0x10045151
jmp 0x100451f4
mov ebp, dword [esp + eax*4 + 0x10]
mov ebx, dword [esp + eax*4 + 0xc]
xor ebp, ebx
mov dword [esp + eax*4 + 0x10], ebp
inc eax
cmp eax, 4
jl 0x10045170
movzx eax, byte [esp + 0x1c]
mov al, byte [eax + str.cw]
mov bl, byte [esp + 0x20]
xor bl, al
movzx eax, byte [esp + 0x1d]
mov al, byte [eax + str.cw]
mov byte [esp + 0x20], bl
mov bl, byte [esp + 0x21]
xor bl, al
movzx eax, byte [esp + 0x1e]
mov al, byte [eax + str.cw]
mov byte [esp + 0x21], bl
mov bl, byte [esp + 0x22]
xor bl, al
movzx eax, byte [esp + 0x1f]
mov al, byte [eax + str.cw]
mov byte [esp + 0x22], bl
xor byte [esp + 0x23], al
mov eax, 5
jmp 0x100451e0
mov ebp, dword [esp + eax*4 + 0x10]
mov ebx, dword [esp + eax*4 + 0xc]
xor ebp, ebx
mov dword [esp + eax*4 + 0x10], ebp
inc eax
cmp eax, 8
jl 0x100451e0
xor eax, eax
test ecx, ecx
jle 0x10045232
lea ebx, [ebx]
mov ebx, dword [edi]
inc ebx
cmp esi, ebx
jge 0x10045232
cmp eax, ecx
jge 0x10045226
jmp 0x10045210
cmp edx, 4
jge 0x10045229
mov ebp, dword [esp + eax*4 + 0x10]
lea ebx, [edx + esi*4]
inc eax
inc edx
cmp eax, ecx
mov dword [edi + ebx*4 + 4], ebp
jl 0x10045210
cmp edx, 4
jne 0x1004522e
inc esi
xor edx, edx
cmp eax, ecx
jl 0x10045200
mov eax, dword [edi]
inc eax
cmp esi, eax
jl 0x100450f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x10045dd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x10], 0
nop
mov eax, dword [esi]
push 0
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, ebx
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
je 0x10045e27
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x20]
push ecx
push edi
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10045e27
cmp dword [esp + 0x1c], edi
je 0x10045e49
cmp dword [esp + 0x10], 1
je 0x10045e53
push esi
call fcn.10045b40
add esp, 4
test al, al
je 0x10045e53
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x10045df0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret

Function at 0x10045e60
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x10], 0
nop
mov eax, dword [esi]
push 0
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, ebx
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
je 0x10045eb7
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x20]
push ecx
push edi
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10045eb7
cmp dword [esp + 0x1c], edi
je 0x10045ed9
cmp dword [esp + 0x10], 1
je 0x10045ee3
push esi
call fcn.10045b40
add esp, 4
test al, al
je 0x10045ee3
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x10045e80
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret

Function at 0x10045f30
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
call edi
cmp eax, 0xffffffff
jne 0x10045f66
push esi
call fcn.10045b40
add esp, 4
test al, al
je 0x10045f61
mov ecx, dword [esi]
push 0
push ecx
call edi
cmp eax, 0xffffffff
jne 0x10045f66
pop edi
xor al, al
pop esi
ret
mov edx, dword [esp + 0x10]
pop edi
mov dword [edx], eax
mov al, 1
pop esi
ret
Function at 0x100476c9
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x100477b6
mov eax, 0x94
call fcn.100460f0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1004782b
mov ecx, dword [esi + 0x10]
mov dword [0x10066afc], ecx
mov eax, dword [esi + 4]
mov dword [0x10066b08], eax
mov edx, dword [esi + 8]
mov dword [0x10066b0c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10066b00], esi
je 0x10047734
or esi, 0x8000
mov dword [0x10066b00], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10066b04], eax
call fcn.1004a9ba
test eax, eax
pop ecx
je 0x1004782b
call fcn.10047d62
test eax, eax
jne 0x10047761
call fcn.1004aa0b
jmp 0x1004782b
call fcn.1004c1f3
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100681fc], eax
call fcn.1004c0d1
mov dword [0x1006697c], eax
call fcn.1004bbb2
test eax, eax
jl 0x100477af
call fcn.1004c02f
test eax, eax
jl 0x100477aa
call fcn.1004bdfc
test eax, eax
jl 0x100477aa
call fcn.1004b99f
test eax, eax
jne 0x100477aa
inc dword [0x10066978]
jmp 0x1004783c
call fcn.1004bdb0
call fcn.10047b55
jmp 0x10047757
test eax, eax
jne 0x100477e6
cmp dword [0x10066978], eax
jle 0x1004782b
dec dword [0x10066978]
cmp dword [0x10066b38], eax
jne 0x100477d5
call fcn.1004bae8
call fcn.1004bdb0
call fcn.10047b55
call fcn.1004aa0b
jmp 0x1004783c
cmp eax, 2
jne 0x1004782f
push 0x88
push 1
call fcn.1004baf7
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1004782b
push esi
push dword [0x10065a6c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x10047825
call fcn.10047b73
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1004783c
call fcn.1004748f
pop ecx
xor eax, eax
jmp 0x1004783f
cmp eax, 3
jne 0x1004783c
push 0
call fcn.10047bf7
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x1004ba04
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.1004a96f
xor esi, esi
inc esi
cmp dword [0x10066b3c], esi
pop ecx
jne 0x1004ba2c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x10066b38], esi
mov byte [0x10066b34], al
jne 0x1004ba92
mov ecx, dword [0x100681c8]
test ecx, ecx
je 0x1004ba73
mov eax, dword [0x100681c4]
sub eax, 4
cmp eax, ecx
jmp 0x1004ba6c
mov eax, dword [eax]
test eax, eax
je 0x1004ba5e
call eax
mov eax, dword [0x100681c4]
sub eax, 4
cmp eax, dword [0x100681c8]
mov dword [0x100681c4], eax
jae 0x1004ba56
mov eax, 0x10064024
mov esi, 0x1006402c
cmp eax, esi
mov edi, eax
jae 0x1004ba92
mov eax, dword [edi]
test eax, eax
je 0x1004ba8b
call eax
add edi, 4
cmp edi, esi
jb 0x1004ba83
mov eax, 0x10064030
mov esi, 0x10064034
cmp eax, esi
mov edi, eax
jae 0x1004bab1
mov eax, dword [edi]
test eax, eax
je 0x1004baaa
call eax
add edi, 4
cmp edi, esi
jb 0x1004baa2
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x1004bac2
push 8
call fcn.1004a8db
jmp 0x1004bad4
push dword [ebp + 8]
mov dword [0x10066b3c], 1
call fcn.1004b95d
pop ecx
pop ebp
ret
Function at 0x1004c281
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10065e20]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10065c98]
je 0x1004c2ae
inc eax
cmp eax, 0x12
jb 0x1004c29f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10065c98]
jne 0x1004c3e2
mov eax, dword [0x10066984]
cmp eax, 1
je 0x1004c3bd
cmp eax, edx
jne 0x1004c2de
cmp dword [0x10066988], 1
je 0x1004c3bd
cmp ecx, 0xfc
je 0x1004c3e2
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1004c317
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.1004c8c0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.10049a40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1004c359
lea eax, [ebp - 0x10c]
push eax
call fcn.10049a40
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x10057918
push edi
call fcn.1004ca10
add esp, 0x10
push edi
call fcn.10049a40
push dword [esi + 0x10065c9c]
mov ebx, eax
call fcn.10049a40
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.100460f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1004c8c0
push edi
push ebx
call fcn.1004c8d0
push 0x100578f8
push ebx
call fcn.1004c8d0
push dword [esi + 0x10065c9c]
push ebx
call fcn.1004c8d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1005026a
add esp, 0x2c
jmp 0x1004c3e2
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x10065c9c]
push dword [esi]
call fcn.10049a40
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]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.1004cc59
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004d5a4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.100460f0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1004d639
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x10066afc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x1004d639
cmp eax, 1
je 0x1004d651
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1004d639
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x1004d60e
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x1004d635
xor eax, eax
inc eax
jmp 0x1004d66d
cmp esi, ebx
jae 0x1004d63d
xor eax, eax
jmp 0x1004d66d
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10066afc]
jmp 0x1004d653
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004fb54
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10065e20]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x1004fb7d
xor eax, eax
jmp 0x1004fceb
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x100680c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1004fbb0
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.10050f63
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1004fc82
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x1004fcbd
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x1004fc0b
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1004fbfc
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x1004fbdf
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1004fc4b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x1004fc54
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x1004fbd0
jmp 0x1004fc56
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x1004fce6
cmp dword [ebp - 8], edi
je 0x1004fcbd
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x1004fcaf
call fcn.100470ed
mov dword [eax], 9
call fcn.100470f6
mov dword [eax], esi
jmp 0x1004fcb8
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1004fca4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x1004fc56
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1004fc56
push dword [ebp - 8]
call fcn.100470ff
pop ecx
or eax, 0xffffffff
jmp 0x1004fce9
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1004fcd2
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x1004fcd2
xor eax, eax
jmp 0x1004fce9
call fcn.100470ed
mov dword [eax], 0x1c
call fcn.100470f6
mov dword [eax], edi
jmp 0x1004fcb8
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.1004cc59
leave
ret
Function at 0x1005026a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10066cd4], ebx
push esi
push edi
jne 0x100502ea
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10050325
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x10066cd4], eax
je 0x10050325
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10066cd8], eax
call esi
cmp dword [0x10066afc], 2
mov dword [0x10066cdc], eax
jne 0x100502ea
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10066ce4], eax
je 0x100502ea
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10066ce0], eax
mov eax, dword [0x10066ce0]
test eax, eax
je 0x1005032f
call eax
test eax, eax
je 0x10050316
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10066ce4]
test eax, eax
je 0x10050316
test byte [ebp - 8], 1
jne 0x1005032f
cmp dword [0x10066b08], 4
jb 0x10050329
or byte [ebp + 0x12], 0x20
jmp 0x1005034e
xor eax, eax
jmp 0x1005035e
or byte [ebp + 0x12], 4
jmp 0x1005034e
mov eax, dword [0x10066cd8]
test eax, eax
je 0x1005034e
call eax
mov ebx, eax
test ebx, ebx
je 0x1005034e
mov eax, dword [0x10066cdc]
test eax, eax
je 0x1005034e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10066cd4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x6e29158c
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x3da955d8
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219