joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x10050a0
push edi
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
dec dword [esi + 0xc]
lea eax, [ebp - 4]
push eax
push dword [esi]
call fcn.010011ad
test eax, eax
jne 0x1001323
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x1001340
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001323
cmp dword [ebp - 0x10], 4
jne 0x1001323
cmp dword [ebp - 8], 1
jne 0x1001323
cmp dword [esi + 0xc], ebx
je 0x100136e
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x100133b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
leave
ret 4
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 4]
mov dword [ebp + 8], ebx
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
je 0x1001323
mov eax, dword [esi + 4]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 4]
mov dword [eax + 8], ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
jmp 0x1001323
Function at 0x10025d1
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
xor ebx, ebx
push edi
xor edi, edi
inc ebx
cmp eax, edi
jne 0x1002d32
mov eax, dword [esi + 0x30]
cmp eax, edi
jne 0x100303e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
cmp eax, edi
je 0x1002616
push dword [eax + 0x64]
call dword [sym.imp.RPCRT4.dll_RpcMgmtSetServerStackSize]
cmp dword [esi + 0x34], edi
jne 0x10032d7
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4
test byte [esi + 0x38], bl
jne 0x10032c4
push ebx
lea ecx, [esi + 0x20]
push ecx
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push eax
call fcn.01002d61
test eax, eax
jne 0x10025ec
jmp 0x10032bd
shl eax, 0xa
push eax
jmp 0x1002610
xor eax, eax
jmp 0x100262b
push 4
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x10025ec
jmp 0x10032bd
push ebx
push edi
push ebx
call dword [sym.imp.ntdll.dll_RtlSetProcessIsCritical]
add esp, 0xc
jmp 0x100261f
Function at 0x100010a2
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi], 0x28
lea eax, [eax + esi - 1]
jne 0x100010e5
cmp byte [eax], 0x29
jne 0x100010e5
mov byte [eax], bl
lea eax, [ebp - 4]
push eax
inc esi
push esi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidA]
test eax, eax
jne 0x10001168
mov dword [ebp - 4], ebx
jmp 0x10001168
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
jne 0x10001116
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000115e
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x1000115e
push dword [ebp - 0xc]
push 0x40
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000115e
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp + 8]
push ebx
call edi
test eax, eax
jne 0x1000115e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x100012c4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
call fcn.100011e0
test eax, eax
jne 0x1000130e
and dword [esi], eax
push str._noinherit
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x100012ec
push edi
mov dword [esi], 1
call fcn.100011e0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10001307
test al, 0x10
mov eax, 0x1000411c
jne 0x1000131a
mov eax, 0x10004104
ret
push str.Invalid_filesystem_path_missing
jmp 0x10001313
push str.Filesystem_path_missing
call fcn.1000121a
xor eax, eax
ret
Function at 0x1000200d
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
mov dword [0x1000414c], eax
mov eax, dword [ebp + 0x10]
push ebx
push 0x40
mov dword [0x10004150], ebx
mov dword [0x10004154], eax
mov dword [section..data], ebx
call esi
xor edi, edi
push eax
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
call fcn.100011e0
test eax, eax
je 0x10002062
push str.Missing_user_name_plug_in_parameter.
jmp 0x10002158
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x14]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x1000208d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000215d
push dword [ebp + 0x14]
push 0x40
call esi
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x1000215d
push dword [ebp + 0x10]
push 0x40
call esi
mov edi, eax
test edi, edi
je 0x1000215d
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 0xc]
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp - 4]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
push edi
jne 0x100020eb
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_lookup_current_user_name._Error_code__d:
call fcn.10001369
pop ecx
pop ecx
jmp 0x1000215d
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx eax, byte [eax]
dec eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
cmp dword [eax], 0x1f4
jne 0x1000210c
push 0x100035ec
jmp 0x10002111
push 0x100035e8
call fcn.1000121a
push ebx
push 0x40
call esi
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidA]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0xc]
lea ecx, [eax + ecx - 1]
jmp 0x10002141
test eax, eax
jl 0x10002146
dec ecx
dec eax
cmp byte [ecx], 0x2d
jne 0x1000213b
push str._500
push ecx
mov byte [ecx], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 0xc]
call fcn.1000121a
cmp dword [ebp + 0xc], 0
pop edi
pop esi
pop ebx
je 0x1000216f
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
leave
ret
Function at 0x10014d4
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x22c]
xor ebx, ebx
push eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], 0x80004005
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x100162e
push esi
push ebx
push 0x10011ec
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x100162e
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push 0x10011e0
push esi
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
test eax, eax
je 0x100162e
push ebx
push 0x80
push 2
push ebx
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100164a
push 0
lea eax, [ebp - 0x230]
push eax
push dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001629
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
or ebx, 0xffffffff
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
mov dword [ebp - 0x210], eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x10015d7
mov dword [ebp - 0x214], 0x8007000e
jmp 0x1001635
push dword [ebp - 0x210]
lea ecx, [ebp - 0x22c]
call fcn.0100142b
mov eax, dword [ebp - 0x218]
mov eax, dword [eax]
lea ecx, [ebp - 0x21c]
push ecx
sub esp, 0x10
mov edi, esp
push dword [ebp - 0x218]
lea esi, [ebp - 0x22c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0xe8]
test eax, eax
je 0x1001622
mov dword [ebp - 0x214], 0x80004005
jmp 0x1001635
and dword [ebp - 0x214], 0
cmp ebx, 0xffffffff
je 0x1001635
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x210], 0
je 0x100164a
push dword [ebp - 0x210]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001edd
leave
ret 0x10
Function at 0x1001673
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
push 0
mov edi, 0x80004005
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10016ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x100169f
mov edi, eax
jmp 0x1001795
and eax, 0xffff
or eax, 0x80070000
jmp 0x1001698
movzx eax, word [ebp + 8]
push ebx
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x10016dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10016d5
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1001794
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jne 0x1001708
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1001701
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1001793
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp + 8], eax
test eax, eax
jne 0x1001726
mov edi, 0x8007000e
jmp 0x100177b
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100174c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1001748
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x100177b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x100177b
push esi
push eax
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.010014d4
mov edi, eax
test edi, edi
jl 0x100177b
xor edi, edi
cmp dword [ebp + 8], 0
je 0x1001793
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
mov eax, edi
pop edi
leave
ret 0xc
Function at 0x1001986
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1001314
mov dword [ebp - 0x620], 0x80004005
call edi
test eax, eax
je 0x1001a82
push esi
lea eax, [ebp - 0x61c]
push eax
push 0x10012b8
call edi
test eax, eax
je 0x1001a82
push ebx
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1001270
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.01001475
xor ebx, ebx
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0x620], eax
jl 0x1001a82
push 0x44
pop esi
push esi
lea eax, [ebp - 0x674]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x630]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x674]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x674], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1001a82
push dword [ebp - 0x630]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x62c]
call esi
mov dword [ebp - 0x620], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x620]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001edd
leave
ret 4
Function at 0x1001a9e
Capabilities:
Accept command line arguments
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push edi
xor eax, eax
inc eax
push edi
push eax
push edi
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
cmp esi, edi
je 0x1001b9e
xor eax, eax
cmp ax, word [esi]
je 0x1001b9e
push ebx
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, edi
je 0x1001b9d
cmp dword [ebp - 0x214], 1
jl 0x1001b96
mov esi, dword [ebx]
cmp esi, edi
je 0x1001b96
cmp word [esi], di
je 0x1001b96
push 2
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, edi
jl 0x1001b96
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.010018ee
test eax, eax
jl 0x1001b90
lea eax, [ebp - 0x20c]
push eax
call fcn.01001986
test eax, eax
jl 0x1001b90
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push 0x100134c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
test eax, eax
je 0x1001b90
push 4
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
mov dword [ebp - 0x210], edi
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
xor ecx, ebp
pop esi
call fcn.01001edd
leave
ret 0x10
Function at 0x1001ec2
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1002358
call fcn.01002084
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1003378
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001c7d
cmp eax, esi
jne 0x1001c70
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001c80
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001c57
xor esi, esi
inc esi
mov eax, dword [0x1003374]
cmp eax, esi
jne 0x1001c93
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001cc2
mov eax, dword [0x1003374]
test eax, eax
jne 0x1001cbc
mov dword [0x1003374], esi
push 0x1001130
push 0x1001124
call fcn.01001bb9
pop ecx
pop ecx
test eax, eax
je 0x1001cc2
jmp 0x1001de6
mov dword [0x1003038], esi
mov eax, dword [0x1003374]
cmp eax, esi
jne 0x1001ce6
push 0x1001120
push 0x1001118
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1003374], 2
cmp dword [ebp - 0x20], ebx
jne 0x1001cf3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100337c], ebx
je 0x1001d14
push 0x100337c
call fcn.01001ff9
pop ecx
test eax, eax
je 0x1001d14
push ebx
push 2
push ebx
call dword [0x100337c]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1001de6
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1001d7e
cmp cx, bx
je 0x1001d39
cmp dword [ebp - 0x1c], ebx
jne 0x1001d7e
movzx ecx, word [eax]
cmp cx, bx
je 0x1001d4e
cmp cx, 0x20
ja 0x1001d4e
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1001d39
test byte [ebp - 0x40], 1
je 0x1001d5a
movzx ecx, word [ebp - 0x3c]
jmp 0x1001d5d
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1003034], eax
cmp dword [0x1003028], ebx
jne 0x1001dc3
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1001d8f
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1001d23
cmp dword [0x1003038], ebx
jne 0x1001dd1
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003034]
jmp 0x1001df2
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010020c9
ret
call fcn.010021d1
jmp 0x1001c1a
Function at 0x4842b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x56000]
push edi
jmp 0x4842ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4842d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4842c0
mov eax, 1
add ebx, ebx
jne 0x4842e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4842f4
jne 0x484313
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x484313
dec eax
add ebx, ebx
jne 0x484300
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4842d8
add ebx, ebx
jne 0x48430f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x484365
xor ecx, ecx
sub eax, 3
jb 0x48432b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48439a
sar eax, 1
mov ebp, eax
jmp 0x484336
add ebx, ebx
jne 0x484336
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x484304
inc ecx
add ebx, ebx
jne 0x484344
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x484304
add ebx, ebx
jne 0x484351
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x484346
jne 0x484362
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x484346
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x484384
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x484376
jmp 0x4842c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x484384
add edi, ecx
jmp 0x4842c6
pop esi
mov edi, esi
mov ecx, 0x2c3f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4843a2
cmp byte [edi], 0x11
jne 0x4843a2
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 0x4843a7
lea edi, [esi + 0x82000]
mov eax, dword [edi]
or eax, eax
je 0x484416
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x91b34]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x91bac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4843d4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x91bb0]
or eax, eax
je 0x484410
mov dword [ebx], eax
add ebx, 4
jmp 0x4843f1
call dword [esi + 0x91bc0]
mov ebp, dword [esi + 0x91bb4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x48444a
sub esp, 0xffffff80
jmp 0x43fbbf
Function at 0x4014f3
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x14c
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [0x44e7ec]
mov dword [ebp - 0x130], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], edx
or eax, 8
mov dword [esp + 0xc], eax
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x40156c
jmp 0x401607
cmp dword [ebp - 0x130], 0
mov eax, dword [ebp - 0x1c]
je 0x40155d
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
push ecx
jmp 0x401607
xor ecx, ecx
mov edx, edi
call fcn.004014f3
test eax, eax
je 0x40157d
jmp 0x4015a4
mov eax, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edi, [ebp - 0x121]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [ebp - 0x12c]
sub esp, 0x10
test eax, eax
je 0x40153d
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov dword [esp], 2
call fcn.00407cf7
test eax, eax
push edx
je 0x4015e2
mov edx, dword [0x44e7ec]
mov dword [esp + 0xc], 0
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 8], edx
call eax
sub esp, 0x10
jmp 0x401607
cmp dword [0x44e7ec], 0
mov eax, 1
jne 0x401607
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
push ecx
setne al
push ecx
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403979
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 8], 0
je 0x4039a4
mov eax, dword [0x41884c]
test eax, eax
je 0x403998
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push eax
mov dword [0x41884c], 0
jmp 0x403a13
cmp dword [0x41884c], 0
je 0x4039bc
mov dword [esp], 0
call fcn.00408298
push ecx
jmp 0x403a13
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x44e840]
jbe 0x403a13
mov eax, dword [0x44e858]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x4038c4
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
sub esp, 0x14
mov dword [0x41884c], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edx
push edx
leave
ret

Function at 0x403a15
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor edx, edx
sub esp, 0x14
test eax, eax
je 0x403a58
xor edx, edx
cmp dword [ebp - 0xc], ebx
sete dl
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret 8