joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d6980
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
xor esi, esi
push edi
test ebx, ebx
jbe 0x4d6a04
mov edi, dword [esp + 0x118]
mov ebp, dword [esp + 0x11c]
mov edx, dword [edi + 4]
mov eax, ebx
sub eax, esi
push 0
lea ecx, [esi + ebp]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x4d69fe
jge 0x4d6a14
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x2733
je 0x4d69d6
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb
jne 0x4d6a14
mov eax, dword [edi + 4]
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
push 0
push ecx
inc eax
push 0
push eax
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4d6a14
xor eax, eax
add esi, eax
cmp esi, ebx
jb 0x4d69a5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret

Function at 0x4d84d0
Capabilities:
Read file on windows
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x54818b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
stosw word es:[edi], ax
call sub.MFC42u.DLL_CString::CString_3
lea eax, [esp + 0xc]
push 0x104
push eax
push 0
mov dword [esp + 0x228], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::MakeLower
push str.gui.exe
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::Find
or edi, 0xffffffff
cmp eax, edi
jne 0x4d8593
push 0
push 0
push str.search_for_a_string_error_GetModuleFileName_
call sub.MFC42u.DLL_AfxMessageBox
lea ecx, [esp + 8]
mov dword [esp + 0x21c], edi
call sub.MFC42u.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20c]
mov dword fs:[0], ecx
add esp, 0x218
ret
push str.TempComm.dat
push str.gui.exe
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::Replace
mov edx, dword [esp + 8]
push 0x583424
push edx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d85d3
push eax
push eax
push str.open_TempComm.dat_file_fail
call sub.MFC42u.DLL_AfxMessageBox
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push esi
push 0x10
push 1
push 0x67a858
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov esi, dword [0x67a858]
add esp, 0x14
lea ecx, [esp + 8]
mov dword [esp + 0x21c], edi
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x214]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret

Function at 0x4d8ae0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
ret 0xc
Function at 0x4df7c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
mov esi, ecx
push eax
call fcn.004e0510
add esp, 4
test eax, eax
jne 0x4df7de
pop esi
add esp, 8
ret 4
push edi
mov dword [esi + 4], eax
mov ecx, dword [0x67a8cc]
push 0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x67a8cc]
lea edi, [esi + 0x70]
push edx
push 1
push 0x24
push edi
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
movsx edx, word [esi + 0x16]
movsx eax, word [esi + 0x12]
movsx ecx, word [esi + 0x14]
sub edx, eax
add esp, 0x1c
inc edx
push edx
movsx edx, word [esi + 0x10]
sub ecx, edx
inc ecx
push ecx
push 0
push 0
lea ecx, [esp + 0x18]
call fcn.004c9320
mov ecx, dword [eax]
mov dword [esi + 0x34], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x38], edx
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
pop edi
pop esi
add esp, 8
ret 4
Function at 0x4e0510
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov edx, dword [0x6969c8]
xor eax, eax
cmp ecx, edx
mov dword [esp], eax
jae 0x4e0558
mov edx, dword [0x67a8cc]
push eax
mov eax, dword [0x67a7d8]
lea ecx, [eax + ecx*4]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [0x67a8cc]
lea ecx, [esp + 0xc]
push eax
push 1
push 4
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x1c]
add esp, 0x1c
pop ecx
ret
Function at 0x4e5b30
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push esi
push edi
push eax
call fcn.004e0510
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x10], 0
jle 0x4e5bf7
mov edx, dword [0x67a8cc]
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
lea ecx, [ebx + 0x19]
push 0
push ecx
push edx
call esi
mov eax, dword [0x67a8cc]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push eax
push 1
lea ecx, [esp + 0x24]
push 1
push ecx
call edi
mov eax, dword [0x67a7f0]
add esp, 0x1c
cmp eax, 0x19
jl 0x4e5bf7
mov edx, dword [0x67a8cc]
add ebx, 0x22
push 0
push ebx
push edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0
call esi
mov eax, dword [0x67a8cc]
lea ecx, [esp + 0x24]
push eax
push 1
push 2
push ecx
call edi
mov edx, dword [esp + 0x34]
mov ecx, dword [0x67a8cc]
push 1
lea eax, [edx*8 + 1]
push eax
push ecx
call esi
mov edx, dword [0x67a8cc]
lea eax, [esp + 0x34]
push edx
push 1
push 1
push eax
call edi
mov eax, dword [esp + 0x44]
add esp, 0x38
pop edi
pop esi
pop ebx
add esp, 8
ret 4
mov eax, dword [esp + 0x10]
pop edi
sar eax, 4
pop esi
and eax, 3
pop ebx
add esp, 8
ret 4

Function at 0x4e5ea0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [str._var_]
lea ecx, [esp + 0x24]
push eax
push str._stouchpos.dat
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x30]
push 2
push edx
call dword [sym.imp.MSVCRT.dll__open]
mov esi, eax
add esp, 0x14
cmp esi, ebx
jle 0x4e5f8a
xor eax, eax
lea ecx, [esp + 0x18]
push 0xc
mov dword [esp + 0x20], eax
push ecx
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCRT.dll__read]
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, ebx
je 0x4e5f80
mov dx, word [esp + 0x1c]
mov ax, word [esp + 0x20]
lea ecx, [esp + 0x10]
push 1
push ecx
lea ecx, [ebp + 0x10]
mov word [esp + 0x18], dx
mov word [esp + 0x1a], ax
call fcn.004c93b0
test al, al
je 0x4e5f5d
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.004c9320
push eax
push ebx
call fcn.004e05c0
add esp, 0xc
push ebx
push ebx
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.MSVCRT.dll__lseek]
lea ecx, [esp + 0x24]
push 4
push ecx
push esi
call dword [sym.imp.MSVCRT.dll__write]
add esp, 0x18
mov ebx, 1
push esi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x5295d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push edi
xor eax, eax
mov ecx, dword [esi + 0x14]
mov edi, ebp
mov edx, ecx
mov dword [esp + 0x10], 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0x24]
mov eax, dword [esi + 0x14]
mov edx, ecx
sub edx, edi
sub edx, eax
test edx, edx
jle 0x5296d6
push ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
xor edx, edx
mov dl, byte [ebx + edi]
mov edi, dword [esi + 0xc]
xor ebx, ebx
mov bl, byte [ebp]
xor edx, ebx
mov dl, byte [edx + edi]
mov byte [esp + 0x1c], dl
mov ebx, dword [esp + 0x1c]
and ebx, 0xff
cmp ebx, ecx
je 0x529671
mov edi, 1
cmp eax, edi
jle 0x529671
mov ecx, dword [esi + 0x10]
xor edx, edx
sub ecx, edi
mov dl, byte [ecx + eax]
add edx, ebx
push edx
push esi
call fcn.005295a0
mov ecx, dword [esi + 8]
add esp, 8
mov dl, byte [eax + ecx]
mov al, byte [edi + ebp]
xor al, dl
mov byte [edi + ebp], al
mov eax, dword [esi + 0x14]
inc edi
cmp edi, eax
jl 0x529645
mov eax, dword [esi + 0x14]
lea ecx, [ebp + 1]
dec eax
push eax
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [esi + 4]
add esp, 0xc
cmp ebx, eax
je 0x5296ad
mov edx, dword [esi + 0x10]
xor eax, eax
mov al, byte [edx]
add eax, ebx
push eax
push esi
call fcn.005295a0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x14]
add esp, 8
mov al, byte [eax + ecx]
mov byte [edx + ebp - 1], al
jmp 0x5296b5
mov ecx, dword [esi + 0x14]
mov byte [ecx + ebp - 1], 0
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 0x24]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x14]
mov edi, ecx
inc edx
sub edi, ebx
mov dword [esp + 0x14], edx
sub edi, eax
cmp edx, edi
jl 0x529610
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x532bf0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x532c20
push esi
call fcn.00536d80
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x532c19
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x532ca3
mov eax, dword [esi + 0x18c]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x532c8f
mov eax, dword [esi + 8]
test eax, eax
je 0x532c44
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x18c]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x532c8b
cmp eax, 2
je 0x532c8f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x532c37
cmp eax, 3
je 0x532c6a
cmp eax, 1
jne 0x532c37
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x532c37
mov edx, dword [esi + 0x118]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x532c37
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00532cd0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x532cc3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x12
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00532cd0
add esp, 4
pop esi
ret
Function at 0x535e20
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.0046dfc0
push 0x50
push edi
mov dword [esp + 0x18], eax
call fcn.00537be0
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x535e64
push edi
call fcn.0046dfd0
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x35
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
call dword [edx]
add esp, 8
mov dword [esi], fcn.00535f60
mov dword [esi + 4], fcn.005360b0
mov dword [esi + 8], fcn.00536160
mov dword [esi + 0xc], fcn.00536210
mov dword [esi + 0x10], 0x5362c0
mov dword [esi + 0x14], 0x536330
mov dword [esi + 0x18], 0x5363a0
mov dword [esi + 0x1c], 0x536520
mov dword [esi + 0x20], 0x536710
mov dword [esi + 0x24], fcn.00536900
mov dword [esi + 0x28], 0x536a00
mov eax, dword [esp + 0xc]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x3c]
mov ecx, 2
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x535ebf
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], 0x50
push str.JPEGMEM
mov dword [edi + 4], esi
call sub.MSVCRT.dll_getenv
add esp, 4
cmp eax, ebx
je 0x535f4f
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call sub.MSVCRT.dll_sscanf
add esp, 0x10
test eax, eax
jle 0x535f4f
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x535f18
cmp al, 0x4d
jne 0x535f3c
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x403198
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45b4e8
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.004190d0
cmp dword [esp + 0x24], 8
jb 0x4031f9
mov eax, dword [esp + 0x10]
push eax
call fcn.00441698
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 0x406be8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45d7e8
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.00427453
add esp, 4
mov dword [esp + 0x30], 0
cmp dword [esp + 0x20], 0x10
mov edx, dword [esp + 0xc]
jae 0x406c43
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.00407128
cmp dword [esp + 0x20], 0x10
jb 0x406c5e
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00441698
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.004416a3
add esp, 0x2c
ret

Function at 0x408e78
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x45b4e8
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.00407a68
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408ece
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.00407988
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.00407a68
cmp dword [esp + 0x24], 8
jb 0x408f17
mov edx, dword [esp + 0x10]
push edx
call fcn.00441698
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 0x4092f8
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45a468
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.00402798
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esi], 0x46652c
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.00406ea8
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 0x413008
Capabilities:
Create thread

Disassembly:
push 0x4c
mov eax, 0x45ebd5
call fcn.004453b5
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x30]
push ecx
push 4
push eax
push 0x427288
xor esi, esi
push esi
push esi
call fcn.00443c4c
add esp, 0x18
cmp eax, esi
je 0x41305c
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.00412d7a
mov edi, dword [edi]
push dword [edi + 8]
call dword [0x46221c]
call fcn.0044548d
ret
push 0x4654c0
push 0xb
lea eax, [ebp - 0x58]
call fcn.00402cb8
mov dword [ebp - 0x58], 0x466544
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 4], esi
call fcn.00408b18
int3
Function at 0x41b620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45afa8
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 0x41b678
push 1
lea esi, [esp + 0x2c]
call fcn.004252d4
push 0x4748d4
mov eax, esi
push eax
call fcn.00444f83
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 0x41b7a5
push 0x46691d
lea ecx, [esp + 0x58]
call fcn.00406958
and dword [esp + 0x80], 0
mov ebx, dword [edi + 0xc]
lea esi, [esp + 0x1c]
call fcn.004204f0
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.004204f0
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x41b6de
cmp ebx, dword [esp + 0x1c]
je 0x41b6e3
call fcn.00441b39
mov esi, dword [esp + 0x18]
cmp esi, dword [esp + 0x20]
je 0x41b737
test ebx, ebx
jne 0x41b72f
call fcn.00441b39
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x41b702
call fcn.00441b39
push 0
push esi
or eax, 0xffffffff
lea esi, [esp + 0x5c]
call fcn.00407508
test ebx, ebx
jne 0x41b733
call fcn.00441b39
mov eax, dword [esp + 0x18]
cmp eax, dword [ebx + 0x10]
jb 0x41b728
call fcn.00441b39
add dword [esp + 0x18], 0x1c
jmp 0x41b6c4
mov eax, dword [ebx]
jmp 0x41b6f8
mov ebx, dword [ebx]
jmp 0x41b71a
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x3c]
push str.manifest
push eax
call fcn.00425183
add esp, 0xc
mov byte [esp + 0x80], 1
cmp dword [eax + 0x18], 0x10
jb 0x41b761
mov eax, dword [eax + 4]
jmp 0x41b764
add eax, 4
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004416c3
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], 0x46a690
mov byte [esp + 0x80], 0
call fcn.004069c8
mov dword [esp + 0x1c], 0x46a6c0
push 0x474998
lea eax, [esp + 0x20]
jmp 0x41b672
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.004416a3
mov esp, ebp
pop ebp
ret 4
Function at 0x41e2d2
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x45c317
call fcn.0044541e
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x38], esi
cmp dword [esi + 0x3c], ebx
je 0x41e3ea
cmp byte [esi + 0x41], bl
je 0x41e3ea
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x41e30a
xor al, al
jmp 0x41e3ec
push ebx
push 8
lea eax, [ebp - 0x30]
call fcn.0041dd23
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.00411ad8
mov esi, eax
call fcn.00411c88
add eax, dword [ebp - 0x34]
lea ebx, [ebp - 0x60]
mov dword [ebp - 0x34], eax
call fcn.00411ad8
mov esi, eax
call fcn.00411c88
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 0x41e372
dec eax
je 0x41e375
dec eax
dec eax
jne 0x41e3de
mov bl, 1
jmp 0x41e3de
mov byte [esi + 0x41], bl
lea ebx, [ebp - 0x58]
lea edi, [ebp - 0x30]
call fcn.00411ad8
mov esi, eax
call fcn.00411c88
mov ecx, dword [ebp - 0x40]
sub ecx, eax
mov dword [ebp - 0x34], ecx
je 0x41e3ba
mov eax, dword [ebp - 0x38]
push dword [eax + 0x4c]
lea ebx, [ebp - 0x50]
push ecx
push 1
call fcn.00411ad8
mov esi, eax
call fcn.00411c88
push eax
call fcn.0044343b
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x41e3dc
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0x41], 0
je 0x41e36e
test ecx, ecx
jne 0x41e31e
push ecx
push 8
pop eax
lea ebx, [ebp - 0x30]
call fcn.0041dd49
jmp 0x41e31e
xor bl, bl
lea ecx, [ebp - 0x30]
call fcn.004069c8
mov al, bl
jmp 0x41e3ec
mov al, 1
call fcn.004454a1
ret
Function at 0x42943d
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 0x429495
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.00412a7a
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
mov edx, str.list_T__too_long
call fcn.0042907d
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 0x4294dd
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.00412a7a
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
mov edx, 0x46b448
call fcn.0042907d
pop ecx
lea eax, [esp + 0x14]
push eax
push edi
push esi
push 0x42822b
push edi
push edi
mov dword [esp + 0x2c], edi
call fcn.00443c4c
add esp, 0x18
mov dword [ebx + 4], eax
cmp eax, edi
jne 0x42954f
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 0x429520
push dword [esp + 8]
call dword [0x462144]
mov ebx, dword [ebx + 8]
cmp ebx, edi
je 0x42952e
push ebx
call dword [0x462144]
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.00412a7a
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
mov edx, 0x46b45c
call fcn.0042907d
pop ecx
cmp dword [esp + 8], edi
je 0x42956b
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 0x43d3a7
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 0x45311e
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b8
push ebx
push esi
push edi
push eax
push eax
add esp, 4
or eax, 0x36ff
and eax, 0x1567e
pop eax
push eax
or eax, 0x16d62
sub eax, 0xd49a
call fcn.00453158
add byte [esi + 0x41], al
aaa
dec esi
dec ebp
inc eax
cmp al, 0x4b
cmp al, 0x83
add esp, 4
pop eax
Function at 0x453a9b
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop edi
mov dword [ebp - 0x118], 0
jmp 0x453db5