joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100014b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x10020170]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100014d7
sub eax, edx
sar eax, 1
jne 0x100014f4
push ebx
push str.There_is_currently_no_matching_version_Lowest_Supported_Version:_s
push edi
jmp 0x1000159a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000150c
push esi
push str.Runtime_path_not_exist__path:__s_
push edi
jmp 0x1000159a
mov ecx, dword [0x1001b340]
mov eax, dword [str.atl100.dll]
mov edx, dword [0x1001b344]
mov dword [ebp - 0x50], ecx
mov ecx, dword [0x1001b34c]
mov dword [ebp - 0x54], eax
mov eax, dword [0x1001b348]
mov dword [ebp - 0x4c], edx
mov dx, word [0x1001b350]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
mov word [ebp - 0x40], dx
mov dword [ebp - 0x3e], 0
mov ecx, 6
mov esi, str.msvcr100.dll
lea edi, [ebp - 0x3a]
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
movsw word es:[edi], word [esi]
mov ecx, 6
mov esi, str.msvcp100.dll
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor esi, esi
lea edi, [ebp - 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x100015b9
push eax
call ebx
inc esi
add edi, 0x1a
cmp esi, 3
jb 0x10001576
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x58]
push edx
push str.Load_library_failed__dll_name:_pbvm.dll__runtime_path:_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.10007a4d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x58]
imul esi, esi, 0x1a
lea eax, [ebp + esi - 0x54]
push eax
push str.The_program_cant_start_because__s_is_missing_from_your_computer.
push ecx
jmp 0x1000159a

Function at 0x100015d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x10020170]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0x1001b4a4
push eax
call fcn.10008036
mov esi, eax
push esi
push 1
lea eax, [ebp - 0x58]
push 0x40
push eax
call fcn.10007f5b
mov ecx, dword [ebp - 0x1c]
push 0
add ecx, 4
push ecx
push esi
call fcn.10007c95
push esi
push 1
lea edx, [ebp - 0x18]
push 0x14
push edx
call fcn.10007f5b
push esi
call fcn.10007b97
mov ax, word [ebp - 0x18]
add esp, 0x38
mov ecx, 0x200
pop esi
cmp ax, cx
je 0x10001651
mov edx, 0x8664
cmp ax, dx
je 0x10001651
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007a4d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.10007a4d
mov esp, ebp
pop ebp
ret
Function at 0x10002030
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x10020170]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x24c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov cx, word [esi]
add esi, 2
cmp cx, 0x22
jne 0x100020a0
push 0x22
push esi
call fcn.1000798d
add esp, 8
test eax, eax
je 0x100020b7
mov ecx, eax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x10002080
sub ecx, esi
sar ecx, 1
cmp ecx, 2
ja 0x1000209b
mov esi, 0x1001b6c4
jmp 0x100020b7
lea esi, [eax + 4]
jmp 0x100020b7
push 0x20
push esi
call fcn.1000798d
add esp, 8
mov esi, 0x1001b6c8
test eax, eax
je 0x100020b7
lea esi, [eax + 2]
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x246]
push eax
mov word [ebp - 0x248], dx
call fcn.10007ab0
mov ecx, dword [str.PBVM]
mov edx, dword [0x1001b6d0]
mov ax, word [0x1001b6d4]
push 0x32
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x36]
push 0
push ecx
mov dword [ebp - 0x3c], edx
mov word [ebp - 0x38], ax
call fcn.10007ab0
lea eax, [ebp - 0x40]
add esp, 0x18
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x10002104
mov edx, dword [str..dll]
mov ecx, dword [0x1001b6dc]
mov dword [eax], edx
mov dx, word [0x1001b6e0]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x40]
push ebx
push ecx
call fcn.100018b0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1000218f
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002150
sub eax, edx
sar eax, 1
je 0x1000217a
push 0x1010
push 0x1001b6e4
lea edx, [ebp - 0x248]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007a4d
mov esp, ebp
pop ebp
ret 0x10
push str.FN_RunExecutable
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x24c]
push 0
push 0x3e8
push ecx
push esi
push edx
push ebx
call eax
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007a4d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100026f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 8], edi
test ebx, ebx
jne 0x10002718
push ebx
push ebx
push ebx
push 2
call fcn.10006090
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
mov esi, dword [edi + 0x18]
test esi, esi
je 0x10002731
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
test esi, esi
jne 0x10002720
xor ecx, ecx
push 2
or eax, 0xffffffff
push ecx
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ecx
push ebx
mov dword [edi + 8], eax
mov dword [edi + 4], eax
call fcn.10007c95
push ebx
call fcn.10008d8b
push 0
mov ebx, eax
mov eax, dword [ebp + 8]
push 0
push eax
call fcn.10007c95
add esp, 0x1c
test ebx, ebx
jg 0x10002781
push 0
push 0
push 0
push 0xc
mov ecx, edi
call fcn.10006090
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebx + 1]
push ecx
call fcn.10008119
mov edx, dword [ebp + 8]
push edx
mov esi, eax
push 1
push ebx
push esi
mov dword [ebp - 4], esi
mov byte [esi], 0
call fcn.10007f5b
add esp, 0x14
cmp eax, 1
je 0x100027ca
push esi
call fcn.10007a42
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, edi
call fcn.10006090
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
add ebx, eax
mov byte [ebx], 0
cmp byte [eax], 0
mov edi, esi
je 0x1000284c
lea esp, [esp]
cmp esi, ebx
jb 0x100027fb
push 0x3ec
push 0x1001ba3c
push str.p____buf__length_
call fcn.1000829e
add esp, 0xc
cmp edi, ebx
jbe 0x10002816
push 0x3ed
push 0x1001ba7c
push 0x1001ba94
call fcn.1000829e
add esp, 0xc
cmp edi, esi
jbe 0x10002831
push 0x3ee
push 0x1001babc
push str.q___p
call fcn.1000829e
add esp, 0xc
mov al, byte [esi]
cmp al, 0xd
jne 0x10002843
mov byte [edi], 0xa
inc esi
inc edi
cmp byte [esi], 0xa
jne 0x10002847
jmp 0x10002846
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x100027e0
cmp edi, ebx
jbe 0x10002867
push 0x3fb
push 0x1001bae4
push str.q____buf__length_
call fcn.1000829e
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 4]
push ecx
mov byte [edi], 0
mov eax, dword [esi]
mov eax, dword [eax + 8]
push 0
push edx
mov ecx, esi
call eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.10007a42
add esp, 4
xor eax, eax
cmp byte [esi + 0x2c], al
pop esi
pop edi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10007a4d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10020170]
jne 0x10007a57
repz ret
jmp fcn.1000a1f8
Function at 0x1000daaa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10020170]
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.1000cf6d
and dword [ebp - 0x14], 0
cmp dword [0x100217c0], 0
mov dword [ebp - 0x18], eax
jne 0x1000db5d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000dc05
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001cdf0
push ebx
call edi
test eax, eax
je 0x1000dc05
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100217c0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100217c4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100217c8], eax
call edi
push eax
call esi
mov dword [0x100217d0], eax
test eax, eax
je 0x1000db5d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100217cc], eax
mov eax, dword [0x100217cc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000dbb6
cmp dword [0x100217d0], ecx
je 0x1000dbb6
push eax
call esi
push dword [0x100217d0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000dbb6
test ebx, ebx
je 0x1000dbb6
call edi
test eax, eax
je 0x1000dbad
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000dbad
test byte [ebp - 8], 1
jne 0x1000dbb6
or dword [ebp + 0x10], 0x200000
jmp 0x1000dbe9
mov eax, dword [0x100217c4]
cmp eax, dword [ebp - 0x18]
je 0x1000dbe9
push eax
call esi
test eax, eax
je 0x1000dbe9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000dbe9
mov eax, dword [0x100217c8]
cmp eax, dword [ebp - 0x18]
je 0x1000dbe9
push eax
call esi
test eax, eax
je 0x1000dbe9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100217c0]
call esi
test eax, eax
je 0x1000dc05
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000dc07
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007a4d
leave
ret

Function at 0x401c2e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and byte [ebp - 0x100], 0
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
lea eax, [ebp - 0x100]
push 0x404008
push eax
call fcn.00401ca0
mov ecx, 0x401bdc
mov eax, 0x4017fd
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00401d18
push 0x100
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.004020d0
add esp, 0x24
call fcn.00401846
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401031
Capabilities:
Hide graphical window

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403110], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [0x403114], eax
push 0xa
push dword [0x403114]
push 0
push dword [0x403110]
call 0x401031
push eax
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xffffffb0
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x401138
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [0x403110]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x10], 6
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], str.WindowzCls
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
push 0x3f
call sub.user32.dll_GetSystemMetrics
cmp eax, 3
jne 0x4010b8
add eax, 0x1d
and eax, eax
jne 0x4010a5
push 0x400000
push 0
call fcn.00401371
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [ebp + 8]
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.MyApp
push str.WindowzCls
push 0
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 0x50], eax
push dword [ebp + 0x14]
push dword [ebp - 0x50]
call sub.user32.dll_ShowWindow
push dword [ebp - 0x50]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
or eax, eax
je 0x401131
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x40110a
mov eax, dword [ebp - 0x44]
leave
ret 0x10
Function at 0x401165
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pushal
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, str.GetLastError
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x40300c
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x4030f8
sub eax, 0x2000
add eax, dword [ebp + 0x10]
call dword [eax]
push eax
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403010
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x40300c
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x4030f8
sub eax, 0x2000
add eax, dword [ebp + 0x10]
call dword [eax]
pop eax
call eax
or eax, eax
jne 0x401226
push eax
jmp 0x401234
cmp eax, 0x7f
jne 0x401232
push 0x100
jmp 0x401234
push 1
mov esi, dword [ebp + 8]
mov ebx, 0xa
mov ecx, dword [ebp + 0xc]
shr ecx, 2
xor edx, edx
mov eax, dword [ebp + 0xc]
shr eax, 2
sub eax, ecx
push eax
div ebx
add edx, 2
sub dword [esi], edx
xor edx, edx
pop eax
div ebx
add edx, dword [esp]
push edx
add dword [esp], 0x142d30e1
pop edx
xor dword [esi], edx
add esi, 4
loop 0x401242
pop eax
popal
leave
ret 0x10
Function at 0x401371
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov esi, dword [esp + 0x8c]
and esi, 0xffff0000
mov eax, esi
cmp word [eax], 0x5a4d
jne 0x401390
add eax, dword [eax + 0x3c]
sub esi, 0x10000
cmp word [eax], 0x4550
jne 0x401384
add esi, 0x10000
push esi
mov eax, 0x40300c
pop dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004012d9
mov dword [0x4030f8], eax
push 0x403010
push 0x3e8
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x4013d4
leave
ret 8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x4013e5
leave
ret 8
mov dword [ebp - 8], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4013f9
leave
ret 8
push eax
call sub.kernel32.dll_LockResource
or eax, eax
jne 0x401407
leave
ret 8
mov dword [ebp - 0xc], eax
push 4
push 0x3000
push dword [ebp - 8]
push 0
call sub.kernel32.dll_VirtualAlloc
or eax, eax
jne 0x401423
leave
ret 8
push eax
mov esi, dword [ebp - 0xc]
mov edi, eax
mov ecx, dword [ebp - 8]
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
push dword [esp + 0xc]
call fcn.00401165
mov ebx, dword [esp]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
pop eax
push ebx
push 0x8000
push 0
push eax
call sub.kernel32.dll_VirtualFree
mov ebx, dword [ebp + 0xc]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
mov dword [ebp - 4], ebx
mov ebx, dword [esp]
add ebx, dword [ebp + 0xc]
and ebx, 0xffff0000
add ebx, 0x10000
push 0x40
push 0x3000
push dword [ebp - 4]
push ebx
call sub.kernel32.dll_VirtualAlloc
or eax, eax
je 0x401476
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
push eax
sub eax, dword [ebp + 0xc]
add dword [ebp + 8], eax
mov ebx, 0x4014ec
add ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov ebx, 0x401b88
add ebx, dword [ebp + 8]
sub ebx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
lea ebx, [ebp - 0x14]
push ebx
push 0x4012a4
push dword [ebp + 0xc]
call fcn.00401272
pop eax
pop ebx
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov eax, 0x401757
add eax, dword [ebp + 8]
call eax
leave
ret 8
Function at 0x10003717
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
shr eax, 0x10
xor eax, dword [ebp + 8]
imul ecx, eax, 0x85ebca6b
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
pop ebp
ret

Function at 0x1000bc34
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0x70
push 0
push 0x1003cbd8
mov dword [0x100381b0], eax
call fcn.10012ca0
and dword [0x1003cbdc], 0
add esp, 0xc
ret

Function at 0x1000e07a
Capabilities:
Allocate thread local storage

Disassembly:
push esi
call sym.GNSDK_FP.DLL_gcsl_memory_initialize
mov esi, eax
test esi, esi
jne 0x1000e0ca
cmp dword [sym.GNSDK_FP.DLL_g_gcsl_thread_store_key], eax
jne 0x1000e0b1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [sym.GNSDK_FP.DLL_g_gcsl_thread_store_key], eax
cmp eax, 0xffffffff
jne 0x1000e0aa
call sym.GNSDK_FP.DLL_gcsl_memory_shutdown
mov esi, 0x90020282
jmp 0x1000e0ca
mov byte [0x1003cc78], 1
cmp dword [sym.GNSDK_FP.DLL_g_gcsl_thread_registrants], 0
jne 0x1000e0ca
push 2
push sym.GNSDK_FP.DLL_g_gcsl_thread_registrants
call fcn.1000e8b3
pop ecx
pop ecx
mov esi, eax
mov eax, esi
pop esi
ret

Function at 0x1000e130
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
cmp byte [0x1003cc78], bl
je 0x1000e183
mov eax, dword [sym.GNSDK_FP.DLL_g_gcsl_thread_store_key]
test eax, eax
je 0x1000e17d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1000e16b
push ebx
push dword [sym.GNSDK_FP.DLL_g_gcsl_thread_store_key]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call fcn.1000e038
pop ecx
push dword [sym.GNSDK_FP.DLL_g_gcsl_thread_store_key]
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [sym.GNSDK_FP.DLL_g_gcsl_thread_store_key], ebx
mov byte [0x1003cc78], bl
mov eax, dword [sym.GNSDK_FP.DLL_g_gcsl_thread_registrants]
test eax, eax
je 0x1000e1ee
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
push ecx
push eax
mov dword [ebp - 4], ebx
call fcn.1000e892
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x1000e1db
mov esi, ebx
cmp dword [ebp - 8], ebx
jbe 0x1000e1db
test edi, edi
jne 0x1000e1db
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push esi
push dword [sym.GNSDK_FP.DLL_g_gcsl_thread_registrants]
call fcn.1000e934
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1000e1d5
push dword [ebp - 4]
call sym.GNSDK_FP.DLL_gcsl_memory_free
pop ecx
inc esi
cmp esi, dword [ebp - 8]
jb 0x1000e1ac
push dword [sym.GNSDK_FP.DLL_g_gcsl_thread_registrants]
call fcn.1000e90d
pop ecx
mov dword [sym.GNSDK_FP.DLL_g_gcsl_thread_registrants], ebx
pop edi
call sym.GNSDK_FP.DLL_gcsl_memory_shutdown
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x10023e78
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 0
mov ecx, 0x1505
push esi
mov esi, dword [ebp + 8]
mov dl, byte [esi]
jne 0x10023ec7
test dl, dl
je 0x10023eb2
push ebx
lea eax, [edx - 0x61]
inc esi
mov bl, 0x19
cmp bl, al
sbb eax, eax
imul ecx, ecx, 0x21
and eax, 0xffffffe0
add eax, 0x20
sub ecx, eax
movsx eax, dl
mov dl, byte [esi]
add ecx, eax
test dl, dl
jne 0x10023e91
pop ebx
mov eax, dword [ebp + 0x10]
pop esi
mov dword [eax], ecx
xor eax, eax
pop ebp
ret
inc esi
imul ecx, ecx, 0x21
movsx eax, dl
mov dl, byte [esi]
add ecx, eax
test dl, dl
jne 0x10023ebc
jmp 0x10023eb2

Function at 0x10024fac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x10024ff0
mov edx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [ebp + 8], 0
xorps xmm1, xmm1
jbe 0x10024fe2
mov edi, dword [ebp + 8]
mov al, byte [esi]
xor al, 0x80
inc esi
movzx eax, al
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
sub edi, 1
jne 0x10024fca
movss dword [edx], xmm1
add edx, 4
sub ecx, 1
jne 0x10024fbe
pop edi
pop esi
pop ebp
ret

Function at 0x10025036
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10025063
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi]
xor al, 0x80
inc esi
movzx eax, al
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edx], xmm0
lea edx, [edx + 4]
sub ecx, 1
jne 0x10025047
pop esi
pop ebp
ret

Function at 0x10025357
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1002539d
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov al, byte [edx]
xor al, 0x80
movzx eax, al
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [esi], xmm1
mov al, byte [edx + 1]
add edx, 2
xor al, 0x80
movzx eax, al
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movss dword [esi], xmm0
add esi, 4
sub ecx, 1
jne 0x10025368
pop esi
pop ebp
ret

Function at 0x10025eac
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.1000c924
pop ecx
test al, al
jne 0x10025f38
xor edi, edi
push edi
push esi
push 0x100326cc
call fcn.1000c84d
add esp, 0xc
test al, al
jne 0x10025f38
push edi
push esi
push str.gcsl_fsname_stdout
call fcn.1000c84d
add esp, 0xc
test al, al
jne 0x10025f38
push edi
push esi
push str.gcsl_fsname_stderr
call fcn.1000c84d
add esp, 0xc
test al, al
jne 0x10025f38
push edi
lea eax, [ebp - 4]
push eax
push esi
call fcn.1000cf30
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10025f34
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10025f2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10025cda
pop ecx
mov esi, eax
push dword [ebp - 4]
call sym.GNSDK_FP.DLL_gcsl_memory_free
pop ecx
mov eax, esi
jmp 0x10025f3d
mov eax, 0x90030046
pop edi
pop esi
leave
ret