joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1023c060
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x10295008]
mov edi, eax
add esp, 8
test edi, edi
je 0x1023c037
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x1023c04f
cmp esi, ebx
je 0x1023c04f
cmp esi, 0x8000
ja 0x1023c04f
cmp esi, ebx
jb 0x1023c048
push esi
push edi
call dword [0x10295008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x1023c000
push ebp
call dword [0x10295004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x10295004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
jmp 0x1023bfe0

Function at 0x10241090
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x10296f20]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x102410e1
push 3
push 2
push eax
push eax
push 6
call fcn.10246400
add esp, 0x14
test al, al
je 0x102410d5
mov dword [0x10296f20], 2
add esp, 0xc
ret
mov dword [0x10296f20], 1
jmp 0x102410e6
cmp eax, 2
je 0x1024112c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10241111
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x1024112c
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x102419e0
Capabilities:
Connect socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [ebx + 8]
push dword [edi + 0x14]
lea eax, [edi + 0x18]
push eax
push dword [edi + 0x98]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10241a1e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [edi + 0xbc]
push eax
push dword [esp + 0x18]
call fcn.10241df0
add esp, 0xc
pop edi
pop ebx
ret
push dword [esp + 0x10]
mov byte [edi + 0x15e], 1
push ebx
call fcn.10241b70
push dword [edi + 0xec]
cmp dword [edi], 5
lea eax, [edi + 0xbc]
push eax
push dword [edi + 0x120]
lea eax, [edi + 0xf0]
mov ecx, 0x10280a58
push eax
push dword [edi + 0x98]
mov eax, str.QUIC
cmovne eax, ecx
push eax
push str._s_socket__d_connected:___s:_d_______s:_d_
push ebx
push dword [esp + 0x38]
call fcn.10226180
push 1
push dword [edi + 0x98]
call fcn.1024a9a0
add esp, 0x34
xor eax, eax
pop edi
pop ebx
ret

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

Disassembly:
sub esp, 0x104
mov eax, dword [0x10295418]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x120]
mov eax, dword [ebx]
push 0
push dword [esp + 0x120]
mov eax, dword [eax + 8]
push ecx
mov dword [edi], 0
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10241b2f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10241afc
mov dword [edi], 0x51
jmp 0x10241b2c
push 0x100
lea eax, [esp + 0x10]
push eax
push esi
call fcn.10236e50
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.10226020
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x8e4], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
push esi
push dword [esp + 0x124]
push str.nw_in_read_len_zu______d__err_d
push dword [ebx]
push dword [ebx + 4]
call fcn.10226180
mov ecx, dword [esp + 0x124]
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10250f5f
add esp, 0x104
ret
Function at 0x10241b70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x10295418]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x1c4]
test dword [eax + 0x44], 0x800
jne 0x10241c9e
push 0x80
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x80
push 0
push eax
call fcn.10253bd0
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10241c2a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x8c]
push 0x100
push eax
push esi
call fcn.10236e50
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.10226020
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.10250f5f
add esp, 0x188
ret
lea eax, [esi + 0x120]
push eax
lea eax, [esi + 0xf0]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.102272d0
add esp, 0x10
test al, al
jne 0x10241c9e
push edi
call fcn.1025ae85
mov esi, eax
call fcn.1025ae85
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push dword [esi]
call fcn.10236e50
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10226020
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.10250f5f
add esp, 0x188
ret
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.10250f5f
add esp, 0x188
ret

Function at 0x10241f20
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x10295418]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
xor eax, eax
push edi
mov edi, dword [esp + 0x28]
push 4
cmp byte [esi + 0x67f], al
setne al
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10241f6f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d:_errno__d
jmp 0x10241fdd
push dword [esi + 0x628]
mov dword [esp + 0x14], 1
call fcn.10228430
push dword [esi + 0x62c]
imul eax, eax, 0x3e8
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
call fcn.10228430
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10241fe6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:_errno__d
push esi
call fcn.102260f0
add esp, 0x10
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.10250f5f
add esp, 0x18
ret
Function at 0x10242000
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x10295418]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
lea eax, [esp + 4]
push 4
push eax
push 1
push 6
push dword [esp + 0x124]
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10242065
push 0x100
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10236e50
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.102260f0
add esp, 0x18
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.10250f5f
add esp, 0x108
ret
Function at 0x1024b1e0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x10295418]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.10267b7e
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1024b258
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10236f40
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.10226020
add esp, 0x1c
lea esi, [ebx + 0x4d]
jmp 0x1024b397
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x1024b2aa
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10236f40
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.10226020
add esp, 0x1c
mov esi, 0x4d
jmp 0x1024b397
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1024b2ea
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10236f40
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.10226020
add esp, 0x1c
mov esi, 0x4d
jmp 0x1024b38d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x1024b318
jg 0x1024b2fe
cmp edi, 0x100000
jbe 0x1024b318
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.10226020
add esp, 0xc
mov esi, 0x4d
jmp 0x1024b38d
lea eax, [edi + 1]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1024b330
lea esi, [eax + 0x1b]
jmp 0x1024b38d
test edi, edi
je 0x1024b374
nop dword [eax]
nop dword [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1024b3d1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1024b3cd
add esi, eax
cmp esi, edi
jb 0x1024b340
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.1024afe0
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x10295004]
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x1024b3b2
push eax
call fcn.1025a1fd
add esp, 4
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10250f5f
add esp, 0x120
ret
mov edi, esi
jmp 0x1024b374
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10236f40
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.10226020
add esp, 0x1c
mov esi, 0x4d
jmp 0x1024b38d
Function at 0x1024eaa0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1024eac7
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x1024eb0f
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x1024eb13
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x1024eb75
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x1024eb34
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x1024eba7
nop word [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x10283cf1
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x10283cf2
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x1024eb80
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x1024ed20
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 8
lea eax, [esp]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1024ed45
mov eax, 0x1b
add esp, 8
ret
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1024ed75
push eax
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
add esp, 8
ret
push dword [esp + 0x14]
call fcn.10228450
add esp, 4
push 0
push eax
push dword [esp + 0x18]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
lea ecx, [esp]
push ecx
push dword [esp + 0x10]
call fcn.1024ecc0
add esp, 8
xor eax, eax
add esp, 8
ret

Function at 0x1026d084
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1026cf03

Function at 0x102719a7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10271667
Function at 0x100015f0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.10001a04
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x1000165a
push esi
lea edi, [eax + 0x400]
call fcn.100019f9
push edi
call fcn.10001a04
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x1000162a
push esi
xor edi, edi
call dword [0x100076c4]
add esp, 4
test eax, eax
je 0x10001676
push eax
push esi
call fcn.100016b0
add esp, 8
mov edi, eax
push esi
call fcn.100019f9
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x422377
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004195c7
and dword [ebp - 4], 0
cmp dword [0x42efe8], 0
mov ebx, eax
jne 0x422428
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4224d9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4224d9
push eax
call fcn.00419555
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42efe8], eax
call esi
push eax
call fcn.00419555
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42efec], eax
call esi
push eax
call fcn.00419555
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42eff0], eax
call esi
push eax
call fcn.00419555
pop ecx
mov dword [0x42eff8], eax
test eax, eax
je 0x422428
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00419555
pop ecx
mov dword [0x42eff4], eax
mov eax, dword [0x42eff4]
cmp eax, ebx
je 0x422480
cmp dword [0x42eff8], ebx
je 0x422480
push eax
call fcn.004195d0
push dword [0x42eff8]
mov esi, eax
call fcn.004195d0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x422480
test edi, edi
je 0x422480
call esi
test eax, eax
je 0x422477
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422477
test byte [ebp - 0xc], 1
jne 0x422480
or dword [ebp + 0x10], 0x200000
jmp 0x4224b9
mov eax, dword [0x42efec]
cmp eax, ebx
je 0x4224b9
push eax
call fcn.004195d0
pop ecx
test eax, eax
je 0x4224b9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4224b9
mov eax, dword [0x42eff0]
cmp eax, ebx
je 0x4224b9
push eax
call fcn.004195d0
pop ecx
test eax, eax
je 0x4224b9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42efe8]
call fcn.004195d0
pop ecx
test eax, eax
je 0x4224d9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4224db
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b79f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
cmp eax, dword [ebp + 0x10]
jge 0x43b7df
mov cl, byte [ebp + 0x14]
xor byte [edx + eax], cl
mov cl, byte [edx + eax]
and cl, 0xf
xor ebx, ebx
mov bl, byte [edx + eax]
sar ebx, 4
and bl, 0xf
xor bl, cl
shl ebx, 4
or cl, bl
mov byte [edx + eax], cl
mov ecx, esi
add cl, al
xor byte [edx + eax], cl
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x43b7b1
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x43b7e5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
cmp eax, dword [ebp + 0x10]
jge 0x43b822
mov ecx, esi
add cl, al
xor byte [edx + eax], cl
mov cl, byte [edx + eax]
and cl, 0xf
xor ebx, ebx
mov bl, byte [edx + eax]
sar ebx, 4
and bl, 0xf
xor bl, cl
shl ebx, 4
or cl, bl
xor cl, byte [ebp + 0x14]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x43b7f7
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x40ff80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
sub esp, 0x3c
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x48]
movss xmm0, dword [0x469848]
movss xmm1, dword [edx]
mov ebx, dword [eax]
mov dword [0x5df2b0], ebx
comiss xmm0, xmm1
jbe 0x40ffb4
movss xmm1, dword [0x46002c]
mov dword [edx], 0x3e4ccccd
movss xmm0, dword [0x460030]
test ebx, ebx
mulss xmm1, xmm0
movss xmm2, dword [0x46003c]
minss xmm2, xmm1
maxss xmm2, xmm0
jle 0x4101a0
cmp ebx, 0x32
jle 0x40fff5
cvtsi2ss xmm1, ebx
mulss xmm1, xmm0
mov eax, 1
cvttss2si ecx, xmm1
test ecx, ecx
cmovle ecx, eax
jmp 0x40fffa
mov ecx, 1
lea eax, [ebx + ecx - 2]
cdq
idiv ecx
mov ebp, eax
test ebp, ebp
jle 0x4101be
mov eax, dword [esp + 0x58]
xor edx, edx
mov dword [esp], esi
mov ebx, 1
mov dword [esp + 4], edi
mov dword [eax], 1
movss dword [esp + 8], xmm2
movss xmm0, dword [0x460034]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
movss xmm1, dword [esi + ebx*4 - 4]
subss xmm1, dword [esi + ebx*4]
andps xmm1, xmmword [0x45fe00]
comiss xmm0, xmm1
jbe 0x410077
movss xmm1, dword [edi + ebx*4 - 4]
subss xmm1, dword [edi + ebx*4]
andps xmm1, xmmword [0x45fe00]
comiss xmm0, xmm1
ja 0x410180
mov dword [esp + 0x34], ebx
lea eax, [esi + ebx*4]
lea ebx, [edi + ebx*4]
lea edi, [esp + 0x18]
push edi
lea edi, [esp + 0x18]
push edi
lea edi, [esp + 0x18]
push edi
lea edi, [esp + 0x18]
push edi
lea edi, [esp + 0x18]
push edi
push ebx
push eax
lea ecx, [ebx - 4]
push ecx
lea edx, [eax - 4]
push edx
push 0x460024
mov ebx, dword [esp + 0x5c]
mov edi, dword [esp + 0x78]
call fcn.00408b20
movss xmm1, dword [esp + 0xc]
movss xmm3, dword [esp + 0x10]
movss xmm2, dword [0x460038]
movss xmm0, dword [0x460034]
addss xmm1, dword [esp + 0x14]
addss xmm3, dword [esp + 0x18]
mulss xmm1, xmm2
mulss xmm3, xmm2
movss dword [esp + 0x1c], xmm1
movss dword [esp + 0x20], xmm3
add esp, 0xffffffe4
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x40]
lea ecx, [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, 0x460028
mov dword [esp + 0x10], edx
lea edx, [esp + 0x38]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
call fcn.004101dc
add esp, 0xffffffe4
movss xmm0, dword [0x460034]
lea eax, [esp + 0x44]
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x38]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov eax, 0x460028
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
call fcn.004101dc
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x28]
movss xmm0, dword [0x460034]
lea edx, [ecx + 1]
cmovne ecx, edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x30]
lea edx, [ecx + 1]
cmove ecx, edx
mov dword [esp + 0x30], ecx
dec ebp
add ebx, dword [esp + 0x38]
test ebp, ebp
jg 0x410045
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov esi, dword [esp]
mov edi, dword [esp + 4]
cmp eax, edx
jle 0x4101ac
mov eax, dword [esp + 0x58]
mov dword [eax], 1
jmp 0x4101b6
mov eax, dword [esp + 0x58]
mov dword [eax], 0xffffffff
add esp, 0x3c
pop ebp
pop ebx
ret 0x14
xor edx, edx
xor eax, eax
jmp 0x41019c
Function at 0x437040
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x1f5
mov eax, dword [ebp - 4]
sub eax, 1
cmp eax, 0x1f4
je 0x43707f
push 0x1f4
mov ecx, dword [ebp - 4]
sub ecx, 1
push ecx
push str._RCSfile:_outilparutils.cxx_v__
push str.file__s_:_internal_error__size_mismatch:_._noutilpar.inc_size_d__dtbmax.inc_size_d_nAborting._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0x10
push 0xffffffffffffffff
call dword [sym.imp.MSVCR100.dll_exit]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x437950
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x465324
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x437992
push str.crash
mov eax, dword [ebp - 4]
push eax
call sub.MSVCR100.dll_strcmp
add esp, 8
test eax, eax
jne 0x437992
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
mov dword [ecx], 1
mov esp, ebp
pop ebp
ret

Function at 0x43b450
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x46597c
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR100.dll_strcmp
add esp, 8
test eax, eax
jne 0x43b475
call fcn.0043bbb0
jmp 0x43b55a
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43b493
mov eax, dword [ebp - 4]
jmp 0x43b55a
cmp dword [0x6e05f4], 0
jne 0x43b4a1
call fcn.0043b560
push 0x465980
mov edx, dword [0x6e05f4]
push edx
call fcn.00439b80
add esp, 8
mov word [ebp - 8], ax
movsx eax, word [ebp - 8]
test eax, eax
jge 0x43b4c8
xor eax, eax
jmp 0x43b55a
mov ecx, dword [ebp + 8]
push ecx
movzx edx, word [ebp - 8]
push edx
mov eax, dword [0x6e05f4]
push eax
call fcn.0043a240
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43b557
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
jmp 0x43b4f9
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x43b505
jmp 0x43b4f0
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
jmp 0x43b519
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jb 0x43b538
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x20
jg 0x43b538
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
jl 0x43b538
jmp 0x43b510
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
je 0x43b557
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret