joyce8/EMBER2024-capa huggingface dataset:
Function at 0x83f660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x624700
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0083f210
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0083f290
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0083f290
lea ecx, [esi + 0xc]
call 0x8e9059
lea ecx, [esi + 0x10]
call 0x8e9059
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00840820
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00840820
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00840820
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call 0x8e90ce
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call 0x8e90ce
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x8547d0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x625c40
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x854977
mov ecx, dword [0x7f8ab0]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x8548cc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.008534f0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call 0x8e9207
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call 0x8e90ce
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x7efe3c
call 0x8e913c
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.008538b0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call 0x8e9207
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call 0x8e90ce
lea ecx, [esp + 0xc]
call 0x8e95e2
mov ecx, dword [esp + 0xc]
push 0x7f087c
push ecx
call fcn.0087bfa4
add esp, 8
test eax, eax
je 0x8548f4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x85482d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call 0x8e90ce
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call 0x8e90ce
jmp 0x85497b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00854570
test eax, eax
push 0
je 0x85495f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.00852c10
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x854945
cmp eax, 0x64
jg 0x854933
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [fcn.006283f8]
mov esi, eax
jmp 0x8548d0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [fcn.006283f8]
mov esi, eax
jmp 0x8548d0
cmp eax, 0x64
jge 0x8548cc
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [fcn.006283f8]
mov esi, eax
jmp 0x8548d0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.00852c10
mov esi, eax
jmp 0x8548d0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x854985
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x872240
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x626ac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.00871d40
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x28], 0
call fcn.00871db0
push 0
mov ecx, esi
call fcn.008721c0
mov ebx, dword [esp + 0x2c]
cmp ebx, 1
jb 0x872378
lea ecx, [esp + 0xc]
call fcn.00870750
cmp eax, 1
jae 0x8722c7
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00871d60
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov eax, dword [esp + 0x34]
lea edi, [esi + 0xc]
test eax, eax
jne 0x872314
push 0
lea ecx, [esp + 0x10]
call fcn.00821b20
push eax
push edi
mov ecx, 0x858354
call fcn.00871970
test eax, eax
jne 0x87231c
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00871d60
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push eax
mov ecx, edi
call fcn.00871db0
push edi
mov ecx, 0x858354
call fcn.008718d0
push 0
push 2
push 2
push 0
push 3
push 0xc0000000
mov ecx, edi
call fcn.00815f90
push eax
call dword [fcn.00628338]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x872378
push 0
push ebx
push 0
push 4
push 0
push eax
call dword [fcn.006281ec]
test eax, eax
mov dword [esi + 4], eax
je 0x872378
push 0
push 0
push 0
push 2
push eax
call dword [fcn.006281e8]
test eax, eax
mov dword [esi + 8], eax
jne 0x8723a8
push 1
mov ecx, esi
call fcn.008721c0
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00871d60
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
lea ecx, [esp + 0xc]
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x24], 0xffffffff
call fcn.00871d60
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x401168
Capabilities:
Create directory
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x407010]
xor eax, ebp
mov dword [ebp + 0x90], eax
push esi
push edi
push 0x4062bc
push 0xc9
push dword [0x4070b0]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x4011aa
xor al, al
jmp 0x401286
push ebx
push edi
push dword [0x4070b0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
je 0x401236
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov dword [ebp - 0x78], eax
je 0x401236
push edi
push dword [0x4070b0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x7c], eax
push 0x104
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x74]
push 0x4062b0
push eax
call fcn.004043c0
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x74]
push 0x4062a0
push eax
call fcn.004043c0
pop ecx
pop ecx
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40123a
xor al, al
jmp 0x401285
push esi
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, esi
je 0x401283
push 0x40628c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x40127c
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
pop ebx
mov ecx, dword [ebp + 0x90]
pop edi
xor ecx, ebp
pop esi
call fcn.004044a8
add ebp, 0x94
leave
ret

Function at 0x401709
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x40175c
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x401772
push 0x80004005
call fcn.00401000
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x401775
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x401d49
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x407010]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.004016d4
mov edi, eax
cmp edi, esi
je 0x401db1
lea ecx, [ebp - 0x70]
call fcn.0040166f
mov eax, edi
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004044a8
add ebp, 0x98
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x401dc9
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00401d49
cmp eax, esi
jne 0x401dfc
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x401db9
lea ecx, [ebp - 0x70]
call fcn.0040166f
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.0040166f
mov eax, esi
jmp 0x401d97
Function at 0x402e64
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x407010]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
mov eax, dword [ebp + 0x3b0]
push ebx
push esi
mov esi, dword [ebp + 0x3ac]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x3b4]
push edi
mov edi, ecx
mov dword [ebp - 0x74], eax
call dword [section..data]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x64], ebx
je 0x402f0e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
call fcn.004013dc
add esp, 0xc
test eax, eax
jl 0x402f0e
mov edi, dword [ebp - 0x70]
cmp edi, 0x400
jg 0x402ef6
push edi
call fcn.00401cd4
test al, al
pop ecx
je 0x402ef6
mov eax, edi
call fcn.00404670
mov eax, esp
jmp 0x402eff
push edi
lea ecx, [ebp - 0x6c]
call fcn.00401e6f
push dword [ebp - 0x78]
push edi
push esi
push eax
call fcn.004014bd
cmp eax, ebx
jne 0x402f4b
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x402f1e
lea ecx, [ebp - 0x64]
call fcn.00401c3e
lea ecx, [ebp - 0x6c]
call fcn.00401ba3
mov eax, 0x8007000e
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
call fcn.004044a8
add ebp, 0x3a4
leave
ret 0x10
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x402f67
call fcn.00401594
mov esi, eax
jmp 0x40300d
push dword [ebp - 0x74]
push dword [ebp - 0x68]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x402f84
call fcn.00401594
jmp 0x403004
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x68], eax
je 0x402f7a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x402fc8
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x402fb4
lea ecx, [ebp - 0x64]
call fcn.00401c3e
mov esi, 0x8007000e
lea ecx, [ebp - 0x6c]
call fcn.00401ba3
mov eax, esi
jmp 0x402f2b
push eax
lea ecx, [ebp - 0x64]
call fcn.0040221b
cmp dword [ebp - 0x64], ebx
jne 0x402fdd
mov esi, 0x8007000e
jmp 0x403006
push esi
push dword [ebp - 0x68]
push esi
push dword [ebp - 0x64]
call fcn.00401556
mov eax, dword [ebp - 0x64]
add esp, 0x10
push dword [ebp + 0x3b8]
mov byte [eax + esi], bl
push dword [ebp - 0x64]
lea ecx, [ebp - 0x80]
call fcn.00402cc0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x402fb9
lea ecx, [ebp - 0x64]
call fcn.00401c3e
jmp 0x402fb9
Function at 0x403a5e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x407010]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004039f3
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.00404130
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 0x403aad
cmp dword [ebp - 0x1c], 5
jb 0x403ac5
jmp 0x403ac1
cmp dword [ebp - 0x10], 1
jne 0x403ac5
cmp dword [ebp - 0x1c], 4
ja 0x403ac1
jne 0x403ac5
cmp dword [ebp - 0x18], 0
jbe 0x403ac5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40659c
call fcn.00401038
test eax, eax
jge 0x403ae6
mov byte [0x407030], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004044a8
add ebp, 0x78
leave
ret

Function at 0x4044a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x407010]
jne 0x4044b2
repz ret
jmp fcn.0040519b
Function at 0x4010b0
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x1a8
lea eax, [esp + 0x114]
mov dword [esp + 0xc], 1
push eax
mov dword [esp + 0x118], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 0xc]
lea edx, [esp + 4]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0x410ef0
push 0
push str.softwaremicrosoftwindowscurrentversion_run
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [esp + 0x1ac], 2
jge 0x4011ba
test eax, eax
jne 0x401203
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
lea eax, [esp + 0x18]
push edi
push eax
call ebx
lea ecx, [esp + 0xc]
push ecx
call fcn.00401000
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
call fcn.004065be
mov edi, str._vrvmon.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov edx, dword [esp + 0x10]
inc eax
lea ecx, [esp + 0x1c]
push eax
push ecx
push 1
push 0
push str.xysecond
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
lea eax, [esp + 0x10]
mov dword [esp + 8], 1
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea ecx, [esp]
mov dword [esp], eax
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.xysecond
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push str.xysecond
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add esp, 0x1a8
ret
Function at 0x404075
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x410908
cmp edx, dword [eax]
je 0x404097
add eax, 8
inc ecx
cmp eax, 0x410998
jl 0x404088
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x410908]
jne 0x4041c5
mov eax, dword [0x412ea8]
cmp eax, 1
je 0x40419f
test eax, eax
jne 0x4040c8
cmp dword [0x4104fc], 1
je 0x40419f
cmp edx, 0xfc
je 0x4041c5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4040ff
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004054c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004055b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404142
lea eax, [ebp - 0x1a4]
push eax
call fcn.004055b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d25c
push edi
call fcn.00405970
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004054c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004054d0
lea eax, [ebp - 0xa0]
push 0x40d23c
push eax
call fcn.004054d0
push dword [esi + 0x41090c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004054d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004058e7
add esp, 0x2c
pop edi
jmp 0x4041c5
lea eax, [ebp + 8]
lea esi, [esi + 0x41090c]
push 0
push eax
push dword [esi]
call fcn.004055b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x150fef0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0xc4e000]
mov dword [edi + 0x101acc0], 0x80712029
push edi
or ebp, 0xffffffff
jmp 0x150ff1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x150ff21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x150ff10
mov eax, 1
add ebx, ebx
jne 0x150ff33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x150ff44
jne 0x150ff63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x150ff63
dec eax
add ebx, ebx
jne 0x150ff50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x150ff28
add ebx, ebx
jne 0x150ff5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x150ffb5
xor ecx, ecx
sub eax, 3
jb 0x150ff7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x150ffea
sar eax, 1
mov ebp, eax
jmp 0x150ff86
add ebx, ebx
jne 0x150ff86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x150ff54
inc ecx
add ebx, ebx
jne 0x150ff94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x150ff54
add ebx, ebx
jne 0x150ffa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x150ff96
jne 0x150ffb2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x150ff96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x150ffd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x150ffc6
jmp 0x150ff16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x150ffd4
add edi, ecx
jmp 0x150ff16
pop esi
lea edi, [esi + 0x1109000]
mov eax, dword [edi]
or eax, eax
je 0x1510033
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1112cbc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1112f4c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x150fff1
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1112f54]
or eax, eax
je 0x151002d
mov dword [ebx], eax
add ebx, 4
jmp 0x151000e
call dword [esi + 0x1112f50]
mov ebp, dword [esi + 0x1112f58]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x257]
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 0x1510067
sub esp, 0xffffff80
jmp 0xcd604d
Function at 0x44660d
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004467bd
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x44670b
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4466ae
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4466f1
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4466c5
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4466e0
test al, 0x40
je 0x4466d7
mov ecx, dword [edi + 0x20]
jmp 0x4466de
test al, 0x80
je 0x4466f1
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4466f1
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x44667d
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40109c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x4062ac]
mov edx, dword [0x40722c]
mov eax, ecx
push esi
xor eax, dword [esp + 8]
mov esi, 0xff
shr ecx, 8
and eax, esi
push edi
mov eax, dword [edx + eax*4]
xor eax, ecx
mov ecx, dword [0x4062b4]
mov dword [0x4062ac], eax
and eax, esi
add eax, dword [0x4062b0]
mov edi, ecx
and edi, esi
imul eax, eax, 0x8088405
inc eax
mov dword [0x4062b0], eax
shr eax, 0x18
xor eax, edi
pop edi
shr ecx, 8
mov eax, dword [edx + eax*4]
pop esi
xor eax, ecx
mov dword [0x4062b4], eax
mov eax, dword [esp + 4]
ret

Function at 0x401196
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 0xc]
call fcn.004010fb
push 0xc
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.00403f03
add esp, 0x10
xor edi, edi
lea esi, [ebp + edi - 0xc]
call fcn.00401083
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040109c
inc edi
pop ecx
cmp edi, 0xc
jl 0x4011b9
test byte [0x4062c4], 8
movzx ax, byte [ebp - 1]
pop edi
pop esi
je 0x4011f0
movzx ecx, word [0x4063cc]
shr ecx, 8
jmp 0x4011f9
mov ecx, dword [0x4063d0]
shr ecx, 0x18
movzx eax, ax
sub eax, ecx
neg eax
sbb eax, eax
leave
ret
Function at 0x4015bd
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push 1
pop esi
cmp dword [0x40727c], esi
je 0x40163d
xor edi, edi
cmp dword [0x40729c], edi
jne 0x401647
mov ecx, dword [0x407258]
cmp ecx, edi
jg 0x4015e6
mov dword [0x40729c], edi
jmp 0x401647
cmp dword [0x407264], edi
jg 0x401685
mov eax, 0x400
cmp ecx, eax
jge 0x4015fd
mov eax, ecx
push eax
push dword [0x407270]
push dword [0x407234]
call fcn.00401cce
add esp, 0xc
cmp eax, edi
mov dword [0x407264], eax
jg 0x40162e
push dword [0x407234]
call fcn.00401d50
pop ecx
mov dword [0x40729c], eax
jmp 0x401647
call fcn.004042ec
test eax, eax
je 0x40164d
mov dword [0x40727c], esi
mov dword [0x40729c], 0x20000008
or ax, 0xffff
jmp 0x4016a0
cmp dword [0x407250], edi
je 0x40167b
mov eax, dword [0x407264]
mov esi, dword [0x407270]
cmp eax, edi
jle 0x40167b
mov edi, eax
call fcn.00401083
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040109c
inc esi
dec edi
pop ecx
jne 0x401666
mov eax, dword [0x407270]
mov dword [0x40728c], eax
mov eax, dword [0x40728c]
dec dword [0x407258]
dec dword [0x407264]
movzx ax, byte [eax]
inc dword [0x40728c]
pop edi
pop esi
ret

Function at 0x4016a3
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov ecx, dword [0x407268]
mov edx, dword [esp + 8]
mov eax, esi
push edi
and eax, 0xffff
mov edi, eax
dec eax
test edi, edi
je 0x4016de
push ebx
inc eax
movzx edi, byte [edx]
movzx ebx, cl
xor edi, ebx
mov ebx, dword [0x40722c]
shr ecx, 8
mov edi, dword [ebx + edi*4]
xor ecx, edi
inc edx
dec eax
jne 0x4016c3
pop ebx
cmp dword [0x407280], 0
mov dword [0x407268], ecx
jne 0x401743
test esi, esi
je 0x401743
push esi
push dword [esp + 0x10]
push dword [0x407238]
call fcn.00401d05
add esp, 0xc
cmp eax, esi
je 0x40171b
push dword [0x407238]
call fcn.00401d50
pop ecx
mov dword [0x40729c], eax
jmp 0x401745
mov eax, dword [0x4072bc]
add dword [0x407244], esi
push 1
add dword [eax + 0x182c], esi
mov eax, dword [0x4072bc]
mov dword [eax + 0x1840], 2
call fcn.004042fd
pop ecx
xor eax, eax
pop edi
pop esi
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret