joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ffa5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4600bd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4600bd
mov eax, dword [esi + 0x3c]
push eax
call fcn.00479169
mov esi, eax
test esi, esi
je 0x4600bd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4600bd
mov ecx, esi
call fcn.0045ff10
cmp edi, eax
jge 0x4600bd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x460043
mov dword [esp + 0x34], 1
jmp 0x46009e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4600bd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0045f4c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x461ea0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x461f06
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x461f06
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x461ee7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x462290
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4622c8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x462f90
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x462fd9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x463450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x486900
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00463000
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00463080
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00463080
lea ecx, [esi + 0xc]
call fcn.004776ca
lea ecx, [esi + 0x10]
call fcn.004776ca
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00464610
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00464610
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00464610
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0047773f
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047773f
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x479b0d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x479b45
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00477b9a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00477b72
jmp 0x479b51
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47b200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47b242
call fcn.00481073
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47b242
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47b239
xor eax, eax
jmp 0x47b24a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047b250
pop edi
pop esi
pop ebx
ret 4

Function at 0x4815a3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4815d1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4815ef
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00481509
jmp 0x4815ef
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4815ef
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00481509
test edi, edi
mov eax, edi
jne 0x4815d9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Print debug messages
Shutdown system

Disassembly:
sub esp, 0x14
push esi
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004010a0
test al, al
je 0x401088
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test eax, eax
jne 0x40103d
push str.OpenProcessToken_failed.
call esi
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 0
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x401088
push str.AdjustTokenPrivileges_enable_failed.
call esi
push 0
push 1
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor eax, eax
pop esi
add esp, 0x14
ret 0x10

Function at 0x4010a0
Capabilities:
Check os version
Print debug messages

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x4010e5
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
je 0x40116d
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x401162
dec eax
je 0x401123
dec eax
jne 0x40116d
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp eax, 4
ja 0x40110a
push str.Microsoft_Windows_NT
call esi
cmp dword [esp + 0xc], 5
jne 0x401118
push str.Microsoft_Windows_2000
call esi
pop edi
mov al, 1
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0xc]
cmp eax, 4
ja 0x40114c
jne 0x401136
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x40114c
push str.Microsoft_Windows_95
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor al, al
pop esi
add esp, 0x9c
ret
push str.Microsoft_Windows_98
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor al, al
pop esi
add esp, 0x9c
ret
push str.Microsoft_Win32s
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor al, al
pop esi
add esp, 0x9c
ret
Function at 0x401dc5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4051b0
cmp edx, dword [eax]
je 0x401de7
add eax, 8
inc ecx
cmp eax, 0x405240
jl 0x401dd8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4051b0]
jne 0x401f15
mov eax, dword [0x405568]
cmp eax, 1
je 0x401eef
test eax, eax
jne 0x401e18
cmp dword [0x405100], 1
je 0x401eef
cmp edx, 0xfc
je 0x401f15
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401e4f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402370
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004024e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x401e92
lea eax, [ebp - 0x1a4]
push eax
call fcn.004024e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4043a0
push edi
call fcn.00403170
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402370
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402380
lea eax, [ebp - 0xa0]
push 0x404380
push eax
call fcn.00402380
push dword [esi + 0x4051b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402380
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004030de
add esp, 0x2c
pop edi
jmp 0x401f15
lea eax, [ebp + 8]
lea esi, [esi + 0x4051b4]
push 0
push eax
push dword [esi]
call fcn.004024e0
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 0x4215dd
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 0x42167a
push ebx
push esi
call fcn.004215a6
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.0042022b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x421627
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421679
push edi
push eax
call fcn.00419350
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x421647
call fcn.004188af
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421678
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042022b
add esp, 0x20
test eax, eax
jne 0x421666
push edi
call fcn.004188af
jmp 0x42166e
push ebx
call fcn.004188af
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 0x428550
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42857d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42857d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x11e36
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
call dword [str.ontrolSet_servicesBeep]
test al, al
jbe 0x11e4f
xor eax, eax
jmp 0x11ee6
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x44], eax
xor eax, eax
xor esi, esi
mov dword [ebp - 0x4c], 0x18
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], 0x40
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
push 0x20
stosd dword es:[edi], eax
push 1
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x100020
lea eax, [ebp - 4]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
call dword [0x17034]
test eax, eax
jl 0x11ee2
push dword [ebp - 4]
lea eax, [ebp - 0x4c]
push 0x1000000
push 0x10
push esi
push eax
push 0xf001f
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x44], esi
call dword [str.Beep]
test eax, eax
jl 0x11ee2
push 4
push 0x100000
push 1
lea eax, [ebp - 0x14]
push eax
push esi
push 0x3e8
push esi
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [0x1702c]
test eax, eax
jge 0x11eea
xor eax, eax
pop edi
pop esi
leave
ret 8
push ebx
push dword [ebp - 4]
call dword [0x17028]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
mov esi, dword [ecx + eax + 0x78]
push dword [ebp + 8]
add esi, eax
mov edi, dword [esi + 0x1c]
mov ebx, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
add ecx, eax
mov dword [ebp - 0xc], eax
add edi, eax
add ebx, eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x18], ecx
call dword [0x17024]
and dword [ebp + 0xc], 0
cmp dword [esi + 0x14], 0
jbe 0x11f7c
mov eax, dword [ebp + 0xc]
mov eax, dword [ebx + eax*4]
add eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [0x17024]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + ecx*2]
add eax, dword [ebp - 0x1c]
push 1
mov eax, dword [edi + eax*4 - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [0x17020]
test eax, eax
je 0x11f80
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0x14]
jb 0x11f32
xor esi, esi
jmp 0x11f83
mov esi, dword [ebp + 8]
push dword [ebp - 0x10]
call dword [0x17028]
mov eax, esi
pop ebx
jmp 0x11ee4

Function at 0x14a5c
Capabilities:
Packed with generic packer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
pushfd
pushal
mov ecx, 0x176
rdmsr
mov dword [0x34680], eax
popal
popfd
cmp dword [0x34270], 6
jae 0x14a8c
mov ebx, 0x180c8ac9
mov dword [ebp - 4], 9
jmp 0x14a98
mov ebx, 0xc933f28b
mov dword [ebp - 4], 0xf
mov eax, dword [0x34680]
xor edi, edi
mov esi, 0x100
push eax
call dword [0x1701c]
test al, al
mov eax, dword [0x34680]
je 0x14ab8
cmp dword [eax], ebx
je 0x14ac3
inc eax
inc edi
mov dword [0x34680], eax
cmp edi, esi
jbe 0x14aa4
cmp edi, esi
jbe 0x14ad7
and dword [0x34680], 0
and dword [0x337d0], 0
jmp 0x14ae7
add eax, dword [ebp - 4]
mov dword [0x34680], eax
add eax, 5
mov dword [0x337d0], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Check for foreground window switch
Check for time delay via gettickcount
Check for unmoving mouse cursor

Disassembly:
xor eax, eax
jmp 0x401064
mov edi, edi
push ebp
mov ebp, esp
jmp 0x4010cb
sub esp, 0x20
mov eax, dword [0x404008]
cmp eax, 0
jne 0x40114f
mov eax, dword [0x40400c]
jmp 0x401145
cmp eax, 0
jne 0x40114f
jmp 0x4012f4
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 4], eax
push 0x1388
jmp 0x4011be
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x40114f
mov dword [ebp - 0x14], eax
jmp 0x401239
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 4]
cmp eax, 0x1388
jl 0x40114f
lea eax, [ebp - 8]
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x40114f
mov eax, dword [0x404008]
cmp eax, 0
je 0x4012d1
push 0x3e8
call sub.KERNEL32.dll_Sleep
lea eax, [ebp - 0x10]
jmp 0x4012ae
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x401268
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
cmp eax, ebx
je 0x40114f
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
cmp eax, ebx
je 0x401268
mov eax, dword [0x40400c]
cmp eax, 0
je 0x4012f4
push 0x1388
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x4012d1
cmp eax, dword [ebp - 0x14]
je 0x4012d1
push dword [0x404000]
mov eax, 0x40401a
mov ebx, 0x404302
sub ebx, eax
jmp 0x401316
push ebx
push 0x40401a
call fcn.0040130b
lea eax, [ebp - 4]
push eax
jmp 0x401394
push 0x40
mov eax, 0x401537
mov ebx, 0x4030d1
sub ebx, eax
mov dword [ebp - 0x14], ebx
push ebx
push 0x401537
jmp 0x40141b
call sub.KERNEL32.dll_VirtualProtect
push dword [0x404004]
mov eax, dword [ebp - 0x14]
push eax
push 0x401537
call fcn.0040130b
lea eax, [ebp - 4]
push eax
jmp 0x40151c
push dword [eax]
mov eax, dword [ebp - 0x14]
push eax
push 0x401537
call sub.KERNEL32.dll_VirtualProtect
jmp 0x401537
push esi
push esi
push esi
push esi
xchg ecx, eax
fadd qword [eax]
add byte [esi + 0xce9a], ch
scasb al, byte es:[edi]
les eax, [ebp + 0x102e0086]
into
add byte [eax], al
salc
add byte [eax], al
add byte [esi], ch
enter 0, 0xffffffffffffffac
add byte [esi], ch
xor byte [ebp + 0x6f70000], ch
syscall
xchg ebx, eax
dec edi
and eax, dword [ebp + 0x2a]
out 0x95, al
xchg edi, eax
xchg esp, eax
xchg ecx, eax
nop
test dword [esi], 0x4f3a834f
cmp dword [esi], 0x4f
xor dword [edx], 0x4f
xor dword [esi], 0x4f
sub dword [edx], 0x4f
sub dword [esi], 0x4f
and dword [edx], 0x2e
fcmovnb st(0), st(5)
add byte [eax], al
dec edi
cmp dword [edx], 0xffffffae
ret 0xc7
Function at 0x4075d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x4075ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4075f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4075e0
mov eax, 1
add ebx, ebx
jne 0x407603
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4075f8
jne 0x407614
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4075f8
xor ecx, ecx
sub eax, 3
jb 0x407628
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40769a
mov ebp, eax
add ebx, ebx
jne 0x407633
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407640
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x407664
inc ecx
add ebx, ebx
jne 0x407650
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407645
jne 0x407661
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407645
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x407684
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x407675
jmp 0x4075e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x407684
add edi, ecx
jmp 0x4075e6
pop esi
mov edi, esi
mov ecx, 2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4076a2
cmp byte [edi], 0
jne 0x4076a2
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 0x4076a7
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x407716
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x71c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7228]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4076d4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7230]
or eax, eax
je 0x407710
mov dword [ebx], eax
add ebx, 4
jmp 0x4076f1
call dword [esi + 0x722c]
mov ebp, dword [esi + 0x7234]
lea edi, [esi - 0x1000]
mov ebx, pe_overlay
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x40774a
sub esp, 0xffffff80
jmp 0x401020

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x319e6eac
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x10ae28a5
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401497
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x47b390]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405bb3
cmp eax, ebx
je 0x401533
push ebx
push dword [0x47b390]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x47b390], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401529
jmp 0x40152c