joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46cd80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x4b9014]
xor eax, ebp
mov dword [esp + 0x18], eax
mov edi, dword [ecx + 0x38]
test edi, edi
jne 0x46ce45
mov esi, ecx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0x9ffffff
lea edx, [esp + 0xc]
cmp edx, str.discarded
ja 0x46cdd7
lea eax, [esp + 0x15]
cmp eax, str.discarded
ja 0x46ce5c
mov dword [esp + 0x10], 0x65647261
mov dword [esp + 0xc], 0x63736964
mov word [esp + 0x14], 0x64
mov edi, esp
mov ecx, esi
push edx
push edi
call fcn.0046ccf0
push 0x48
call fcn.004729fc
add esp, 4
mov ebx, eax
mov ecx, eax
push edi
push dword [esi + 0x28]
lea eax, [esp + 0x14]
push eax
call fcn.0046cfb0
mov edi, dword [esi + 0x38]
mov dword [esi + 0x38], ebx
test edi, edi
je 0x46ce2f
mov ecx, edi
call fcn.0046d0a0
push edi
call fcn.00472a2c
add esp, 4
cmp byte [esp + 0x17], 0
jns 0x46ce42
push dword [esp + 0xc]
call fcn.00472a2c
add esp, 4
mov edi, dword [esi + 0x38]
mov ecx, dword [esp + 0x18]
xor ecx, ebp
call fcn.00473933
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
push str.char_traits::copy_overlapped_range
push str.__s2_____s1____s2_____s1__n
push 0xec
push str....._buildtools_third_partylibc_trunkinclude__stringchar_traits.h
push str._s:_d:_assertion__s_failed:__s
call fcn.00414a00
int3
Function at 0x46e780
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4b9014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
jne 0x46e89d
mov dword [ebp - 0x14], 0x46e8c0
lea eax, [ebp - 0x14]
push 0
push eax
push 0x46e760
push 0x4ce55c
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x46e8b1
cmp dword [0x4ce560], 0
jne 0x46e89d
push dword [0x4ce564]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46e89d
mov esi, eax
push 0x4ce568
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edi, dword [0x4ce56c]
mov ebx, dword [0x4ce570]
mov eax, dword [0x4ce574]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4ce578]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4ce57c]
mov dword [ebp - 0x24], eax
push 0x4ce568
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test edi, edi
je 0x46e83b
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov ecx, edi
call dword [section..00cfg]
push dword [ebp - 0x18]
call edi
add esp, 4
test ebx, ebx
je 0x46e850
mov edi, dword [esi + 4]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x46e866
mov edi, dword [esi + 8]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x20]
test ecx, ecx
mov ebx, dword [ebp - 0x24]
je 0x46e87f
mov edi, dword [esi + 0xc]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
test ebx, ebx
je 0x46e894
mov edi, dword [esi + 0x10]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
push esi
call fcn.00461960
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00473933
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
call fcn.00484160
int3
Function at 0x4720b0
Capabilities:
Reference processor manufacturer constants

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, ecx
xor eax, eax
xor ecx, ecx
cpuid
test eax, eax
jle 0x4721bb
mov esi, eax
mov dword [ebp - 0x14], edi
mov eax, 1
xor ecx, ecx
cpuid
mov edi, eax
mov dword [ebp - 0x10], ecx
mov ecx, 0
cmp esi, 7
mov ebx, 0
jb 0x472101
mov eax, 7
xor ecx, ecx
mov esi, edx
cpuid
mov edx, esi
and ebx, 0x20
shr cl, 3
and cl, 1
mov esi, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ecx], edi
mov eax, edi
and eax, 0xf
mov dword [ecx + 8], eax
shr edi, 0xc
and edi, 3
mov dword [ecx + 4], edi
mov edi, ecx
mov eax, edx
shr eax, 0x17
and al, 1
mov byte [ecx + 0xc], al
mov eax, edx
shr eax, 0x19
and al, 1
mov byte [ecx + 0xd], al
shr edx, 0x1a
and dl, 1
mov byte [ecx + 0xe], dl
mov ecx, dword [ebp - 0x10]
mov eax, ecx
and al, 1
mov byte [edi + 0xf], al
mov eax, ecx
shr eax, 9
and al, 1
mov byte [edi + 0x10], al
mov eax, ecx
shr eax, 0x13
and al, 1
mov byte [edi + 0x11], al
mov eax, ecx
shr eax, 0x14
and al, 1
mov byte [edi + 0x12], al
mov eax, ecx
shr eax, 0x17
and al, 1
mov byte [edi + 0x13], al
mov eax, ecx
shr eax, 0x1f
mov byte [edi + 0x1a], al
mov eax, ecx
not eax
test eax, 0x1c000000
jne 0x47218b
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
jmp 0x47218d
xor eax, eax
mov byte [edi + 0x14], al
mov edx, dword [ebp - 0x10]
mov ecx, edx
shr ecx, 0x19
and cl, 1
mov byte [edi + 0x17], cl
shr edx, 0xc
and dl, 1
mov byte [edi + 0x15], dl
test al, al
setne al
test ebx, ebx
setne cl
and cl, al
mov byte [edi + 0x16], cl
mov eax, esi
mov byte [edi + 0x18], al
mov eax, 0x80000000
xor ecx, ecx
cpuid
cmp eax, 0x80000006
jle 0x4721e0
mov eax, 0x80000007
xor ecx, ecx
cpuid
and dh, 1
mov byte [edi + 0x19], dh
test dh, dh
jne 0x472212
jmp 0x4721e7
mov dh, byte [edi + 0x19]
test dh, dh
jne 0x472212
cmp byte [edi + 0x1a], 0
je 0x472212
mov eax, 0x40000000
xor ecx, ecx
cpuid
cmp ebx, 0x7263694d
jne 0x472212
cmp ecx, 0x666f736f
jne 0x472212
cmp edx, 0x76482074
jne 0x472212
mov byte [edi + 0x19], 1
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x472860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x4b9014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x4728dc
mov eax, dword [ebp + 8]
cmp dword [0x4ce5b4], eax
jg 0x4728dc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
mov dword [ebp - 0x1c], esi
add esi, ebx
nop dword [eax]
cmp ebx, esi
jae 0x4728cb
mov dword [ebp - 0x18], 0
mov eax, esi
sub eax, ebx
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4728cb
mov eax, dword [ebp - 0x18]
add ebx, eax
test eax, eax
jne 0x4728a0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
mov eax, dword [ebp + 0xc]
je 0x4728dc
cmp byte [ecx + eax - 1], 0xa
jne 0x4728f4
cmp dword [ebp + 8], 3
je 0x472941
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00473933
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 0x4a9e85
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
lea ebx, [ebp - 0x14]
nop word cs:[eax + eax]
cmp edi, 0x4a9e86
jae 0x4728dc
mov dword [ebp - 0x14], 0
mov eax, 0x4a9e86
sub eax, edi
push 0
push ebx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4728dc
mov eax, dword [ebp - 0x14]
add edi, eax
test eax, eax
jne 0x472910
jmp 0x4728dc
int3
Function at 0x47f6e7
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0047f88a
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x47f85f
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x47f85f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x47f80e
jg 0x47f740
test eax, eax
je 0x47f804
push 1
push 0x1000
call fcn.00443110
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x47f766
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x47f7fb
push 0x8000
push ebx
call fcn.00484223
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x47f792
jg 0x47f78d
cmp ecx, 0x1000
jb 0x47f792
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0048713f
add esp, 0x10
cmp eax, 0xffffffff
je 0x47f7d7
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x47f78d
jl 0x47f7be
test ecx, ecx
jne 0x47f77f
push dword [ebp - 0xc]
push ebx
call fcn.00484223
push esi
call fcn.00443090
add esp, 0xc
xor edi, edi
jmp 0x47f870
cmp byte [edi + 0x24], 0
je 0x47f7ee
cmp dword [edi + 0x20], 5
jne 0x47f7ee
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x47f7f9
mov edi, dword [edi + 0x18]
jmp 0x47f7fb
xor edi, edi
push esi
call fcn.00443090
pop ecx
jmp 0x47f870
test ecx, ecx
jg 0x47f7d0
jl 0x47f80e
test eax, eax
jae 0x47f7d0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00483327
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x47f831
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x47f7d0
jmp 0x47f868
push ebx
call fcn.0048267a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x47f7d0
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x47f870
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x47f86d
mov edi, dword [edi + 0x18]
jmp 0x47f870
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00483327
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x483d3c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x4bd790]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x483d7c
cmp byte [ebx], 0xa
jne 0x483d7c
or byte [eax + edi + 0x28], 4
jmp 0x483d81
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x483e7f
mov al, byte [edx]
cmp al, 0x1a
je 0x483e61
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x483db0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x483dd5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x483ddf
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x483d92
jmp 0x483e7f
push 0
lea eax, [ebp - 0xc]
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 0x483e5c
cmp dword [ebp - 0xc], 0
je 0x483e5c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4bd790]
test byte [eax + edi + 0x28], 0x48
je 0x483e36
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x483e21
mov byte [esi], dl
jmp 0x483e32
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4bd790]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x483e7f
cmp byte [ebp - 1], 0xa
jne 0x483e45
cmp esi, ebx
jne 0x483e45
mov byte [esi], 0xa
jmp 0x483e7e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00483327
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x483e7f
mov byte [esi], 0xd
jmp 0x483e7e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4bd790]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x483e7b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x483e7f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x483e88
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4bd790]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x483ecb
cmp word [esi], dx
jne 0x483ecb
or byte [edi + eax + 0x28], 4
jmp 0x483ed0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x484009
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x483fe9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x483f12
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x483f48
cmp eax, edx
jae 0x483f54
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x483eea
jmp 0x484009
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x483fe5
cmp dword [ebp - 0x14], 0
je 0x483fe5
mov eax, dword [ebx*4 + 0x4bd790]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x483fbd
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x484003
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4bd790]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x4bd790]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4bd790]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x484006
pop ebx
cmp word [ebp - 4], bx
jne 0x483fce
cmp esi, dword [ebp + 0xc]
jne 0x483fce
mov word [esi], bx
jmp 0x484006
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00483327
add esp, 0x10
cmp word [ebp - 4], bx
je 0x484009
push 0xd
jmp 0x484002
mov ecx, dword [ebx*4 + 0x4bd790]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x484000
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x484009
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48915b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00473d50
mov eax, dword [0x4b9014]
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.00482622
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x48919d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4892f9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00493ae0
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 + 0x4bd790]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00483385
mov ecx, dword [esi*4 + 0x4bd790]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4892f2
cmp eax, dword [edi + ecx + 0x24]
jne 0x4892f2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4892f2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00483385
add esp, 0x14
test edx, edx
jl 0x4892f2
jg 0x489268
test eax, eax
jb 0x4892f2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4892f2
jl 0x489282
cmp dword [ebp - 0x1008], eax
ja 0x4892f2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4892a0
test ebx, ebx
je 0x4892d9
cmp ecx, edi
jae 0x4892d9
mov al, byte [ecx]
cmp al, 0xd
jne 0x4892ba
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4892c6
cmp byte [ecx + 1], 0xa
jne 0x4892c6
inc ecx
jmp 0x4892c6
movzx eax, al
movsx eax, byte [eax + 0x4b9280]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4892a0
cmp edx, ebx
jne 0x4892a0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4892f7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00473933
leave
ret

Function at 0x48d9f6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a0708
push 0x4a0700
push 0x4a0708
push 0x1e
call fcn.0048df52
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48da2a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x48da30
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48da74
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a072c
push 0x4a0724
push 0x4a072c
push 0x20
call fcn.0048df52
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48daab
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 0x4928f2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4b9014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49293d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00492a68
test al, al
jne 0x492937
sub edx, 2
cmp edx, edi
jne 0x49291d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49295f
lea eax, [edi + 2]
cmp edx, eax
je 0x49295f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049283e
add esp, 0x10
jmp 0x492a59
push esi
lea ecx, [ebp - 0x255]
call fcn.00492a68
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4929a2
push dword [ebp - 0x25c]
jmp 0x49294f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4929df
cmp word [ebp - 0x226], 0
je 0x492a00
cmp word [ebp - 0x226], ax
jne 0x4929df
cmp word [ebp - 0x224], 0
je 0x492a00
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049283e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x492a4c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4929b9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x492a34
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x492a59
push 0x492a90
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0048a000
add esp, 0x10
jmp 0x492a29
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00473933
leave
ret
Function at 0x493c41
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 0x493cde
push ebx
push esi
call fcn.00493d2f
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.00493b8a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x493c8b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x493cdd
push edi
push eax
call fcn.00443040
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x493cab
call fcn.00443090
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x493cdc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00493b8a
add esp, 0x20
test eax, eax
jne 0x493cca
push edi
call fcn.00443090
jmp 0x493cd2
push ebx
call fcn.00443090
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 0x493ce1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x493cf2
pop esi
ret
push ebx
push edi
push esi
call fcn.00493d2f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00443040
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x493d1a
push ebx
push esi
push edi
call fcn.00475a10
add esp, 0xc
push 0
call fcn.00443090
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x493d71
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00493fda

Function at 0x496b67
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00496b72
Function at 0x40150c
Capabilities:
Get number of processors

Disassembly:
mov ecx, 0x5083b8
jmp 0x401500
mov eax, 0x4c7048
call fcn.00459274
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00401612
mov eax, dword [0x5005e0]
lea ecx, [esi + 0xa0]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ecx], eax
mov eax, dword [0x5005e0]
mov dword [esi + 0xb0], eax
push 1
mov dword [esi], 0x4ce7d8
or dword [esi + 0x20], 0xffffffff
or dword [esi + 0x1c], 0xffffffff
pop edi
mov dword [esi + 0x28], ebx
push 0xa
mov dword [esi + 0x24], ebx
pop eax
mov byte [ebp - 4], 2
push 0x64
mov dword [esi + 0x58], eax
mov dword [esi + 0x60], eax
pop eax
push 0x5083b4
mov dword [esi + 0x2c], 2
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], ebx
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], 0x3e8
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], 0x100
mov dword [esi + 0x84], 0x90
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x9c], ebx
call fcn.004b186d
push 0x5083b4
lea ecx, [esi + 0xb0]
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
call fcn.004b186d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret