joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10049b50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x10076040]
xor eax, esp
mov dword [esp + 0x60], eax
push esi
push 0x40
lea eax, [esp + 0x24]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, 0x20
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x2c]
shr eax, 3
mov edx, 0x3f
and eax, 0x3f
mov dword [esp + 0x18], 0xefcdab89
add ecx, eax
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
sub edx, eax
mov dword [esp + 0x28], 0
add esp, 0xc
mov dword [esp + 0x20], esi
mov byte [ecx], 0x80
inc ecx
cmp edx, 8
jae 0x10049bf2
push edx
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.100494d0
push 0x38
lea eax, [esp + 0x30]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
jmp 0x10049c01
lea eax, [edx - 8]
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x58], eax
lea ecx, [esp + 8]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
call fcn.100494d0
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0xe]
pop esi
xor ecx, esp
call fcn.1005ee17
mov esp, ebp
pop ebp
ret

Function at 0x1004ce20
Capabilities:
Hash data using fnv

Disassembly:
mov eax, dword [0x10144a3c]
add ecx, 4
push esi
mov esi, dword [eax + 0x34]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov edx, dword [esi]
mov ecx, esi
push eax
mov edx, dword [edx + 0xc]
call edx
pop esi
mov cl, byte [eax]
test cl, cl
je 0x1004ce79
movsx ecx, cl
xor ecx, 0x811c9dc5
imul edx, ecx, 0x1000193
lea ecx, [eax + 1]
call fcn.10014f80
cmp eax, 0x7c4a5426
ja 0x1004ce7c
je 0x1004ceba
cmp eax, 0x19acc50e
je 0x1004ceba
cmp eax, 0x43d6266e
je 0x1004ceba
cmp eax, 0x4d7aa8c1
je 0x1004ceba
xor al, al
ret
cmp eax, 0xc941ff64
ja 0x1004cea3
je 0x1004ceba
cmp eax, 0x9d08c4c8
ja 0x1004ce9c
je 0x1004ceba
cmp eax, 0x7f11af2d
je 0x1004ceba
cmp eax, 0x84ea2fe5
jmp 0x1004ce77
cmp eax, 0xa7eab73f
jmp 0x1004ce77
cmp eax, 0xe80bc214
ja 0x1004cebd
je 0x1004ceba
cmp eax, 0xd614ea2e
je 0x1004ceba
cmp eax, 0xe1525a25
jne 0x1004ce79
mov al, 1
ret
cmp eax, 0xf8573d98
sete al
ret

Function at 0x1004ced0
Capabilities:
Hash data using fnv

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 8]
call eax
cmp dword [eax + 0x14], 0xb5
je 0x1004cf55
mov eax, dword [0x10144a3c]
lea ecx, [edi + 4]
push esi
mov esi, dword [eax + 0x34]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov edx, dword [esi]
mov ecx, esi
push eax
mov edx, dword [edx + 0xc]
call edx
pop esi
mov cl, byte [eax]
test cl, cl
je 0x1004cf40
movsx ecx, cl
xor ecx, 0x811c9dc5
imul edx, ecx, 0x1000193
lea ecx, [eax + 1]
call fcn.10014f80
cmp eax, 0x5978b32e
ja 0x1004cf44
je 0x1004cf55
cmp eax, 0x1b20e275
je 0x1004cf55
cmp eax, 0x3cb8abb3
je 0x1004cf55
cmp eax, 0x4c849f3c
je 0x1004cf55
xor al, al
pop edi
ret
cmp eax, 0x97113ea7
je 0x1004cf55
cmp eax, 0xa8d619ea
pop edi
sete al
ret
mov al, 1
pop edi
ret
Function at 0x1005ccb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [ebp + 0xc], 1
jne 0x1005cce3
push 0
push 0
push dword [ebp + 8]
push 0x1005cc40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1005cce3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc
Function at 0x100017d7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10023040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x10020e18
push ecx
lea eax, [ebp - 0x18]
push eax
call fcn.1000b3fa
add esp, 0xc
test eax, eax
jne 0x10001934
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push dword [ebp - 0x18]
call fcn.1000aff0
push dword [ebp - 0x18]
call fcn.10006542
mov esi, eax
push esi
mov dword [ebp - 0x20], esi
call fcn.1000bab0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1000183b
push dword [ebp - 0x18]
call fcn.1000acd7
pop ecx
jmp 0x10001948
push ebx
push ebx
push dword [ebp - 0x18]
call fcn.1000aff0
push dword [ebp - 0x18]
push esi
push 1
push edi
call fcn.1000b975
push dword [ebp - 0x18]
call fcn.1000acd7
mov eax, dword [str.zz1H:]
or edx, 0xffffffff
mov dword [ebp - 0xc], eax
add esp, 0x20
mov ax, word [0x10020e44]
or esi, edx
mov word [ebp - 8], ax
mov eax, dword [str.:zz1T]
mov dword [ebp - 0x14], eax
mov ax, word [0x10020e4c]
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffffc
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], eax
test eax, eax
jle 0x10001929
push 5
pop eax
sub eax, edi
mov ecx, edi
mov dword [ebp - 0x20], eax
mov eax, dword [ecx]
lea edx, [ebp - 0xc]
cmp eax, dword [edx]
jne 0x100018bf
movzx eax, byte [ecx + 4]
cmp al, byte [edx + 4]
jne 0x100018bf
mov edx, dword [ebp - 0x20]
add edx, ecx
mov dword [ebp - 0x1c], edx
jmp 0x100018da
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
cmp eax, dword [edx]
mov edx, dword [ebp - 0x1c]
jne 0x100018da
movzx eax, byte [ecx + 4]
lea edx, [ebp - 0x14]
cmp al, byte [edx + 4]
mov edx, dword [ebp - 0x1c]
je 0x100018e3
inc ebx
inc ecx
cmp ebx, dword [ebp - 0x24]
jl 0x100018a3
jmp 0x100018e6
lea esi, [ebx - 1]
cmp edx, 0xffffffff
je 0x10001929
cmp esi, 0xffffffff
je 0x10001929
sub esi, edx
inc esi
push esi
call fcn.1000bab0
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10001929
mov ecx, dword [ebp - 0x1c]
push esi
add ecx, edi
push ecx
push ebx
call fcn.10005530
push edi
call fcn.1000b441
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, esi
mov edx, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10002055
leave
ret
push edi
call fcn.1000b441
jmp 0x10001835
push 0x10
push 0x10020e1c
push 0x10020e24
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call fcn.10005e20
int3
Function at 0x10001950
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10023040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov ebx, edx
push esi
lea ecx, [ebp - 8]
mov dword [ebp - 0x14], eax
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x10001a02
push edi
push esi
call fcn.1000bab0
mov edi, eax
pop ecx
test edi, edi
je 0x10001a01
push edi
push esi
push dword [ebp - 8]
push dword [ebp - 0x14]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x100019fa
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x10020b2c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x100019e7
mov eax, dword [ebp - 0x10]
movzx esi, word [eax + 0xa]
mov dword [ebx], esi
movzx edx, word [eax + 8]
mov dword [ebx + 4], edx
movzx ecx, word [eax + 0xe]
mov dword [ebx + 8], ecx
movzx eax, word [eax + 0xc]
push eax
push ecx
push edx
push esi
push str.File_Version:__u._u._u._u_n
mov dword [ebx + 0xc], eax
call fcn.10001061
add esp, 0x14
jmp 0x100019fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VerQueryValue_failed___lu__n
call fcn.10001061
pop ecx
pop ecx
push edi
call fcn.1000b441
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10002055
leave
ret
Function at 0x10001a10
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x97c
mov eax, dword [0x10023040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x978]
mov dword [ebp - 0x97c], edx
push eax
push 0x202
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10001b1a
push eax
push 1
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001b1a
xor eax, eax
lea edi, [ebp - 0x7e8]
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
push dword [ebp - 0x97c]
mov word [ebp - 0x7e8], di
call fcn.1000b6fa
pop ecx
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x7e6], ax
lea eax, [ebp - 0x7e4]
push eax
push ebx
push edi
call dword [sym.imp.WS2_32.dll_InetPtonW]
cmp eax, 1
jne 0x10001b1a
push 0x10
lea eax, [ebp - 0x7e8]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x10001b1a
xor ebx, ebx
push ebx
push 0x12
push str.GET___HTTP_1.1_r_n_r_n
push esi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x10001b1a
push ebx
mov edi, 0x7d0
lea eax, [ebp - 0x7d8]
push edi
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10001b1a
cmp eax, edi
jae 0x10001b2c
mov byte [ebp + eax - 0x7d8], bl
lea eax, [ebp - 0x7d8]
push str.200_OK
push eax
call fcn.100037e0
pop ecx
pop ecx
test eax, eax
je 0x10001b1a
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x10001b1d
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002055
leave
ret
call fcn.1000218b
int3
Function at 0x10003479
Capabilities:
Get thread local storage value

Disassembly:
push 0xc
mov eax, 0x1001a4fa
call fcn.10019d98
mov edi, ecx
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
and dword [ebp - 4], 0
cmp dword [edi + 8], 0
je 0x1000354f
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x1000354f
cmp byte [ebx + 0x1008], 0
je 0x10003515
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [edi + 8]
cmp dword [ecx + eax], 0
je 0x10003507
cmp dword [ecx + eax], 0x10002609
je 0x10003507
mov eax, dword [ebx + ecx + 8]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10003507
and dword [ebx + ecx + 8], 0
mov eax, dword [edi + 8]
push edi
mov esi, dword [ecx + eax]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
push dword [ebp - 0x14]
mov ecx, esi
call dword [0x1001b1c8]
call esi
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0x10], ecx
cmp ecx, 0x1000
jb 0x100034c0
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
test ecx, ecx
je 0x10003530
mov dword [ecx], eax
jmp 0x10003533
mov dword [edi + 0xc], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x1000353f
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
push ebx
call fcn.1000b441
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x10003556
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
call fcn.10019d75
ret

Function at 0x1000355c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 8
call fcn.1000bab0
mov esi, eax
pop ecx
test esi, esi
je 0x100035d3
mov ecx, dword [ebp + 0xc]
mov dword [esi], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 4], ecx
call fcn.1000b330
xor ebx, ebx
push ebx
push ebx
push esi
push 0x1000344a
push ebx
push ebx
mov dword [eax], ebx
call fcn.1000c715
mov edi, dword [ebp + 8]
add esp, 0x18
mov dword [edi], eax
test eax, eax
jne 0x100035c5
push esi
call fcn.1000b441
pop ecx
call fcn.1000b330
cmp dword [eax], ebx
je 0x100035d3
call fcn.1000b330
xor ecx, ecx
cmp dword [eax], 0xc
sete cl
lea eax, [ecx - 1]
and eax, 3
inc eax
jmp 0x100035d6
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadId]
mov dword [edi + 4], eax
xor eax, eax
jmp 0x100035d6
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10005d08
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10002cf0
mov eax, dword [0x10023040]
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.1000c9d8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1000631a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10006476
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10019fd0
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 + 0x100240b8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1000cbe7
mov ecx, dword [esi*4 + 0x100240b8]
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 0x1000646f
cmp eax, dword [ecx + edi + 0x24]
jne 0x1000646f
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 0x1000646f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000cbe7
add esp, 0x14
test edx, edx
jl 0x1000646f
jg 0x100063e5
test eax, eax
jb 0x1000646f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1000646f
jl 0x100063ff
cmp dword [ebp - 0x1008], eax
ja 0x1000646f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1000641d
test ebx, ebx
je 0x10006456
cmp ecx, edi
jae 0x10006456
mov al, byte [ecx]
cmp al, 0xd
jne 0x10006437
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10006443
cmp byte [ecx + 1], 0xa
jne 0x10006443
inc ecx
jmp 0x10006443
movzx eax, al
movsx eax, byte [eax + 0x10023270]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1000641d
cmp edx, ebx
jne 0x1000641d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10006474
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10002055
leave
ret
Function at 0x1000d358
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 + 0x100240b8]
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 0x1000d398
cmp byte [ebx], 0xa
jne 0x1000d398
or byte [edi + eax + 0x28], 4
jmp 0x1000d39d
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 0x1000d49c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1000d47f
inc eax
cmp dl, 0xd
je 0x1000d3c9
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1000d3ef
cmp eax, ecx
jae 0x1000d3fd
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 0x1000d3b1
jmp 0x1000d49c
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 0x1000d47a
cmp dword [ebp - 0x10], 0
je 0x1000d47a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100240b8]
test byte [eax + edi + 0x28], 0x48
je 0x1000d454
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1000d43f
mov byte [esi], dl
jmp 0x1000d450
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100240b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1000d49c
cmp byte [ebp - 1], 0xa
jne 0x1000d463
cmp esi, ebx
jne 0x1000d463
mov byte [esi], 0xa
jmp 0x1000d49b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1000cc05
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1000d49c
mov byte [esi], 0xd
jmp 0x1000d49b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100240b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1000d499
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1000d49c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1000d4a5
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 + 0x100240b8]
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 0x1000d4eb
cmp word [ebx], dx
jne 0x1000d4eb
or byte [eax + edi + 0x28], 4
jmp 0x1000d4f0
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 0x1000d653
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 0x1000d633
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1000d531
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1000d567
cmp eax, edx
jae 0x1000d575
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 0x1000d50c
jmp 0x1000d653
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 0x1000d62e
cmp dword [ebp - 0x18], 0
je 0x1000d62e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100240b8]
test byte [eax + edi + 0x28], 0x48
je 0x1000d604
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 0x1000d5c8
mov word [esi], cx
jmp 0x1000d5ff
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100240b8]
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 + 0x100240b8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100240b8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1000d653
pop eax
cmp word [ebp - 4], ax
jne 0x1000d614
cmp esi, ebx
jne 0x1000d614
mov word [esi], ax
jmp 0x1000d650
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1000cc05
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1000d653
push 0xd
pop eax
jmp 0x1000d60f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100240b8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1000d64d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1000d653
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1000f646
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001cdbc
push 0x1001cdb4
push str.FlsAlloc
push 0x1f
call fcn.1000f522
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f67a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b1c8]
call esi
jmp 0x1000f680
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000f6c4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001cdcc
push 0x1001cdc4
push str.FlsGetValue
push 0x21
call fcn.1000f522
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f6fb
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b1c8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000f703
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001cdd4
push 0x1001cdcc
push str.FlsSetValue
push 0x22
call fcn.1000f522
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f73d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001b1c8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10011acc
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 0x10011b69
push ebx
push esi
call fcn.10011a95
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.10011a29
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10011b16
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10011b68
push edi
push eax
call fcn.1000df04
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10011b36
call fcn.1000deca
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10011b67
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10011a29
add esp, 0x20
test eax, eax
jne 0x10011b55
push edi
call fcn.1000deca
jmp 0x10011b5d
push ebx
call fcn.1000deca
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