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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.00417744
push edi
push esi
push ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x2010], eax
mov dword [ebp - 0x200c], edx
mov esi, dword [ebp + 0x14]
add esp, 0xfffffffc
push 0x40bd74
push ecx
lea ebx, [ebp - 0x2000]
push ebx
call fcn.0040bd14
add esp, 0xfffffff4
push 0
lea eax, [ebp - 0x2004]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ebx
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
add esp, 0x1c
test eax, eax
jne 0x40be6d
add esp, 0xfffffff8
push 8
lea eax, [ebp - 0x2010]
push eax
push 3
push 0
push 0x40bd99
push dword [ebp - 0x2004]
call sub.ADVAPI32.DLL_RegSetValueExA
mov edi, esi
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
push eax
push esi
push 1
push 0
push 0x40bda7
push dword [ebp - 0x2004]
call sub.ADVAPI32.DLL_RegSetValueExA
add esp, 0xfffffffc
push dword [ebp - 0x2004]
call sub.ADVAPI32.DLL_RegCloseKey
lea esp, [ebp - 0x2028]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x40bf64
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x802c
call fcn.00417744
push edi
push esi
push ebx
mov edx, dword [ebp + 8]
mov byte [ebp - 0x8019], 0
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
add esp, 0xfffffff4
lea eax, [ebp - 0x8004]
push eax
push 0x20019
push 0
push 0x40be94
push edx
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0xc
test eax, eax
jne 0x40c0ba
mov eax, 0x2000
mov dword [ebp - 0x8014], eax
mov dword [ebp - 0x8018], eax
xor esi, esi
jmp 0x40c070
mov edi, ebx
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
xor eax, eax
cmp eax, ecx
jge 0x40bff8
mov dl, byte [eax + ebx]
cmp dl, 0x2f
jne 0x40bfec
mov byte [eax + ebp - 0x6000], 0x5c
jmp 0x40bff3
mov byte [eax + ebp - 0x6000], dl
inc eax
cmp eax, ecx
jl 0x40bfd8
add esp, 0xfffffff4
add esp, 0xfffffffe
push 1
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
lea edi, [ebp - 0x8000]
push edi
lea ebx, [ebp - 0x6000]
push ebx
call fcn.0040c6c8
add esp, 0x20
test al, al
je 0x40c05b
add esp, 0xfffffff8
mov eax, dword [ebp + 0x10]
push eax
push edi
call sub.msvcrt.dll_strcmp
add esp, 0x10
test eax, eax
jle 0x40c05b
add esp, 0xfffffff8
push edi
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt.dll_strcpy
add esp, 0xfffffff8
push ebx
mov eax, dword [ebp + 0xc]
push eax
call sub.msvcrt.dll_strcpy
mov byte [ebp - 0x8019], 1
add esp, 0x20
inc esi
mov dword [ebp - 0x8014], 0x2000
mov dword [ebp - 0x8018], 0x2000
lea eax, [ebp - 0x8010]
push eax
lea eax, [ebp - 0x8014]
push eax
lea eax, [ebp - 0x2000]
push eax
push 0
lea eax, [ebp - 0x8018]
push eax
lea ebx, [ebp - 0x4000]
push ebx
push esi
push dword [ebp - 0x8004]
call sub.ADVAPI32.DLL_RegEnumKeyExA
cmp eax, 0x103
jne 0x40bfc4
add esp, 0xfffffff4
push dword [ebp - 0x8004]
call sub.ADVAPI32.DLL_RegCloseKey
mov al, byte [ebp - 0x8019]
lea esp, [ebp - 0x8038]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x40c0cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x203c
call fcn.00417744
push edi
push esi
push ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x2020], eax
mov dword [ebp - 0x201c], edx
add esp, 0xfffffffc
push 0x40bd74
push ecx
lea ebx, [ebp - 0x2000]
push ebx
call fcn.0040bd14
add esp, 0xfffffff4
lea eax, [ebp - 0x2004]
push eax
push 0x20019
push 0
push ebx
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0x1c
test eax, eax
jne 0x40c1ca
mov dword [ebp - 0x2008], 8
add esp, 0xfffffff8
lea eax, [ebp - 0x2008]
mov dword [ebp - 0x2024], eax
push eax
lea esi, [ebp - 0x2010]
push esi
lea ebx, [ebp - 0x2014]
push ebx
push 0
push 0x40bd99
push dword [ebp - 0x2004]
call sub.ADVAPI32.DLL_RegQueryValueExA
add esp, 8
test eax, eax
jne 0x40c1bc
cmp dword [ebp - 0x2008], 8
jne 0x40c1bc
lea edi, [ebp - 0x2020]
mov ecx, 8
cld
test al, 0
repe cmpsb byte [esi], byte es:[edi]
jne 0x40c1bc
mov dword [ebp - 0x2008], 0x2000
add esp, 0xfffffff8
mov eax, dword [ebp - 0x2024]
push eax
push dword [ebp + 0x14]
push ebx
push 0
push 0x40bda7
push dword [ebp - 0x2004]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
sete al
jmp 0x40c1cc
add esp, 0xfffffff4
push dword [ebp - 0x2004]
call sub.ADVAPI32.DLL_RegCloseKey
mov al, 0
lea esp, [ebp - 0x2048]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x40ca2c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov bl, 0
add esp, 0xfffffff4
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0xc
test eax, eax
jne 0x40ca82
add esp, 0xfffffff8
push dword [ebp + 0x18]
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
add esp, 8
test eax, eax
sete bl
add esp, 0xfffffff4
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov al, bl
mov ebx, dword [ebp - 0x28]
leave
ret

Function at 0x40cbe8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x601c
call fcn.00417744
push edi
push esi
push ebx
add esp, 0xfffffffc
push 0x2000
lea esi, [ebp - 0x2000]
push esi
push 0xa0
call fcn.00401aa8
mov edi, esi
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
add esp, 0x10
cmp ecx, 0xfffffffe
jne 0x40cc34
jmp 0x40cd55
mov al, 1
jmp 0x40cd55
add esp, 0xfffffff4
lea eax, [ebp - 0x6004]
push eax
push 0x20019
push 0
push 0x40cb94
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0xc
test eax, eax
jne 0x40cd53
mov dword [ebp - 0x6008], 0x2000
add esp, 0xfffffff8
lea eax, [ebp - 0x6008]
push eax
lea ebx, [ebp - 0x4000]
push ebx
lea eax, [ebp - 0x600c]
push eax
push 0
push esi
push dword [ebp - 0x6004]
call sub.ADVAPI32.DLL_RegQueryValueExA
add esp, 8
test eax, eax
jne 0x40cd45
cmp dword [ebp - 0x6008], 0
je 0x40cd45
add esp, 0xfffffff8
push ebx
push 0x40cbc5
call fcn.004086f0
add esp, 0xfffffff8
push 0x40cbdd
push ebx
call sub.msvcrt.dll_strtok
mov edx, eax
add esp, 0x20
jmp 0x40cd30
add esp, 0xfffffffc
push edx
push 0x40cbdf
lea ebx, [ebp - 0x6000]
push ebx
call sub.msvcrt.dll_sprintf
add esp, 0xfffffff8
push ebx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040bc70
add esp, 0x20
test al, al
je 0x40cd1c
add esp, 0xfffffff4
add esp, 0xfffffffe
push 1
add esp, 0xfffffffe
push 0
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040c5c0
add esp, 0x20
test al, al
jne 0x40cc2c
add esp, 0xfffffff8
push 0x40cbdd
push 0
call sub.msvcrt.dll_strtok
mov edx, eax
add esp, 0x10
test edx, edx
je 0x40cd45
mov edi, edx
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
cmp ecx, 0xfffffffe
jne 0x40ccc8
add esp, 0xfffffff4
push dword [ebp - 0x6004]
call sub.ADVAPI32.DLL_RegCloseKey
mov al, 0
lea esp, [ebp - 0x6028]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x40d6f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.00417744
push edi
push esi
push ebx
mov esi, dword [ebp + 8]
add esp, 0xfffffffc
push 0x2000
lea ebx, [ebp - 0x2000]
push ebx
push dword [ebp + 0xc]
call sub.KERNEL32.dll_GetEnvironmentVariableA
add esp, 4
test eax, eax
je 0x40d794
mov edi, ebx
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
xor edx, edx
cmp ecx, 0xfffffffe
je 0x40d754
cmp byte [edx + ebx], 0x2f
jne 0x40d73e
mov byte [edx + ebx], 0x5c
inc edx
mov edi, ebx
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
cmp edx, eax
jb 0x40d734
mov bl, 0
add esp, 0xfffffff8
lea eax, [ebp - 0x2000]
push eax
push esi
call fcn.0040bc70
add esp, 0x10
test al, al
je 0x40d78d
add esp, 0xfffffff4
add esp, 0xfffffffe
push 1
add esp, 0xfffffffe
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.0040c5c0
test al, al
setne bl
mov al, bl
jmp 0x40d796
mov al, 0
lea esp, [ebp - 0x2018]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x40dfa0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x607c
call fcn.00417744
push edi
push esi
push ebx
mov esi, dword [ebp + 0xc]
add esp, 0xfffffff8
push esi
lea ebx, [ebp - 0x2000]
push ebx
call sub.msvcrt.dll_strcpy
mov edi, ebx
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov byte [ebx + ecx - 6], al
add esp, 0xfffffff4
push esi
call fcn.00404464
add esp, 0x20
test al, al
jne 0x40dff8
add esp, 0xfffffff4
push 0x40dee7
call fcn.004086f0
jmp 0x40e0fd
add esp, 0xfffffffc
push dword [ebp + 8]
push 0x40df00
lea eax, [ebp - 0x4000]
mov dword [ebp - 0x6064], eax
push eax
call sub.msvcrt.dll_sprintf
push ebx
push esi
push 0x40df15
lea esi, [ebp - 0x6000]
push esi
call sub.msvcrt.dll_sprintf
add esp, 0x20
add esp, 0xfffffff4
mov eax, dword [ebp - 0x6064]
push eax
call fcn.004086f0
add esp, 0xfffffff4
push esi
call fcn.004086f0
add esp, 0x20
add esp, 0xfffffffc
push 0x10
push 0
lea edi, [ebp - 0x6010]
push edi
call sub.msvcrt.dll_memset
add esp, 0xfffffffc
push 0x44
push 0
lea ebx, [ebp - 0x6060]
push ebx
call sub.msvcrt.dll_memset
mov dword [ebp - 0x6060], 0x44
mov dword [ebp - 0x6034], 1
mov word [ebp - 0x6030], 0
add esp, 0x20
add esp, 0xfffffff8
push edi
push ebx
push 0
push 0
push 0x20
push 1
push 0
push 0
push esi
mov eax, dword [ebp - 0x6064]
push eax
call sub.KERNEL32.dll_CreateProcessA
add esp, 8
test eax, eax
jne 0x40e0d3
add esp, 0xfffffff4
push 0x40df34
call fcn.004086f0
add esp, 0xfffffff8
push 0x40df54
push 0x3f1
call fcn.00403b40
add esp, 0xfffffff4
push 0x40df74
call fcn.004086f0
add esp, 0xfffffff8
push 0xffffffffffffffff
push dword [ebp - 0x6010]
call sub.KERNEL32.dll_WaitForSingleObject
add esp, 0xfffffffc
push 0x40df94
call fcn.004086f0
lea esp, [ebp - 0x6088]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x412dcc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
add esp, 0xfffffffc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax + 0x38]
call sub.msvcrt.dll__read
leave
ret

Function at 0x417834
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x41785c
mov dword [0x43034c], eax
add esp, 0xfffffff8
push 0x4177f8
push eax
call fcn.0041be14
jmp 0x417861
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x417874
mov dword [0x422bd8], 0x417954
jmp 0x41787e
mov dword [0x422bd8], 0x417908
leave
ret
Function at 0x445220
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword fs:[0x18]
mov eax, dword ds:[eax + 0x30]
mov ecx, dword ds:[eax + 0xc]
mov dword [0x4443e8], ecx
mov eax, dword [0x4443e8]
mov ecx, dword [eax + 0xc]
mov dword [0x4443ec], ecx
mov edx, dword [0x4443ec]
mov dword [0x4443f0], edx
mov eax, 1
test eax, eax
je 0x44534e
cmp dword [0x4443ec], 0
jne 0x445271
xor eax, eax
jmp 0x44534e
mov ecx, dword [0x4443ec]
cmp dword [ecx + 0x18], 0
jne 0x445284
xor eax, eax
jmp 0x44534e
mov edx, dword [0x4443ec]
mov eax, dword [edx + 0x2c]
mov ecx, dword [edx + 0x30]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
je 0x4452a5
mov dword [ebp - 4], 1
jmp 0x4452d3
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0xc]
cmp eax, 0x62
je 0x4452c6
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0xc]
cmp edx, 0x42
je 0x4452c6
mov dword [ebp - 0x10], 0
jmp 0x4452cd
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 0x6b
je 0x4452e9
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
cmp ecx, 0x4b
jne 0x44532a
mov edx, dword [ebp - 8]
movzx eax, word [edx + 2]
cmp eax, 0x65
je 0x445301
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 2]
cmp edx, 0x45
jne 0x44532a
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 4]
cmp ecx, 0x72
je 0x445319
mov edx, dword [ebp - 8]
movzx eax, word [edx + 4]
cmp eax, 0x52
jne 0x44532a
cmp dword [ebp - 4], 0
je 0x44532a
mov ecx, dword [0x4443ec]
mov eax, dword [ecx + 0x18]
jmp 0x44534e
mov edx, dword [0x4443ec]
mov eax, dword [edx]
mov dword [0x4443ec], eax
mov ecx, dword [0x4443ec]
cmp ecx, dword [0x4443f0]
jne 0x445349
xor eax, eax
jmp 0x44534e
jmp 0x445254
mov esp, ebp
pop ebp
ret
Function at 0x445cf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x78]
add ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
add edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
jmp 0x445d4a
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0x18]
jae 0x445d97
push 0xe
push str.GetProcAddress
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
add eax, dword [ebp + 8]
push eax
call fcn.00447383
add esp, 0xc
test eax, eax
jne 0x445d8c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + ecx*2]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4]
add eax, dword [ebp + 8]
jmp 0x445d99
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
jmp 0x445d41
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x73de1e90
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6c980f1d
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4062ba
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d74], 0
push esi
jne 0x4062f1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4062cb
mov dword [ecx*4 + 0x426d70], eax
inc ecx
cmp ecx, 0x100
jl 0x4062c6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406322
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x426d70]
xor eax, esi
inc ecx
dec edx
jne 0x406304
pop edi
not eax
pop esi
ret 0xc

Function at 0x477880
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x475015
lea edi, [esi - 0x74015]
push edi
or ebp, 0xffffffff
jmp 0x4778a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4778a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x477898
mov eax, 1
add ebx, ebx
jne 0x4778bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4778b0
jne 0x4778cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4778b0
xor ecx, ecx
sub eax, 3
jb 0x4778e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x477952
mov ebp, eax
add ebx, ebx
jne 0x4778eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4778f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x47791c
inc ecx
add ebx, ebx
jne 0x477908
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4778fd
jne 0x477919
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4778fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47793c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47792d
jmp 0x47789e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47793c
add edi, ecx
jmp 0x47789e
pop esi
mov edi, esi
mov ecx, 0x25e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47795a
cmp byte [edi], 2
jne 0x47795a
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 eax, ebx
loop 0x47795f
lea edi, [esi + 0x75000]
mov eax, dword [edi]
or eax, eax
je 0x4779ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x77000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x770c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47798c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x770cc]
or eax, eax
je 0x4779c8
mov dword [ebx], eax
add ebx, 4
jmp 0x4779a9
call dword [esi + 0x770d0]
popal
jmp 0x4011cb
Function at 0x402684
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7c0
push ebx
push esi
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, ebx
call fcn.0040fe64
cmp eax, 0x3f6
jae 0x4028c6
lea eax, [ebp - 0x40]
mov ecx, 0x3c
xor edx, edx
call fcn.0040fddc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x5c0
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x22
jne 0x4026d1
lea edx, [ebx + 1]
jmp 0x4026d3
mov edx, ebx
mov dword [ebp - 0x30], edx
xor eax, eax
jmp 0x40272a
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x22
jne 0x4026fd
jmp 0x4026f6
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x4026f6
mov byte [ebx + eax], 0x20
jmp 0x4026fd
inc eax
cmp byte [ebx + eax], 0
jne 0x4026e6
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
je 0x402712
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x2f
jne 0x402729
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
jne 0x402720
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [ebp - 0x2c], eax
jmp 0x402730
inc eax
cmp byte [ebx + eax], 0
jne 0x4026da
cmp byte [0x415cfe], 0
je 0x402740
mov dword [ebp - 0x2c], 0x415cfe
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x30]
call fcn.00406348
mov esi, eax
test esi, esi
je 0x40276c
mov edx, str..inf
mov eax, esi
call fcn.0040ff60
test eax, eax
jne 0x40276c
mov dword [ebp - 0x34], 0x415230
xor edx, edx
mov eax, dword [ebp - 0x30]
call fcn.00406f34
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x402796
lea edx, [ebp - 0x440]
mov eax, dword [ebp - 0x30]
call fcn.00407000
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x30], ecx
cmp byte [ebp - 1], 0
je 0x4027d5
cmp byte [ebp - 2], 0
jne 0x4027d5
lea eax, [ebp - 0x840]
mov edx, dword [ebp - 0x30]
call fcn.0040fee0
mov edx, str..exe
lea eax, [ebp - 0x840]
call fcn.0040ffa8
lea eax, [ebp - 0x840]
xor edx, edx
call fcn.00406f34
test al, al
je 0x4028c6
lea ecx, [ebp - 0x40]
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x402805
and dword [ebp - 0x3c], 0xfffffbff
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x40]
push edx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x4028c6
xor ebx, ebx
cmp byte [0x4158f4], 0
jne 0x40281e
cmp byte [ebp - 1], 0
je 0x402867
cmp dword [0x416180], 0
je 0x402836
push dword [0x416180]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x40283a
xor eax, eax
jmp 0x40283f
mov eax, 1
test eax, eax
je 0x402852
push 0
push dword [0x416180]
call sub.USER32.DLL_ShowWindow
mov bl, 1
push 0x7d0
push dword [ebp - 8]
call sub.USER32.DLL_WaitForInputIdle
mov eax, dword [ebp - 8]
call fcn.004028cc
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
test esi, esi
je 0x402883
mov edx, str..exe
mov eax, esi
call fcn.0040ff60
test eax, eax
je 0x4028b5
cmp byte [0x4158f4], 0
je 0x40289e
cmp byte [ebp - 1], 0
jne 0x40289e
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x4028b5
cmp byte [ebp - 1], 0
mov edx, 0xc8
jne 0x4028af
add edx, 0x320
push edx
call sub.KERNEL32.DLL_Sleep
test bl, bl
je 0x4028c6
push 1
push dword [0x416180]
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x402bb0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x402beb
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x402bd2
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x402be3
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x402bed
inc edi
add eax, 0x28
cmp edi, esi
jb 0x402bc8
xor eax, eax
pop edi
pop esi
ret

Function at 0x4031f4
Capabilities:
Inspect section memory permissions

Disassembly:
jne 0x403209
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x403211
cmp edx, ebx
jne 0x40335f
test dword [esi + 1], ecx
add byte [eax], al
mov ecx, dword [eax + 4]

Function at 0x4033fc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ebp, 0x55fffffc
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
invalid
call dword [eax - 0x18]
insb byte es:[edi], dx
idiv edi
call [ecx + 0x50]

Function at 0x4049d0
Capabilities:
Inspect section memory permissions

Disassembly:
pop edi
push es
mov dword [ebp + 0xc], ebx
jbe 0x404a0a
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]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.0040440b
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x4049d7
call fcn.0040449a
push 0x8b79ca3c
jle 0x404a52
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x404c89
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x404a3f
cmp dword [eax + 0xc], ebx
je 0x404ae2
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.0040449a
ret
inc ebx
jo 0x404ab5
cmp byte [ecx], bh
pop ebp
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x404ad0
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x404aab
and eax, 0xffff
push eax
jmp 0x404aaf
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040445f
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x404c89
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x404a90
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x404a31
call fcn.0040449a
and bl, byte [eax + ecx*8]
sbb al, 0xc8

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret