joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439f40
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488285
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4a701c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
movzx eax, byte [edi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
lea eax, [ebp - 0x18]
imul ebx, ecx, 0x1000193
push ebx
push edi
push eax
call fcn.0043a300
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x439fcc
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x4cf828], 0xccccccc
je 0x43a13f
mov dword [ebp - 0x20], 0x4cf824
mov dword [ebp - 4], 0
push 0x14
mov dword [ebp - 0x1c], 0
call fcn.0045f6ff
mov ecx, dword [edi]
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x1c], esi
add esp, 4
mov dword [esi + 8], ecx
movq qword [esi + 0xc], xmm0
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 1
mov ecx, dword [0x4cf828]
mov edi, dword [0x4cf83c]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4a2ae0]
mov eax, edi
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, edi
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x4a2ae0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x4cf820]
comiss xmm1, xmm0
jbe 0x43a0db
divss xmm2, xmm0
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call fcn.00485050
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.00487770
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp edi, ecx
jae 0x43a0bd
cmp edi, 0x200
jae 0x43a0bb
shl edi, 3
cmp edi, ecx
jae 0x43a0bd
mov edi, ecx
push edi
call fcn.0043a180
push ebx
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0043a300
mov ecx, dword [0x4cf828]
mov edx, dword [eax]
jmp 0x43a0de
mov edx, dword [ebp - 0x18]
mov edi, dword [edx + 4]
inc ecx
mov dword [0x4cf828], ecx
mov dword [esi], edx
mov dword [esi + 4], edi
mov dword [edi], esi
mov dword [edx + 4], esi
mov eax, dword [0x4cf838]
mov ecx, dword [0x4cf82c]
and eax, ebx
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [0x4cf824]
jne 0x43a10f
mov dword [ecx + eax*8], esi
jmp 0x43a11e
cmp ebx, edx
jne 0x43a118
mov dword [ecx + eax*8], esi
jmp 0x43a122
cmp dword [ecx + eax*8 + 4], edi
jne 0x43a122
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.0045f6b1
int3
Function at 0x43a180
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 8
bsr ecx, eax
push ebx
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x43a2ed
lea eax, [ecx - 1]
mov esi, dword [0x4cf824]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x4cf82c
lea eax, [edi + edi]
push eax
call fcn.0040fde0
mov eax, dword [0x4cf824]
lea ebx, [edi - 1]
mov dword [0x4cf838], ebx
mov dword [0x4cf83c], edi
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x43a2e4
nop word [eax + eax]
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0x4cf82c]
imul edi, edi, 0x1000193
and edi, ebx
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 4], edx
cmp ebx, esi
jne 0x43a242
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x43a2af
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x43a27c
mov edx, dword [edx]
mov dword [ebp - 8], edx
cmp edx, eax
je 0x43a274
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 8]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
jmp 0x43a2af
cmp ebx, edx
je 0x43a28c
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x43a2c0
cmp ebx, edx
jne 0x43a280
mov ebx, dword [eax + 4]
mov dword [ebp - 8], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 4]
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
je 0x43a2e4
mov ebx, dword [0x4cf838]
jmp 0x43a1f0
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 8], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x43a2af
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.invalid_hash_bucket_count
call fcn.0045f6b1
int3
Function at 0x43bc40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi*4 + 0x4b5420]
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 8]
mov ebx, dword [edx + eax + 8]
movzx eax, word [edx + eax + 2]
add eax, 0xfffffff4
mov dword [ebp - 4], ebx
cmp eax, 0xb490
je 0x43bc81
push eax
push 0xb490
push str.inter_storage:_data_size_error__u____d_n
call fcn.00442810
add esp, 0xc
jmp 0x43bcfd
push ebx
push 0x4ab4b4
push str.SELECT__guild_id__FROM___s__WHERE__guild_id__d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43bd64
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x43bd24
push 0x107
push str.D:_ragnarokbr_rathena_srccharint_storage.cpp
push str.at__s:_lu___self_is_NULL_n
call fcn.004427f0
add esp, 0xc
mov esi, dword [0x4ad1b4]
test esi, esi
je 0x43bcfd
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x43bcfd
push eax
call dword [sym.imp.libmysql.dll_mysql_free_result]
mov dword [esi + 0x3e0], 0
mov dword [esi + 0x3e4], 0
mov dword [esi + 0x3e8], 0
mov edx, dword [edi*4 + 0x4b5420]
mov ecx, edi
push 1
push ebx
mov eax, dword [edx + 0x20]
mov edx, dword [edx + 8]
mov edx, dword [eax + edx + 4]
call fcn.0043bbb0
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x43bd50
mov byte [edx], 0
push dword [ecx]
push 0x107
push str.D:_ragnarokbr_rathena_srccharint_storage.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x43bcc4
push 0x107
push str.D:_ragnarokbr_rathena_srccharint_storage.cpp
push str.at__s:_lu_n
jmp 0x43bcbc
mov eax, dword [0x4ad1b4]
test eax, eax
je 0x43bcc4
mov eax, dword [eax + 0x3e0]
test eax, eax
je 0x43bcc4
push eax
call dword [sym.imp.libmysql.dll_mysql_num_rows]
test edx, edx
jne 0x43bd92
test eax, eax
je 0x43bcc4
mov esi, dword [0x4ad1b4]
test esi, esi
je 0x43bdcb
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x43bdcb
push eax
call dword [sym.imp.libmysql.dll_mysql_free_result]
mov dword [esi + 0x3e0], 0
mov dword [esi + 0x3e4], 0
mov dword [esi + 0x3e8], 0
mov eax, dword [edi*4 + 0x4b5420]
mov ecx, dword [ebp - 4]
mov esi, dword [eax + 0x20]
add esi, dword [eax + 8]
mov bl, byte [esi + 0x1e]
call fcn.0042c480
push ebx
mov ebx, dword [ebp - 4]
lea ecx, [esi + 0x24]
push 4
movzx edx, ax
push ebx
call fcn.00403f20
mov edx, dword [edi*4 + 0x4b5420]
add esp, 0xc
mov ecx, edi
mov eax, dword [edx + 0x20]
mov edx, dword [edx + 8]
push 0
push ebx
mov edx, dword [eax + edx + 4]
call fcn.0043bbb0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43f5b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 8]
push 4
push eax
mov esi, ecx
mov dword [ebp - 8], 1
push 1
push 6
mov ebx, edx
push dword [esi*4 + 0x4cf878]
call edi
xor eax, eax
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
push dword [esi*4 + 0x4cf878]
call edi
test eax, eax
je 0x43f60d
push esi
push str.setsocketopts:_Unable_to_set_SO_LINGER_mode_for_connection__d__n
call fcn.004427d0
add esp, 8
test ebx, ebx
je 0x43f670
imul eax, ebx, 0x3e8
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x1006
push 0xffff
push dword [esi*4 + 0x4cf878]
call edi
test eax, eax
jns 0x43f645
push esi
push str.setsocketopts:_Unable_to_set_SO_RCVTIMEO_timeout_for_connection__d__n
call fcn.00442810
add esp, 8
push 4
lea eax, [ebp - 4]
push eax
push 0x1005
push 0xffff
push dword [esi*4 + 0x4cf878]
call edi
test eax, eax
jns 0x43f670
push esi
push str.setsocketopts:_Unable_to_set_SO_SNDTIMEO_timeout_for_connection__d__n
call fcn.00442810
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4414c0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x4a701c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x198]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4414f3
push str.socket_init:_WinSock_not_available__n
jmp 0x441695
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x441690
shr eax, 8
test al, al
jne 0x441690
push 0xff
lea eax, [ebp - 0x108]
xor esi, esi
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x441534
push str.socket_getips:_No_hostname_defined__n
call fcn.00442810
add esp, 4
jmp 0x44158b
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x441556
push str.socket_getips:_Cannot_resolve_our_own_hostname_to_an_IP_address_n
call fcn.00442810
add esp, 4
xor esi, esi
jmp 0x44158b
mov edi, dword [eax + 0xc]
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
nop
mov eax, dword [edi + esi*4]
test eax, eax
je 0x441578
push dword [eax]
call ebx
mov dword [esi*4 + 0x4b53e0], eax
inc esi
cmp esi, 0x10
jl 0x441560
test esi, esi
jne 0x44158b
mov dword [0x4b53e0], 0x7f000001
mov esi, 1
push str.Server_uses_e_1_37mselecte_0m_as_event_dispatcher_n
mov dword [0x4b11dc], esi
mov dword [0x4ad1d8], 0
call fcn.00442790
add esp, 4
push 0x200
push 0
push 0x4b51e0
call fcn.00461440
add esp, 0xc
mov ecx, str.conf_packet_athena.conf
call fcn.00440ed0
push 0
call fcn.0046d284
add esp, 4
mov dword [0x4c942c], edx
mov edx, fcn.0043f5a0
mov dword [0x4c9428], eax
xor ecx, ecx
push fcn.0043f5a0
push fcn.0043f5a0
call fcn.00440040
push 0x40000
push 0
push 0x4d3878
call fcn.00461440
add esp, 0x14
mov edx, str.connect_check_clear
mov ecx, 0x440b90
call fcn.0043ead0
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, eax
mov ebx, edx
add edi, 0x3e8
adc ebx, 0
call fcn.0043ee30
mov ecx, dword [0x4cf85c]
mov esi, eax
shl esi, 5
mov dword [esi + ecx], edi
mov dword [esi + ecx + 4], ebx
mov dword [esi + ecx + 8], 0x440b90
mov dword [esi + ecx + 0x14], 0
mov dword [esi + ecx + 0x18], 0
mov dword [esi + ecx + 0xc], 2
mov dword [esi + ecx + 0x10], 0x493e0
mov ecx, eax
call fcn.0043ebd0
push 0x1000
push str.Server_supports_up_to_e_1_37m_ue_0m_concurrent_connections._n
call fcn.00442790
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret
push str.socket_init:_WinSock_version_mismatch__2.0_or_compatible_required___n
call fcn.00442810
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret
Function at 0x444d70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x444dcd
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x444d90
mov eax, dword [esi]
jmp 0x444ea7
cmp eax, 0x4e0
jb 0x444ea7
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x444de6
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
nop
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x444e30
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x460309
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x460348
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x460348
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x460348
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x460348
cmp dword [ecx + 0x74], 0xe
jbe 0x460348
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x475306
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004874e0
mov eax, dword [0x4a701c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004772e4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x475348
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4754a4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00487300
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4a9270]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0047ed37
mov ecx, dword [esi*4 + 0x4a9270]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x47549d
cmp eax, dword [ecx + edi + 0x24]
jne 0x47549d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47549d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0047ed37
add esp, 0x14
test edx, edx
jl 0x47549d
jg 0x475413
test eax, eax
jb 0x47549d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x47549d
jl 0x47542d
cmp dword [ebp - 0x1008], eax
ja 0x47549d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x47544b
test ebx, ebx
je 0x475484
cmp ecx, edi
jae 0x475484
mov al, byte [ecx]
cmp al, 0xd
jne 0x475465
lea eax, [edi - 1]
cmp ecx, eax
jae 0x475471
cmp byte [ecx + 1], 0xa
jne 0x475471
inc ecx
jmp 0x475471
movzx eax, al
movsx eax, byte [eax + 0x4a7218]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x47544b
cmp edx, ebx
jne 0x47544b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4754a2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045f6f1
leave
ret

Function at 0x479e67
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x490554
push 0x49054c
push str.FlsAlloc
push 0x1f
call fcn.00479d26
mov esi, eax
add esp, 0x10
test esi, esi
je 0x479e9b
push dword [ebp + 8]
mov ecx, esi
call dword [0x48a2b4]
call esi
jmp 0x479ea1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x479ee5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x490564
push 0x49055c
push str.FlsGetValue
push 0x21
call fcn.00479d26
mov esi, eax
add esp, 0x10
test esi, esi
je 0x479f1c
push dword [ebp + 8]
mov ecx, esi
call dword [0x48a2b4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x479f24
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49056c
push 0x490564
push str.FlsSetValue
push 0x22
call fcn.00479d26
mov esi, eax
add esp, 0x10
test esi, esi
je 0x479f5e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x48a2b4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x47a366
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4a9270]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x47a3a6
cmp byte [ebx], 0xa
jne 0x47a3a6
or byte [edi + eax + 0x28], 4
jmp 0x47a3ab
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x47a4aa
mov dl, byte [eax]
cmp dl, 0x1a
je 0x47a48d
inc eax
cmp dl, 0xd
je 0x47a3d7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x47a3fd
cmp eax, ecx
jae 0x47a40b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x47a3bf
jmp 0x47a4aa
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47a488
cmp dword [ebp - 0x10], 0
je 0x47a488
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4a9270]
test byte [eax + edi + 0x28], 0x48
je 0x47a462
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x47a44d
mov byte [esi], dl
jmp 0x47a45e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4a9270]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x47a4aa
cmp byte [ebp - 1], 0xa
jne 0x47a471
cmp esi, ebx
jne 0x47a471
mov byte [esi], 0xa
jmp 0x47a4a9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0047ed55
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x47a4aa
mov byte [esi], 0xd
jmp 0x47a4a9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4a9270]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x47a4a7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47a4aa
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47a4b3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4a9270]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x47a4f9
cmp word [ebx], dx
jne 0x47a4f9
or byte [eax + edi + 0x28], 4
jmp 0x47a4fe
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x47a661
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x47a641
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x47a53f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x47a575
cmp eax, edx
jae 0x47a583
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x47a51a
jmp 0x47a661
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47a63c
cmp dword [ebp - 0x18], 0
je 0x47a63c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4a9270]
test byte [eax + edi + 0x28], 0x48
je 0x47a612
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x47a5d6
mov word [esi], cx
jmp 0x47a60d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4a9270]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4a9270]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4a9270]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x47a661
pop eax
cmp word [ebp - 4], ax
jne 0x47a622
cmp esi, ebx
jne 0x47a622
mov word [esi], ax
jmp 0x47a65e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0047ed55
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x47a661
push 0xd
pop eax
jmp 0x47a61d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4a9270]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x47a65b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x47a661
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret