joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003d0d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ecx + 8]
sub esp, 0x30
cmp eax, 0xffffffff
jne 0x1003d11a
lea ecx, [esp]
call fcn.100484d2
xor eax, eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x10], al
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push 0x1007447c
lea eax, [esp + 4]
push eax
mov dword [esp + 0x2c], 0xf
mov dword [esp + 8], vtable.Poco::Net::InvalidSocketException.0
call fcn.1004af94
push 1
push 1
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x1003d132
call fcn.1003d770
mov esp, ebp
pop ebp
ret 4
Function at 0x1003d170
Capabilities:
Get socket status
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ecx + 8]
sub esp, 0xc84
push ebx
push esi
push edi
cmp ecx, 0xffffffff
jne 0x1003d1c1
lea ecx, [esp + 0x48]
call fcn.100484d2
xor eax, eax
mov dword [esp + 0x68], eax
mov byte [esp + 0x58], al
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
push 0x1007447c
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x50], vtable.Poco::Net::InvalidSocketException.0
call fcn.1004af94
xor eax, eax
mov dword [esp + 0x888], eax
mov dword [esp + 0x480], eax
mov dword [esp + 0x78], eax
mov al, byte [ebp + 0xc]
mov edx, 1
test dl, al
je 0x1003d1ef
mov dword [esp + 0x88c], ecx
mov dword [esp + 0x888], edx
test al, 2
je 0x1003d201
mov dword [esp + 0x484], ecx
mov dword [esp + 0x480], edx
test al, 4
je 0x1003d20d
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x78], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [eax + 4]
inc ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0
push 0xf4240
push ecx
push edx
call fcn.1005f210
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x44], ebx
push eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x30], ecx
call esi
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, 0xd53e8000
sub edi, ecx
mov ecx, 0x19db1de
sbb eax, ecx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x7c]
push edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x488]
push eax
lea ecx, [esp + 0x894]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x1003d311
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1003d30a
lea eax, [esp + 0x30]
push eax
call esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, 0xd53e8000
push 0
sub eax, edx
mov esi, 0x19db1de
push 0xa
sbb ecx, esi
push ecx
push eax
call fcn.10053570
mov ecx, dword [esp + 0x3c]
push 0
push 0xa
push ecx
push edi
mov ebx, eax
mov esi, edx
call fcn.10053570
sub ebx, eax
sbb esi, edx
cmp esi, dword [esp + 0x14]
jg 0x1003d2ff
jl 0x1003d2f2
cmp ebx, dword [esp + 0x10]
jae 0x1003d2ff
sub dword [esp + 0x10], ebx
sbb dword [esp + 0x14], esi
jmp 0x1003d222
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x1003d21e
mov edi, eax
call fcn.1003d7c0
pop edi
pop esi
setg al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1003d460
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x1007a200]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
mov eax, dword [ecx + 8]
push esi
mov esi, dword [ebp + 8]
push edi
cmp eax, 0xffffffff
jne 0x1003d4c0
lea ecx, [esp + 0x14]
call fcn.100484d2
push 0x1007447c
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x1c], vtable.Poco::Net::InvalidSocketException.0
call fcn.1004af94
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x48]
push edx
push eax
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1003d502
mov eax, dword [esp + 0x10]
push eax
push esi
lea edi, [esp + 0x4c]
call fcn.1003e4d0
mov ecx, dword [esp + 0x54]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.1004738d
mov esp, ebp
pop ebp
ret 4
call fcn.1003d770
int3

Function at 0x1003d5c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ecx + 8]
sub esp, 0x30
cmp eax, 0xffffffff
jne 0x1003d60a
lea ecx, [esp]
call fcn.100484d2
xor eax, eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x10], al
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push 0x1007447c
lea eax, [esp + 4]
push eax
mov dword [esp + 0x2c], 0xf
mov dword [esp + 8], vtable.Poco::Net::InvalidSocketException.0
call fcn.1004af94
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1003d62b
call fcn.1003d770
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10040e00
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006593b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1007a200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10061de1
push 4
mov dword [ebp - 4], 0
call fcn.10048937
mov edi, eax
add esp, 4
test edi, edi
je 0x10040e7c
call fcn.10061c52
mov dword [edi], eax
call fcn.10061a80
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.10061da2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10040e72
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.10061dca
jmp 0x10040e7e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10042550
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006712b
mov eax, dword fs:[0]
push eax
sub esp, 0x1ec
mov eax, dword [0x1007a200]
xor eax, esp
mov dword [esp + 0x1e4], eax
mov eax, dword [0x1007a200]
xor eax, esp
push eax
lea eax, [esp + 0x1f0]
mov dword fs:[0], eax
lea eax, [esp + 0x54]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100425f9
push 0x26
push str.Failed_to_initialize_network_subsystem
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.10002be0
push 0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x204], 0
call fcn.1001c280
push 0x1007454c
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], vtable.Poco::Net::NetException.0
call fcn.1004af94
mov ecx, dword [esp + 0x1f0]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.1004738d
mov esp, ebp
pop ebp
ret

Function at 0x1004738d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1007a200]
jne 0x10047397
repz ret
jmp fcn.1004b728
Function at 0x1005d2bf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1004da9a
and dword [ebp - 4], 0
cmp dword [0x1007dc34], 0
mov ebx, eax
jne 0x1005d370
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1005d421
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1005d421
push eax
call fcn.1004da28
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1007dc34], eax
call esi
push eax
call fcn.1004da28
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1007dc38], eax
call esi
push eax
call fcn.1004da28
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1007dc3c], eax
call esi
push eax
call fcn.1004da28
pop ecx
mov dword [0x1007dc44], eax
test eax, eax
je 0x1005d370
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1004da28
pop ecx
mov dword [0x1007dc40], eax
mov eax, dword [0x1007dc40]
cmp eax, ebx
je 0x1005d3c8
cmp dword [0x1007dc44], ebx
je 0x1005d3c8
push eax
call fcn.1004daa3
push dword [0x1007dc44]
mov esi, eax
call fcn.1004daa3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1005d3c8
test edi, edi
je 0x1005d3c8
call esi
test eax, eax
je 0x1005d3bf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1005d3bf
test byte [ebp - 0xc], 1
jne 0x1005d3c8
or dword [ebp + 0x10], 0x200000
jmp 0x1005d401
mov eax, dword [0x1007dc38]
cmp eax, ebx
je 0x1005d401
push eax
call fcn.1004daa3
pop ecx
test eax, eax
je 0x1005d401
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1005d401
mov eax, dword [0x1007dc3c]
cmp eax, ebx
je 0x1005d401
push eax
call fcn.1004daa3
pop ecx
test eax, eax
je 0x1005d401
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1007dc34]
call fcn.1004daa3
pop ecx
test eax, eax
je 0x1005d421
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1005d423
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430005
Capabilities:
Encode data using xor

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x408e54
nop
mov ecx, 0x107e1fe2
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x16d0225f
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x406bf8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x406c95
push ebx
push esi
call fcn.00406bc1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00406b55
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x406c42
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x406c94
push edi
push eax
call fcn.00408b7f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x406c62
call fcn.00405613
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x406c93
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00406b55
add esp, 0x20
test eax, eax
jne 0x406c81
push edi
call fcn.00405613
jmp 0x406c89
push ebx
call fcn.00405613
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x406c98
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x406ca9
pop esi
ret
push ebx
push edi
push esi
call fcn.00406bc1
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00408b7f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x406cd1
push ebx
push esi
push edi
call fcn.00413660
add esp, 0xc
push 0
call fcn.00405613
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40742b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00406f46

Function at 0x40a4ff
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00404cd9
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40a56e
cmp esi, dword [ebp - 4]
je 0x40a569
cmp dword [ebp + 0xc], 0
je 0x40a569
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40a546
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0040a03c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x40a570
xor eax, eax
inc eax
jmp 0x40a570
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40a5d5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ed018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00404cd9
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00404cd9
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x40a64c
cmp word [ecx], dx
je 0x40a64c
mov eax, dword [0x49b2e4]
push edi
dec eax
push eax
push 0x49b1d0
call fcn.0040a574
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x40a6bf
cmp word [eax], dx
je 0x40a6bf
mov eax, dword [edi]
test eax, eax
je 0x40a670
cmp word [eax], dx
je 0x40a670
lea eax, [ebp - 0x10]
push eax
call fcn.00409f42
jmp 0x40a679
lea eax, [ebp - 0x10]
push eax
call fcn.00409fdd
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x40a6e9
mov eax, dword [0x49b1cc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x49aec0
call fcn.0040a574
add esp, 0xc
test al, al
je 0x40a6e9
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x40a6b4
cmp word [eax], di
je 0x40a6b4
lea eax, [ebp - 0x10]
push eax
call fcn.00409f42
pop ecx
jmp 0x40a6eb
lea eax, [ebp - 0x10]
push eax
call fcn.00409fdd
jmp 0x40a6b1
mov eax, dword [edi]
test eax, eax
je 0x40a6d6
cmp word [eax], dx
je 0x40a6d6
lea eax, [ebp - 0x10]
push eax
call fcn.00409ef7
pop ecx
jmp 0x40a6e9
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x40a7b4
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0040a3f9
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40a7b4
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x40a7b4
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x40a7b4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40a741
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0040aea3
test ebx, ebx
je 0x40a7af
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0040aea3
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40a7b4
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40a7b4
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0040cfdf
add esp, 0x10
xor eax, eax
inc eax
jmp 0x40a7b6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bd5
leave
ret
Function at 0x40ac0a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x49c374
push str.FlsAlloc
push 0x1f
call fcn.0040aa75
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ac3e
push dword [ebp + 8]
mov ecx, esi
call dword [0x499490]
call esi
jmp 0x40ac44
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40ac88
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x49c398
push str.FlsGetValue
push 0x21
call fcn.0040aa75
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40acbf
push dword [ebp + 8]
mov ecx, esi
call dword [0x499490]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40acc7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x49c3ac
push str.FlsSetValue
push 0x22
call fcn.0040aa75
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ad01
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x499490]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x410383
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 + 0x4f8d30]
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 0x4103c3
cmp byte [ebx], 0xa
jne 0x4103c3
or byte [edi + eax + 0x28], 4
jmp 0x4103c8
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 0x4104c7
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4104aa
inc eax
cmp dl, 0xd
je 0x4103f4
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41041a
cmp eax, ecx
jae 0x410428
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 0x4103dc
jmp 0x4104c7
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 0x4104a5
cmp dword [ebp - 0x10], 0
je 0x4104a5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4f8d30]
test byte [eax + edi + 0x28], 0x48
je 0x41047f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41046a
mov byte [esi], dl
jmp 0x41047b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4f8d30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4104c7
cmp byte [ebp - 1], 0xa
jne 0x41048e
cmp esi, ebx
jne 0x41048e
mov byte [esi], 0xa
jmp 0x4104c6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00410011
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4104c7
mov byte [esi], 0xd
jmp 0x4104c6
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4f8d30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4104c4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4104c7
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4104d0
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 + 0x4f8d30]
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 0x410516
cmp word [ebx], dx
jne 0x410516
or byte [eax + edi + 0x28], 4
jmp 0x41051b
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 0x41067e
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 0x41065e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41055c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x410592
cmp eax, edx
jae 0x4105a0
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 0x410537
jmp 0x41067e
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 0x410659
cmp dword [ebp - 0x18], 0
je 0x410659
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4f8d30]
test byte [eax + edi + 0x28], 0x48
je 0x41062f
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 0x4105f3
mov word [esi], cx
jmp 0x41062a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4f8d30]
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 + 0x4f8d30]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4f8d30]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41067e
pop eax
cmp word [ebp - 4], ax
jne 0x41063f
cmp esi, ebx
jne 0x41063f
mov word [esi], ax
jmp 0x41067b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00410011
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41067e
push 0xd
pop eax
jmp 0x41063a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4f8d30]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x410678
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41067e
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret