joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014630
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a9f6
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x10026018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dx, word [0x100215c4]
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x620]
mov esi, ecx
mov ecx, dword [0x100215c0]
push eax
push 0x3ff
mov dword [ebp - 0x660], esi
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], dx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10014858
lea ebx, [ebp - 0x620]
xor edi, edi
jmp 0x100146b0
mov cx, word [ebx]
push 0x104
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0x18], cx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10014766
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x628], 7
mov dword [ebp - 0x62c], edi
mov word [ebp - 0x63c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100146f3
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x63c]
call fcn.100173e0
lea eax, [ebp - 0x220]
mov dword [ebp - 4], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10014720
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x63c]
push eax
call fcn.10016830
mov esi, eax
cmp esi, 0xffffffff
jne 0x10014785
mov dword [ebp - 4], eax
cmp dword [ebp - 0x628], 8
jb 0x10014766
mov ecx, dword [ebp - 0x63c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dx, word [ebx]
add ebx, 2
test dx, dx
jne 0x10014766
cmp word [ebx], di
je 0x10014858
mov esi, dword [ebp - 0x660]
jmp 0x100146b0
xor eax, eax
mov word [ebp - 0x658], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x644], 7
mov dword [ebp - 0x648], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100147a7
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x658]
call fcn.100173e0
mov eax, ebx
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100147d1
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x648]
push ebx
inc eax
push esi
lea ecx, [ebp - 0x63c]
call fcn.100166a0
mov esi, 8
cmp dword [ebp - 0x644], esi
jb 0x10014812
mov ecx, dword [ebp - 0x658]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x63c]
cmp dword [ebp - 0x628], esi
jae 0x10014826
lea eax, [ebp - 0x63c]
mov edx, dword [ebp - 0x65c]
push eax
push 0x104
push edx
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
cmp dword [ebp - 0x628], esi
jb 0x10014854
mov eax, dword [ebp - 0x63c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
jmp 0x1001485a
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10019756
mov esp, ebp
pop ebp
ret
Function at 0x10014970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x100
push 0
push 0x111840f8
mov ebx, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + 0x10020070]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x111840f8], cl
inc eax
cmp eax, 0x100
jb 0x10014990
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push 1
push eax
push 0x111840f8
push 0
mov ecx, 0x10126530
call fcn.1000b630
mov eax, dword [0x101303e4]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x14
test eax, eax
je 0x10014a02
push 0
push 0
push 0x10
push eax
call esi
mov ecx, dword [0x11183a78]
mov edx, dword [0x101303fc]
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
push ecx
push edx
mov dword [0x101303e4], 0
call edi
jmp 0x10014a08
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, dword [0x1013050c]
test eax, eax
je 0x10014a33
push 0
push 0
push 0x10
push eax
call esi
mov eax, dword [0x11183a78]
mov ecx, dword [0x10130524]
push eax
push ecx
mov dword [0x1013050c], 0
call edi
mov eax, dword [0x10130634]
test eax, eax
je 0x10014a5e
push 0
push 0
push 0x10
push eax
call esi
mov edx, dword [0x11183a78]
mov eax, dword [0x1013064c]
push edx
push eax
mov dword [0x10130634], 0
call edi
mov eax, dword [ebp + 8]
sub eax, 0
je 0x10014a82
dec eax
je 0x10014a76
dec eax
jne 0x10014a8e
lea ecx, [eax + 0x6a]
mov eax, 0x2b2bb9
jmp 0x10014a94
mov ecx, 0x69
mov eax, 0x116896
jmp 0x10014a94
mov ecx, 0x67
mov eax, 0x9ca476
jmp 0x10014a94
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push eax
push edx
call fcn.100135a0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
mov ecx, ebx
mov edi, 0x100148d0
mov dword [ebx + 8], eax
call fcn.10016510
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 4]
test eax, eax
je 0x10014b06
push 0
push 0
push 0x10
push eax
call esi
mov edx, dword [0x11183a78]
mov eax, dword [ebx + 0x1c]
push edx
push eax
mov dword [ebx + 4], 0
call dword [sym.imp.USER32.dll_UnregisterClassA]
call fcn.100164d0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x10016270
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x100
push 0
push 0x111840f8
mov esi, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
shl esi, 8
lea ecx, [esi + 0x1001d670]
pop esi
mov dl, byte [ecx + eax]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x111840f8], dl
inc eax
cmp eax, 0x100
jb 0x10016293
mov eax, 0x111840f8
ret

Function at 0x10016510
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x10026018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x2f4], eax
push esi
mov ecx, 0xd6
xor eax, eax
mov dl, byte [eax + 0x100217d8]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x18], dl
inc eax
and ecx, 0xff
cmp eax, 0x12
jb 0x10016537
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x3f669c7f
lea eax, [ebp - 0x24]
mov byte [ebp - 6], 0
call fcn.10016dc0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x2f8]
push ecx
push 0x40
mov esi, eax
xor eax, eax
push 0x100
push esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
mov byte [ebp - 6], al
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x2f4]
push edx
push 0
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2f0]
push eax
mov ebx, 0x10002
push esi
mov dword [ebp - 0x2f0], ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea ecx, [ebp - 0x2f0]
push ecx
push esi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x2f0], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10019756
mov esp, ebp
pop ebp
ret 4
Function at 0x10017520
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x10126504]
push edi
cmp esi, dword [0x10126508]
je 0x100175ee
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
nop
cmp byte [esi], 2
jne 0x1001755e
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 1]
push ecx
xor ebx, ebx
push connect
mov dword [ebp - 4], ebx
call edi
cmp dword [ebp - 4], ebx
jne 0x10017573
add esi, 0x105
cmp esi, dword [0x10126508]
jne 0x10017540
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10126508]
mov esi, dword [0x10126504]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100175d6
xor edi, edi
cmp byte [edi + esi], 2
jne 0x100175b2
lea ecx, [edi + esi + 1]
push ecx
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, dword [0x10126504]
mov ecx, dword [0x10126508]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add edi, 0x105
cmp ebx, eax
jb 0x10017596
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 6
xor ecx, ecx
call fcn.10002cc0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10017820
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.100179c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100178e4
cmp dword [ebp - 4], 0x50000000
jb 0x10017861
cmp dword [ebp - 4], 0x80000000
ja 0x10017861
mov dword [ebp - 4], 0x4fff0000
jmp 0x1001783a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10017887
jmp 0x100178e4
cmp dword [ebp - 0x14], 0x10000
jne 0x100178ca
cmp dword [ebp - 0x18], 0x10000
jb 0x100178ca
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100178bd
mov eax, dword [ebp - 8]
jmp 0x100178e6
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100178df
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.100179c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1001783a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100178f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100179f0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100179ac
cmp dword [ebp - 4], 0x50000000
jb 0x1001792c
cmp dword [ebp - 4], 0x80000000
ja 0x1001792c
mov dword [ebp - 4], 0x80010000
jmp 0x10017905
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10017952
jmp 0x100179ac
cmp dword [ebp - 0x14], 0x10000
jne 0x10017995
cmp dword [ebp - 0x18], 0x10000
jb 0x10017995
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10017988
mov eax, dword [ebp - 8]
jmp 0x100179ae
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100179a7
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100179f0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10017905
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10018130
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10018145
xor eax, eax
jmp 0x100181ba
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x10000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x10018172
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x100181b5
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x100181b3
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x100181af
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0x10]
jb 0x100181b3
xor eax, eax
jmp 0x100181ba
jmp 0x10018169
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10018380
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10130a78]
mov dword [ebp - 4], eax
jmp 0x10018399
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100183b6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10018390
mov esp, ebp
pop ebp
ret
Function at 0x10018800
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10130a88], eax
je 0x1001881e
mov eax, 0x10dd
jmp 0x100188ff
mov eax, dword [0x10130a98]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001889c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1001887a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1001887a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10017e90
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10018826
mov dword [0x10130a98], 0
call fcn.100181c0
mov ecx, dword [0x10130a94]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x100188e9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x100188b4
mov dword [0x10130a94], 0
mov dword [0x10130a88], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10018df0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10130a8c], 0
je 0x10018e09
mov eax, dword [0x10130a8c]
jmp 0x10018ea9
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x10018e1b
xor eax, eax
jmp 0x10018ea9
push 8
call fcn.1001986a
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10018e71
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x10018e5a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10130a8c], eax
mov dword [0x10130a90], 0
mov eax, dword [ebp - 8]
jmp 0x10018ea9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10018e8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x10018e3b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10130a94]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10130a94], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10019756
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10026018]
jne 0x10019760
repz ret
jmp fcn.10019c99
Function at 0x1050a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1050a1a8
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 0x1050a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1050a06a
add dl, dl
jne 0x1050a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1050a0dc
xor eax, eax
add dl, dl
jne 0x1050a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1050a17d
add dl, dl
jne 0x1050a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1050a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1050a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1050a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1050a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1050a075
mov eax, 1
add dl, dl
jne 0x1050a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1050a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1050a0e1
sub eax, ebx
mov ebx, 1
jne 0x1050a128
mov ecx, 1
add dl, dl
jne 0x1050a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1050a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1050a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1050a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1050a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1050a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1050a136
cmp eax, 0x7d00
jae 0x1050a16d
cmp eax, 0x500
jb 0x1050a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1050a075
cmp eax, 0x7f
ja 0x1050a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1050a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1050a19e
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 0x1050a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4b25e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x56000]
mov dword [edi + 0x9e09c], 0x6c7336ef
push edi
or ebp, 0xffffffff
jmp 0x4b260a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b2611
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2600
mov eax, 1
add ebx, ebx
jne 0x4b2623
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b2634
jne 0x4b2653
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2653
dec eax
add ebx, ebx
jne 0x4b2640
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b2618
add ebx, ebx
jne 0x4b264f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b26a5
xor ecx, ecx
sub eax, 3
jb 0x4b266b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b26da
sar eax, 1
mov ebp, eax
jmp 0x4b2676
add ebx, ebx
jne 0x4b2676
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2644
inc ecx
add ebx, ebx
jne 0x4b2684
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2644
add ebx, ebx
jne 0x4b2691
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b2686
jne 0x4b26a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b2686
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b26c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b26b6
jmp 0x4b2606
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b26c4
add edi, ecx
jmp 0x4b2606
pop esi
mov edi, esi
mov ecx, 0x2974
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b26e2
cmp byte [edi], 0x1c
jne 0x4b26e2
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 0x4b26e7
lea edi, [esi + 0xaf000]
mov eax, dword [edi]
or eax, eax
je 0x4b2756
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb3220]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb32c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b2714
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb32c4]
or eax, eax
je 0x4b2750
mov dword [ebx], eax
add ebx, 4
jmp 0x4b2731
call dword [esi + 0xb32d4]
mov ebp, dword [esi + 0xb32c8]
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 0x4b278a
sub esp, 0xffffff80
jmp fcn.0049eab0
Function at 0x402ac4
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.004044d4
test esi, esi
jne 0x402afa
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.004045c4
jmp 0x402b18
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402978
mov edi, eax
test esi, esi
je 0x402b18
cmp dword [ebx], 0
je 0x402b18
dec esi
jmp 0x402b01
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4035c0
Capabilities:
Query or enumerate registry value

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

Function at 0x404338
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48a04c], 0
je 0x404399
cmp word [0x48a220], 0xd7b2
jne 0x404361
cmp dword [0x48a228], 0
jbe 0x404361
mov eax, 0x48a21c
call dword [0x48a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x488054
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 0x4043c0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48801c], 0
jne 0x4043b5
push 0
push 0x488074
push 0x488054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret