joyce8/EMBER2024-capa huggingface dataset:
Function at 0x582e4f
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x624060]
mov edi, eax
pop ecx
test edi, edi
je 0x582f3c
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x582ebb
push ecx
call dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [esi + 4]
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
call dword [esi + 8]
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x582ec1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push ecx
call dword [esi]
push dword [edi + 8]
call dword [esi]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
pop ecx
pop ecx
test eax, eax
je 0x582f34
mov dword [ebp - 8], eax
mov ebx, eax
mov eax, dword [ebp - 4]
push 1
mov al, byte [eax]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov ecx, dword [ebp - 4]
push 1
mov al, byte [ecx]
xor al, 0x5c
inc ecx
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
mov dword [ebp - 4], ecx
call dword [esi + 4]
add esp, 0x18
sub ebx, 1
jne 0x582ed9
mov ebx, dword [ebp - 8]
jmp 0x582f34
push 1
push 0x5f6d1f
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x5f6d20
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x582f16
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x5a51a1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005a5020

Function at 0x5a62a6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005a5f66
Function at 0x401c6b
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push 0x411b8c
push 0x4232e0
push str._s_s
lea eax, [ebp - 0x100]
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x100]
push 0xb
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
leave
ret
Function at 0x4024ab
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 8]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402514
call esi
cmp eax, 0x3f0
jne 0x40250c
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402514
jmp 0x402579
or eax, 0xffffffff
jmp 0x4025b0
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x402579
call esi
cmp eax, 0x7a
jne 0x402579
mov eax, dword [ebp - 4]
add eax, 3
and al, 0xfc
call fcn.00409040
mov esi, esp
cmp esi, ebx
je 0x402579
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
je 0x402579
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40257d
xor eax, eax
jmp 0x4025b0
cmp dword [esi], ebx
jbe 0x4025a4
lea edi, [esi + 4]
push dword [ebp - 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40259d
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x402584
jmp 0x4025a4
mov dword [ebp - 0x10], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402816
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_time]
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_srand]
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x186a0
idiv ecx
lea eax, [ebp - 0x104]
push edx
push 0x4232e0
push dword [0x40e784]
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
lea eax, [ebp - 0x104]
push 0xb
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
xor eax, eax
leave
ret
Function at 0x402877
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov al, byte [0x411ff4]
push esi
push edi
push 0x3f
mov byte [ebp - 0x100], al
pop ecx
xor eax, eax
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x100
stosb byte es:[edi], al
push esi
lea eax, [ebp - 0x100]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x100]
push esi
push eax
push dword [0x40eae8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
lea eax, [ebp - 0x100]
push dword [0x40e598]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x100]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
call dword [0x422240]
pop edi
xor eax, eax
pop esi
leave
ret

Function at 0x403205
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov al, byte [0x411ff4]
push esi
push edi
push 0x1f
mov byte [ebp - 0x80], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x80]
push 0x80
push eax
push dword [0x40e918]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
test eax, eax
jne 0x403255
push dword [0x40e400]
lea eax, [ebp - 0x80]
push 0x7f
push eax
call esi
add esp, 0xc
push dword [0x40e8dc]
lea eax, [ebp - 0x80]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push 0x7f
pop ecx
sub ecx, eax
lea eax, [ebp - 0x80]
push ecx
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x80]
push eax
call esi
lea eax, [ebp - 0x80]
push 0xea60
push eax
call fcn.0040889b
add esp, 0x14
pop edi
pop esi
leave
ret
Function at 0x403990
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a188
push 0x409030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x330
push ebx
push esi
push edi
or dword [ebp - 0x12c], 0xffffffff
and dword [ebp - 0x340], 0
mov dl, byte [0x411ff4]
mov byte [ebp - 0x33c], dl
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x33b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x128], dl
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and dword [ebp - 0x130], 0
mov esi, dword [ebp + 8]
test esi, esi
jne 0x403a2f
push 0x411ff8
push 0x4232e0
push dword [0x40ea64]
push 0x103
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea esi, [ebp - 0x234]
mov eax, 0x400000
mov edi, eax
push 1
push eax
call dword [sym.imp.MSVCRT.dll_calloc]
pop ecx
pop ecx
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
jne 0x403a52
or eax, 0xffffffff
jmp 0x403bad
push 0x104
lea eax, [ebp - 0x128]
push eax
push dword [0x40e450]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x5c
push esi
call fcn.00408754
push eax
lea eax, [ebp - 0x128]
push eax
push dword [0x40ea98]
push 0x103
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
and dword [ebp - 4], 0
call fcn.00403291
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x33c]
push eax
push esi
call fcn.00408da0
pop ecx
pop ecx
test eax, eax
jge 0x403abb
push 0xfffffffffffffffe
jmp 0x403adb
push 0x4114b4
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
pop ecx
mov dword [ebp - 0x340], eax
test eax, eax
jne 0x403af0
push 0xfffffffffffffffd
pop esi
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
pop ecx
pop ecx
mov eax, esi
jmp 0x403bad
push dword [ebp - 0x340]
push edi
push ebx
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
je 0x403b97
push 0x4114b0
push ebx
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
pop ecx
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x403b44
cmp esi, ebx
je 0x403b41
lea edi, [esi - 1]
cmp byte [edi], 0x5c
jne 0x403b41
push esi
call sub.MSVCRT.dll_strlen
inc eax
push eax
push esi
push edi
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0x10
jmp 0x403b44
and byte [esi], 0
push 0x4114ac
push ebx
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
pop ecx
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x403b6d
mov edi, 0x400000
push edi
push eax
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
jmp 0x403af0
push ebx
call fcn.004085dd
and byte [esi], 0
inc esi
mov dword [ebp - 0x1c], esi
push esi
push ebx
call fcn.004032fb
mov edi, 0x400000
push edi
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0x18
jmp 0x403af0
and dword [ebp - 0x12c], 0
or dword [ebp - 4], 0xffffffff
call fcn.00403bbf
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40430d
Capabilities:
Persist via run registry key

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
push dword [0x40ea1c]
push 0x80000002
call fcn.00404093
push edi
mov esi, 0x80000001
push dword [0x40ea1c]
push esi
call fcn.00404093
push edi
push dword [0x40e6d0]
push esi
call fcn.00404093
add esp, 0x24
xor eax, eax
pop edi
pop esi
ret
Function at 0x404381
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
push edi
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call fcn.00408528
mov ebx, eax
pop ecx
cmp ebx, esi
jne 0x4043c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str.TarUnpackFiles__:_fio_open_read__s__failed:__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0xc
or eax, 0xffffffff
jmp 0x404563
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4043d7
push 0xffffffffffffffeb
jmp 0x404435
push 1
push edi
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x4043ec
push 0xffffffffffffffea
jmp 0x404435
push edi
push esi
push ebx
call fcn.0040859e
add esp, 0xc
test eax, eax
jne 0x4043ff
push 0xffffffffffffffe9
jmp 0x404435
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0xc], edi
je 0x40440f
push 0xfffffffffffffffd
jmp 0x404435
movzx eax, word [esi + 8]
lea ebx, [esi + 0x10]
lea eax, [eax + eax*8]
shl eax, 2
push eax
push ebx
push ebx
push esi
call fcn.00408ae3
push edi
push esi
call fcn.0040434b
add esp, 0x18
test eax, eax
jne 0x40443b
push 0xffffffffffffffe1
pop eax
jmp 0x404563
movzx eax, word [esi + 8]
and dword [ebp - 8], 0
lea ecx, [eax + eax*8]
test eax, eax
lea ecx, [esi + ecx*4 + 0x10]
mov dword [ebp - 0x10], ecx
jbe 0x404560
lea eax, [ebx + 4]
mov dword [ebp + 8], eax
mov dl, byte [0x411ff4]
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x8f]
mov byte [ebp - 0x90], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x18f]
mov byte [ebp - 0x190], dl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
push dword [0x40e8bc]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x90]
push 0x7f
push eax
call edi
lea eax, [ebp - 0x90]
push eax
call fcn.00403555
add esp, 0x14
test eax, eax
jne 0x4044bd
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x190]
push dword [ebp + 0xc]
push str._s_s
push 0xff
push eax
call edi
lea eax, [ebp - 0x190]
push eax
call fcn.00408507
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x40450a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str.TarUnpackFiles__:_fio_open_write__s__failed:__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0xc
mov dword [ebp - 4], 0xfffffffc
jmp 0x404544
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
push dword [ebx]
add ecx, eax
push ecx
push edi
call fcn.0040854a
add esp, 0xc
test eax, eax
jne 0x40453d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4114bc
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
mov dword [ebp - 4], 0xfffffffb
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
add dword [ebp + 8], 0x24
add dword [ebp - 0xc], eax
inc dword [ebp - 8]
movzx eax, word [esi + 8]
add ebx, 0x24
cmp dword [ebp - 8], eax
jb 0x40445b
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404568
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
mov esi, 0x100
push ebx
lea eax, [ebp - 0x294]
push esi
push eax
lea eax, [ebp - 0x194]
push eax
push dword [ebp + 8]
call fcn.00405078
add esp, 0x20
cmp eax, ebx
jne 0x404671
mov edi, 0x2000
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
jne 0x4045bd
push 0xffffffffffffff98
pop eax
jmp 0x404671
push esi
lea eax, [ebp - 0x144]
push ebx
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x144]
push dword [ebp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [ebp - 0x144]
push 0x411494
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x44]
push dword [0x40e8bc]
push 0x3f
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x44]
push eax
call fcn.00403555
add esp, 0x34
cmp eax, ebx
jne 0x40461c
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x144]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00405948
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x40465c
lea eax, [ebp - 0x144]
push 0x411550
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp + 0x18], eax
jne 0x404676
push 0xffffffffffffff98
pop esi
push dword [ebp + 8]
call fcn.00405b85
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0040595e
mov esi, eax
add esp, 0xc
cmp esi, ebx
jl 0x4046a7
jle 0x4046a7
push dword [ebp + 0x18]
push 1
push esi
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x404676
or esi, 0xffffffff
cmp dword [ebp + 0x18], ebx
je 0x4046b6
push dword [ebp + 0x18]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
cmp esi, ebx
jne 0x40465c
push dword [ebp + 8]
call fcn.00405b85
pop ecx
mov esi, eax
jmp 0x404665
Function at 0x404966
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x388
push ebx
push esi
mov esi, 0x100
push edi
xor ebx, ebx
push esi
lea eax, [ebp - 0x288]
push ebx
push eax
mov dword [ebp - 8], ebx
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x388]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov edi, 0x80
lea eax, [ebp - 0x188]
push edi
push ebx
push eax
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x188]
push ebx
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
add esp, 0x3c
lea eax, [ebp - 0x288]
push esi
push eax
push dword [0x40ec6c]
call ebx
lea eax, [ebp - 0x388]
push esi
push eax
push dword [0x40eae8]
call ebx
lea eax, [ebp - 0x188]
push edi
push eax
push str.APPDATA
call ebx
test eax, eax
jne 0x404a21
push edi
lea eax, [ebp - 0x188]
push str.Application_Data
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea eax, [ebp - 0x188]
jmp 0x404a31
lea eax, [ebp - 0x188]
push 0x5c
push eax
call fcn.00408754
pop ecx
pop ecx
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x108]
push str._s_sMicrosoft
push eax
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, 0xff
sub ecx, eax
lea eax, [ebp - 0x108]
push ecx
push eax
call sub.MSVCRT.dll_strlen
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
pop ecx
lea eax, [ebp + eax - 0x108]
push eax
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.00404b76
add esp, 0x1c
test eax, eax
jge 0x404b6e
push dword [ebp + 8]
lea eax, [ebp - 0x288]
push eax
call fcn.00404b76
pop ecx
test eax, eax
pop ecx
jge 0x404b6e
push esi
lea eax, [ebp - 0x108]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x388]
push dword [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push str._s_sMicrosoft
push eax
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, 0xff
sub ecx, eax
lea eax, [ebp - 0x108]
push ecx
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x108]
push eax
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.00404b76
add esp, 0x1c
test eax, eax
jge 0x404b6e
push dword [ebp + 8]
lea eax, [ebp - 0x388]
push eax
call fcn.00404b76
pop ecx
test eax, eax
pop ecx
jge 0x404b6e
push esi
lea eax, [ebp - 0x108]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push eax
push dword [0x40ec84]
call ebx
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.00404b76
pop ecx
test eax, eax
pop ecx
jge 0x404b6e
push 0x104
push 0x4232e0
push dword [0x40e450]
call ebx
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4056f2
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
mov edx, 0xff
mov esi, dword [ecx]
push edi
mov edi, dword [esp + 0x14]
mov eax, esi
xor eax, dword [esp + 0x18]
shr esi, 8
and eax, edx
mov eax, dword [edi + eax*4]
xor eax, esi
mov esi, dword [ecx + 8]
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
mov ebx, esi
and ebx, edx
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
shr eax, 0x18
xor eax, ebx
shr esi, 8
mov eax, dword [edi + eax*4]
pop edi
xor eax, esi
pop esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x10]
pop ebx
ret
Function at 0x40834e
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
push dword [0x40e5d8]
lea eax, [ebp - 0x21c]
xor esi, esi
push 0xfe
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0x20019
lea eax, [ebp - 0x21c]
push esi
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x4083c5
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4083cc
xor eax, eax
jmp 0x408502
cmp dword [ebp - 4], esi
je 0x4084f6
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push esi
push eax
lea eax, [ebp - 0x31c]
mov dword [ebp - 0x18], 0xff
push eax
mov eax, dword [ebp - 4]
dec eax
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4084ed
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x41c]
push dword [0x40ea64]
push 0xfe
push eax
call edi
add esp, 0x14
lea eax, [ebp - 8]
push eax
push 0x20019
lea eax, [ebp - 0x41c]
push esi
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x4084ed
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xff
push eax
lea eax, [ebp - 0x11c]
push eax
push esi
push esi
push str.ProductName
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4084e4
lea eax, [ebp - 0x11c]
push eax
call fcn.004086f2
push dword [0x40eb9c]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0xc
test eax, eax
je 0x4084c4
push dword [0x40e654]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
jne 0x4084dd
push dword [0x40eba0]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
jne 0x4084dd
push dword [0x40e5a0]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x4084e4
mov dword [ebp - 0x10], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
dec dword [ebp - 4]
jne 0x4083d5
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40889b
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x4088b2
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4088d8
push dword [esp + 0xc]
push esi
call fcn.004088dc
pop ecx
test eax, eax
pop ecx
jge 0x4088d8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, esi
pop esi
ret
Function at 0x408b49
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
cmp dword [ebp + 0x10], eax
jbe 0x408bb0
mov ecx, dword [ebp + 0xc]
push ebx
sub ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 8], ecx
mov cl, al
mov dword [ebp - 4], 8
and cl, 3
mov ebx, 0xff
movzx edi, cl
mov ecx, dword [ebp + 8]
sub dword [ebp - 4], edi
mov dl, byte [eax + ecx]
lea esi, [eax + ecx]
mov ecx, dword [ebp - 4]
shl ebx, cl
movzx ecx, dl
and ebx, ecx
mov ecx, dword [ebp - 4]
sar ebx, cl
mov ecx, edi
shl dl, cl
mov ecx, eax
and ecx, 3
or bl, dl
xor bl, byte [ecx + 0x411634]
mov ecx, dword [ebp - 8]
inc eax
cmp eax, dword [ebp + 0x10]
mov byte [ecx + esi], bl
jb 0x408b61
pop edi
pop esi
pop ebx
mov ecx, eax
and ecx, 3
je 0x408bc6
mov edx, dword [ebp + 0xc]
mov cl, byte [ecx + 0x411634]
mov byte [eax + edx], cl
inc eax
jmp 0x408bb0
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0xae93a0c
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2c9b2234
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219