joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4551d0
Capabilities:
Set registry value

Disassembly:
mov cl, byte [esp + 0x14]
push ebx
mov edx, dword [esp + 0xc]
xor bl, bl
neg cl
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x10]
push 0
sbb ecx, ecx
and ecx, 0xffffff00
add ecx, 0x200
or ecx, 2
push ecx
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x455239
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x45522e
mov bl, 1
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
ret

Function at 0x455240
Capabilities:
Delete registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
lea eax, [esp + 4]
push eax
push 2
push 0
push ecx
push edx
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45528c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x45527a
cmp eax, 2
jne 0x45527c
mov bl, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret
cmp eax, 2
mov al, 1
je 0x455295
mov al, bl
pop ebx
pop ecx
ret

Function at 0x4552a0
Capabilities:
Delete registry key

Disassembly:
push esi
push edi
push 0x4ca410
mov edi, 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x455313
push str.RegDeleteKeyExW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov edx, dword [esp + 0x10]
je 0x4552f9
mov cl, byte [esp + 0x14]
neg cl
push 0
sbb ecx, ecx
and ecx, 0xffffff00
add ecx, 0x200
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ecx
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
ret
push str._ERROR_Failed_to_load_ADVAPI32IDLL_n
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 8
mov eax, edi
pop edi
pop esi
ret
Function at 0x4553b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x4eb86c]
xor eax, esp
mov dword [esp + 0x214], eax
mov ecx, dword [esp + 0x22c]
mov eax, dword [esp + 0x224]
push ebx
mov ebx, dword [esp + 0x220]
push ebp
mov ebp, dword [esp + 0x228]
push esi
mov esi, dword [esp + 0x234]
push edi
push 0x4c1644
push ecx
push esi
mov dword [esp + 0x24], eax
xor edi, edi
call fcn.00401e30
mov al, byte [esp + 0x240]
neg al
lea edx, [esp + 0x10]
push edx
sbb eax, eax
and eax, 0xffffff00
add eax, 0x200
or eax, 1
push eax
push edi
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45547a
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45546f
mov eax, dword [esp + 0x23c]
lea edx, [esp + 0x1c]
push edx
push eax
push esi
call fcn.00401e30
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
add edi, 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004888ae
add esp, 0x218
ret
Function at 0x456730
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4eb86c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
xor ebx, ebx
mov byte [esp + 7], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0xc]
push ecx
push 0x20008
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x456856
mov eax, dword [esp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
push 2
push eax
mov dword [esp + 0x24], ebx
call edi
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00488a0f
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x456835
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
push esi
push 2
push ecx
call edi
test eax, eax
je 0x45682c
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], bl
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x45682c
xor edi, edi
cmp dword [esi], ebx
jbe 0x456821
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
push ebp
lea ebp, [esi + 4]
jmp 0x456800
mov ecx, dword [ebp]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call ebx
test eax, eax
jne 0x45681b
add edi, 1
add ebp, 8
cmp edi, dword [esi]
jb 0x456800
jmp 0x456820
mov byte [esp + 0x13], 1
pop ebp
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.004888bd
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004888ae
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
mov al, bl
pop ebx
xor ecx, esp
call fcn.004888ae
add esp, 0x1c
ret
Function at 0x456870
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
push esi
push 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, eax
test esi, esi
jl 0x4569c3
lea eax, [esp + 4]
push eax
push 0x4d43a0
push 1
push 0
push 0x4d4680
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x4569de
test eax, eax
jl 0x4569de
mov edx, dword [ecx]
lea eax, [esp + 8]
push eax
push 0x4d4ab0
push ecx
mov ecx, dword [edx]
call ecx
cmp dword [esp + 8], 0
je 0x4569cb
test eax, eax
jl 0x4569cb
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
push ecx
push eax
call edx
mov esi, eax
test esi, esi
jl 0x4569a3
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x456919
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
mov esi, eax
test esi, esi
jl 0x4569a3
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x456938
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x2c]
call eax
mov esi, eax
test esi, esi
jl 0x4569a3
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x456953
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x24]
call eax
mov esi, eax
test esi, esi
jl 0x4569a3
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x456973
mov eax, dword [esp + 4]
mov esi, dword [esp + 0x28]
mov edx, dword [eax]
push esi
push ecx
push eax
mov eax, dword [edx + 0x44]
call eax
mov esi, eax
test esi, esi
jl 0x4569a3
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov esi, eax
test esi, esi
jl 0x4569a3
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
test esi, esi
setge al
pop esi
add esp, 8
ret
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push str._ERROR_Failed_pIShellLink__QueryInterface_n
jmp 0x4569e3
push str._ERROR_Failed_CoCreateInstance_n
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 8
xor al, al
pop esi
add esp, 8
ret
Function at 0x45b75c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4eb86c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x45b799
push 0x4cba68
push 4
push eax
call fcn.0048ab9c
push eax
call fcn.00401bb0
add esp, 0x10
jmp 0x45b7ab
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45b816
push edi
call fcn.0048afc5
mov edi, dword [eax]
call fcn.0048afc5
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0048aea7
add esp, 0x18
mov ebx, eax
call fcn.0048afc5
cmp dword [eax], 0
je 0x45b7f6
call fcn.0048afc5
push dword [eax]
call fcn.00459455
pop ecx
jmp 0x45b7fd
call fcn.0048afc5
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x45b816
cmp ebx, esi
jae 0x45b816
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x45b818
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004888ae
leave
ret
Function at 0x45eb64
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4bcc0e
call fcn.0048ad04
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0045ffd4
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x45ebaf
call fcn.0045ffd4
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x45ebc0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x45ebcd
or eax, 0xffffffff
jmp 0x45ed29
mov ecx, esi
call fcn.0045e6b0
mov dword [ebp - 0x14], eax
call fcn.00464b3b
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x45ec4b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x45ec4b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x45ec4b
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0045b6f3
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x45ec4b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x45ec4b
mov ecx, ebx
call fcn.00460401
test eax, eax
je 0x45ec4b
push 0
mov ecx, ebx
call fcn.0046041c
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00466cde
push dword [ebp - 0x14]
call fcn.00464a93
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0045e96c
xor edi, edi
cmp eax, edi
je 0x45eca8
test byte [esi + 0x3c], 0x10
je 0x45ec92
push 4
pop edi
mov ecx, esi
call fcn.0046029b
test ax, 0x100
je 0x45ec88
push 5
pop edi
push edi
mov ecx, esi
call fcn.004645e9
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x45eca8
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00460742
or dword [ebp - 4], 0xffffffff
jmp 0x45ecd3
cmp dword [ebp - 0x28], edi
je 0x45ece1
push 1
mov ecx, ebx
call fcn.0046041c
cmp dword [ebp - 0x2c], edi
je 0x45ecf1
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x45ed0a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x45ed0a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0045e6ea
cmp dword [esi + 0x58], edi
je 0x45ed26
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0048ada9
ret
Function at 0x460b43
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4bcde1
call fcn.0048acd1
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x460b68
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x460bb4
call fcn.0045a356
push eax
lea ecx, [ebp - 0x10]
call fcn.00401370
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045902a
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401050
mov eax, esi
call fcn.0048ada9
ret 8

Function at 0x4660e6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x46611f
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045b03f
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040ae60
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x467ff0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x468033
call fcn.0045ffd4
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x468033
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46804e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00467baa
test ebx, ebx
mov esi, eax
je 0x46804c
test edi, edi
je 0x46804c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4888ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4eb86c]
jne 0x4888b8
repz ret
jmp fcn.004947ac

Function at 0x48ada9
Capabilities:
Enumerate pe sections

Disassembly:
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x48addc

Function at 0x48afd8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
invalid
inc ebp
invalid

Function at 0x48b2ae
Capabilities:
Inspect section memory permissions

Disassembly:
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
ror dword [ebx + 0x408b1448], 0xc
ror dword [ebx + 0x408b1448], 0xc
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.0048acd2
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x48b29e
call fcn.0048ad61
and dword [edx], ecx
invalid
Function at 0x48b386
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x48b306
cmp dword [eax + 0xc], ebx
je 0x48b3a9
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.0048ad61
les ecx, [edi + ecx*4]
push edi
cmp dword [ebp + 0xc], ebx
jne 0x48b335
push edi
call dword [ebp - 0xb8]
invalid
invalid
invalid
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x48b550
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax]
cmp eax, ebx
lea edi, [ecx + esi]
jne 0x48b349
mov dword [ebp + 0x10], edi
jmp 0x48b34e
add eax, esi
mov dword [ebp + 0x10], eax
call fcn.0048ad61
scasd eax, dword es:[edi]
aam 0x39
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x48b397
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x48b372
and eax, 0xffff
push eax
jmp 0x48b376
invalid
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0048ad26
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x48b550
invalid

Function at 0x48b47f
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x48b438
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x48b456
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x48b4b4
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
inc eax
inc eax
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x48b49b
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x48b4a4
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x48b4ae
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x48b490
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x48b41a
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x48b501
dec eax
je 0x48b4f8
sub eax, 3
je 0x48b4ef
mov dword [ebp - 4], 0x40
jmp 0x48b51e
mov dword [ebp - 4], 4
jmp 0x48b504
mov dword [ebp - 4], 0x20
jmp 0x48b504
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x48b550
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x48b4d0
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0048ad61
sbb dword [eax], esi
xor dword [edi + 0x6a1475ff], ecx
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x48b55c
Function at 0x48f62a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4eba90]
je 0x48f645
inc edi
cmp edi, 0x17
jb 0x48f636
cmp edi, 0x17
jae 0x48f7c5
push ebp
push 3
call fcn.0049e6fc
cmp eax, 1
pop ecx
je 0x48f791
push 3
call fcn.0049e6fc
test eax, eax
pop ecx
jne 0x48f679
cmp dword [0x4eb868], 1
je 0x48f791
cmp ebx, 0xfc
je 0x48f7c4
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4ef148
push ebp
call fcn.004975e5
add esp, 0xc
test eax, eax
je 0x48f6af
push esi
push esi
push esi
push esi
push esi
call fcn.00488adc
add esp, 0x14
push 0x104
mov esi, 0x4ef161
push esi
push 0
mov byte [0x4ef265], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48f6f3
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004975e5
add esp, 0xc
test eax, eax
je 0x48f6f3
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00488adc
add esp, 0x14
push esi
call fcn.00497650
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x48f738
push esi
call fcn.00497650
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4ef45c
push 0x4d1a7c
sub ecx, eax
push ecx
push eax
call fcn.0049e649
add esp, 0x14
test eax, eax
je 0x48f738
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00488adc
add esp, 0x14
jmp 0x48f73a
xor esi, esi
push 0x4d1a78
push ebx
push ebp
call fcn.0049e5d8
add esp, 0xc
test eax, eax
je 0x48f75a
push esi
push esi
push esi
push esi
push esi
call fcn.00488adc
add esp, 0x14
push dword [edi*8 + 0x4eba94]
push ebx
push ebp
call fcn.0049e5d8
add esp, 0xc
test eax, eax
je 0x48f77c
push esi
push esi
push esi
push esi
push esi
call fcn.00488adc
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0049e41b
add esp, 0xc
jmp 0x48f7c4
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x48f7c4
cmp ebp, 0xffffffff
je 0x48f7c4
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4eba94]
push dword [esi]
call fcn.00497650
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4b547c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4eb86c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004b52db
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00489e60
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4b54cb
cmp dword [ebp - 0x1c], 5
jb 0x4b54e3
jmp 0x4b54df
cmp dword [ebp - 0x10], 1
jne 0x4b54e3
cmp dword [ebp - 0x1c], 4
ja 0x4b54df
jne 0x4b54e3
cmp dword [ebp - 0x18], 0
jbe 0x4b54e3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4d6c1c
call fcn.004b5098
test eax, eax
jge 0x4b5504
mov byte [0x4ed108], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004888ae
add ebp, 0x78
leave
ret

Function at 0x43b63c
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
sub ebx, edx
and edx, ebx
sub ebx, 0x461158f4
call fcn.0043b67c
and ebx, edx
inc ebx
add ebx, ebx
xor dword [eax], esi
sub ebx, ebx
mov ebx, ebx
sub ebx, 0xf16b091d
inc eax
or ebx, edx
add edx, edx
inc ebx
cmp eax, edi
jne fcn.0043b63c
sub ebx, 0x43211df6
sub ebx, ebx
mov edx, 0x302c9984
ret
Function at 0x488070
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x57000]
push edi
jmp 0x48808a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x488091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x488080
mov eax, 1
add ebx, ebx
jne 0x4880a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4880b4
jne 0x4880d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4880d3
dec eax
add ebx, ebx
jne 0x4880c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x488098
add ebx, ebx
jne 0x4880cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x488125
xor ecx, ecx
sub eax, 3
jb 0x4880eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48815a
sar eax, 1
mov ebp, eax
jmp 0x4880f6
add ebx, ebx
jne 0x4880f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4880c4
inc ecx
add ebx, ebx
jne 0x488104
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4880c4
add ebx, ebx
jne 0x488111
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x488106
jne 0x488122
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x488106
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x488144
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x488136
jmp 0x488086
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x488144
add edi, ecx
jmp 0x488086
pop esi
mov edi, esi
mov ecx, 0x28ed
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x488162
cmp byte [edi], 0x1b
jne 0x488162
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 0x488167
lea edi, [esi + 0x85000]
mov eax, dword [edi]
or eax, eax
je 0x4881df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x89b60]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x89c78]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x488194
mov ecx, edi
jns 0x4881c3
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 + 0x89c7c]
or eax, eax
je 0x4881d9
mov dword [ebx], eax
add ebx, 4
jmp 0x4881b1
call dword [esi + 0x89c8c]
mov ebp, dword [esi + 0x89c80]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x488213
sub esp, 0xffffff80
jmp 0x44be98