joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e251
Capabilities:
Initialize winsock library

Disassembly:
mov ecx, 0x423740
jmp 0x40e249
sub esp, 0x190
xor eax, eax
push esi
mov esi, ecx
push 0x14
push eax
or dword [esi + 0x90], 0xffffffff
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0x94], eax
lea eax, [esi + 0x98]
mov dword [esi], 0x41c0e0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 0xa8], eax
lea eax, [esi + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, esi
pop esi
add esp, 0x190
ret

Function at 0x40e340
Capabilities:
Create thread
Create udp socket
Get hostname
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x90], 0xffffffff
jne 0x40e3bb
xor ebx, ebx
push 1
push ebx
push ebx
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi + 0x90], eax
xor eax, eax
lea edi, [ebp - 0x12]
push dword [ebp + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x14], 2
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [ebp - 0x12], ax
pop edi
lea eax, [ebp - 0x14]
push edi
push eax
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40e3c2
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 0x90], 0xffffffff
xor eax, eax
jmp 0x40e47f
cmp word [ebp + 8], bx
jne 0x40e3eb
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x12]
call dword [sym.imp.WS2_32.dll_ntohs]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x114]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
push 0x6c
lea eax, [esi + 0xc]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
and dword [ebp - 4], 0
lea edi, [esi + 0x44]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx]
xor ecx, ecx
cmp eax, ecx
je 0x40e45d
movsx ecx, word [ebx + 0xa]
push ecx
push eax
lea eax, [edi - 4]
push eax
call sub.MSVCRT.dll_memcpy
mov ax, word [ebp + 8]
add dword [ebp - 4], 4
add esp, 0xc
mov word [edi], ax
inc byte [esi + 0x68]
add edi, 8
cmp dword [ebp - 4], 0x10
jl 0x40e423
xor ecx, ecx
push ecx
push ecx
push esi
push 0x40ef84
push ecx
push ecx
mov dword [esi + 0xb0], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 1
mov dword [esi + 0x94], eax
pop eax
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40e486
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
mov esi, ecx
push edi
and dword [esi + 0xb8], 0
cmp dword [esi + 8], 0
jne 0x40e581
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
cmp eax, 0xe
pop ecx
ja 0x40e581
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 8]
mov dword [esi + 0xac], eax
lea ebx, [esi + 0xc]
call sub.MSVCRT.dll_strlen
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.MSVCRT.dll_strncpy]
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x10
stosw word es:[edi], ax
push 0x11d7
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
mov eax, dword [esi + 0xac]
mov dword [ebp - 0xc], eax
push 0x6c
lea eax, [ebp - 0x8c]
push ebx
push eax
mov dword [ebp - 0x90], 0x65
call sub.MSVCRT.dll_memcpy
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
inc eax
push eax
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x1c
xor ebx, ebx
lea eax, [ebp - 0x10]
push 0x10
xor edi, edi
push eax
push edi
lea eax, [ebp - 0x90]
push 0x7f
push eax
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_sendto]
cmp dword [esi + 0xb8], 0
jne 0x40e581
push 1
pop eax
cmp dword [esi + 8], eax
je 0x40e583
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x40e559
inc ebx
cmp ebx, 5
jl 0x40e53b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40e58a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push esi
mov esi, ecx
push edi
push 0x6c
lea eax, [esi + 0xc]
mov dword [ebp - 0x80], 0x66
push eax
lea eax, [ebp - 0x7c]
push eax
call sub.MSVCRT.dll_memcpy
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
push 0x11d7
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
mov eax, dword [esi + 0xac]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push 0
lea eax, [ebp - 0x80]
push 0x70
push eax
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_sendto]
and dword [esi + 8], 0
pop edi
pop esi
leave
ret
Function at 0x40e5fa
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x419070
call fcn.00417ad0
sub esp, 0x15c
push esi
mov esi, ecx
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0xf
jl 0x40e637
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
jmp 0x40e6ec
push edi
xor eax, eax
lea edi, [ebp - 0x1a]
push 0x11d7
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0xac]
mov word [ebp - 0x1c], 2
mov dword [ebp - 0x18], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x52
mov word [ebp - 0x1a], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x167]
push 0x6c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esi + 0xc]
mov dword [ebp - 0x168], 0x73
push eax
lea eax, [ebp - 0x164]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp + 8]
lea eax, [ebp - 0xf8]
push eax
call sub.MSVCRT.dll_strcpy
push dword [ebp + 0xc]
lea eax, [ebp - 0xe9]
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [ebp + 0x10]
add esp, 0x1c
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push 0x10
push eax
push 0
lea eax, [ebp - 0x168]
push 0x14c
push eax
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_sendto]
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x40e6fb
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x41908c
call fcn.00417ad0
sub esp, 0x15c
push esi
mov esi, ecx
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0xf
jl 0x40e738
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
jmp 0x40e7ed
push edi
xor eax, eax
lea edi, [ebp - 0x1a]
push 0x11d7
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0xac]
mov word [ebp - 0x1c], 2
mov dword [ebp - 0x18], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x52
mov word [ebp - 0x1a], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x167]
push 0x6c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esi + 0xc]
mov dword [ebp - 0x168], 0x74
push eax
lea eax, [ebp - 0x164]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp + 8]
lea eax, [ebp - 0xf8]
push eax
call sub.MSVCRT.dll_strcpy
push dword [ebp + 0xc]
lea eax, [ebp - 0xe9]
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [ebp + 0x10]
add esp, 0x1c
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push 0x10
push eax
push 0
lea eax, [ebp - 0x168]
push 0x14c
push eax
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_sendto]
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x40e7fc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, ecx
push 0x11d7
stosw word es:[edi], ax
mov eax, dword [esi + 0xac]
mov word [ebp - 0x10], 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [esi + 0xc]
push 0x6c
push eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], 0x68
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x10]
mov edi, dword [sym.imp.WS2_32.dll_sendto]
push 0x10
push eax
push 0
lea eax, [ebp - 0x80]
push 0x70
push eax
push dword [esi + 0x90]
call edi
lea eax, [ebp - 0x10]
push 0x10
push eax
push 0
lea eax, [ebp - 0x80]
push 0x70
push eax
mov dword [ebp - 0x80], 0x6a
push dword [esi + 0x90]
call edi
pop edi
pop esi
leave
ret
Function at 0x40e887
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, ecx
push 0x11d7
stosw word es:[edi], ax
mov eax, dword [esi + 0xac]
mov word [ebp - 0x10], 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [esi + 0xc]
push 0x6c
push eax
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x90], 0x71
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x14
lea eax, [ebp - 0x10]
push 0x10
push eax
push 0
lea eax, [ebp - 0x90]
push 0x7f
push eax
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_sendto]
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
leave
ret 4

Function at 0x40e912
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, ecx
push 0x11d7
stosw word es:[edi], ax
mov eax, dword [esi + 0xac]
mov word [ebp - 0x10], 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [esi + 0xc]
push 0x6c
push eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xa0], 0x75
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x14
lea eax, [ebp - 0x10]
push 0x10
push eax
push 0
lea eax, [ebp - 0xa0]
push 0x8e
push eax
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_sendto]
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
leave
ret 4
Function at 0x40ecd8
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x4190b4
call fcn.00417ad0
sub esp, 0x610
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [ebp + 0xc]
xor edi, edi
mov ebx, dword [eax - 8]
inc ebx
cmp dword [esi + 8], edi
je 0x40edb5
cmp ebx, 0x358
ja 0x40edb5
push 0x600
lea eax, [ebp - 0x61c]
push edi
push eax
call sub.MSVCRT.dll_memset
lea eax, [esi + 0xc]
push 0x6c
push eax
lea eax, [ebp - 0x618]
push eax
mov dword [ebp - 0x61c], 0x6f
call sub.MSVCRT.dll_memcpy
push 0x38
lea eax, [ebp - 0x5ac]
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp + 0xc]
lea eax, [ebp - 0x574]
push eax
call sub.MSVCRT.dll_strcpy
xor eax, eax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x2c
stosw word es:[edi], ax
mov eax, dword [esi + 0xac]
push 0x11d7
mov word [ebp - 0x1c], 2
mov dword [ebp - 0x18], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x1c]
push 0x10
push eax
add ebx, 0xa8
push 0
lea eax, [ebp - 0x61c]
push ebx
push eax
mov dword [ebp - 0x61c], 0x7a
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_sendto]
push 1
pop edi
jmp 0x40edc8
push 0x30
push 0x4221ac
push 0x422644
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40ede7
Capabilities:
Reference cloudflare dns server
Send data
Send data on socket

Disassembly:
mov eax, 0x4190c8
call fcn.00417ad0
sub esp, 0x98
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
xor edi, edi
push 0x423548
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebp + 0x10]
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
mov dword [ebp - 0x10], edi
mov dword [eax], edi
mov dword [esi + 0xbc], edi
push 0x1f
xor eax, eax
pop ecx
lea edi, [ebp - 0xa3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + 0xc]
push 0x6c
push eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa4], 0x77
call sub.MSVCRT.dll_memcpy
push dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
call sub.MSVCRT.dll_strcpy
mov ax, word [ebp + 0x14]
lea edi, [ebp - 0x22]
mov word [ebp - 0x3c], ax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x14
stosw word es:[edi], ax
mov eax, dword [esi + 0xac]
push 0x11d7
mov word [ebp - 0x24], 2
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x24]
push 0x10
push eax
push 0
lea eax, [ebp - 0xa4]
push 0x7f
push eax
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_sendto]
and dword [ebp - 0x14], 0
mov edi, dword [ebp + 0xc]
push 0x423548
mov eax, dword [edi]
push eax
call ebx
pop ecx
test eax, eax
pop ecx
je 0x40eecc
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jne 0x40ef5d
cmp dword [esi + 0xbc], 1
je 0x40ef62
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xa
jl 0x40eead
mov edi, dword [edi]
push str.0.0.0.0
push edi
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x40ef0a
push eax
push eax
push str.wav
call dword [sym.imp.WINMM.dll_PlaySoundA]
mov eax, dword [0x4236c0]
push str.1.1.1.1
push eax
call ebx
pop ecx
test eax, eax
pop ecx
je 0x40ef74
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 5
jl 0x40ee22
push 0x30
push 0x4221ac
push 0x422680
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
push 1
pop esi
jmp 0x40ef64
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x40ef4c
push 0
push 0x30
push 0x422670
call sub.MFC42.DLL_AfxMessageBox
jmp 0x40ef3e
Function at 0x41447b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x414489
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x41456a
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x41dbcc]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x41dbcc]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x41dbcc]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x41dbcc]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x41dbcc]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x41dbcc]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x41dbcc]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x41dbcc]
xor eax, esi
inc edx
dec edi
jne 0x4144a6
pop ebx
cmp dword [ebp + 0x10], 0
je 0x41458b
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x41dbcc]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x414570
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x414591
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov edx, 0xff
mov esi, dword [ecx]
movzx edi, byte [esp + 0x10]
mov eax, esi
and eax, edx
xor eax, edi
shr esi, 8
mov eax, dword [eax*4 + 0x41dbcc]
xor eax, esi
mov esi, dword [ecx + 8]
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
mov edi, esi
and edi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
shr eax, 0x18
xor eax, edi
pop edi
shr esi, 8
mov eax, dword [eax*4 + 0x41dbcc]
xor eax, esi
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x414da2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x414dd6
lea eax, [ebp + 8]
push 0
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414dd1
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x414dfe
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x414de7
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
pop edi
div dword [ebp + 0xc]
pop esi
pop ebp
ret
Function at 0x415b9c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x415c44
cmp dword [esi + 4], 0xffffffff
jne 0x415c44
push edi
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call sub.MSVCRT.dll_strlen
mov al, byte [eax + esi + 0x13f]
pop ecx
cmp al, 0x5c
je 0x415bec
cmp al, 0x2f
je 0x415bec
push 0x422b80
push edi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x415c0e
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x415c0e
mov eax, 0x2000000
jmp 0x415c49
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00414bc6
add esp, 0x10
test eax, eax
jne 0x415c2c
mov eax, dword [ebp - 4]
jmp 0x415c49
push eax
call fcn.00414ffa
mov dword [esi], eax
pop ecx
neg eax
sbb eax, eax
and ax, 0xfe00
add eax, 0x200
jmp 0x415c49
mov eax, 0x1000000
pop esi
leave
ret 0xc

Function at 0x4160bc
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push edi
je 0x4160e3
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4160e3
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [ebp + 0xc]
mov al, byte [edi]
test al, al
je 0x41617e
push esi
mov esi, edi
mov ecx, edi
cmp al, 0x2f
je 0x4160fd
cmp al, 0x5c
jne 0x4160ff
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4160f5
cmp esi, edi
je 0x416133
sub esi, edi
lea eax, [ebp - 0x208]
push esi
push edi
push eax
call sub.MSVCRT.dll_memcpy
and byte [ebp + esi - 0x208], 0
lea eax, [ebp - 0x208]
push eax
push ebx
call fcn.004160bc
add esp, 0x14
and byte [ebp - 0x104], 0
pop esi
test ebx, ebx
je 0x41614e
lea eax, [ebp - 0x104]
push ebx
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push edi
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41617e
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop ebx
leave
ret
Function at 0x403d60
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
test ecx, ecx
jne 0x403d82
push edx
push str._s__none__s
push dword [0x4eae14]
call fcn.00401240
add esp, 0x10
pop esi
pop ebp
ret
test ecx, 0x80000
mov esi, 0x4de4d4
mov eax, str._utf
cmove eax, esi
test ecx, 0x800000
push eax
mov eax, str._use_offset_limit
cmove eax, esi
test ecx, 0x40000
push eax
mov eax, str._ungreedy
cmove eax, esi
test ecx, 0x20000
push eax
mov eax, str._ucp
cmove eax, esi
test ecx, 0x10000
push eax
mov eax, str._no_start_optimize
cmove eax, esi
test ecx, 0x40000000
push eax
mov eax, str._no_utf_check
cmove eax, esi
test ecx, 0x8000
push eax
mov eax, str._no_dotstar_anchor
cmove eax, esi
test ecx, 0x4000
push eax
mov eax, str._no_auto_possess
cmove eax, esi
test ecx, 0x2000
push eax
mov eax, str._no_auto_capture
cmove eax, esi
test ecx, 0x1000
push eax
mov eax, str._never_utf
cmove eax, esi
test ecx, 0x800
push eax
mov eax, str._never_ucp
cmove eax, esi
test ecx, 0x100000
push eax
mov eax, str._never_backslash_c
cmove eax, esi
test ecx, 0x400
push eax
mov eax, str._multiline
cmove eax, esi
test ecx, 0x200
push eax
mov eax, str._match_unset_backref
cmove eax, esi
test ecx, 0x4000000
push eax
mov eax, str._match_invalid_utf
cmove eax, esi
test ecx, 0x2000000
push eax
mov eax, str._literal
cmove eax, esi
test ecx, 0x100
push eax
mov eax, str._firstline
cmove eax, esi
test ecx, 0x1000000
push eax
mov eax, str._extended_more
cmove eax, esi
test cl, 0x80
push eax
mov eax, str._extended
cmove eax, esi
test ecx, 0x20000000
push eax
mov eax, str._endanchored
cmove eax, esi
push eax
test cl, 0x40
mov eax, str._dupnames
cmove eax, esi
test cl, 0x20
push eax
mov eax, str._dotall
cmove eax, esi
test cl, 0x10
push eax
mov eax, str._dollar_endonly
cmove eax, esi
test cl, 8
push eax
mov eax, str._caseless
cmove eax, esi
test cl, 4
push eax
mov eax, str._auto_callout
cmove eax, esi
test ecx, ecx
push eax
mov eax, str._anchored
cmovns eax, esi
test cl, 1
push eax
mov eax, str._allow_empty_class
cmove eax, esi
test ecx, 0x400000
push eax
mov eax, str._alt_verbnames
cmove eax, esi
test ecx, 0x200000
push eax
mov eax, str._alt_circumflex
cmove eax, esi
test cl, 2
push eax
mov eax, str._alt_bsux
cmove eax, esi
push eax
push edx
push str._s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s
push dword [0x4eae14]
call fcn.00401240
add esp, 0x88
pop esi
pop ebp
ret
Function at 0x40d500
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x4e6544]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x40d549
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d549
push 0xc00
call eax
test eax, eax
jne 0x40d5de
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x40d5de
cmp ecx, 0x104
ja 0x40d5de
cmp word [ebp + ecx*2 - 0x2d6], 0x5c
je 0x40d582
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2d4], ax
inc ecx
mov al, byte [str.userenv]
push esi
mov esi, str.userenv
test al, al
je 0x40d5dd
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + ecx*2]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x40d5a5
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
mov al, byte [esi]
test al, al
jne 0x40d5a2
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047be9b
mov esp, ebp
pop ebp
ret