joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12074002
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x1211aa10
call fcn.120820e8
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ebx
push 2
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x14], esi
jne 0x1207405f
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
test eax, eax
jg 0x1207404a
call esi
mov esi, eax
jmp 0x12074178
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x12074178
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x12074080
push edi
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov esi, eax
cmp esi, ebx
jne 0x120740a8
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
test eax, eax
jg 0x12074093
call esi
jmp 0x1207416d
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1207416f
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x12074117
lea edi, [ebx + 1]
cmp edi, 0x400
ja 0x120740e4
push edi
call fcn.12068975
test al, al
pop ecx
je 0x120740e4
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.12082050
mov dword [ebp + 8], esp
jmp 0x120740f0
push edi
lea ecx, [ebp - 0x10]
call fcn.120f7704
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x120740fe
mov esi, 0x8007000e
jmp 0x1207416f
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov byte [eax + ebx], 0
test edi, edi
jne 0x1207411f
xor eax, eax
jmp 0x12074161
push edi
call dword [sym.imp.kernel32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x12074150
push ebx
call fcn.12068975
test al, al
pop ecx
je 0x12074150
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.12082050
mov eax, esp
jmp 0x12074159
push ebx
lea ecx, [ebp - 0x10]
call fcn.120f7704
push esi
push edi
push eax
call fcn.120f7704
push dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
push eax
call fcn.120f7704
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea ecx, [ebp - 0x10]
call fcn.1206a409
mov eax, esi
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x120787b5
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1211ad57
call fcn.120820e8
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 8]
push edi
mov ecx, ebx
mov dword [ebp - 0x10], esi
call fcn.1208095f
xor edi, edi
mov dword [ebx], edi
lea ebx, [esi + 0x28]
mov dword [esi], 0x12055844
mov dword [esi + 4], 0x12055830
mov dword [ebp - 4], edi
mov dword [ebx], edi
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 1
call fcn.12118e98
push edi
mov ecx, ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x14], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x1c], 0x1e
mov dword [esi + 0x24], edi
call fcn.120f7704
mov dword [esi + 0x10], edi
call fcn.1208b113
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
push dword [0x1212f378]
lea ecx, [esi + 0x34]
call fcn.120f7704
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x12082031
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [section..cdata]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.12082031
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [section..cdata]
jne 0x1208203a
ret
jmp 0x12081eff
Function at 0x12085a5f
Capabilities:
Get socket status
Read file on windows

Disassembly:
mov eax, 0x1211b857
call fcn.120820e8
sub esp, 0x210
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
neg eax
lea ecx, [esi + 0x28]
sbb eax, eax
and eax, ecx
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.120f7704
mov eax, dword [esi]
xor edi, edi
test eax, 0x10000000
mov dword [ebp - 4], edi
je 0x12085aba
call fcn.1208ab2b
push edi
push 6
mov ecx, eax
call fcn.120f7704
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
mov esi, eax
je 0x12085ab3
call fcn.120f7704
mov eax, esi
jmp 0x12085ba5
test al, 1
je 0x12085b17
lea eax, [esi + 8]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x12085b03
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e5
je 0x12085b03
call fcn.1208ab2b
push 0xffffffffffffffff
push 0x12055828
push esi
push 4
push 0xfffffffffffffffa
mov ecx, eax
call fcn.120f7704
jmp 0x12085aa5
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
je 0x12085b0f
call fcn.120f7704
xor eax, eax
inc eax
jmp 0x12085ba5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
cmp eax, edi
push ebx
mov dword [ebp + 8], eax
mov dword [ebp - 0x118], edi
jbe 0x12085b95
cmp dword [esi + 0x3c], edi
jne 0x12085b70
mov ebx, dword [esi + 0x1c]
cmp ebx, edi
je 0x12085b70
test byte [esi + 3], 0x20
jne 0x12085b70
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
mov dword [ebp - 0x21c], edi
call fcn.120f7704
push ebx
lea eax, [ebp - 0x118]
push eax
push eax
lea eax, [ebp - 0x21c]
push eax
push 1
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
je 0x12085bb5
push edi
push dword [ebp + 8]
mov ecx, esi
push dword [ebp - 0x14]
push dword [esi + 4]
call fcn.120f7704
cmp eax, 0xffffffff
je 0x12085bda
cmp eax, edi
je 0x12085bda
sub dword [ebp + 8], eax
add dword [ebp - 0x14], eax
cmp dword [ebp + 8], edi
ja 0x12085b2e
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
je 0x12085ba1
call fcn.120f7704
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
or byte [esi + 3], 0x10
call fcn.1208ab2b
push edi
push 6
mov ecx, eax
call fcn.120f7704
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
mov esi, eax
je 0x12085bd6
call fcn.120f7704
mov eax, esi
jmp 0x12085ba4
call fcn.1208ab2b
push 0x1456
push 0xfffffffffffffffa
jmp 0x12085bc1

Function at 0x1208ab2b
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1212a914]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov eax, dword [eax + 0xc]
ret

Function at 0x1208ab40
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1212a914]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ecx, dword [eax + 0xc]
jmp fcn.12082585

Function at 0x1208b25b
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1212a914]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
ret
Function at 0x1208b273
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1212a914]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
ret

Function at 0x1208b28b
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1212a914]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
ret

Function at 0x1208b2a3
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1212a914]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov eax, dword [eax + 0xc]
add eax, 0x10
ret

Function at 0x1208b3e7
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 0x1211b985
call fcn.120820e8
push ecx
push esi
call dword [sym.imp.kernel32.dll_TlsAlloc]
or esi, 0xffffffff
cmp eax, esi
mov dword [0x1212a914], eax
je 0x1208b478
call fcn.1210445f
cmp eax, 1
je 0x1208b42d
push 0x12056ec8
push 0xc001007b
push 6
call fcn.120f7704
push 0x29
push esi
call fcn.120f7704
add esp, 0x14
jmp 0x1208b47a
call fcn.12068a2f
test eax, eax
jge 0x1208b442
push 0x29
push esi
call fcn.120f7704
pop ecx
pop ecx
jmp 0x1208b47a
call fcn.1208b113
push 0x25c
mov esi, eax
call fcn.120f7704
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x1208b468
call fcn.1208adac
jmp 0x1208b46a
xor eax, eax
test eax, eax
mov dword [0x1212f3dc], eax
jne 0x1208b478
push 0xfffffffffffffffb
pop eax
jmp 0x1208b47a
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x120c9cad
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x54], edi
jne 0x120c9cc4
push edi
push edi
push edi
push 1
call fcn.120f7704
mov eax, dword [esi + 0x54]
cmp eax, edi
jne 0x120c9cd2
pop edi
pop esi
jmp fcn.1208b25b
mov eax, dword [eax + 4]
cmp eax, edi
je 0x120c9cde
mov eax, dword [eax + 0x38]
jmp 0x120c9ce0
xor eax, eax
cmp eax, edi
push ebx
jne 0x120c9d0a
mov edi, dword [esi + 0x38]
xor ebx, ebx
inc ebx
cmp edi, ebx
jl 0x120c9d0a
push ebx
lea ecx, [esi + 0x28]
call fcn.120f7704
mov ecx, dword [esi + 0x54]
push eax
call fcn.120f7704
test eax, eax
je 0x120c9d1e
inc ebx
cmp ebx, edi
jle 0x120c9cef
mov ecx, dword [esi + 0x54]
push 0
add ecx, 8
call fcn.120f7704
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
ret
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push 0
call dword [eax + 4]
or eax, 0xffffffff
jmp 0x120c9d1a
Function at 0x120dc6c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1211d6ce
call fcn.120820e8
sub esp, 0x6c
mov eax, dword [ecx + 4]
cmp ecx, dword [eax + 0xbc]
push esi
mov dword [ebp - 0x14], ecx
je 0x120dc6e4
xor esi, esi
inc esi
jmp 0x120dc875
push ebx
push edi
push dword [eax + 0x94]
lea ecx, [ebp - 0x28]
call fcn.120f7704
lea ecx, [ebp - 0x28]
call fcn.1208cec2
xor ebx, ebx
jmp 0x120dc868
push ebx
push dword [eax + 0x4c]
call fcn.120f7704
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x120dc860
cmp word [edi], bx
je 0x120dc860
push 1
push ebx
lea ecx, [ebp - 0x78]
call fcn.1210ba18
push 0x1205a5ac
push 0x1205a5a4
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], ebx
call fcn.120f7704
mov esi, eax
cmp esi, 1
lea ecx, [ebp - 0x78]
jne 0x120dc899
push edi
call fcn.120f7704
xor edi, edi
mov esi, eax
inc edi
cmp esi, edi
lea ecx, [ebp - 0x78]
jne 0x120dc899
lea eax, [ebp - 0x10]
push eax
push 0x1205a59c
call fcn.120f7704
mov esi, eax
cmp esi, edi
jne 0x120dc896
cmp dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x78]
je 0x120dc857
lea eax, [ebp - 0x10]
push eax
push 0x1205a58c
call fcn.120f7704
mov esi, eax
cmp esi, edi
jne 0x120dc896
cmp dword [ebp - 0x10], ebx
je 0x120dc854
mov dword [ebp - 0x18], edi
push ebx
lea ecx, [ebp - 0x3c]
call fcn.120f7704
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.120f7704
mov esi, eax
cmp esi, edi
jne 0x120dc884
mov eax, dword [ebp - 0x38]
cmp eax, ebx
mov esi, eax
je 0x120dc825
cmp word [eax], bx
je 0x120dc825
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1b0]
jne 0x120dc80e
cmp eax, ebx
je 0x120dc7fd
mov eax, dword [eax]
jmp 0x120dc7ff
xor eax, eax
push 0x100
push esi
mov ecx, eax
call fcn.120f7704
jmp 0x120dc825
cmp eax, ebx
je 0x120dc816
mov eax, dword [eax]
jmp 0x120dc818
xor eax, eax
push 0x100
push esi
mov ecx, eax
call fcn.120f7704
lea eax, [ebp - 0x18]
push eax
push 0x2c
lea ecx, [ebp - 0x78]
call fcn.120f7704
lea ecx, [ebp - 0x3c]
mov esi, eax
mov dword [ebp - 0x3c], 0x120571c8
mov byte [ebp - 4], bl
call fcn.1208d861
cmp esi, edi
jne 0x120dc896
cmp dword [ebp - 0x18], ebx
jne 0x120dc7ad
lea ecx, [ebp - 0x78]
or dword [ebp - 4], 0xffffffff
call fcn.1210ba78
lea ecx, [ebp - 0x28]
call fcn.1208cc8b
cmp eax, ebx
jne 0x120dc703
xor esi, esi
inc esi
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
mov dword [ebp - 0x3c], 0x120571c8
call fcn.1208d861
lea ecx, [ebp - 0x78]
or dword [ebp - 4], 0xffffffff
call fcn.1210ba78
jmp 0x120dc873
Function at 0x120f7704
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x120f7713
pop dword [ebp - 0x4c]
mov eax, 0x120f7713
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x72d14
push 0
mov eax, 0xa0be71bb
sub eax, 0x8eb960e7
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x51bd26ad
sub ecx, 0x51bcdc5a
mov edi, eax
mov ebx, 0x12170000
add ebx, dword [ebp - 0x4c]
mov esi, 0x5661669e
sub esi, 0xbc8626f
sub dword [ebp - 4], edi
mov edx, dword [ebx]
sub dword [ebp - 0x1c], ebx
add edx, esi
mov dword [ebp - 0x40], 0x12b70d61
mov dword [edi], edx
xor dword [ebp - 0x30], 0x24e91a39
add edi, 0xb3ed4a77
sub edi, 0xb3ed4a73
add ebx, 0x68877154
add ebx, 0x97788eb0
loop 0x120f7767
add eax, 0x8638a564
sub eax, 0x86378945
mov ebx, eax
add eax, 5
mov ecx, 0x5586035f
add ecx, 0xbc7efca1
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x12114a6b
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x12114af5
push ebx
mov ebx, dword [sym.imp.kernel32.dll_WaitForSingleObject]
push 0x2710
push dword [esi + 0x20]
call ebx
cmp eax, 0x102
jne 0x12114a9c
push edi
push dword [esi + 0x18]
call dword [sym.imp.kernel32.dll_TerminateThread]
jmp 0x12114ad0
push dword [esi + 0x1c]
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov edi, dword [sym.imp.kernel32.dll_SetEvent]
call edi
push dword [esi + 0x20]
call edi
push 0x2710
push dword [esi + 0x18]
call ebx
cmp eax, 0x102
jne 0x12114ace
push 0
push dword [esi + 0x18]
call dword [sym.imp.kernel32.dll_TerminateThread]
xor edi, edi
push dword [esi + 0x1c]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
call ebx
push dword [esi + 0x20]
call ebx
push dword [esi + 0x18]
call ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x2c], edi
pop ebx
xor eax, eax
pop edi
inc eax
pop esi
ret
Function at 0x407db0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bf20
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x439080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0040b3a3
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040a8fd
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00407d50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40bf80
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40bfbf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40bfbf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40bfbf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40bfbf
cmp dword [ecx + 0x74], 0xe
jbe 0x40bfbf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41ce3c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x431120
push 0x431118
push str.FlsAlloc
push 0x1f
call fcn.0041cca7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ce70
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d160]
call esi
jmp 0x41ce76
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ceba
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x431130
push 0x431128
push str.FlsGetValue
push 0x21
call fcn.0041cca7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41cef1
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41cef9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x431138
push 0x431130
push str.FlsSetValue
push 0x22
call fcn.0041cca7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41cf33
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42d160]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41d808
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040c1e0
mov eax, dword [0x439080]
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.00419b6e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41d84a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41d9a6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042b200
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 + 0x43aa48]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041fd02
mov ecx, dword [esi*4 + 0x43aa48]
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 0x41d99f
cmp eax, dword [ecx + edi + 0x24]
jne 0x41d99f
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 0x41d99f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041fd02
add esp, 0x14
test edx, edx
jl 0x41d99f
jg 0x41d915
test eax, eax
jb 0x41d99f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41d99f
jl 0x41d92f
cmp dword [ebp - 0x1008], eax
ja 0x41d99f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41d94d
test ebx, ebx
je 0x41d986
cmp ecx, edi
jae 0x41d986
mov al, byte [ecx]
cmp al, 0xd
jne 0x41d967
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41d973
cmp byte [ecx + 1], 0xa
jne 0x41d973
inc ecx
jmp 0x41d973
movzx eax, al
movsx eax, byte [eax + 0x4394f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41d94d
cmp edx, ebx
jne 0x41d94d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41d9a4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040b390
leave
ret
Function at 0x41f19a
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 + 0x43aa48]
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 0x41f1da
cmp byte [ebx], 0xa
jne 0x41f1da
or byte [edi + eax + 0x28], 4
jmp 0x41f1df
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 0x41f2de
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41f2c1
inc eax
cmp dl, 0xd
je 0x41f20b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41f231
cmp eax, ecx
jae 0x41f23f
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 0x41f1f3
jmp 0x41f2de
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 0x41f2bc
cmp dword [ebp - 0x10], 0
je 0x41f2bc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x43aa48]
test byte [eax + edi + 0x28], 0x48
je 0x41f296
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41f281
mov byte [esi], dl
jmp 0x41f292
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43aa48]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41f2de
cmp byte [ebp - 1], 0xa
jne 0x41f2a5
cmp esi, ebx
jne 0x41f2a5
mov byte [esi], 0xa
jmp 0x41f2dd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041fd20
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41f2de
mov byte [esi], 0xd
jmp 0x41f2dd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x43aa48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f2db
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f2de
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret