joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c8c2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x38
mov eax, 0x4afa19
call fcn.00473d21
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push dword [eax]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push ecx
and esi, 0xf
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x45c8ee
mov al, 1
jmp 0x45c90a
xor ecx, ecx
movzx edx, word [eax]
add eax, 2
test dx, dx
je 0x45c902
cmp ecx, esi
je 0x45c910
lea eax, [eax + edx*2]
inc ecx
cmp ecx, 0x10
jl 0x45c8f0
xor al, al
call fcn.00473cd0
ret
push 1
lea ecx, [ebp - 0x41]
push ecx
push edx
push eax
lea ecx, [ebp - 0x40]
call fcn.004114e0
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00411b2a
lea ecx, [ebp - 0x40]
call fcn.00401b80
jmp 0x45c8ea

Function at 0x45dff1
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4ed0f0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0045c03a
test al, al
je 0x45e060
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x18]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x45e060
push esi
lea eax, [ebp - 0x20]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x20]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push esi
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00473c52
leave
ret

Function at 0x45e81e
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x24], 8
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push 0x2001f
push eax
push ecx
lea ecx, [ebp - 0xc]
call fcn.004018f0
mov esi, eax
test esi, esi
jne 0x45e86a
cmp dword [ebp + 0x54], 8
lea eax, [ebp + 0x40]
cmovae eax, dword [ebp + 0x40]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
lea ecx, [ebp - 0xc]
mov dword [0x4f2920], esi
call fcn.004018c0
lea ecx, [ebp + 0xc]
call fcn.00401b80
lea ecx, [ebp + 0x3c]
call fcn.00401b80
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret

Function at 0x45ef78
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4ed0f0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x45efaa
xor al, al
jmp 0x45efc3
cmp dword [ebp - 0x108], 2
jne 0x45efc1
cmp dword [ebp - 0x114], 5
jb 0x45efc1
xor eax, eax
inc eax
jmp 0x45efc3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00473c52
leave
ret
Function at 0x461169
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4b0538
call fcn.00473d21
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
push 0
inc ebx
cmp eax, 0xffffffff
lea ecx, [ebp - 0x94]
push ecx
cmove eax, ebx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4611e1
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4b9cf4
mov dword [ebp - 0x18], 0x4b9cfc
call fcn.004110fd
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00441de3
push 0x4e0ff8
lea eax, [ebp - 0x90]
push eax
call fcn.00473c61
mov eax, dword [ebp - 0x94]
call fcn.00473cd0
ret 8

Function at 0x4611ef
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4b0568
call fcn.00473d21
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 4
pop ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
lea ecx, [ebp - 0x94]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x461268
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4b9cf4
mov dword [ebp - 0x18], 0x4b9cfc
call fcn.004110fd
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00441de3
push 0x4e0ff8
lea eax, [ebp - 0x90]
push eax
call fcn.00473c61
mov eax, dword [ebp - 0x94]
call fcn.00473cd0
ret 8

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

Disassembly:
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x462277
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret
Function at 0x462686
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x148
mov eax, 0x4b0899
call fcn.00473d21
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov dword [ebp - 0x154], ebx
mov byte [ebp - 0x114], bl
call fcn.00474cd0
add esp, 0xc
mov dword [ebp - 0x14c], ebx
lea eax, [ebp - 0x14c]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x462775
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
mov ecx, str.ProgramFilesDir
push ebx
mov eax, str.CommonFilesDir
cmp edi, 1
cmovne eax, ecx
push eax
push dword [ebp - 0x14c]
mov dword [ebp - 0x150], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
lea eax, [ebp - 0x145]
push eax
lea eax, [ebp - 0x114]
mov edi, 0x4b9cf4
mov ebx, 0x4b9cfc
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x11c], ebx
call fcn.00428303
push 0x4b6f58
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 1
call fcn.00455652
lea ecx, [ebp - 0x144]
call fcn.004629f3
lea eax, [ebp - 0x144]
jmp 0x4627ba
push 0
lea eax, [ebp - 0x145]
push eax
lea eax, [ebp - 0x114]
mov edi, 0x4b9cf4
mov ebx, 0x4b9cfc
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x11c], ebx
call fcn.00428303
push 0x4b6f58
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 2
call fcn.00455652
push 0
push eax
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 0x28], ebx
call fcn.004110fd
lea ecx, [ebp - 0x144]
call fcn.00401b80
lea ecx, [ebp - 0x14c]
call fcn.004570cc
mov eax, esi
call fcn.00473cd0
ret
Function at 0x4686eb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x4ed0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x840], eax
call fcn.0041fc45
cmp eax, 1
jne 0x4687e3
and dword [ebp - 0x82c], 0
lea eax, [ebp - 0x82c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4687d8
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x834]
push eax
push 0
push 0
push str.ProxyEnable
push dword [ebp - 0x82c]
mov dword [ebp - 0x830], 4
call esi
mov ecx, dword [ebp - 0x834]
xor edx, edx
test eax, eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x828]
push eax
push edx
push edx
push str.AutoConfigURL
push dword [ebp - 0x82c]
cmovne ecx, edx
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x830], 0x824
call esi
movzx ecx, byte [ebp - 0x828]
mov esi, dword [ebp - 0x838]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [ebp - 0x828], cl
lea ecx, [ebp - 0x82c]
call fcn.004570cc
push dword [ebp - 0x840]
push dword [ebp - 0x83c]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00467bf0
add esp, 0x14
xor ecx, ecx
test eax, eax
mov dword [edi + 4], eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00473c52
leave
ret 0x14
Function at 0x46c3c6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, eax
push edi
mov edi, ecx
test ebx, ebx
je 0x46c3e8
push 1
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebx], eax
xor eax, eax
lea esi, [edi + 0x70]
push esi
push eax
push eax
push eax
push 2
push dword [edi + 0x10]
call fcn.00469ec8
add esp, 0x18
test eax, eax
jne 0x46c410
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x78], eax
xor al, al
jmp 0x46c4b2
push dword [esi]
call fcn.00474bb7
mov esi, eax
pop ecx
cmp esi, dword [edi + 0x6c]
je 0x46c428
push dword [edi + 0x6c]
call fcn.00472d16
pop ecx
push 0
mov dword [edi + 0x6c], esi
call fcn.00472d16
lea esi, [edi + 0x70]
push esi
push dword [edi + 0x6c]
push 0
push 0
push 2
push dword [edi + 0x10]
call fcn.00469ec8
add esp, 0x1c
test eax, eax
je 0x46c400
push 0
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
push 0
lea eax, [edi + 0x70]
push eax
push dword [eax]
push dword [edi + 0x6c]
push dword [ebp + 8]
call esi
test byte [ebp + 0x10], 1
jne 0x46c499
push 0
push dword [ebp + 8]
push 1
push 1
push 0x10001
push dword [edi + 0xc]
call fcn.00469c33
add esp, 0x18
test eax, eax
je 0x46c400
test ebx, ebx
je 0x46c4b0
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [ebx]
mov dword [ebx], eax
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x46ce43
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46ce75
xor eax, eax
jmp 0x46cf27
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.004521fb
pop ecx
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp + 8]
jne 0x46ce6e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi + 0x2c]
call fcn.0046da2d
lea esi, [edi + 0x20]
mov ecx, esi
push dword [esi + 4]
push dword [esi]
call fcn.00455ca2
mov eax, dword [esi]
push 0
push 0x4cb3ac
mov ecx, edi
mov dword [esi + 4], eax
call fcn.00404c70
mov esi, dword [ebp - 4]
mov ecx, edi
mov byte [esi + ebx], 0
mov dword [edi + 0x38], esi
call fcn.0046cc85
push eax
push 0
mov ecx, edi
call fcn.0046cf2e
test eax, eax
je 0x46ce6e
mov ecx, edi
call fcn.0046cc85
push eax
push 9
mov ecx, edi
call fcn.0046cf2e
test eax, eax
je 0x46ce6e
push edi
mov ecx, edi
call fcn.0046d474
test eax, eax
je 0x46ce6e
push esi
call fcn.00473c4d
xor eax, eax
pop ecx
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x471180
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b26f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4ed0f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
or esi, 0xffffffff
mov dword [ebp - 4], 0
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, esi
je 0x471239
push edi
push edi
push edi
push 2
push edi
mov esi, ebx
push ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
je 0x471239
push 0
push 0
push 0
push 4
mov edi, eax
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp + 8], eax
test eax, eax
je 0x471239
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
push eax
push ebx
call fcn.00470f20
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov byte [ebp + 0xb], 1
test eax, eax
je 0x47123d
push ebx
call eax
jmp 0x47123d
mov byte [ebp + 0xb], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x47124e
test ebx, ebx
je 0x47124e
push edi
call ebx
cmp esi, 0xffffffff
je 0x47125a
test ebx, ebx
je 0x47125a
push esi
call ebx
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x48c346
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0047d1b2
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x48c37e
xor eax, eax
jmp 0x48c3aa
cmp esi, dword [ebp - 4]
je 0x48c3a7
cmp dword [ebp + 0xc], 0
je 0x48c3a7
push dword [edi + 0x9c]
call fcn.0048bf54
push dword [edi + 0x9c]
mov esi, eax
call fcn.00473c34
pop ecx
pop ecx
cmp esi, eax
je 0x48c37a
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x550000
Capabilities:
Accept command line arguments
Packed with generic packer
Parse pe header
Terminate process

Disassembly:
pushal
push 0x550031
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x55003a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [0x550047]
push 0
push 0
push 0
push edx
push 0
push 0
call eax
popal
jmp fcn.004777cc
Function at 0x448b20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2c000]
push edi
jmp 0x448b3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x448b41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x448b30
mov eax, 1
add ebx, ebx
jne 0x448b53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x448b64
jne 0x448b83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x448b83
dec eax
add ebx, ebx
jne 0x448b70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x448b48
add ebx, ebx
jne 0x448b7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x448bd5
xor ecx, ecx
sub eax, 3
jb 0x448b9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x448c0a
sar eax, 1
mov ebp, eax
jmp 0x448ba6
add ebx, ebx
jne 0x448ba6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x448b74
inc ecx
add ebx, ebx
jne 0x448bb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x448b74
add ebx, ebx
jne 0x448bc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x448bb6
jne 0x448bd2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x448bb6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x448bf4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x448be6
jmp 0x448b36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x448bf4
add edi, ecx
jmp 0x448b36
pop esi
mov edi, esi
mov ecx, 0x19e3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x448c12
cmp byte [edi], 0xa
jne 0x448c12
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 0x448c17
lea edi, [esi + 0x46000]
mov eax, dword [edi]
or eax, eax
je 0x448c8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x48058]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x480ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x448c44
mov ecx, edi
jns 0x448c73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x480f4]
or eax, eax
je 0x448c89
mov dword [ebx], eax
add ebx, 4
jmp 0x448c61
call dword [esi + 0x480f0]
mov ebp, dword [esi + 0x480f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x448cc3
sub esp, 0xffffff80
jmp 0x41b134
Function at 0x4d8ea0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x96000]
push edi
jmp 0x4d8eba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4d8ec1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d8eb0
mov eax, 1
add ebx, ebx
jne 0x4d8ed3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4d8ee4
jne 0x4d8f03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d8f03
dec eax
add ebx, ebx
jne 0x4d8ef0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4d8ec8
add ebx, ebx
jne 0x4d8eff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4d8f55
xor ecx, ecx
sub eax, 3
jb 0x4d8f1b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4d8f8a
sar eax, 1
mov ebp, eax
jmp 0x4d8f26
add ebx, ebx
jne 0x4d8f26
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d8ef4
inc ecx
add ebx, ebx
jne 0x4d8f34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d8ef4
add ebx, ebx
jne 0x4d8f41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4d8f36
jne 0x4d8f52
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d8f36
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4d8f74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4d8f66
jmp 0x4d8eb6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4d8f74
add edi, ecx
jmp 0x4d8eb6
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4d8f92
cmp byte [edi], 0x13
jne 0x4d8f92
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 0x4d8f97
lea edi, [esi + 0xd4000]
mov eax, dword [edi]
or eax, eax
je 0x4d900f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10008c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1001e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4d8fc4
mov ecx, edi
jns 0x4d8ff3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1001e4]
or eax, eax
je 0x4d9009
mov dword [ebx], eax
add ebx, 4
jmp 0x4d8fe1
call dword [esi + 0x1001f4]
mov ebp, dword [esi + 0x1001e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x4d9043
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x40d04b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40d05a
pop dword [ebp - 0x10]
mov eax, 0x40d05a
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xc086323
sub dword [ebp - 0x20], 0xbdb61dd8
mov dword [ebp - 0x1c], 0x72bf0fab
sub dword [ebp - 0x1c], 0x408bc366
mov dword [ebp - 0x18], 0x7bb98d1c
sub dword [ebp - 0x18], 0x2f6d48ee
mov dword [ebp - 0x14], 0x46f3ea85
add dword [ebp - 0x14], 0xb90c157b
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x4a27f20f
sub dword [ebp - 0x20], 0xd5b588b9
mov dword [ebp - 0x1c], 0x24505e05
add dword [ebp - 0x1c], 0x1d1c0370
mov dword [ebp - 0x18], 0xb75fac2
add dword [ebp - 0x18], 0x57f971aa
mov dword [ebp - 0x14], 0xaf4c3945
sub dword [ebp - 0x14], 0xaf4c3945
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xff602270
sub eax, 0xff1f41e8
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3571c
push 0
call eax
mov ecx, 0x49a1879d
add ecx, 0xb65eb759
xor edx, edx
add edx, eax
mov edi, 0x8d3f5f10
add edi, 0x730290f0
add edi, dword [ebp - 0x10]
mov esi, 0x5dba62f6
mov dword [ebp - 4], 0xa9809165
mov ebx, dword [edi]
xor dword [ebp - 4], ebx
sub ebx, esi
sub dword [ebp - 0xc], 0xcee61f8c
mov dword [edx], ebx
mov dword [ebp - 8], 0x421cfd98
add edx, 4
add edi, 0xe23d4067
add edi, 0x1dc2bf9d
loop 0x40d16e
add eax, 0xe924dffa
sub eax, 0xe923f14f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x4032fc
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.004050a4
test esi, esi
jne 0x403332
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.00405194
jmp 0x403350
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031a0
mov edi, eax
test esi, esi
je 0x403350
cmp dword [ebx], 0
je 0x403350
dec esi
jmp 0x403339
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403384
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x485008], 0x8088405
inc edx
mov dword [ebx + 0x485008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403f9c
Capabilities:
Query or enumerate registry value

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

Function at 0x404e50
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48e048], 0
je 0x404eb1
cmp word [0x48e21c], 0xd7b2
jne 0x404e79
cmp dword [0x48e224], 0
jbe 0x404e79
mov eax, 0x48e218
call dword [0x48e234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404ed8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x485030], 0
jne 0x404ecd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405028
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x485038], 0
je 0x40504e
mov edx, esi
mov eax, ebx
call dword [0x485038]
jmp 0x40505d
mov eax, 8
call fcn.00402eb0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x48e049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404ff0
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc