joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f38b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47c084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00417dfa
and dword [ebp - 0x14], 0
cmp dword [0x47ef24], 0
mov dword [ebp - 0x18], eax
jne 0x41f43e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41f4e6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41f4e6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47ef24], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47ef28], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47ef2c], eax
call edi
push eax
call esi
mov dword [0x47ef34], eax
test eax, eax
je 0x41f43e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47ef30], eax
mov eax, dword [0x47ef30]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41f497
cmp dword [0x47ef34], ecx
je 0x41f497
push eax
call esi
push dword [0x47ef34]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41f497
test ebx, ebx
je 0x41f497
call edi
test eax, eax
je 0x41f48e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41f48e
test byte [ebp - 8], 1
jne 0x41f497
or dword [ebp + 0x10], 0x200000
jmp 0x41f4ca
mov eax, dword [0x47ef28]
cmp eax, dword [ebp - 0x18]
je 0x41f4ca
push eax
call esi
test eax, eax
je 0x41f4ca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41f4ca
mov eax, dword [0x47ef2c]
cmp eax, dword [ebp - 0x18]
je 0x41f4ca
push eax
call esi
test eax, eax
je 0x41f4ca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47ef24]
call esi
test eax, eax
je 0x41f4e6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41f4e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411a01
leave
ret
Function at 0x423ebd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x423ee4
mov eax, dword [esi + 4]
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x423f21
jmp 0x423eeb
mov ecx, dword [esi + 0xc]
cmp ecx, eax
jbe 0x423ef8
and dword [ebp - 4], 0
mov dword [esi + 0x10], 7
jmp 0x423f21
sub eax, ecx
cmp eax, dword [ebp + 0xc]
jb 0x423f02
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
test eax, eax
je 0x423f1b
push eax
mov eax, dword [esi + 4]
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004132c0
add esp, 0xc
mov eax, dword [ebp - 4]
add dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
leave
ret
Function at 0x43bcf9
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
mov ebx, eax
jb 0x43bd09
mov eax, dword [esi]
jmp 0x43bd0b
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43bd1a
xor al, al
jmp 0x43bd44
test bl, 3
jne 0x43bd23
mov al, 1
jmp 0x43bd44
cmp dword [esi + 0x14], 8
jb 0x43bd2b
mov esi, dword [esi]
push esi
call fcn.0043f8e8
test eax, eax
je 0x43bd3a
and ebx, 2
jmp 0x43bd3d
and ebx, 1
xor eax, eax
test ebx, ebx
setne al
pop esi
pop ebx
ret
Function at 0x43eec2
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0x5a
mov dword [ebp - 4], 0x40
mov dword [ebp - 8], 0x51
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
shl eax, 4
sub ecx, eax
mov eax, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 4]
push 0x53
pop ecx
sub ecx, eax
add ecx, dword [ebp - 8]
push 0x14
add ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
imul eax, eax, 7
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
imul eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
pop ecx
push dword [ebp + 0xc]
sub ecx, eax
add ecx, dword [ebp - 4]
push dword [ebp + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
imul eax, eax, 0x59
imul ecx, edx
add eax, ecx
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
leave
ret 8

Function at 0x43f0b5
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push eax
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
pop ebp
ret 4

Function at 0x43f1a7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 4], 0x58
mov dword [ebp - 8], 0x35
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
imul eax, eax, 0x13
sub ecx, eax
mov eax, dword [ebp - 4]
sub ecx, eax
mov eax, dword [ebp - 4]
sub ecx, eax
mov eax, dword [ebp - 4]
sub ecx, eax
add ecx, dword [ebp - 8]
push 0
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
leave
ret 4

Function at 0x43f1e9
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 4], 0x54
mov dword [ebp - 8], 0x46
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
imul eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
imul eax, ecx
mov ecx, dword [ebp - 8]
imul eax, eax, 0x19
mov edx, dword [ebp - 4]
imul ecx, edx
imul ecx, ecx, 0x13
sub eax, ecx
add eax, dword [ebp - 4]
push 0x77
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ecx
sub ecx, eax
mov eax, dword [ebp - 8]
sub ecx, eax
add ecx, dword [ebp - 4]
push 0x3a
add ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
cdq
pop ecx
idiv ecx
push dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
imul eax, ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
leave
ret 4
Function at 0x441dd9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
fld qword [0x476908]
mov eax, 0x5a4d
fstp qword [ebp - 8]
fld qword [ebp - 8]
fsub qword [0x476900]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fsub qword [0x4768f8]
fadd qword [ebp - 8]
fadd qword [ebp - 8]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fld qword [ebp - 8]
fdiv qword [0x4768f0]
fsubp st(1)
fld qword [ebp - 8]
fdiv qword [0x4768e8]
fsubp st(1)
fsub qword [ebp - 8]
fadd qword [ebp - 8]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fadd qword [0x4768e0]
fadd qword [ebp - 8]
fadd qword [ebp - 8]
fsub qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4768d8]
fsubp st(1)
fadd qword [0x4768d0]
fsub qword [ebp - 8]
fsub qword [0x4768c8]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fadd qword [ebp - 8]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fsub qword [0x4768c0]
fsub qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4768b8]
fmul qword [0x4768b0]
fdiv qword [0x4768a8]
faddp st(1)
fadd qword [ebp - 8]
fadd qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4768a0]
fmul qword [ebp - 8]
faddp st(1)
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x476898]
fld qword [ebp - 8]
fsub qword [0x476890]
faddp st(1)
fadd qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [ebp - 8]
faddp st(1)
fadd qword [0x476888]
fstp qword [ebp - 8]
cmp word [ecx], ax
je 0x441ecf
xor eax, eax
leave
ret
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x441ecb
mov eax, dword [eax + ecx + 0x98]
test eax, eax
je 0x441ecb
add eax, ecx
leave
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x405258
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406cc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404de0
add esp, 0x104
pop ebx
ret
Function at 0x50b9b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x50b9d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50b9d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50b9c8
mov eax, 1
add ebx, ebx
jne 0x50b9eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50b9e0
jne 0x50b9fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b9e0
xor ecx, ecx
sub eax, 3
jb 0x50ba10
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50ba82
mov ebp, eax
add ebx, ebx
jne 0x50ba1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50ba28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50ba4c
inc ecx
add ebx, ebx
jne 0x50ba38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50ba2d
jne 0x50ba49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50ba2d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50ba6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50ba5d
jmp 0x50b9ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50ba6c
add edi, ecx
jmp 0x50b9ce
pop esi
mov edi, esi
mov ecx, 0x1d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50ba8a
cmp byte [edi], 6
jne 0x50ba8a
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 0x50ba8f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x50bafe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50babc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdb2c]
or eax, eax
je 0x50baf8
mov dword [ebx], eax
add ebx, 4
jmp 0x50bad9
call dword [esi + 0xdb28]
mov ebp, dword [esi + 0xdb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x50bb32
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, reloc.user32.dll_PostMessageW
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp int.00401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219

Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x7b9e40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x370000]
push edi
jmp 0x7b9e5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7b9e61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b9e50
mov eax, 1
add ebx, ebx
jne 0x7b9e73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7b9e84
jne 0x7b9ea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b9ea3
dec eax
add ebx, ebx
jne 0x7b9e90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7b9e68
add ebx, ebx
jne 0x7b9e9f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7b9ef5
xor ecx, ecx
sub eax, 3
jb 0x7b9ebb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7b9f2a
sar eax, 1
mov ebp, eax
jmp 0x7b9ec6
add ebx, ebx
jne 0x7b9ec6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b9e94
inc ecx
add ebx, ebx
jne 0x7b9ed4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b9e94
add ebx, ebx
jne 0x7b9ee1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7b9ed6
jne 0x7b9ef2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7b9ed6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7b9f14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7b9f06
jmp 0x7b9e56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7b9f14
add edi, ecx
jmp 0x7b9e56
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7b9f32
cmp byte [edi], 9
jne 0x7b9f32
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 0x7b9f37
lea edi, [esi + 0x3b7000]
mov eax, dword [edi]
or eax, eax
je 0x7b9faf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3e6cfc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3e6ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7b9f64
mov ecx, edi
jns 0x7b9f93
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 + 0x3e6de4]
or eax, eax
je 0x7b9fa9
mov dword [ebx], eax
add ebx, 4
jmp 0x7b9f81
call dword [esi + 0x3e6de0]
mov ebp, dword [esi + 0x3e6de8]
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 0x7b9fe3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x408254
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4088f0
call fcn.00408518
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4082b4
cmp eax, 0xffffffff
je 0x4082b4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4082ad
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4082ad
cmp edx, 0x10000000
jae 0x4082ad
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4082aa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x408320
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40835e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x408356
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x408360
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x408346
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x408430
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x408461
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x408461
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x408461
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4fffa0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa4000]
push edi
jmp 0x4fffba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4fffc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fffb0
mov eax, 1
add ebx, ebx
jne 0x4fffd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4fffe4
jne 0x500003
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x500003
dec eax
add ebx, ebx
jne 0x4ffff0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4fffc8
add ebx, ebx
jne 0x4fffff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x500055
xor ecx, ecx
sub eax, 3
jb 0x50001b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50008a
sar eax, 1
mov ebp, eax
jmp 0x500026
add ebx, ebx
jne 0x500026
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ffff4
inc ecx
add ebx, ebx
jne 0x500034
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ffff4
add ebx, ebx
jne 0x500041
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x500036
jne 0x500052
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x500036
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x500074
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x500066
jmp 0x4fffb6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x500074
add edi, ecx
jmp 0x4fffb6
pop esi
mov edi, esi
mov ecx, 0x3b6c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x500092
cmp byte [edi], 0x17
jne 0x500092
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 0x500097
lea edi, [esi + 0xf9000]
mov eax, dword [edi]
or eax, eax
je 0x500106
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11d5b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11d648]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5000c4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11d650]
or eax, eax
je 0x500100
mov dword [ebx], eax
add ebx, 4
jmp 0x5000e1
call dword [esi + 0x11d64c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x500137
cmp al, 0xef
ja 0x50012a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x50010c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x500119
mov ebp, dword [esi + 0x11d654]
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 0x50016b
sub esp, 0xffffff80
jmp 0x435126
Function at 0x4029e4
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.00403f5c
test esi, esi
jne 0x402a1a
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.0040404c
jmp 0x402a38
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028f8
mov edi, eax
test esi, esi
je 0x402a38
cmp dword [ebx], 0
je 0x402a38
dec esi
jmp 0x402a21
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40309c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x44f020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403134
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403114
xor eax, eax
push ebp
push 0x40310d
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 0x403150
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 0x403114
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x44f020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x44f020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403de0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x451048], 0
je 0x403e41
cmp word [0x45121c], 0xd7b2
jne 0x403e09
cmp dword [0x451224], 0
jbe 0x403e09
mov eax, 0x451218
call dword [0x451234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x44f06c
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 0x403e68
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44f030], 0
jne 0x403e5d
push 0
push 0x44f064
push 0x44f06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret