joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40da70
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0xca
jne 0x40daa6
push edi
call fcn.0040d4a4
pop ecx
cmp byte [edi + 0x40], 0
je 0x40da9f
mov dword [edi + 0x14], 0xcf
xor eax, eax
inc eax
jmp 0x40db5b
mov dword [edi + 0x14], 0xcb
cmp dword [edi + 0x14], 0xcb
jne 0x40db2a
mov eax, dword [edi + 0x190]
cmp byte [eax + 0x10], 0
je 0x40db1f
cmp dword [edi + 8], 0
je 0x40dacd
push edi
mov ebx, dword [edi + 8]
call dword [ebx]
pop ecx
push edi
mov esi, dword [edi + 0x190]
call dword [esi]
pop ecx
mov dword [ebp - 4], eax
or eax, eax
je 0x40db5b
cmp dword [ebp - 4], 2
je 0x40db1f
cmp dword [edi + 8], 0
je 0x40dabb
mov eax, dword [ebp - 4]
cmp eax, 3
je 0x40dafc
cmp eax, 1
jne 0x40dabb
mov eax, dword [edi + 8]
add eax, 4
mov edx, dword [eax]
inc edx
mov dword [eax], edx
mov eax, dword [edi + 8]
cmp edx, dword [eax + 8]
jl 0x40dabb
mov eax, dword [edi + 8]
add eax, 8
mov edx, dword [edi + 0x11c]
add dword [eax], edx
jmp 0x40dabb
mov eax, dword [edi + 0x7c]
mov dword [edi + 0x84], eax
jmp 0x40db4f
cmp dword [edi + 0x14], 0xcc
je 0x40db4f
mov eax, dword [edi]
mov dword [eax + 0x14], 0x14
mov eax, dword [edi]
mov edx, dword [edi + 0x14]
mov dword [eax + 0x18], edx
push edi
mov ebx, dword [edi]
call dword [ebx]
pop ecx
push edi
call fcn.0040db60
pop ecx
and eax, 0xff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40db60
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0xcc
je 0x40dba2
push edi
mov ebx, dword [edi + 0x180]
call dword [ebx]
pop ecx
and dword [edi + 0x78], 0
mov dword [edi + 0x14], 0xcc
jmp 0x40dba2
mov eax, dword [edi]
mov dword [eax + 0x14], 0x30
push edi
mov ebx, dword [edi]
call dword [ebx]
pop ecx
mov eax, dword [edi + 0x180]
cmp byte [eax + 8], 0
jne 0x40db8e
xor eax, eax
cmp byte [edi + 0x41], 0
sete al
dec eax
and eax, 1
add eax, 0xcd
mov dword [edi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41268a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
and dword [ebx + 4], 0
mov edi, 0x3b9aca00
cmp edi, 0x3b9aca00
je 0x4126bb
mov eax, dword [ebx]
mov dword [eax + 0x14], 3
push ebx
mov eax, dword [ebx]
call dword [eax]
pop ecx
push ebx
call fcn.0041510d
mov dword [ebp - 4], eax
push 0x54
push ebx
call fcn.004150b0
add esp, 0xc
mov esi, eax
or esi, esi
jne 0x4126f7
push ebx
call fcn.00415110
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x36
mov eax, dword [ebx]
and dword [eax + 0x18], 0
push ebx
mov eax, dword [ebx]
call dword [eax]
add esp, 8
lea eax, [fcn.00411a68]
mov dword [esi], eax
lea eax, [fcn.00411ba7]
mov dword [esi + 4], eax
lea eax, [fcn.00411c56]
mov dword [esi + 8], eax
lea eax, [fcn.00411d2a]
mov dword [esi + 0xc], eax
lea eax, [0x411e0b]
mov dword [esi + 0x10], eax
lea eax, [0x411e78]
mov dword [esi + 0x14], eax
lea eax, [0x411ee5]
mov dword [esi + 0x18], eax
lea eax, [0x412283]
mov dword [esi + 0x1c], eax
lea eax, [0x4123d3]
mov dword [esi + 0x20], eax
lea eax, [fcn.0041252a]
mov dword [esi + 0x24], eax
lea eax, [0x412656]
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [ebp - 4]
mov dword [esi + 0x2c], eax
xor edi, edi
inc edi
and dword [esi + edi*4 + 0x34], 0
and dword [esi + edi*4 + 0x3c], 0
dec edi
jge 0x412769
and dword [esi + 0x44], 0
and dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
mov dword [ebx + 4], esi
push str.JPEGMEM
call sub.MSVCRT.dll_getenv
pop ecx
mov dword [ebp - 8], eax
or eax, eax
je 0x4127d9
mov byte [ebp - 9], 0x78
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 4]
push eax
push str._ld_c
push dword [ebp - 8]
call sub.MSVCRT.dll_sscanf
add esp, 0x10
or eax, eax
jle 0x4127d9
mov al, byte [ebp - 9]
cmp al, 0x6d
je 0x4127c5
cmp al, 0x4d
jne 0x4127cf
imul eax, dword [ebp - 4], 0x3e8
mov dword [ebp - 4], eax
imul eax, dword [ebp - 4], 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41771a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 9
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
je 0x4177b3
push 0x11
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x4177b3
push 0x10
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x4177b3
push 0x12
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x4177b3
call sub.USER32.dll_GetFocus
push 5
lea edi, [ebp - 0xd]
push edi
push eax
call sub.USER32.dll_GetClassNameA
push 4
push str.Rich
lea eax, [ebp - 0xd]
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
or eax, eax
jne 0x4177b3
call sub.USER32.dll_GetFocus
push 0
push 0
push 0x44e
push eax
call sub.USER32.dll_SendMessageA
test ax, 0x800
jne 0x4177b3
xor eax, eax
jmp 0x4177de
push str.PB_WindowID
push dword [ebp + 8]
call sub.USER32.dll_GetPropA
mov dword [ebp - 4], eax
or eax, eax
je 0x4177dc
dec eax
push eax
push dword [0x4307b0]
call fcn.00417ef2
mov dword [ebp - 8], eax
mov eax, dword [eax + 0xc]
jmp 0x4177de
xor eax, eax
pop edi
leave
ret 4

Function at 0x417880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 0
jne 0x4178af
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
push eax
push dword [edi + 4]
push dword [edi]
call sub.KERNEL32.dll_WriteFile
mov eax, dword [edi + 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
pop edi
leave
ret 4
Function at 0x417b70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, 0x1000
push dword [ebp + 0xc]
push 0x1000
call fcn.004183a0
mov esi, eax
mov edi, esi
push dword [ebp + 8]
push dword [0x4307c0]
call fcn.00417ef2
mov dword [ebp - 8], eax
or eax, eax
je 0x417c8f
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x417bc8
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call fcn.00417d80
mov dword [ebp - 0xc], eax
jmp 0x417bde
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_ReadFile
cmp byte [ebp - 1], 0
je 0x417bea
mov al, byte [ebp - 1]
mov byte [edi], al
inc edi
mov eax, edi
sub eax, esi
cmp eax, ebx
jl 0x417c11
add ebx, 0x1000
mov eax, edi
sub eax, esi
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
push ebx
call fcn.004183a0
mov esi, eax
mov eax, dword [ebp - 0x10]
mov edi, eax
add edi, esi
movsx eax, byte [ebp - 1]
or eax, eax
je 0x417c2d
cmp dword [ebp - 0xc], 0
je 0x417c2d
cmp eax, 0xd
je 0x417c2d
cmp eax, 0xa
jne 0x417ba8
cmp byte [ebp - 1], 0
je 0x417c8f
dec edi
cmp byte [ebp - 1], 0xd
jne 0x417c8f
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x417c53
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call fcn.00417d80
jmp 0x417c69
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_ReadFile
cmp byte [ebp - 1], 0xa
je 0x417c8f
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x417c7f
add eax, 0xc
inc dword [eax]
jmp 0x417c8f
push 1
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_SetFilePointer
mov byte [edi], 0
mov eax, edi
sub eax, esi
mov edx, ebx
sub edx, eax
push edx
call fcn.00418480
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x417cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 1
jne 0x417cd3
and dword [edi + 0x14], 0
mov eax, dword [edi + 8]
mov dword [edi + 0xc], eax
cmp dword [edi + 0xc], esi
jle 0x417d34
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
mov dword [ebp - 8], eax
mov eax, esi
cmp eax, 1
je 0x417cf7
cmp eax, 2
je 0x417d03
cmp eax, 4
je 0x417d11
jmp 0x417d1d
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dl, byte [edx]
mov byte [eax], dl
jmp 0x417d2c
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dx, word [edx]
mov word [eax], dx
jmp 0x417d2c
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov dword [eax], edx
jmp 0x417d2c
push esi
push dword [ebp + 0xc]
push dword [ebp - 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
jmp 0x417d6e
push edi
call fcn.00417880
cmp esi, dword [edi + 8]
jl 0x417d52
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [edi]
call sub.KERNEL32.dll_WriteFile
jmp 0x417d6e
push esi
push dword [ebp + 0xc]
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x417d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
cmp dword [edi + 0x14], 0
jne 0x417da5
push edi
call fcn.00417880
mov dword [edi + 0x14], 1
and dword [edi + 0xc], 0
cmp dword [edi + 0xc], esi
jl 0x417dfa
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov ebx, eax
add ebx, dword [edi + 4]
mov eax, esi
cmp eax, 1
je 0x417dc8
cmp eax, 2
je 0x417dd1
cmp eax, 4
je 0x417ddc
jmp 0x417de5
mov eax, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [eax], dl
jmp 0x417df2
mov eax, dword [ebp + 0xc]
mov dx, word [ebx]
mov word [eax], dx
jmp 0x417df2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebx]
mov dword [eax], edx
jmp 0x417df2
push esi
push ebx
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
jmp 0x417e79
mov ebx, dword [edi + 0xc]
push ebx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, ebx
add eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
sub esi, ebx
cmp esi, dword [edi + 8]
jl 0x417e39
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [edi]
call sub.KERNEL32.dll_ReadFile
and dword [edi + 0xc], 0
jmp 0x417e79
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 8]
push dword [edi + 4]
push dword [edi]
call sub.KERNEL32.dll_ReadFile
mov eax, dword [ebp - 4]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x10], eax
cmp esi, dword [edi + 0xc]
jle 0x417e60
mov esi, dword [edi + 0xc]
push esi
push dword [edi + 4]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov eax, ebx
add eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41c49f
Capabilities:
Encode data using xor

Disassembly:
pushal
jmp 0x41c444
ljmp 0:0xfffffbc7
movsx esi, di
jmp 0x41c468
mov edi, 0x230d4619
jmp 0x41c486
call 0x41c49f
or dword [ebx], 0x4e
into
cmp dword [esi + 0x16], ebp
jne 0x41c4db
call 0xe4e36705
jae 0x41c4a7
mov dh, 0x85
inc edi
mov ebp, 0x502c76e3
jmp 0x41c4c5
add byte [eax], al
or dword [ebx + 0x6d130fee], 0xc569cc20
and dword [edi + 0x13b07f4f], 0xffffff91
cmp eax, 0x7b43487e
cli
cmp byte [ecx + 0x5dcd6a7b], bl
pop ebp
mov dl, 0xab
movsx edx, ax
mov edx, 0x4756863f
push ebp
pop ecx
xor esi, 0xbf6891f9
add dl, 0xf3
add ecx, 0xb826e159
jmp 0x41c502
mov si, dx
or ebx, 0x564e0187
mov bp, ax
mov dl, 0xf4
dec dword [ecx + 0x47d91e57]
mov bp, cx
xor ebp, 0x80ee0a33
mov esi, 0x4226da29
inc edi
mov bp, di
sub ecx, 4
mov ebp, 0xc80d6721
mov bl, 0x2a
cmp edi, 0x230d4727
jne 0x41c505
mov dl, 0xf9
movsx ebx, si
jmp 0x41c43b
Function at 0x425e70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
jmp 0x425e8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x425e91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x425e80
mov eax, 1
add ebx, ebx
jne 0x425ea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x425e98
jne 0x425eb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x425e98
xor ecx, ecx
sub eax, 3
jb 0x425ec8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x425f3a
mov ebp, eax
add ebx, ebx
jne 0x425ed3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x425ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x425f04
inc ecx
add ebx, ebx
jne 0x425ef0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x425ee5
jne 0x425f01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x425ee5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x425f24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x425f15
jmp 0x425e86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x425f24
add edi, ecx
jmp 0x425e86
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x425f42
cmp byte [edi], 9
jne 0x425f42
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 0x425f47
lea edi, [esi + 0x23000]
mov eax, dword [edi]
or eax, eax
je 0x425fbf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2d354]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2d41c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x425f74
mov ecx, edi
jns 0x425fa3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2d420]
or eax, eax
je 0x425fb9
mov dword [ebx], eax
add ebx, 4
jmp 0x425f91
call dword [esi + 0x2d430]
mov ebp, dword [esi + 0x2d424]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x425ff3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x402ded
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407700
cmp edx, dword [eax]
je 0x402e0f
add eax, 8
inc ecx
cmp eax, 0x407790
jl 0x402e00
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407700]
jne 0x402f3d
mov eax, dword [0x407c58]
cmp eax, 1
je 0x402f17
test eax, eax
jne 0x402e40
cmp dword [0x4073c8], 1
je 0x402f17
cmp edx, 0xfc
je 0x402f3d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402e77
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403660
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004030f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402eba
lea eax, [ebp - 0x1a4]
push eax
call fcn.004030f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406444
push edi
call fcn.00404740
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403660
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403670
lea eax, [ebp - 0xa0]
push 0x406424
push eax
call fcn.00403670
push dword [esi + 0x407704]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403670
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004046ae
add esp, 0x2c
pop edi
jmp 0x402f3d
lea eax, [ebp + 8]
lea esi, [esi + 0x407704]
push 0
push eax
push dword [esi]
call fcn.004030f0
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]
pop esi
leave
ret
Function at 0x11150c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xcf4000]
push edi
or ebp, 0xffffffff
jmp 0x11150e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x11150e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x11150d8
mov eax, 1
add ebx, ebx
jne 0x11150fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x111510c
jne 0x111511c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x111511c
dec eax
add ebx, ebx
jne 0x1115118
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x11150f0
xor ecx, ecx
sub eax, 3
jb 0x1115134
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x11151a6
sar eax, 1
mov ebp, eax
jmp 0x111513f
add ebx, ebx
jne 0x111513f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x111514c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1115170
inc ecx
add ebx, ebx
jne 0x111515c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1115151
jne 0x111516d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1115151
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1115190
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1115181
jmp 0x11150de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1115190
add edi, ecx
jmp 0x11150de
pop esi
mov edi, esi
mov ecx, 0x53a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x11151ae
cmp byte [edi], 0x11
jne 0x11151ae
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 eax, ebx
loop 0x11151b3
lea edi, [esi + 0xd13000]
mov eax, dword [edi]
or eax, eax
je 0x1115222
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd15ee0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd15f58]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x11151e0
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd15f5c]
or eax, eax
je 0x111521c
mov dword [ebx], eax
add ebx, 4
jmp 0x11151fd
call dword [esi + 0xd15f60]
popal
jmp 0x40b010
Function at 0x4b06f0
Capabilities:
Encode data using xor

Disassembly:
sub dword [edi], esp
push ebx
push esi
mov bl, 0xb
mov esi, 0x233af4a0
cld
mov al, byte [0xfc233af4]
xor ebp, dword [ebx]
add esi, 4
dec bl
jne 0x4852fb
invalid
pushal
mov esi, section.UPX1
lea edi, [esi - 0x70000]
mov dword [edi + 0x850a0], 0xa5706972
push edi
or ebp, 0xffffffff
jmp 0x4b071a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b0721
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b0710
mov eax, 1
add ebx, ebx
jne 0x4b0733
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b0744
jne 0x4b0763
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b0763
dec eax
add ebx, ebx
jne 0x4b0750
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b0728
add ebx, ebx
jne 0x4b075f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b07b5
xor ecx, ecx
sub eax, 3
jb 0x4b077b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b07ea
sar eax, 1
mov ebp, eax
jmp 0x4b0786
add ebx, ebx
jne 0x4b0786
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b0754
inc ecx
add ebx, ebx
jne 0x4b0794
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b0754
add ebx, ebx
jne 0x4b07a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b0796
jne 0x4b07b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b0796
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b07d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b07c6
jmp 0x4b0716
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b07d4
add edi, ecx
jmp 0x4b0716
pop esi
mov edi, esi
mov ecx, 0x4113
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b07f2
cmp byte [edi], 0x19
jne 0x4b07f2
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 0x4b07f7
lea edi, [esi + 0xad000]
mov eax, dword [edi]
or eax, eax
je 0x4b0866
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb3bc8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb3ca4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b0824
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb3ca8]
or eax, eax
je 0x4b0860
mov dword [ebx], eax
add ebx, 4
jmp 0x4b0841
call dword [esi + 0xb3cb8]
mov ebp, dword [esi + 0xb3cac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x4b089a
sub esp, 0xffffff80
jmp 0x4852f4
Function at 0x402a34
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040456c
test esi, esi
jne 0x402a6a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040465c
jmp 0x402a88
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402948
mov edi, eax
test esi, esi
je 0x402a88
cmp dword [ebx], 0
je 0x402a88
dec esi
jmp 0x402a71
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x484020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4036a8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403688
xor eax, eax
push ebp
push 0x403681
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4036c4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403688
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x484020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x484020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40436c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x488048], 0
je 0x4043cd
cmp word [0x48821c], 0xd7b2
jne 0x404395
cmp dword [0x488224], 0
jbe 0x404395
mov eax, 0x488218
call dword [fcn.00488234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x484070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4043f4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x484030], 0
jne 0x4043e9
push 0
push 0x484068
push 0x484070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404520
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040270c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x488049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4044e8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc