joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x14]
push ebx
lea esi, [ebp - 0x10]
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
call eax
sub esp, 0x18
test eax, eax
je 0x408ca0
mov ebx, eax
xor edx, edx
cmp eax, 2
je 0x408d40
test byte [0x40b080], 2
jne 0x408c60
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
call fcn.004086e0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Error__ld_while_reading_value__s_n
mov dword [esp + 8], str.load_reg_multisz
mov dword [esp + 4], 0x40b080
mov dword [esp], 1
call fcn.00408970
mov edx, dword [ebp - 0x18]
jmp 0x408c44
mov eax, dword [ebp - 0x10]
cmp eax, 7
je 0x408cd0
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x408cb4
cmp eax, 1
je 0x408cd0
mov ebx, 0x70c
xor edx, edx
test byte [0x40b080], 2
je 0x408c44
jmp 0x408c60
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x1c], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [ebp - 0x18]
call eax
mov edx, dword [ebp - 0x1c]
sub esp, 0x18
test eax, eax
mov ebx, eax
jne 0x408c3b
mov eax, dword [ebp - 0x14]
xor ebx, ebx
mov ecx, dword [ebp - 0x20]
and eax, 0xfffffffe
mov dword [ecx + eax], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 2
xor ebx, ebx
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x408d32
Function at 0x408d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea edx, [ebp - 0x10]
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], 4
mov esi, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
mov ebx, eax
test eax, eax
je 0x408dc8
cmp eax, 2
je 0x408e28
test byte [0x40b080], 2
jne 0x408de7
mov eax, ebx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp - 0xc]
sub eax, 3
cmp eax, 1
ja 0x408dd9
cmp dword [ebp - 0x10], 4
je 0x408dbc
mov ebx, 0x70c
test byte [0x40b080], 2
je 0x408dbc
mov eax, esi
call fcn.004086e0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Error__ld_while_reading_value__s_n
mov dword [esp + 8], str.load_reg_dword
mov dword [esp + 4], 0x40b080
mov dword [esp], 1
call fcn.00408970
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
lea esp, [ebp - 8]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x409870
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call 0x4098e0
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00409920
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x658f3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x660398
cmp edx, dword [eax]
je 0x658f5f
add eax, 8
inc ecx
cmp eax, 0x660428
jl 0x658f50
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x660398]
jne 0x65908d
mov eax, dword [0xa5d0f4]
cmp eax, 1
je 0x659067
test eax, eax
jne 0x658f90
cmp dword [0x6602c4], 1
je 0x659067
cmp edx, 0xfc
je 0x65908d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x658fc7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00659920
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00659db0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x65900a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00659db0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65e5ec
push edi
call fcn.0065bc80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00659920
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00659930
lea eax, [ebp - 0xa0]
push 0x65e5cc
push eax
call fcn.00659930
push dword [esi + 0x66039c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00659930
push 0x12010
adc byte [eax], ah
add dword [eax], eax
lea eax, [ebp + 8]
lea esi, [esi + 0x66039c]
push 0
push eax
push dword [esi]
call fcn.00659db0
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]
Function at 0x4012a0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push 0x4031c8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4012db
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 8]
push 0
push eax
push 0x200
push 0x4037f0
push ebx
call esi
push 0
push 0
push 0x200
push ebx
call edi
push 0
lea eax, [ebp - 8]
push eax
push 0x400
push 0x4033f0
push ebx
call esi
push 0
push 0
push 0x600
push ebx
call edi
push 0
lea eax, [ebp - 8]
push eax
push 0x400
push 0x4039f0
push ebx
call esi
push 0
push 0
push 0xa00
push ebx
call edi
push 0
lea eax, [ebp - 8]
push eax
push 0x200
push 0x4031f0
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004018cd
mov esp, ebp
pop ebp
ret

Function at 0x401380
Capabilities:
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa0], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4013b0
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x80
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0x90
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x74004
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401430
cmp eax, 1
jne 0x40147a
call fcn.004012a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 7]
push eax
push 0
push 1
push 0x13
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
lea eax, [esp + 8]
push eax
push 6
push 0
push 0
push 0
push 0xc0000420
call dword [sym.imp.ntdll.dll_NtRaiseHardError]
mov ecx, dword [esp + 0xa4]
pop esi
xor ecx, esp
call fcn.004018cd
mov esp, ebp
pop ebp
ret 0x10
push 0xfffffffffffffffb
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401e40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45eb18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x48017c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x6c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov dword [esp + 0xc], 0
call edx
mov edx, eax
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.004179aa
cmp dword [esp + 0x24], 8
jb 0x401ea1
mov eax, dword [esp + 0x10]
push eax
call fcn.0043ff30
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x405740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45d3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x48017c]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x48017c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x38]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x40]
call fcn.00425598
add esp, 4
mov dword [esp + 0x30], 0
cmp dword [esp + 0x20], 0x10
mov edx, dword [esp + 0xc]
jae 0x40579b
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.00405c80
cmp dword [esp + 0x20], 0x10
jb 0x4057b6
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0043ff30
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0043ff3b
add esp, 0x2c
ret

Function at 0x4079d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x45eb18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x48017c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.004065c0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x407a26
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.004064e0
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.004065c0
cmp dword [esp + 0x24], 8
jb 0x407a6f
mov edx, dword [esp + 0x10]
push edx
call fcn.0043ff30
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x407e50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45a108
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x48017c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00401400
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esi], 0x4664a4
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
lea eax, [edi + 0x30]
push edx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], edx
push eax
mov byte [ecx + 4], dl
call fcn.00405a00
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x411b3f
Capabilities:
Create thread

Disassembly:
push 0x4c
mov eax, 0x45e7cb
call fcn.00443c3d
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x30]
push ecx
push 4
push eax
push 0x4266c0
xor esi, esi
push esi
push esi
call fcn.004424db
add esp, 0x18
cmp eax, esi
je 0x411b93
mov ecx, dword [edi]
xor edx, edx
add ecx, 4
inc edx
lock xadd dword [ecx], edx
mov ecx, dword [edi]
push eax
lea esi, [ecx + 8]
call fcn.00411895
mov edi, dword [edi]
push dword [edi + 8]
call dword [0x46221c]
call fcn.00443d15
ret
push 0x4654d0
push 0xb
lea eax, [ebp - 0x58]
call fcn.00401970
mov dword [ebp - 0x58], 0x4664bc
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 4], esi
call fcn.00407670
int3
Function at 0x419ee5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45ab72
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x48017c]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x48017c]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x63], 0
je 0x419f3d
push 1
lea esi, [esp + 0x2c]
call fcn.00423424
push 0x4747a4
mov eax, esi
push eax
call fcn.0044380b
lea edi, [eax + 0x88]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
jbe 0x41a06a
push 0x466895
lea ecx, [esp + 0x58]
call fcn.004054b0
and dword [esp + 0x80], 0
mov ebx, dword [edi + 0xc]
lea esi, [esp + 0x1c]
call fcn.004343d1
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov ebx, dword [edi + 0x10]
lea esi, [esp + 0x1c]
call fcn.004343d1
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x419fa3
cmp ebx, dword [esp + 0x1c]
je 0x419fa8
call fcn.004403d1
mov esi, dword [esp + 0x18]
cmp esi, dword [esp + 0x20]
je 0x419ffc
test ebx, ebx
jne 0x419ff4
call fcn.004403d1
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x419fc7
call fcn.004403d1
push 0
push esi
or eax, 0xffffffff
lea esi, [esp + 0x5c]
call fcn.00406060
test ebx, ebx
jne 0x419ff8
call fcn.004403d1
mov eax, dword [esp + 0x18]
cmp eax, dword [ebx + 0x10]
jb 0x419fed
call fcn.004403d1
add dword [esp + 0x18], 0x1c
jmp 0x419f89
mov eax, dword [ebx]
jmp 0x419fbd
mov ebx, dword [ebx]
jmp 0x419fdf
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x3c]
push 0x46a444
push eax
call fcn.004232c2
add esp, 0xc
mov byte [esp + 0x80], 1
cmp dword [eax + 0x18], 0x10
jb 0x41a026
mov eax, dword [eax + 4]
jmp 0x41a029
add eax, 4
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.0043ff5b
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], 0x46a500
mov byte [esp + 0x80], 0
call fcn.00405520
mov dword [esp + 0x1c], 0x46a530
push 0x474868
lea eax, [esp + 0x20]
jmp 0x419f37
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0043ff3b
mov esp, ebp
pop ebp
ret 4
Function at 0x41c52d
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x45beb8
call fcn.00443ca6
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x38], esi
cmp dword [esi + 0x3c], ebx
je 0x41c645
cmp byte [esi + 0x41], bl
je 0x41c645
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x41c565
xor al, al
jmp 0x41c647
push ebx
push 8
lea eax, [ebp - 0x30]
call fcn.0041bf7e
add esi, 0x44
mov dword [ebp - 4], ebx
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp - 0x1c]
lea ebx, [ebp - 0x48]
lea edi, [ebp - 0x30]
mov dword [ebp - 0x34], eax
call fcn.004105e0
mov esi, eax
call fcn.00410790
add eax, dword [ebp - 0x34]
lea ebx, [ebp - 0x60]
mov dword [ebp - 0x34], eax
call fcn.004105e0
mov esi, eax
call fcn.00410790
mov esi, dword [ebp - 0x38]
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
lea edi, [ebp - 0x40]
push edi
push dword [ebp - 0x34]
push eax
push dword [ebp - 0x3c]
call dword [edx + 0x18]
xor ebx, ebx
sub eax, ebx
je 0x41c5cd
dec eax
je 0x41c5d0
dec eax
dec eax
jne 0x41c639
mov bl, 1
jmp 0x41c639
mov byte [esi + 0x41], bl
lea ebx, [ebp - 0x58]
lea edi, [ebp - 0x30]
call fcn.004105e0
mov esi, eax
call fcn.00410790
mov ecx, dword [ebp - 0x40]
sub ecx, eax
mov dword [ebp - 0x34], ecx
je 0x41c615
mov eax, dword [ebp - 0x38]
push dword [eax + 0x4c]
lea ebx, [ebp - 0x50]
push ecx
push 1
call fcn.004105e0
mov esi, eax
call fcn.00410790
push eax
call fcn.00441c7c
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x41c637
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0x41], 0
je 0x41c5c9
test ecx, ecx
jne 0x41c579
push ecx
push 8
pop eax
lea ebx, [ebp - 0x30]
call fcn.0041bfa4
jmp 0x41c579
xor bl, bl
lea ecx, [ebp - 0x30]
call fcn.00405520
mov al, bl
jmp 0x41c647
mov al, 1
call fcn.00443d29
ret
Function at 0x42753c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
mov ebx, dword [0x46213c]
push edi
xor edi, edi
push edi
push edi
push 1
push edi
call ebx
mov dword [esp + 8], eax
mov dword [esi + 4], eax
cmp eax, edi
jne 0x427594
call dword [0x462140]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.00411595
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
mov edx, 0x46b2a4
call fcn.0042716c
pop ecx
push edi
push edi
push 1
push edi
call ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], eax
mov dword [esi + 8], eax
cmp dword [ebx + 8], edi
jne 0x4275dc
call dword [0x462140]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.00411595
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
mov edx, 0x46b2b8
call fcn.0042716c
pop ecx
lea eax, [esp + 0x14]
push eax
push edi
push esi
push 0x427672
push edi
push edi
mov dword [esp + 0x2c], edi
call fcn.004424db
add esp, 0x18
mov dword [ebx + 4], eax
cmp eax, edi
jne 0x42764e
call dword [0x462140]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
cmp dword [esp + 8], edi
je 0x42761f
push dword [esp + 8]
call dword [0x462144]
mov ebx, dword [ebx + 8]
cmp ebx, edi
je 0x42762d
push ebx
call dword [0x462144]
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.00411595
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
mov edx, 0x46b2cc
call fcn.0042716c
pop ecx
cmp dword [esp + 8], edi
je 0x42766a
push 0xffffffffffffffff
push dword [esp + 0xc]
call dword [0x4620b8]
push dword [esp + 8]
call dword [0x462144]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43bc48
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [esp + 4]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 4]
ret
Function at 0x45bd2f
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45d3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x48017c]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x48017c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x38]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x40]
call 0x47bb87
add esp, 4
mov dword [esp + 0x30], 0
cmp dword [esp + 0x20], 0x10
mov edx, dword [esp + 0xc]
jae 0x45bd8a
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.0045c26f
cmp dword [esp + 0x20], 0x10
jb 0x45bda5
mov ecx, dword [esp + 0xc]
push ecx
call 0x49651f
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call 0x49652a
add esp, 0x2c
ret

Function at 0x45dfbf
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x45eb18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x48017c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.0045cbaf
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45e015
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.0045cacf
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.0045cbaf
cmp dword [esp + 0x24], 8
jb 0x45e05e
mov edx, dword [esp + 0x10]
push edx
call 0x49651f
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x45e43f
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45a108
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x48017c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.004579ef
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esi], 0x4664a4
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
lea eax, [edi + 0x30]
push edx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], edx
push eax
mov byte [ecx + 4], dl
call fcn.0045bfef
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x401070
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
mov esi, dword [ebp + 8]
add esi, dword [esi + 0x3c]
lea edi, [ebp - 0xfc]
mov ecx, 0xf8
cld
rep movsb byte es:[edi], byte [esi]
push 0x40
push 0x1000
push dword [ebp - 0xac]
push 0
call sub.kernel32.dll_VirtualAlloc
or eax, eax
jne 0x4010b2
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
leave
ret 8
mov dword [ebp - 4], eax
add eax, dword [ebp - 0xd4]
mov dword [ebp - 0x100], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 0xa8]
cld
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [ebp + 8]
add ebx, dword [ebx + 0x3c]
add ebx, 0xf8
xor ecx, ecx
mov cx, word [ebp - 0xf6]
mov esi, dword [ebx + 0x14]
add esi, dword [ebp + 8]
mov edi, dword [ebx + 0xc]
add edi, dword [ebp - 4]
push ecx
mov ecx, dword [ebx + 0x10]
cld
rep movsb byte es:[edi], byte [esi]
pop ecx
add ebx, 0x28
loop 0x4010e5
mov ebx, dword [ebp - 0x7c]
add ebx, dword [ebp - 4]
push dword [ebp - 4]
push ebx
call fcn.0040114c
mov ebx, dword [ebp - 0x5c]
add ebx, dword [ebp - 4]
lea eax, [ebp - 0xfc]
push eax
push dword [ebp - 4]
push ebx
call fcn.004011ac
mov eax, dword [ebp - 0x100]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edx
leave
ret 8