joyce8/EMBER2024-capa huggingface dataset:
Function at 0x621f10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x677ec5
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x73bb00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
test edi, edi
jns 0x621fcc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00626020
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 0xc]
cmova ecx, dword [ebp - 0x28]
push ecx
push esi
push eax
push ebx
push str.failed_to_create_socket_with_domain__d_and_type__d___d__s_
push 0x6eba98
mov dword [ebp - 4], 0
call fcn.0061d2f0
mov ecx, dword [ebp - 0x14]
add esp, 0x20
cmp ecx, 0xf
jbe 0x621fc4
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x621fba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x622084
push ecx
push edx
call fcn.00632721
add esp, 8
or eax, 0xffffffff
jmp 0x622068
cmp ebx, 0x17
jne 0x622006
push 4
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 1
push eax
push 0x1b
push 0x29
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x622006
call fcn.0064dfc4
push dword [eax]
push str.Setting_V6ONLY_failed:__d
push str.socket
call fcn.0061d2f0
add esp, 0xc
push dword [ebp + 0x14]
push esi
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x622066
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.00626020
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
mov eax, dword [ebp + 0xc]
cmova ecx, dword [ebp - 0x40]
push ecx
push esi
push eax
push ebx
push str.failed_to_bind_socket_with_domain__d_and_type__d___d__s_
push 0x6eba98
mov dword [ebp - 4], 1
call fcn.0061d2f0
add esp, 0x20
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x40]
call fcn.004171c0
or eax, 0xffffffff
jmp 0x622068
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0063292f
mov esp, ebp
pop ebp
ret
call fcn.0063f01f
int3
Function at 0x622140
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x677efd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x73bb00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x786340], 0
mov eax, dword [ebp + 8]
je 0x6221a3
push eax
push dword [ebp + 0xc]
push dword [0x786344]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x6221ba
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0063292f
mov esp, ebp
pop ebp
ret
push str.called_secure_random_fill_before_secure_random_init
push str.secure
call fcn.0061d2f0
add esp, 8
call fcn.0061d2e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00626020
add esp, 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0061cfa0
push eax
push esi
push str.CryptGenRandom_failed:__ld__s
push str.secure
call fcn.0061d2f0
add esp, 0x10
call fcn.0061d2e0
int3

Function at 0x6223b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x677f3d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x73bb00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00626220
add esp, 8
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 4], 0
cmova eax, dword [ebp - 0x28]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x6c], 0x3c
mov dword [ebp - 0x60], str.open
sub eax, 0
je 0x622443
sub eax, 1
jne 0x6224a0
mov dword [ebp - 0x50], 7
jmp 0x62244a
mov dword [ebp - 0x50], 5
lea eax, [ebp - 0x30]
mov dword [ebp - 0x68], 0x40
push eax
call fcn.00651190
add esp, 4
mov esi, eax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test esi, esi
jne 0x622479
lea eax, [ebp - 0x30]
push eax
call fcn.006511ad
add esp, 4
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
call fcn.0042a0e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0063292f
mov esp, ebp
pop ebp
ret
push str.window_state_invalid
push 0
push 0x1020
push str.D:_acactuscactus_src_base_system.cpp
call fcn.0061d170
add esp, 0x10
call fcn.0061d2e0
int3
Function at 0x6235a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x678115
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x73bb00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00626220
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.0061e700
add esp, 0x10
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x62362d
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x623623
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x623705
push ecx
push edx
call fcn.00632721
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x44]
push eax
push 0xf003f
push 0
push str.SOFTWAREClassesApplications
push bind
mov dword [ebp - 0x14], 7
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x623669
mov eax, str.Error_opening_registry_key
jmp 0x6236ca
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
push dword [ebp - 0x44]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x6236c0
mov byte [edi], 1
mov bl, 1
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x6236e7
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x6236dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x62370a
jmp 0x6236dd
cmp esi, 2
je 0x623690
mov eax, str.Error_deleting_registry_key
push esi
push eax
push str.shell_unregister_application
call fcn.00626170
add esp, 0xc
xor bl, bl
jmp 0x623692
push ecx
push edx
call fcn.00632721
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0063292f
mov esp, ebp
pop ebp
ret
call fcn.0063f01f
call fcn.0063f01f
int3
Function at 0x623710
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67814d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x73bb00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00626220
add esp, 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREClasses
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x62377d
mov eax, str.Error_opening_registry_key
jmp 0x6237de
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
push dword [ebp - 0x2c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x6237d4
mov byte [edi], 1
mov bl, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x6237fb
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x6237f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x623819
jmp 0x6237f1
cmp esi, 2
je 0x6237a4
mov eax, str.Error_deleting_registry_key
push esi
push eax
push str.shell_unregister_class
call fcn.00626170
add esp, 0xc
xor bl, bl
jmp 0x6237a6
push ecx
push edx
call fcn.00632721
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0063292f
mov esp, ebp
pop ebp
ret
call fcn.0063f01f
int3

Function at 0x624170
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0x1505
push ebx
mov bl, byte [edx]
test bl, bl
je 0x624197
mov ecx, eax
lea edx, [edx + 1]
shl eax, 5
add eax, ecx
movsx ecx, bl
mov bl, byte [edx]
add eax, ecx
test bl, bl
jne 0x624182
pop ebx
pop ebp
ret

Function at 0x625920
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 8
call fcn.00643185
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
push 0
push 0
push eax
push 0x625980
push 0
push 0
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
push str.CreateThread_failure
setne cl
movzx ecx, cl
push ecx
push 0x330
push str.D:_acactuscactus_src_base_system.cpp
call fcn.0061d170
add esp, 0x10
mov eax, esi
pop esi
pop ebp
ret
Function at 0x626660
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67832b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x73bb00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0x14]
mov dword [esi], 0
push 0x20
mov dword [ebp - 0x14], esi
mov dword [esi + 4], 0
call fcn.006326f1
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x1c]
mov dword [ebp - 4], 0
push 0x20
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006326f1
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x24]
mov byte [ebp - 4], 1
push 0x20
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006326f1
add esp, 0xc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x62a7f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6783d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x73bb00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [esi + 0x1e8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp - 0x10]
mov byte [esi + 0xb8], 0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
cmp edx, 0xffffffff
je 0x62a8ed
cmp dword [esi + 0xfc], 0xffffffff
lea eax, [esi + 0xfc]
je 0x62a8e3
mov ecx, dword [esi]
test ecx, ecx
je 0x62a8e3
mov ecx, dword [ecx + edx*4 + 0x178]
test ecx, ecx
je 0x62a8e3
push eax
add ecx, 0x38
call fcn.005cd060
mov dword [esi + 0x1e8], 0xffffffff
lea ecx, [esi + 0x38]
call fcn.0052dc00
mov dword [esi + 0xbc], 0
mov dword [esi + 0xc0], 0
mov dword [esi + 0xc4], 2
mov dword [esi + 0xf8], 0
mov dword [esi + 0x109], 0
mov dword [esi + 0x10d], 0
mov dword [esi + 0x111], 0
mov word [esi + 0x115], 0
mov dword [esi + 0x118], 0
mov dword [esi + 0x11c], 0
mov word [esi + 0x120], 0
mov byte [esi + 0x122], 0
mov dword [esi + 0xd4], 0
mov dword [esi + 0xd8], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x631c5f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.006516fd
mov eax, dword [eax + 0x14]
test eax, eax
je 0x631ca2
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x631ca2
sub eax, 1
je 0x631c9d
sub eax, 1
je 0x631c99
xor eax, eax
leave
ret
push 3
jmp 0x631ca4
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x633bce
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x633c0d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x633c0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x633c0d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x633c0d
cmp dword [ecx + 0x74], 0xe
jbe 0x633c0d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x64cab0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00632960
mov eax, dword [0x73bb00]
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.0064ff65
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x64caf2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x64cc4e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00632e60
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 + 0x786eb0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0065ad60
mov ecx, dword [esi*4 + 0x786eb0]
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 0x64cc47
cmp eax, dword [ecx + edi + 0x24]
jne 0x64cc47
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 0x64cc47
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0065ad60
add esp, 0x14
test edx, edx
jl 0x64cc47
jg 0x64cbbd
test eax, eax
jb 0x64cc47
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x64cc47
jl 0x64cbd7
cmp dword [ebp - 0x1008], eax
ja 0x64cc47
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x64cbf5
test ebx, ebx
je 0x64cc2e
cmp ecx, edi
jae 0x64cc2e
mov al, byte [ecx]
cmp al, 0xd
jne 0x64cc0f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x64cc1b
cmp byte [ecx + 1], 0xa
jne 0x64cc1b
inc ecx
jmp 0x64cc1b
movzx eax, al
movsx eax, byte [eax + 0x73bdf0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x64cbf5
cmp edx, ebx
jne 0x64cbf5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x64cc4c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0063292f
leave
ret

Function at 0x657a59
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x70b4f4
push 0x70b4ec
push str.FlsAlloc
push 0x1f
call fcn.00657884
mov esi, eax
add esp, 0x10
test esi, esi
je 0x657a8d
push dword [ebp + 8]
mov ecx, esi
call dword [0x67a754]
call esi
jmp 0x657a93
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x657ad7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x70b504
push 0x70b4fc
push str.FlsGetValue
push 0x21
call fcn.00657884
mov esi, eax
add esp, 0x10
test esi, esi
je 0x657b0e
push dword [ebp + 8]
mov ecx, esi
call dword [0x67a754]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x657b16
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x70b50c
push 0x70b504
push str.FlsSetValue
push 0x22
call fcn.00657884
mov esi, eax
add esp, 0x10
test esi, esi
je 0x657b50
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x67a754]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x65a05e
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 + 0x786eb0]
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 0x65a09e
cmp byte [ebx], 0xa
jne 0x65a09e
or byte [edi + eax + 0x28], 4
jmp 0x65a0a3
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 0x65a1a2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x65a185
inc eax
cmp dl, 0xd
je 0x65a0cf
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x65a0f5
cmp eax, ecx
jae 0x65a103
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 0x65a0b7
jmp 0x65a1a2
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 0x65a180
cmp dword [ebp - 0x10], 0
je 0x65a180
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x786eb0]
test byte [eax + edi + 0x28], 0x48
je 0x65a15a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x65a145
mov byte [esi], dl
jmp 0x65a156
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x786eb0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x65a1a2
cmp byte [ebp - 1], 0xa
jne 0x65a169
cmp esi, ebx
jne 0x65a169
mov byte [esi], 0xa
jmp 0x65a1a1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0065ad7e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x65a1a2
mov byte [esi], 0xd
jmp 0x65a1a1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x786eb0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x65a19f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x65a1a2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x65a1ab
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 + 0x786eb0]
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 0x65a1f1
cmp word [ebx], dx
jne 0x65a1f1
or byte [eax + edi + 0x28], 4
jmp 0x65a1f6
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 0x65a359
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 0x65a339
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x65a237
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x65a26d
cmp eax, edx
jae 0x65a27b
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 0x65a212
jmp 0x65a359
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 0x65a334
cmp dword [ebp - 0x18], 0
je 0x65a334
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x786eb0]
test byte [eax + edi + 0x28], 0x48
je 0x65a30a
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 0x65a2ce
mov word [esi], cx
jmp 0x65a305
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x786eb0]
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 + 0x786eb0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x786eb0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x65a359
pop eax
cmp word [ebp - 4], ax
jne 0x65a31a
cmp esi, ebx
jne 0x65a31a
mov word [esi], ax
jmp 0x65a356
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0065ad7e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x65a359
push 0xd
pop eax
jmp 0x65a315
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x786eb0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x65a353
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x65a359
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret