joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405838
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x4060d0
call fcn.00405e04
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x407364
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x40587d
cmp eax, esi
jne 0x405870
xor esi, esi
inc esi
mov edi, esi
jmp 0x405880
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x405854
xor esi, esi
inc esi
cmp dword [0x407368], esi
jne 0x405892
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4058cc
cmp dword [0x407368], ebx
jne 0x4058c6
mov dword [0x407368], esi
push 0x401018
push 0x40100c
call fcn.004059ac
pop ecx
pop ecx
test eax, eax
je 0x4058cc
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4059a1
mov dword [0x407014], esi
cmp dword [0x407368], esi
jne 0x4058ef
push 0x401008
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x407368], 2
test edi, edi
jne 0x4058fc
xor eax, eax
mov ecx, 0x407364
xchg dword [ecx], eax
cmp dword [0x407374], 0
je 0x405928
push 0x407374
call fcn.00405c30
pop ecx
test eax, eax
je 0x405928
push ebx
push 2
push ebx
mov esi, dword [0x407374]
mov ecx, esi
call dword [0x408144]
call esi
push dword [0x407020]
push dword [0x40701c]
push dword [0x407018]
call fcn.00401a93
add esp, 0xc
mov dword [0x407010], eax
cmp dword [0x407028], 0
jne 0x405986
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x407014], 0
jne 0x40599a
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x407010]
mov dword [ebp - 4], 0xfffffffe
call fcn.00405e4c
ret
call fcn.0055a000
jmp 0x405838

Function at 0x405b1f
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x406148
call fcn.0040603c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x405b7f
cmp eax, 0xffffffff
je 0x405b7f
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x405b78
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x405b78
cmp edx, 0x10000000
jae 0x405b78
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 0x405b75
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00406081
ret 4

Function at 0x405be0
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 0x405c1e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x405c16
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x405c20
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x405c06
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10009e5f
Capabilities:
Set registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x100436e0]
xor eax, esp
mov dword [esp + 0x114], eax
cmp dword [0x10043820], 0
push ebx
mov ebx, dword [esp + 0x134]
push ebp
mov ebp, dword [esp + 0x124]
push esi
mov esi, dword [esp + 0x12c]
push edi
mov edi, dword [esp + 0x13c]
je 0x10009fd9
and dword [esp + 0x10], 0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x10]
jne 0x10009eaa
sub ecx, edx
push 1
sar ecx, 1
lea eax, [ecx + 1]
xor edx, edx
push edx
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x24], eax
add eax, eax
push eax
push edx
push 0x78
lea ecx, [esp + 0x40]
mov dword [esp + 0x28], eax
call fcn.100169af
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10009f88
xor ecx, ecx
push ecx
push ecx
push dword [esp + 0x18]
push eax
push dword [esp + 0x28]
push esi
push ecx
push ecx
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov esi, dword [esp + 0x138]
test esi, esi
je 0x10009fd3
cmp esi, 2
jbe 0x10009f22
cmp esi, 7
jne 0x10009fd3
test ebx, ebx
jne 0x10009f41
xor eax, eax
push eax
push edi
push esi
push dword [esp + 0x140]
push dword [esp + 0x24]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x10009f8b
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
mov eax, ebx
shr eax, 1
push eax
push edi
push ecx
push ecx
mov dword [esp + 0x38], eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push 1
xor ecx, ecx
push ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0xb4]
push eax
push ebx
push ecx
push 0x78
lea ecx, [esp + 0x34]
call fcn.100169af
mov ebx, dword [esp + 0x20]
test ebx, ebx
jne 0x10009f98
lea ecx, [esp + 0x1c]
call fcn.100089b8
push 0xe
pop esi
lea ecx, [esp + 0x28]
call fcn.100089b8
mov eax, esi
jmp 0x10009ff1
xor eax, eax
push eax
push eax
push dword [esp + 0x18]
push ebx
push dword [esp + 0x28]
push edi
push eax
push eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push dword [esp + 0x10]
push ebx
push esi
push dword [esp + 0x140]
push dword [esp + 0x24]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.100089b8
jmp 0x10009f8b
push ebx
jmp 0x10009f29
push ebx
push edi
push dword [esp + 0x140]
push dword [esp + 0x140]
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10029dae
add esp, 0x118
ret 0x18
Function at 0x1000a463
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x88
mov eax, dword [0x100436e0]
xor eax, esp
mov dword [esp + 0x84], eax
cmp dword [0x10043820], 0
push esi
mov esi, dword [esp + 0x94]
push edi
mov edi, dword [esp + 0x94]
je 0x1000a4ff
push ebx
mov ecx, esi
push ebp
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1000a499
push 1
sub ecx, edx
push ebx
sar ecx, 1
lea eax, [esp + 0x24]
push eax
lea ebp, [ecx*2 + 2]
push ebp
push ebx
push 0x78
lea ecx, [esp + 0x28]
call fcn.100169af
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x1000a4e1
xor eax, eax
push eax
push eax
push ebp
push ebx
push 0xffffffffffffffff
push esi
push eax
push eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1000a4e6
push 0xe
pop esi
jmp 0x1000a4f0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
lea ecx, [esp + 0x10]
call fcn.100089b8
pop ebp
mov eax, esi
pop ebx
jmp 0x1000a507
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.10029dae
add esp, 0x88
ret 8

Function at 0x1000a520
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x88
mov eax, dword [0x100436e0]
xor eax, esp
mov dword [esp + 0x84], eax
cmp dword [0x10043820], 0
push ebx
mov ebx, dword [esp + 0x98]
push esi
mov esi, dword [esp + 0x94]
push edi
mov edi, dword [esp + 0xa4]
je 0x1000a5b5
push ebp
push 1
push 0
lea ecx, [esp + 0x24]
push ecx
lea eax, [edi + edi]
push eax
push 0
push 0x78
lea ecx, [esp + 0x28]
call fcn.100169af
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x1000a5a2
lea eax, [edi + edi]
push eax
push ebp
push dword [esp + 0xa8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x1000a5a7
push edi
push ebx
push 0xffffffffffffffff
push ebp
push eax
push eax
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1000a5a7
mov esi, 0x8007000e
lea ecx, [esp + 0x10]
call fcn.100089b8
mov eax, esi
pop ebp
jmp 0x1000a5c5
push edi
push ebx
push dword [esp + 0xa4]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10029dae
add esp, 0x88
ret 0x10
Function at 0x1000b115
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100436e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x2a
call dword [sym.imp.user32.dll_GetSystemMetrics]
test eax, eax
je 0x1000b26b
push ebx
mov ebx, 0x105
push ebx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000b26a
push 0x1003a274
lea eax, [ebp - 0x10c]
push ebx
push eax
call dword [sym.imp.msvcr100.dll_strcat_s]
add esp, 0xc
test eax, eax
jne 0x1000b26a
mov ebx, dword [sym.imp.kernel32.dll_FreeLibrary]
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_SetErrorMode]
cmp dword [0x10043820], eax
je 0x1000b1d1
push 0x8000
call edi
push str.USER32.DLL
mov esi, eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
push esi
mov dword [0x10043da4], eax
call edi
mov eax, dword [0x10043da4]
test eax, eax
je 0x1000b1d1
push str.SendIMEMessageExA
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x10043d58], eax
test eax, eax
jne 0x1000b1d1
push dword [0x10043da4]
call ebx
and dword [0x10043da4], 0
push 0x8000
call edi
mov esi, eax
push str.IMM32.DLL
lea eax, [ebp - 0x10c]
push eax
push 0x105
lea eax, [ebp - 0x214]
push eax
call fcn.100169af
test eax, eax
je 0x1000b268
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
push esi
mov dword [0x10043d5c], eax
call edi
mov ecx, dword [0x10043d5c]
test ecx, ecx
je 0x1000b268
xor esi, esi
cmp dword [0x1003a068], esi
je 0x1000b268
xor eax, eax
mov edi, 0x1003a068
push dword [eax + 0x1003a06c]
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, dword [edi]
mov dword [ecx], eax
test eax, eax
je 0x1000b259
inc esi
mov eax, esi
shl eax, 3
lea edi, [eax + 0x1003a068]
cmp dword [edi], 0
je 0x1000b268
mov ecx, dword [0x10043d5c]
jmp 0x1000b22b
push dword [0x10043d5c]
call ebx
and dword [0x10043d5c], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029dae
leave
ret
Function at 0x10016940
Capabilities:
Read file on windows

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.msvcr100.dll__read]
add esp, 0xc
ret 0xc

Function at 0x100169af
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x100169be
pop dword [ebp - 0x40]
mov eax, 0x100169be
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x3b64fc98
sub dword [ebp - 0x50], 0xed12b74d
mov dword [ebp - 0x4c], 0x6fa433ec
sub dword [ebp - 0x4c], 0x3d70e7a7
mov dword [ebp - 0x48], 0x758229dd
sub dword [ebp - 0x48], 0x2935e5af
mov dword [ebp - 0x44], 0x505d11ef
add dword [ebp - 0x44], 0xafa2ee11
lea eax, [ebp - 0x50]
push eax
mov eax, 0xc405461c
sub eax, 0xb401b4b4
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xb0c44d88
sub dword [ebp - 0x50], 0x3c51e432
mov dword [ebp - 0x4c], 0x116cab9f
sub dword [ebp - 0x4c], 0xd0004a2a
mov dword [ebp - 0x48], 0x839598a2
add dword [ebp - 0x48], 0xdfd9d3ca
mov dword [ebp - 0x44], 0x8500852f
sub dword [ebp - 0x44], 0x8500852f
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xaf88d29a
sub eax, 0x9f85423a
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3d96e
push 0
call eax
mov ecx, 0xddaa3f44
sub ecx, 0xdda9e76d
mov edi, eax
mov edx, 0xad503b2a
sub edx, 0x9d4b032a
add edx, dword [ebp - 0x40]
mov esi, 0x30f9f28e
xor dword [ebp - 0x34], 0xb66f0c69
mov ebx, dword [edx]
xor dword [ebp - 0x38], edx
add ebx, esi
xor dword [ebp - 0x34], ecx
mov dword [edi], ebx
add dword [ebp - 0x34], ebx
add edi, 0xdccc9204
add edi, 0x23336e00
add edx, 0x2e10e5bb
sub edx, 0x2e10e5b7
loop 0x10016ad5
add eax, 0x1c1ed676
add eax, 0xe3e27bb9
xor ebx, ebx
add ebx, eax
add eax, 0xeec1f013
sub eax, 0xeec1f00e
mov ecx, 0xa92995b7
add ecx, 0x66d66a49
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x10017236
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100436e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push 2
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.100169af
push 2
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.100169af
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.msvcr100.dll_rename]
pop ecx
pop ecx
pop esi
test eax, eax
je 0x100172bb
call dword [sym.imp.msvcr100.dll__errno]
mov eax, dword [eax]
dec eax
dec eax
je 0x100172b2
sub eax, 0xb
je 0x100172ae
sub eax, 4
je 0x100172aa
dec eax
je 0x100172a6
push 5
jmp 0x100172b4
push 0x4a
jmp 0x100172b4
push 0x3a
jmp 0x100172b4
push 0x4b
jmp 0x100172b4
push 0x35
pop eax
push eax
call fcn.1000c0de
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029dae
leave
ret 8
Function at 0x10017979
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100436e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x35
pop edi
test esi, esi
je 0x100179b4
cmp word [esi], 0
je 0x100179b4
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100179a3
sub ecx, edx
cmp ecx, 0x104
jbe 0x100179ba
push edi
call fcn.1000c0de
push 1
push esi
lea eax, [ebp - 0x10c]
push eax
call fcn.100169af
mov esi, dword [ebp + 0xc]
mov eax, esi
or eax, 0x27
cmp eax, 0x27
je 0x100179dd
push 5
call fcn.1000c0de
test esi, esi
jne 0x100179e6
mov esi, 0x80
push esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
jne 0x10017a29
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
cmp eax, 5
je 0x10017a19
call esi
cmp eax, edi
je 0x10017a19
call esi
cmp eax, 0x57
je 0x10017a19
call esi
cmp eax, 0x13
jne 0x10017a1c
push 0x4b
pop edi
movzx eax, di
test eax, eax
je 0x10017a29
push eax
call fcn.1000c0de
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10029dae
leave
ret 8
Function at 0x1001d8c4
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [esp + 0x24]
push esi
push eax
call sub.msvcr100.dll_memset
mov eax, dword [esp + 0x78]
add esp, 0xc
mov dword [esp + 0x20], edi
mov dword [esp + 0x4c], 1
mov word [esp + 0x50], ax
cmp ax, 9
jbe 0x1001d8ff
push 5
call fcn.1000c0de
mov eax, dword [esp + 0x68]
push ebx
push ebp
test eax, eax
je 0x1001d91e
cmp word [eax], 8
jne 0x1001d91e
cmp dword [eax + 8], esi
jne 0x1001d91e
push esi
push esi
call dword [sym.imp.oleaut32.dll_SysReAllocStringLen]
jmp 0x1001d924
push eax
call fcn.100169af
mov ebx, eax
test ebx, ebx
jne 0x1001d931
push 5
call fcn.1000c0de
cmp dword [0x10043820], esi
je 0x1001d9af
test ebx, ebx
jne 0x1001d941
mov eax, esi
jmp 0x1001d946
mov eax, dword [ebx - 4]
shr eax, 1
push esi
push esi
push esi
push esi
inc eax
push eax
push ebx
push esi
push esi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x1001d967
push ebp
call fcn.10008870
mov edi, eax
test edi, edi
jne 0x1001d971
push 0xe
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x1001d9c9
test ebx, ebx
jne 0x1001d979
mov eax, esi
jmp 0x1001d97e
mov eax, dword [ebx - 4]
shr eax, 1
push esi
push esi
push ebp
push edi
inc eax
push eax
push ebx
push esi
push esi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.kernel32.dll_CreateProcessA]
push edi
mov esi, eax
call fcn.100088c0
jmp 0x1001d9c9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.kernel32.dll_CreateProcessW]
mov esi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
mov edi, eax
call dword [sym.imp.oleaut32.dll_SysStringLen]
pop ebp
pop ebx
test esi, esi
jne 0x1001da0d
dec edi
dec edi
je 0x1001d9f1
dec edi
je 0x1001d9f8
sub edi, 5
je 0x1001d9ff
sub edi, 6
je 0x1001d9ff
jmp 0x1001da06
push 0x35
call fcn.1000c0de
push 0x4c
call fcn.1000c0de
push 7
call fcn.1000c0de
push 5
call fcn.1000c0de
push 0x2710
push dword [esp + 0x14]
call dword [sym.imp.user32.dll_WaitForInputIdle]
push dword [esp + 0x14]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [esp + 0x10]
call esi
fild dword [esp + 0x18]
pop edi
pop esi
fstp qword [esp]
fld qword [esp]
add esp, 0x5c
ret 8
Function at 0x10023608
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x1ac
mov eax, dword [0x100436e0]
xor eax, esp
mov dword [esp + 0x1a8], eax
mov eax, dword [esp + 0x1b4]
push ebp
mov ebp, dword [esp + 0x1b4]
lea ecx, [esp + 4]
push ecx
push eax
push ebp
mov dword [esp + 0x24], eax
call fcn.100169af
test eax, eax
je 0x10023647
push 5
pop eax
jmp 0x1002373e
push ebx
push esi
push edi
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x18]
push eax
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push eax
push eax
push eax
xor edi, edi
push edi
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0xdc]
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x50], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [esp + 0x18]
push 1
push edi
mov esi, eax
lea eax, [esp + 0x44]
push eax
lea ecx, [ecx*2 + 2]
push ecx
push edi
push 0x78
lea ecx, [esp + 0x40]
call fcn.100169af
mov ebx, dword [esp + 0x2c]
test esi, esi
jne 0x10023718
test ebx, ebx
jne 0x100236c4
push 7
jmp 0x1002371a
push ebx
push dword [esp + 0x14]
call fcn.1000a463
test eax, eax
jne 0x10023718
mov eax, dword [esp + 0x18]
push edi
push edi
push edi
inc eax
push edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
push ebx
push edi
push dword [esp + 0x2c]
call fcn.1000a5df
test eax, eax
je 0x100236b6
cmp eax, 0x103
jne 0x10023718
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10023708
lea ecx, [esp + 0x28]
call fcn.100089b8
push 5
pop eax
jmp 0x1002373b
push dword [esp + 0x24]
push ebp
call fcn.100169af
test eax, eax
je 0x10023730
jmp 0x1002372d
push 5
pop edi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10023730
test edi, edi
jne 0x10023730
push 5
pop edi
lea ecx, [esp + 0x28]
call fcn.100089b8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1ac]
pop ebp
xor ecx, esp
call fcn.10029dae
add esp, 0x1ac
ret 8

Function at 0x10029dae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100436e0]
jne 0x10029db8
repz ret
jmp fcn.1002a2cf
Function at 0x1002989
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1002e08
call fcn.01002b34
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1004378
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100279e
cmp eax, esi
jne 0x1002791
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10027a1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002778
xor esi, esi
inc esi
mov eax, dword [0x1004374]
cmp eax, esi
jne 0x10027b4
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10027ef
mov eax, dword [0x1004374]
test eax, eax
jne 0x10027e9
mov dword [0x1004374], esi
push 0x10011b0
push 0x10011a4
call fcn.010026f5
pop ecx
pop ecx
test eax, eax
je 0x10027ef
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10028b9
mov dword [0x1004038], esi
mov eax, dword [0x1004374]
cmp eax, esi
jne 0x1002813
push 0x10011a0
push 0x1001198
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1004374], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002820
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100437c], ebx
je 0x1002841
push 0x100437c
call fcn.01002aa9
pop ecx
test eax, eax
je 0x1002841
push ebx
push 2
push ebx
call dword [0x100437c]
push dword [0x1004020]
push dword [0x1004024]
push dword [0x100401c]
call fcn.010025bb
add esp, 0xc
mov dword [0x1004034], eax
cmp dword [0x1004028], ebx
jne 0x100289f
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1004038], ebx
jne 0x10028ad
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004034]
call fcn.01002b79
ret
call fcn.01002c81
jmp 0x1002756

Function at 0x401000
Capabilities:
Execute command

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov esi, 5
nop dword [eax]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00401040
push 0x401250
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push str.pause
call edi
add esp, 4
sub esi, 1
jne 0x401010
pop edi
xor eax, eax
pop esi
ret
Function at 0x678230
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x213000]
push edi
jmp 0x67824a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x678251
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x678240
mov eax, 1
add ebx, ebx
jne 0x678263
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x678258
jne 0x678274
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x678258
xor ecx, ecx
sub eax, 3
jb 0x678288
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6782fa
mov ebp, eax
add ebx, ebx
jne 0x678293
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x6782a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x6782c4
inc ecx
add ebx, ebx
jne 0x6782b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6782a5
jne 0x6782c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6782a5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6782e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6782d5
jmp 0x678246
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6782e4
add edi, ecx
jmp 0x678246
pop esi
mov edi, esi
mov ecx, 0x36
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x678302
cmp byte [edi], 1
jne 0x678302
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 0x678307
lea edi, [esi + 0x276000]
mov eax, dword [edi]
or eax, eax
je 0x678376
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x27ca7c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x27cafc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x678334
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x27cb04]
or eax, eax
je 0x678370
mov dword [ebx], eax
add ebx, 4
jmp 0x678351
call dword [esi + 0x27cb00]
mov ebp, dword [esi + 0x27cb08]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
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 0x6783aa
sub esp, 0xffffff80
jmp 0x4016a9