joyce8/EMBER2024-capa huggingface dataset:
Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x34eb5bd9
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x1bfb15f7
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40128c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
add esp, 0xfffffff8
push 0x40126b
mov eax, dword [ebp + 8]
push eax
call sub.msvcrt.dll_fopen
add esp, 0x10
mov eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4012d0
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
push eax
push 0x40126e
call sub.msvcrt.dll_printf
add esp, 0x10
xor eax, eax
jmp 0x4013e0
mov eax, dword [ebp - 4]
push eax
push 0x36
push 1
lea eax, [ebp - 0x50]
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
mov eax, dword [ebp - 0x3e]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x3a]
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
mov eax, edx
add eax, eax
add eax, edx
mov edx, dword [ebp - 0x54]
imul edx, eax
mov dword [ebp - 0x5c], edx
add esp, 0xfffffff4
mov eax, dword [ebp - 0x5c]
push eax
call sub.msvcrt.dll_malloc
add esp, 0x10
mov eax, eax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x5c]
push eax
push 1
mov eax, dword [ebp - 0x60]
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
add esp, 0xfffffff4
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_fclose
add esp, 0x10
add esp, 0xfffffff8
lea eax, [ebp - 0x64]
push eax
push 1
call sub.OPENGL32.DLL_glGenTextures
add esp, 8
add esp, 0xfffffff8
mov eax, dword [ebp - 0x64]
push eax
push 0xde1
call sub.OPENGL32.DLL_glBindTexture
add esp, 8
add esp, 0xfffffff4
mov eax, dword [ebp - 0x60]
push eax
push 0x1401
push 0x80e0
push 0
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x54]
push eax
push 0x1907
push 0
push 0xde1
call sub.OPENGL32.DLL_glTexImage2D
add esp, 0xc
add esp, 0xfffffffc
push 0x2601
push 0x2801
push 0xde1
call sub.OPENGL32.DLL_glTexParameteri
add esp, 4
add esp, 0xfffffffc
push 0x2601
push 0x2800
push 0xde1
call sub.OPENGL32.DLL_glTexParameteri
add esp, 4
add esp, 0xfffffff4
mov eax, dword [ebp - 0x60]
push eax
call sub.msvcrt.dll_free
add esp, 0x10
mov edx, dword [ebp - 0x64]
mov eax, edx
jmp 0x4013e0
leave
ret

Function at 0x401de8
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x401e0d
mov dword [0x408040], eax
add esp, 0xfffffff8
push 0x401dac
push eax
call fcn.00405aa8
jmp 0x401e12
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401e28
mov dword [0x407030], 0x401f0c
jmp 0x401e32
mov dword [0x407030], 0x401ec0
leave
ret
Function at 0xd9a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00d9a1a8
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 0xd9a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9a06a
add dl, dl
jne 0xd9a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9a0dc
xor eax, eax
add dl, dl
jne 0xd9a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9a17d
add dl, dl
jne 0xd9a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd9a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd9a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd9a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd9a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd9a075
mov eax, 1
add dl, dl
jne 0xd9a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd9a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd9a0e1
sub eax, ebx
mov ebx, 1
jne 0xd9a128
mov ecx, 1
add dl, dl
jne 0xd9a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd9a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd9a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd9a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd9a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd9a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd9a136
cmp eax, 0x7d00
jae 0xd9a16d
cmp eax, 0x500
jb 0xd9a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd9a075
cmp eax, 0x7f
ja 0xd9a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd9a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd9a19e
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 0xd9a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x401a6a
Capabilities:
Parse pe header

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

Function at 0x40ab80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40abad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40abad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404a6d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x404a8e
jl 0x404a85
test edi, edi
jne 0x404a8e
xor eax, eax
xor edx, edx
jmp 0x404b4f
cmp dword [ebx + 0x38], 0
je 0x404aa3
push eax
push edi
push dword [ebp + 8]
call fcn.00404b55
jmp 0x404b4f
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404aea
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x404aea
cmp eax, edi
jb 0x404ac4
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00406fa0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x404af0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x404b44
mov ecx, ebx
call fcn.004042c6
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x404b2f
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040b773
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x404b44
jmp 0x404b02
test edx, edx
je 0x404b44
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040b773
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x406785
Capabilities:
Parse pe header

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

Function at 0x41125f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420e78
push 0x420e70
push str.FlsAlloc
push 0x1e
call fcn.004110cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411293
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e1a4]
call esi
jmp 0x411299
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4112dd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420e88
push 0x420e80
push str.FlsGetValue
push 0x20
call fcn.004110cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411314
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e1a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x412a22
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00412893

Function at 0x412e1c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004068f0
mov eax, dword [0x42c028]
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.00411a88
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x412e5e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x412fba
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d170
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 + 0x42d928]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00413e13
mov ecx, dword [esi*4 + 0x42d928]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x412fb3
cmp eax, dword [edi + ecx + 0x24]
jne 0x412fb3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412fb3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00413e13
add esp, 0x14
test edx, edx
jl 0x412fb3
jg 0x412f29
test eax, eax
jb 0x412fb3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x412fb3
jl 0x412f43
cmp dword [ebp - 0x1008], eax
ja 0x412fb3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x412f61
test ebx, ebx
je 0x412f9a
cmp ecx, edi
jae 0x412f9a
mov al, byte [ecx]
cmp al, 0xd
jne 0x412f7b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x412f87
cmp byte [ecx + 1], 0xa
jne 0x412f87
inc ecx
jmp 0x412f87
movzx eax, al
movsx eax, byte [eax + 0x42c2a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x412f61
cmp edx, ebx
jne 0x412f61
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x412fb8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405b55
leave
ret
Function at 0x4132b1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x42d928]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4132f1
cmp byte [ebx], 0xa
jne 0x4132f1
or byte [eax + edi + 0x28], 4
jmp 0x4132f6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4133f4
mov al, byte [edx]
cmp al, 0x1a
je 0x4133d6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x413325
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41334a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x413354
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x413307
jmp 0x4133f4
push 0
lea eax, [ebp - 0xc]
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 0x4133d1
cmp dword [ebp - 0xc], 0
je 0x4133d1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x42d928]
test byte [eax + edi + 0x28], 0x48
je 0x4133ab
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x413396
mov byte [esi], dl
jmp 0x4133a7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42d928]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4133f4
cmp byte [ebp - 1], 0xa
jne 0x4133ba
cmp esi, ebx
jne 0x4133ba
mov byte [esi], 0xa
jmp 0x4133f3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00413e31
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4133f4
mov byte [esi], 0xd
jmp 0x4133f3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x42d928]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4133f0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4133f4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4133fd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x42d928]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x413440
cmp word [esi], dx
jne 0x413440
or byte [edi + eax + 0x28], 4
jmp 0x413445
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x413598
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x413578
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x413487
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4134bd
cmp eax, edx
jae 0x4134c9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41345f
jmp 0x413598
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413574
cmp dword [ebp - 0x14], 0
je 0x413574
mov eax, dword [ebx*4 + 0x42d928]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41354c
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x413515
mov word [esi], cx
jmp 0x413548
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x42d928]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x42d928]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x42d928]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x413598
pop ebx
cmp word [ebp - 4], bx
jne 0x41355d
cmp esi, dword [ebp + 0xc]
jne 0x41355d
mov word [esi], bx
jmp 0x413595
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00413e31
add esp, 0x10
cmp word [ebp - 4], bx
je 0x413598
push 0xd
jmp 0x413591
mov ecx, dword [ebx*4 + 0x42d928]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41358f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x413598
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417d52
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 0x417def
push ebx
push esi
call fcn.00417d1b
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.004169df
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x417d9c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417dee
push edi
push eax
call fcn.00410109
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x417dbc
call fcn.004100cf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417ded
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004169df
add esp, 0x20
test eax, eax
jne 0x417ddb
push edi
call fcn.004100cf
jmp 0x417de3
push ebx
call fcn.004100cf
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 0x41d130
Capabilities:
Parse pe header

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa0000]
push edi
jmp 0x4fb1aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4fb1b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fb1a0
mov eax, 1
add ebx, ebx
jne 0x4fb1c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4fb1d4
jne 0x4fb1f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fb1f3
dec eax
add ebx, ebx
jne 0x4fb1e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4fb1b8
add ebx, ebx
jne 0x4fb1ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4fb245
xor ecx, ecx
sub eax, 3
jb 0x4fb20b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4fb27a
sar eax, 1
mov ebp, eax
jmp 0x4fb216
add ebx, ebx
jne 0x4fb216
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fb1e4
inc ecx
add ebx, ebx
jne 0x4fb224
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fb1e4
add ebx, ebx
jne 0x4fb231
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4fb226
jne 0x4fb242
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4fb226
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4fb264
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4fb256
jmp 0x4fb1a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4fb264
add edi, ecx
jmp 0x4fb1a6
pop esi
mov edi, esi
mov ecx, 0x3b6c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4fb282
cmp byte [edi], 0x17
jne 0x4fb282
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 0x4fb287
lea edi, [esi + 0xf5000]
mov eax, dword [edi]
or eax, eax
je 0x4fb2f6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1146cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x114760]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4fb2b4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x114768]
or eax, eax
je 0x4fb2f0
mov dword [ebx], eax
add ebx, 4
jmp 0x4fb2d1
call dword [esi + 0x114764]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4fb327
cmp al, 0xef
ja 0x4fb31a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4fb2fc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4fb309
mov ebp, dword [esi + 0x11476c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4fb35b
sub esp, 0xffffff80
jmp 0x435126