joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51d6a0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x51d6e9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x51db60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57ba60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0051d710
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0051d790
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0051d790
lea ecx, [esi + 0xc]
call fcn.0056ae97
lea ecx, [esi + 0x10]
call fcn.0056ae97
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0051ed20
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0051ed20
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0051ed20
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0056af0c
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0056af0c
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x521340
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x7662cc]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x521353
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x521394
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x766374]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x5213c6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x5213ca
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x5213bb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x5213e8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x5213ec
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x5213dd
xor ecx, ecx
mov eax, 0x7662dc
xor ebx, ebx
mov bl, byte [ecx + 0x766384]
cmp byte [esp + ebx + 0x14], 0
je 0x521417
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x76639c]
cmp byte [esp + ebx + 0x14], 0
je 0x52142e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x5213fe
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x521387
lea edx, [esp + 0x84]
push edx
call fcn.00521470
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x5289c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x873840]
xor edx, edx
cmp eax, edx
jne 0x5289e6
xor eax, eax
mov byte [eax + 0x873740], al
inc eax
cmp eax, 0x100
jl 0x5289ce
mov dword [0x873840], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x873740
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x528a77
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x528a4a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x528a18
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x528af0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x528b43
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x528b2a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x52f4c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57be7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0052fde0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x742b74
call fcn.0056ac4d
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x52f553
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0056ac4d
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x52f54c
push 0
mov ecx, eax
call fcn.005265f0
mov dword [esi + 0xc], eax
jmp 0x52f555
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x52f555
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x553eb0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x553ec0
mov esi, 1
push esi
call fcn.0053e707
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x553f12
call fcn.005403b1
mov edi, eax
call fcn.00556a00
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x553ef6
mov edx, dword [0x7748a8]
mov dword [0x7748a4], edx
test al, 0x18
je 0x553f07
push esi
push 0x24
push 5
call fcn.00557250
add esp, 0xc
test edi, edi
je 0x553f2d
push 1
call fcn.00541605
test byte [esp + 0x14], 0x20
je 0x553f2d
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x555030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x555124
cmp byte [edx], 0
je 0x555117
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.00554fb0
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.00554fb0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00554f20
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x5550e1
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.00554f60
fmul qword [0x746bd8]
push ecx
fstp qword [esp]
call fcn.0053d078
fadd qword [0x746bd0]
add esp, 8
call fcn.0053d148
mov byte [ebx], al
inc ebx
dec edi
jne 0x5550b4
lea ecx, [esp + 0x20]
push ecx
call fcn.00554f60
fmul qword [0x746bd8]
push ecx
fstp qword [esp]
call fcn.0053d078
add esp, 8
call fcn.0053d148
cmp esi, ebx
je 0x55510d
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x555106
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5554f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x555520
mov byte [edi + esi], 2
jmp 0x555557
test al, 4
je 0x55552a
mov byte [edi + esi], 0xd
jmp 0x555557
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x555543
mov byte [edi + esi], 2
jmp 0x555557
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x555553
mov byte [edi + esi], 0x19
jmp 0x555557
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x555507
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x5555cb
cmp dl, 0xd
je 0x5555cb
xor edx, edx
jmp 0x5555d0
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x5555bb
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x5555f0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.00553eb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x555611
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.00556c40
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x555636
push esi
call fcn.00553f40
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.00549f29
push ebx
push edi
mov ebp, eax
call fcn.00556cb0
push 0x555670
push ebp
push esi
call fcn.00557fe0
push esi
call fcn.00553f40
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x556970
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x893140
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x893068]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x5569eb
push 0x4c
push 1
call fcn.00540113
mov esi, eax
add esp, 8
test esi, esi
jne 0x5569b3
push 0x893140
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x893068]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x885a2c]
inc eax
lea edx, [esi + 0xc]
mov dword [0x885a2c], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.0055a4f0
add esp, 8
mov byte [esi + 0x3c], 1
push 0x893140
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x556e70
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.005403b1
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.00549f29
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x556f6a
call fcn.005403b1
cmp dword [eax], 0
je 0x556eb7
call fcn.005403b1
mov ebp, dword [eax]
jmp 0x556eba
or ebp, 0xffffffff
call fcn.00556a00
test esi, esi
mov dword [eax], ebp
jne 0x556ecf
call fcn.005403b1
cmp dword [eax], 4
je 0x556f1f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x556f02
cmp esi, 0xffffffff
je 0x556f44
test al, 6
je 0x556f02
call fcn.00556a00
mov ecx, dword [eax]
push ecx
push ebx
call fcn.0055a520
add esp, 4
push eax
push 0x24
push 9
call fcn.00557250
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x556f62
test al, 6
je 0x556f10
test ah, 2
je 0x556f62
test esi, esi
jbe 0x556f6e
test ah, 2
je 0x556f6e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.005403b1
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.00549f29
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x556f6a
jmp 0x556ea4
call fcn.00556a00
mov eax, dword [eax]
push eax
push ebx
call fcn.0055a520
add esp, 4
push eax
push 0x24
push 2
call fcn.00557250
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x556f7b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x556f84
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x567df6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x567e16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0054033e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x567e39
test byte [esp + 8], 2
je 0x567e39
call fcn.005403b1
mov dword [eax], 0xd
call fcn.005403ba
mov dword [eax], 5
jmp 0x567e12
xor eax, eax
ret
Function at 0x56d2dd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x56d315
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0056b367
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0056b33f
jmp 0x56d321
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x56e9cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x56ea11
call fcn.00574ffb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x56ea11
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x56ea08
xor eax, eax
jmp 0x56ea19
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0056ea1f
pop edi
pop esi
pop ebx
ret 4

Function at 0x57552b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x575559
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x575577
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00575491
jmp 0x575577
mov eax, dword [esi + 0x14]
test eax, eax
je 0x575577
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00575491
test edi, edi
mov eax, edi
jne 0x575561
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x100a4f30
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret

Function at 0x100a4f50
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret
Function at 0x10150c9f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10150cde
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10150cde
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10150cde
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10150cde
cmp dword [ecx + 0x74], 0xe
jbe 0x10150cde
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x101533c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101533ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101533ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10153814
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10162a80
push 0x10162a78
push str.FlsAlloc
push 0x1f
call fcn.10153af7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10153848
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1015384e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10153892
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10162a90
push 0x10162a88
push str.FlsGetValue
push 0x21
call fcn.10153af7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101538c9
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x101538d1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10162a98
push 0x10162a90
push str.FlsSetValue
push 0x22
call fcn.10153af7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1015390b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x101577a0
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 0x1015783d
push ebx
push esi
call fcn.10157840
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.101576a4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x101577ea
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1015783c
push edi
push eax
call fcn.10155721
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1015780a
call fcn.10154dc4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1015783b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101576a4
add esp, 0x20
test eax, eax
jne 0x10157829
push edi
call fcn.10154dc4
jmp 0x10157831
push ebx
call fcn.10154dc4
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 0x1015df74
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 + 0x10171838]
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 0x1015dfb4
cmp byte [ebx], 0xa
jne 0x1015dfb4
or byte [edi + eax + 0x28], 4
jmp 0x1015dfb9
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 0x1015e0b8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1015e09b
inc eax
cmp dl, 0xd
je 0x1015dfe5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1015e00b
cmp eax, ecx
jae 0x1015e019
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 0x1015dfcd
jmp 0x1015e0b8
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 0x1015e096
cmp dword [ebp - 0x10], 0
je 0x1015e096
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10171838]
test byte [eax + edi + 0x28], 0x48
je 0x1015e070
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1015e05b
mov byte [esi], dl
jmp 0x1015e06c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10171838]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1015e0b8
cmp byte [ebp - 1], 0xa
jne 0x1015e07f
cmp esi, ebx
jne 0x1015e07f
mov byte [esi], 0xa
jmp 0x1015e0b7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1015d698
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1015e0b8
mov byte [esi], 0xd
jmp 0x1015e0b7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10171838]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1015e0b5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1015e0b8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1015e0c1
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 + 0x10171838]
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 0x1015e107
cmp word [ebx], dx
jne 0x1015e107
or byte [eax + edi + 0x28], 4
jmp 0x1015e10c
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 0x1015e26f
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 0x1015e24f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1015e14d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1015e183
cmp eax, edx
jae 0x1015e191
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 0x1015e128
jmp 0x1015e26f
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 0x1015e24a
cmp dword [ebp - 0x18], 0
je 0x1015e24a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10171838]
test byte [eax + edi + 0x28], 0x48
je 0x1015e220
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 0x1015e1e4
mov word [esi], cx
jmp 0x1015e21b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10171838]
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 + 0x10171838]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10171838]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1015e26f
pop eax
cmp word [ebp - 4], ax
jne 0x1015e230
cmp esi, ebx
jne 0x1015e230
mov word [esi], ax
jmp 0x1015e26c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1015d698
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1015e26f
push 0xd
pop eax
jmp 0x1015e22b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10171838]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1015e269
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1015e26f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret