joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d2a80
Capabilities:
Get local ipv4 addresses
Get socket information
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x51300c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, ecx
push edi
test dword [esi + 0x9c], 0x100
je 0x4d2b24
mov eax, 2
xorps xmm0, xmm0
mov word [ebp - 0x18], ax
mov ax, word [esi + 0x24]
mov word [ebp - 0x16], ax
mov eax, dword [esi + 0x28]
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 8]
movlpd qword [ebp - 0x10], xmm0
push edx
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_sendto]
mov edi, eax
test edi, edi
jle 0x4d2b37
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x10
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4d2b12
cmp dword [ebp - 0x2c], 0x10
setne al
mov byte [esi + 0x20], al
mov ax, word [ebp - 0x26]
mov word [esi + 8], ax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0xc], eax
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f1f57
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp + 8]
push edx
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jns 0x4d2b8d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2714
je 0x4d2b78
call esi
cmp eax, 0x2734
je 0x4d2b78
call esi
cmp eax, 0x2733
je 0x4d2b78
call esi
cmp eax, 0x2746
jne 0x4d2b91
mov eax, 0xfffffffd
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f1f57
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f1f57
mov esp, ebp
pop ebp
ret
test edi, edi
jg 0x4d2b12
mov ecx, dword [ebp - 8]
or eax, 0xffffffff
pop edi
xor ecx, ebp
pop esi
call fcn.004f1f57
mov esp, ebp
pop ebp
ret
Function at 0x4d2fd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x51300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x50]
cmp eax, 0x300000
jb 0x4d300e
push str.max_recv_buf_size_reached
push esi
call fcn.004cd840
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f1f57
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x4c]
cmp edx, eax
ja 0x4d3046
add edx, 0x800
lea ecx, [esi + 0x48]
call fcn.004d0a30
test eax, eax
jne 0x4d3046
push 0x5095e8
push esi
call fcn.004cd840
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f1f57
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x4c]
add ecx, dword [esi + 0x50]
sub edx, dword [esi + 0x50]
mov eax, dword [esi + 0x9c]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1c], ecx
test al, 0x40
je 0x4d3078
test ecx, ecx
je 0x4d3071
test edx, edx
jne 0x4d3123
xor edi, edi
jmp 0x4d3126
test eax, 0x100
je 0x4d30da
mov eax, 2
mov dword [ebp - 0x18], 0x10
mov word [ebp - 0x14], ax
xorps xmm0, xmm0
mov ax, word [esi + 0x24]
mov word [ebp - 0x12], ax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
movlpd qword [ebp - 0xc], xmm0
push eax
push 0
push edx
push ecx
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
test edi, edi
jle 0x4d30eb
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x10]
setne cl
mov dword [esi + 0x28], eax
mov byte [esi + 0x3c], cl
mov cx, word [ebp - 0x12]
mov word [esi + 0x24], cx
jmp 0x4d3126
push 0
push edx
push ecx
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jns 0x4d311f
call ebx
cmp eax, 0x2714
je 0x4d3118
call ebx
cmp eax, 0x2734
je 0x4d3118
call ebx
cmp eax, 0x2733
je 0x4d3118
call ebx
cmp eax, 0x2746
jne 0x4d3123
mov edi, 0xfffffffd
jmp 0x4d3126
mov edi, 0xfffffffe
jmp 0x4d3126
test edi, edi
jg 0x4d3126
or edi, 0xffffffff
push str.read_conn
push 0x1214
mov ecx, 3
call fcn.004d0c50
add esp, 8
test al, al
je 0x4d316c
test edi, edi
jns 0x4d3149
call ebx
jmp 0x4d314b
xor eax, eax
push eax
push edi
push dword [esi + 0x4c]
push dword [esi + 0x50]
push dword [esi + 0x5c]
push dword [esi + 0x60]
push dword [esi + 0x40]
push dword [esi + 0x44]
push str._lu__p_snd__ld__ld_rcv__ld__ld_n_ld_err_d
call fcn.004d0d30
add esp, 0x24
mov edx, dword [ebp - 0x1c]
mov ecx, esi
push 1
push edi
call fcn.004d2930
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004f1f57
mov esp, ebp
pop ebp
ret
Function at 0x4d4140
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x51300c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
push dword [edx + 4]
mov edx, dword [edx]
mov ebx, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x9c], 0x67452301
mov dword [ebp - 0x98], 0xefcdab89
mov dword [ebp - 0x94], 0x98badcfe
mov dword [ebp - 0x90], 0x10325476
mov dword [ebp - 0x8c], 0xc3d2e1f0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x88], 0
call fcn.004d2880
push 0x24
mov edx, str.258EAFA5_E914_47DA_95CA_C5AB0DC85B11
lea ecx, [ebp - 0x9c]
call fcn.004d2880
mov ecx, dword [ebp - 0x84]
lea edx, [ebp - 0x9d]
mov eax, ecx
mov byte [ebp - 9], cl
shr eax, 0x18
mov byte [ebp - 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0xb], al
mov eax, ecx
mov ecx, dword [ebp - 0x88]
shr eax, 8
mov byte [ebp - 0xa], al
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 5], cl
lea ecx, [ebp - 0x9c]
push 1
mov byte [ebp - 6], al
mov byte [ebp - 0x9d], 0x80
call fcn.004d2880
mov eax, dword [ebp - 0x88]
add esp, 0xc
and eax, 0x1f8
cmp eax, 0x1c0
je 0x4d427f
nop word [eax + eax]
push 1
lea edx, [ebp - 0x9d]
mov byte [ebp - 0x9d], 0
lea ecx, [ebp - 0x9c]
call fcn.004d2880
mov eax, dword [ebp - 0x88]
add esp, 4
and eax, 0x1f8
cmp eax, 0x1c0
jne 0x4d4250
push 8
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x9c]
call fcn.004d2880
add esp, 4
xor eax, eax
push esi
mov ecx, eax
mov esi, 3
and ecx, 3
sub esi, ecx
mov ecx, eax
shr ecx, 2
shl esi, 3
mov edx, dword [ebp + ecx*4 - 0x9c]
mov ecx, esi
shr edx, cl
mov byte [ebp + eax - 0x20], dl
inc eax
cmp eax, 0x14
jb 0x4d4295
push 0x5c
lea eax, [ebp - 0x9c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x20]
call fcn.004cd7d0
lea eax, [ebp - 0x40]
push eax
push str.HTTP_1.1_101_Switching_Protocols_r_nUpgrade:_websocket_r_nConnection:_Upgrade_r_nSec_WebSocket_Accept:__s_r_n
lea esi, [ebx + 0x58]
push esi
push 0x4d14d0
call fcn.004cdef0
mov eax, dword [ebp - 0xa4]
add esp, 0x20
test eax, eax
je 0x4d4314
push dword [ebp - 0xa8]
mov edx, esi
mov ecx, 0x4d14d0
push eax
call fcn.004cdf20
add esp, 8
pop esi
test edi, edi
je 0x4d432c
push dword [edi]
push dword [edi + 4]
push str.Sec_WebSocket_Protocol:__.s_r_n
push ebx
call fcn.004d0f40
add esp, 0x10
push 2
mov edx, 0x508730
mov ecx, ebx
call fcn.004d2bb0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop ebx
call fcn.004f1f57
mov esp, ebp
pop ebp
ret
Function at 0x4d4410
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x51300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push edi
mov edi, ecx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0xc]
mov ecx, esi
push eax
mov eax, dword [edi + 0x9c]
shr eax, 1
and al, 1
movzx eax, al
push eax
call fcn.004d4350
mov ebx, eax
lea edx, [ebp - 0x14]
push ebx
mov ecx, edi
call fcn.004d2bb0
add esp, 0xc
mov ecx, 4
push str.mg_ws_send
push 0x181a
call fcn.004d0c50
add esp, 8
test al, al
je 0x4d4484
push dword [ebp - 0x18]
push esi
push esi
push str.WS_out:__d___.s_
call fcn.004d0d30
add esp, 0x10
mov edx, dword [ebp - 0x18]
mov ecx, edi
push esi
call fcn.004d2bb0
add esp, 4
test byte [edi + 0x9c], 2
je 0x4d44c1
mov eax, dword [edi + 0x58]
test eax, eax
je 0x4d44c1
mov edx, dword [edi + 0x60]
sub edx, esi
add edx, eax
xor eax, eax
test esi, esi
je 0x4d44c1
nop
mov ecx, eax
and ecx, 3
mov cl, byte [ecx + edx - 4]
xor byte [eax + edx], cl
inc eax
cmp eax, esi
jb 0x4d44b0
mov ecx, dword [ebp - 4]
lea eax, [ebx + esi]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f1f57
mov esp, ebp
pop ebp
ret

Function at 0x4d52f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x51300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x404]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x400
push 0
mov dword [ebp - 0x40c], ecx
push eax
mov dword [ebp - 0x408], ecx
mov dword [ebp - 0x40c], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x404]
push esi
push 0x400
push eax
push edi
push ebx
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, dword [ebp - 0x408]
lea ecx, [ebp - 0x404]
lea edx, [ecx + 1]
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d5377
sub ecx, edx
lea eax, [ebp - 0x404]
push ecx
push eax
mov ecx, ebx
call fcn.00402d80
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f1f57
mov esp, ebp
pop ebp
ret
Function at 0x4d7360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5d4b
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x51300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x148], esi
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 0x148], esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
test eax, eax
js 0x4d740a
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d73f7
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
jmp 0x4d7411
push 0
push 0x4ff790
lea ecx, [ebp - 0x12c]
call fcn.00402d80
push 0xc
push str.OpenSimuIC
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 0
call fcn.0040b830
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x144], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x134], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x4d74bb
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d74b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4d74b1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004f1f95
add esp, 8
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.004c4ae0
test al, al
jne 0x4d74f0
lea ecx, [ebp - 0x144]
call fcn.004c48a0
mov ecx, dword [ebp - 0x134]
mov eax, accept
sub eax, ecx
cmp eax, 1
jb 0x4d7589
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
push 1
cmovae eax, dword [ebp - 0x144]
push 0x4ff3fc
push ecx
push eax
push ecx
push dword [ebp - 0x148]
mov ecx, esi
call fcn.0040be30
mov edx, dword [ebp - 0x130]
cmp edx, 0x10
jb 0x4d756d
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d7563
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4d7563
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004f1f95
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f1f57
mov esp, ebp
pop ebp
ret
call fcn.00401f10
int3
Function at 0x4d78b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x51300c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x4d78dd
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f1f57
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [esi + 0x3c]
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x4d78fe
mov eax, dword [eax]
cmp dword [esi + 0x38], 0x10
lea ecx, [esi + 0x24]
jb 0x4d7909
mov ecx, dword [ecx]
push eax
push ecx
lea eax, [ebp - 0x108]
push str._s__s
push eax
call fcn.0040bab0
add esp, 0x10
mov dword [ebp - 0x15c], 0x44
xor eax, eax
mov dword [ebp - 0x130], 1
cmp byte [0x515f94], al
mov ecx, 5
mov word [ebp - 0x11a], ax
xorps xmm0, xmm0
cmovne eax, ecx
movlpd qword [ebp - 0x158], xmm0
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x15c]
movlpd qword [ebp - 0x150], xmm0
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x108]
movlpd qword [ebp - 0x148], xmm0
push eax
push 0
movlpd qword [ebp - 0x140], xmm0
movlpd qword [ebp - 0x138], xmm0
movlpd qword [ebp - 0x12a], xmm0
movlpd qword [ebp - 0x122], xmm0
movups xmmword [ebp - 0x118], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4d79d5
mov eax, dword [ebp - 0x118]
push dword [ebp - 0x114]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
mov dword [esi + 8], 1
xor ecx, ebp
pop esi
call fcn.004f1f57
mov esp, ebp
pop ebp
ret
Function at 0x4d96f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x51300c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov edx, esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4d9721
sub edx, ecx
lea ecx, [ebp - 0x1c]
push edx
push esi
call fcn.00402d80
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 4]
call fcn.00402c70
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x4d9776
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d976c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4d976c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004f1f95
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi + 0x1c], eax
test eax, eax
je 0x4d97f9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SIMULATION_PLUGIN_CREATE
push eax
call esi
push str.SIMULATION_PLUGIN_GETTYPE
push dword [edi + 0x1c]
mov dword [edi + 0x20], eax
call esi
push str.SIMULATION_PLUGIN_INITIALIZE
push dword [edi + 0x1c]
mov dword [edi + 0x24], eax
call esi
push str.SIMULATION_PLUGIN_RESET
push dword [edi + 0x1c]
mov dword [edi + 0x28], eax
call esi
push str.SIMULATION_PLUGIN_RUN
push dword [edi + 0x1c]
mov dword [edi + 0x2c], eax
call esi
cmp dword [edi + 0x20], 0
mov dword [edi + 0x30], eax
je 0x4d97f9
cmp dword [edi + 0x24], 0
je 0x4d97f9
cmp dword [edi + 0x28], 0
je 0x4d97f9
cmp dword [edi + 0x2c], 0
je 0x4d97f9
test eax, eax
je 0x4d97f9
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f1f57
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.004f1f57
mov esp, ebp
pop ebp
ret 4
Function at 0x4da3a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x51300c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov edx, esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4da3d1
sub edx, ecx
lea ecx, [ebp - 0x1c]
push edx
push esi
call fcn.00402d80
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 4]
call fcn.00402c70
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x4da426
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4da41c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4da41c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004f1f95
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi + 0x1c], eax
test eax, eax
jne 0x4da448
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f1f57
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SIMULATION_PROJECT_CREATE
push eax
call esi
push str.SIMULATION_PROJECT_GETTYPE
push dword [edi + 0x1c]
mov dword [edi + 0x20], eax
call esi
push str.SIMULATION_PROJECT_INITIALIZE
push dword [edi + 0x1c]
mov dword [edi + 0x24], eax
call esi
push str.SIMULATION_PROJECT_RESET
push dword [edi + 0x1c]
mov dword [edi + 0x28], eax
call esi
push str.SIMULATION_PROJECT_RUN
push dword [edi + 0x1c]
mov dword [edi + 0x2c], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 0x30], eax
xor ecx, ebp
pop edi
mov al, 1
pop esi
call fcn.004f1f57
mov esp, ebp
pop ebp
ret 4
Function at 0x4db4e0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0x2c]
sub esp, 0x14
mov ecx, dword [eax]
mov eax, dword [0x5163b4]
push ebx
push esi
push edi
cmp eax, dword [ecx + 4]
jle 0x4db572
push 0x5163b4
call fcn.004f245f
add esp, 4
cmp dword [0x5163b4], 0xffffffff
jne 0x4db572
xorps xmm0, xmm0
mov dword [0x5163e8], 0x50a300
push 0x5163f0
movlpd qword [0x5163f0], xmm0
movlpd qword [0x5163f8], xmm0
movlpd qword [0x516400], xmm0
mov dword [0x516408], 0
mov byte [0x51640c], 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0x4f7c50
call fcn.004f2317
add esp, 4
push 0x5163b4
call fcn.004f2415
add esp, 4
cmp byte [0x51640c], 0
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jne 0x4db58f
push 0x5163f8
mov byte [0x51640c], 1
call esi
cmp dword [ebp + 8], 0
je 0x4db682
mov eax, dword [0x515e20]
test eax, eax
je 0x4db5a7
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov ecx, 0x515e50
xchg dword [ecx], eax
mov ebx, dword [0x515e50]
push 0x516400
call esi
mov edi, dword [0x516400]
mov ecx, edi
sub ecx, dword [0x5163f8]
mov esi, dword [0x516404]
mov eax, esi
sbb eax, dword [0x5163fc]
push 0
push 0x3e8
push eax
push ecx
call fcn.004f3410
push dword [0x5163f4]
mov dword [0x5163f8], edi
push dword [0x5163f0]
mov dword [0x5163fc], esi
push edx
push eax
call fcn.004f3280
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [0x516408], esi
mov ecx, eax
push ebx
push esi
mov edx, dword [eax]
call dword [edx + 0x18]
test ebx, ebx
jne 0x4db682
movq xmm0, qword [0x515e58]
mov eax, esi
movq qword [esp + 0x10], xmm0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
cdq
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x515e58
nop dword [eax]
mov ebx, edi
mov ecx, esi
add ebx, eax
mov eax, edi
adc ecx, edx
mov edx, esi
mov esi, dword [esp + 0x10]
lock cmpxchg8b qword [esi]
mov esi, dword [esp + 0xc]
cmp eax, edi
jne 0x4db670
cmp edx, esi
je 0x4db682
mov esi, edx
mov edi, eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc], esi
jmp 0x4db650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4db880
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f63bd
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x51300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
lea ecx, [ebp - 0x40]
call fcn.004d70d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4db8db
lea ecx, [ebp - 0x40]
call fcn.004c48a0
push edi
lea ecx, [ebp - 0x58]
call fcn.00402cf0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
push dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
push ecx
push ecx
mov ecx, eax
call fcn.0040bed0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x4db970
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4db966
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4db966
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004f1f95
add esp, 8
sub esp, 0x18
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], 0xf
mov ecx, esp
mov byte [ebp - 0x58], 0
push eax
call fcn.00402cf0
call fcn.004c45c0
add esp, 0x18
test al, al
jne 0x4db9cc
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4db9cc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edx, esi
cmovae ecx, dword [ebp - 0x28]
call fcn.004db690
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4dba0e
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4dba04
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4dba46
push edx
push ecx
call fcn.004f1f95
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x4dba56
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4dba4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4dba4c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004f1f95
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f1f57
mov esp, ebp
pop ebp
ret
Function at 0x4ec0c0
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
test edx, edx
push ebx
mov ecx, 0x367cd507
mov dword [ebp - 0xc], 0xc1059ed8
mov dword [eax], 0
mov ebx, 0xa54ff53a
mov dword [eax + 4], 0
mov edx, 0x9b05688c
mov eax, 0xbb67ae85
cmovne eax, ecx
mov ecx, 0x3070dd17
mov dword [ebp - 0x10], eax
mov eax, 0x3c6ef372
cmovne eax, ecx
mov ecx, 0x5be0cd19
mov dword [ebp - 0x14], eax
mov eax, 0xf70e5939
cmovne ebx, eax
mov eax, 0xffc00b31
push esi
push edi
mov edi, 0x510e527f
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 8]
cmovne edi, eax
mov eax, 0x64f98fa7
mov esi, 0x1f83d9ab
cmovne esi, eax
test ebx, ebx
mov ebx, dword [ebp - 4]
mov eax, 0x68581511
cmovne edx, eax
mov eax, 0xbefa4fa4
cmovne ecx, eax
mov eax, 0x6a09e667
cmovne eax, dword [ebp - 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], esi
pop edi
mov dword [eax + 0x24], ecx
mov ecx, dword [ebp - 8]
pop esi
mov dword [eax + 0x68], ecx
pop ebx
mov esp, ebp
pop ebp
ret