joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f8d0
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a45a0
mov eax, dword fs:[0]
push eax
mov eax, 0x2434
call fcn.00471d70
mov eax, dword [0x4d1a14]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0xf003f
push 0
push 0
mov dword [ebp - 0x243c], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x2440], esi
test esi, esi
je 0x41fafd
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
lea eax, [ebp - 0x242c]
push 0
push eax
lea eax, [ebp - 0x2434]
push eax
push 0
push 0
push 1
push 0x30
push esi
call edi
mov dword [ebp - 0x2438], 0
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x2438]
push eax
lea eax, [ebp - 0x242c]
push eax
lea eax, [ebp - 0x2434]
push eax
push 0x2400
lea eax, [ebp - 0x2410]
push eax
push 1
push 0x30
push esi
call edi
test eax, eax
jne 0x41f99d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x41faf6
xor edi, edi
cmp dword [ebp - 0x242c], edi
jbe 0x41fae2
lea eax, [ebp - 0x2410]
mov dword [ebp - 0x2430], eax
push dword [eax]
call dword [sym.imp.USER32.dll_CharLowerW]
mov esi, eax
push 0x4ab734
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x41fac0
push esi
call fcn.0041fb20
add esp, 4
test al, al
jne 0x41fac0
xor eax, eax
mov dword [ebp - 0x2428], 0
mov word [ebp - 0x2428], ax
mov eax, esi
mov dword [ebp - 0x2418], 0
mov dword [ebp - 0x2414], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fa12
sub eax, edx
lea ecx, [ebp - 0x2428]
sar eax, 1
push eax
push esi
call fcn.004105b0
mov esi, dword [ebp - 0x243c]
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x41fa6e
movups xmm0, xmmword [ebp - 0x2428]
mov ecx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x2418]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [esi + 4], 0x18
mov word [ebp - 0x2428], ax
jmp 0x41fa83
lea ecx, [ebp - 0x2428]
push ecx
push eax
mov ecx, esi
call fcn.00414060
mov ecx, dword [ebp - 0x2414]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 8
jb 0x41fac0
mov edx, dword [ebp - 0x2428]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41fab6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41fb18
push ecx
push edx
call fcn.0047154d
add esp, 8
mov eax, dword [ebp - 0x2430]
inc edi
add eax, 0x24
mov dword [ebp - 0x2430], eax
cmp edi, dword [ebp - 0x242c]
jb 0x41f9b7
mov esi, dword [ebp - 0x2440]
cmp dword [ebp - 0x2434], 0
jbe 0x41faf6
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
jmp 0x41f960
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004717ba
mov esp, ebp
pop ebp
ret
call fcn.0047cc5f
int3
Function at 0x41fbd0
Capabilities:
Check for time delay via gettickcount
Enumerate services
Modify service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4d1a14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 1
push esi
call edi
test eax, eax
jne 0x41fd7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x41fd92
push dword [ebp - 0x2c]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x44], ebx
test ebx, ebx
je 0x41fd92
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
push ebx
push 1
push esi
call edi
test eax, eax
je 0x41fd92
cmp dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
jbe 0x41fd7a
mov eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x38], eax
nop dword [eax]
movups xmm1, xmmword [eax]
movups xmm0, xmmword [eax + 0x10]
movd edi, xmm1
movups xmmword [ebp - 0x58], xmm0
push edi
call dword [sym.imp.USER32.dll_CharLowerW]
mov esi, eax
push 0x4ab734
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x41fd61
push esi
call fcn.0041fb20
add esp, 4
test al, al
jne 0x41fd61
push 0x26
push edi
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test esi, esi
je 0x41fd92
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x41fd92
cmp dword [ebp - 0x24], 1
je 0x41fd4f
nop dword [eax]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x41fd92
cmp dword [ebp - 0x24], 1
je 0x41fd4f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x40]
cmp eax, 0x3a98
ja 0x41fd92
push esi
call ebx
cmp dword [ebp - 0x24], 1
jne 0x41fd10
push dword [ebp - 0x44]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
inc ecx
add eax, 0x24
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
cmp ecx, dword [ebp - 0x30]
jb 0x41fc80
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004717ba
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004717ba
mov esp, ebp
pop ebp
ret 8
Function at 0x421a80
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4d1a14]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add eax, eax
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
add ecx, eax
mov dword [ebp - 0x210], 7
lea edx, [ebp - 0x20c]
cmp edx, ecx
je 0x421aea
sar eax, 1
lea ecx, [ebp - 0x224]
push eax
mov eax, edx
push eax
call fcn.004105b0
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x421b47
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x224]
cmp dword [ebp - 0x210], 8
cmovae ecx, dword [ebp - 0x224]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.Skype
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x210]
cmp ecx, 8
jb 0x421b83
mov edx, dword [ebp - 0x224]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421b79
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421b91
push ecx
push edx
call fcn.0047154d
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004717ba
mov esp, ebp
pop ebp
ret
call fcn.0047cc5f
int3

Function at 0x4258a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x14]
cmp eax, 4
jb 0x4258d4
mov esi, eax
shr esi, 2
nop dword [eax]
mov ecx, dword [edi]
sub eax, 4
xor ecx, dword [edx]
add edi, 4
or ebx, ecx
add edx, 4
sub esi, 1
jne 0x4258c0
mov esi, ebx
mov ecx, ebx
shr esi, 8
xor ebp, ebp
or esi, ebx
shr ecx, 0x10
and esi, 0xff00
or esi, ecx
movzx ecx, bl
shr esi, 8
or esi, ecx
test eax, eax
je 0x4259b4
mov ebx, edi
sub ebx, edx
cmp eax, 8
jb 0x42599a
mov ecx, eax
xorps xmm4, xmm4
and ecx, 0xfffffff8
xorps xmm3, xmm3
mov dword [esp + 0x1c], ecx
lea ecx, [edx + 4]
nop dword [eax]
movd xmm2, dword [edi + ebp]
lea ecx, [ecx + 8]
movd xmm1, dword [ecx - 0xc]
xorps xmm0, xmm0
punpcklbw xmm2, xmm0
add ebp, 8
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [ecx - 8]
por xmm4, xmm2
movd xmm2, dword [ebx + ecx - 8]
punpcklbw xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp ebp, dword [esp + 0x1c]
jb 0x425920
por xmm3, xmm4
movaps xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd ecx, xmm3
or esi, ecx
cmp ebp, eax
jae 0x4259b4
lea edi, [edx + ebp]
sub eax, ebp
nop
movzx edx, byte [ebx + edi]
lea edi, [edi + 1]
movzx ecx, byte [edi - 1]
xor edx, ecx
or esi, edx
sub eax, 1
jne 0x4259a0
pop edi
test esi, esi
pop esi
pop ebp
sete al
pop ebx
ret
Function at 0x425a90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x1c
test eax, eax
je 0x425bd7
mov edx, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x28]
push edi
cmp eax, 4
jb 0x425ad3
mov edi, eax
shr edi, 2
mov ecx, dword [edx]
sub eax, 4
xor ecx, dword [ebx]
add edx, 4
mov dword [esi], ecx
add ebx, 4
add esi, 4
sub edi, 1
jne 0x425ab8
mov dword [esp + 0x38], eax
push ebp
xor ebp, ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
test eax, eax
je 0x425bd3
cmp eax, 0x40
jb 0x425bb8
lea ecx, [ebx - 1]
lea edi, [esi - 1]
add ecx, eax
add edi, eax
cmp esi, ecx
ja 0x425b05
cmp edi, ebx
jae 0x425bb8
lea ecx, [edx - 1]
add ecx, eax
cmp esi, ecx
ja 0x425b16
cmp edi, edx
jae 0x425bb8
mov ecx, eax
lea edi, [esi + 0x20]
mov eax, esi
mov dword [esp + 0x18], edi
sub eax, ebx
and ecx, 0xffffffc0
mov dword [esp + 0x20], eax
mov edi, edx
sub edi, ebx
mov dword [esp + 0x28], ecx
mov eax, edx
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x18]
lea ecx, [ebx + 0x10]
sub eax, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
movups xmm0, xmmword [ecx - 0x10]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [edx + ebp]
lea edi, [edi + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [edi - 0x60], xmm1
movups xmm1, xmmword [eax + ecx - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x30]
movups xmmword [esi + ecx - 0x40], xmm1
movups xmm1, xmmword [ebx + edi - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x20]
movups xmmword [edi - 0x40], xmm1
movups xmm1, xmmword [edx + ebp + 0x30]
add ebp, 0x40
pxor xmm1, xmm0
movups xmmword [edi - 0x30], xmm1
cmp ebp, dword [esp + 0x28]
jb 0x425b51
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], ebp
cmp ebp, eax
jae 0x425bd3
sub edx, ebx
lea edi, [ebx + ebp]
sub esi, ebx
sub eax, ebp
mov cl, byte [edi + edx]
lea edi, [edi + 1]
xor cl, byte [edi - 1]
mov byte [edi + esi - 1], cl
sub eax, 1
jne 0x425bc1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x425be0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
test eax, eax
je 0x425cd3
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
cmp eax, 4
jb 0x425c19
mov edi, eax
shr edi, 2
mov ecx, dword [edx]
sub eax, 4
xor dword [esi], ecx
add edx, 4
add esi, 4
sub edi, 1
jne 0x425c03
mov dword [esp + 0x1c], eax
push ebx
xor ebx, ebx
test eax, eax
je 0x425cd0
cmp eax, 0x40
jb 0x425cbb
lea ecx, [edx - 1]
lea edi, [esi - 1]
add ecx, eax
add edi, eax
cmp esi, ecx
ja 0x425c3f
cmp edi, edx
jae 0x425cbb
push ebp
mov ebp, eax
lea edi, [edx + 0x30]
and ebp, 0xffffffc0
lea ecx, [esi + 0x10]
mov dword [esp + 0x10], ebp
mov ebp, edx
sub ebp, esi
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
nop
movups xmm0, xmmword [ecx - 0x10]
add ebx, 0x40
lea edi, [edi + 0x40]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [edi - 0x70]
pxor xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movups xmm0, xmmword [ecx - 0x40]
movups xmm1, xmmword [eax + ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x30]
movups xmm1, xmmword [edi - 0x50]
pxor xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm0, xmmword [ecx - 0x20]
movups xmm1, xmmword [edi - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp ebx, ebp
jb 0x425c60
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], ebx
pop ebp
cmp ebx, eax
jae 0x425cd0
sub edx, esi
lea edi, [ebx + esi]
sub eax, ebx
mov cl, byte [edi + edx]
lea edi, [edi + 1]
xor byte [edi - 1], cl
sub eax, 1
jne 0x425cc2
pop ebx
pop edi
pop esi
add esp, 8
ret
Function at 0x43ece0
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x4d8098], 0
jne 0x43ecee
call fcn.00457c70
cmp byte [0x4d80a2], 0
je 0x43ed0c
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00458310
add esp, 0x10
ret
jmp fcn.0043d000

Function at 0x43ed20
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a50dd
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4d1a14]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0xf0000000
push 1
push 0
push 0
push esi
mov dword [esi], 0
call edi
test eax, eax
jne 0x43ed96
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 8
push 1
push 0
push str.Crypto_RNG
push esi
mov ebx, eax
call edi
test eax, eax
jne 0x43ed96
push 0x28
push 1
push eax
push str.Crypto_RNG
push esi
call edi
test eax, eax
je 0x43edb4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004717ba
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CryptAcquireContext
lea ecx, [ebp - 0x28]
call fcn.00415e30
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.0043ee80
push 0x4c7548
lea eax, [ebp - 0x50]
push eax
call fcn.00472bf4
int3
Function at 0x43f400
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a62bd
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4d1a14]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x64], ebx
test ebx, ebx
jne 0x43f442
xor esi, esi
jmp 0x43f44d
push ebx
call fcn.00427a80
add esp, 4
mov esi, eax
mov dword [ebp - 0x60], esi
push 1
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0
call fcn.00423080
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x5c], vtable.CryptoPP::NonblockingRng.0
call fcn.0043ed20
lea ecx, [ebp - 0x51]
mov byte [ebp - 4], 1
call fcn.0043f2f0
push esi
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x43f4e8
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 0
mov dword [ebp - 0x5c], vtable.CryptoPP::NonblockingRng.0
test eax, eax
je 0x43f4a5
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [edi]
mov ecx, edi
push ebx
push esi
call dword [eax + 0x10]
mov dword [ebp - 4], 4
test esi, esi
je 0x43f4ca
xor al, al
mov edi, esi
mov ecx, ebx
rep stosb byte es:[edi], al
push esi
call fcn.00427ae0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004717ba
mov esp, ebp
pop ebp
ret 8
push 0x4ae314
lea ecx, [ebp - 0x28]
call fcn.00415e30
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x50]
call fcn.0043ee80
push 0x4c7548
lea eax, [ebp - 0x50]
push eax
call fcn.00472bf4
int3
Function at 0x472596
Capabilities:
Parse pe header

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

Function at 0x48fdf5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b523c
push 0x4b5234
push str.FlsAlloc
push 0x1e
call fcn.0048fc22
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48fe29
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ab298]
call esi
jmp 0x48fe2f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48fe73
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b524c
push 0x4b5244
push str.FlsGetValue
push 0x20
call fcn.0048fc22
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48feaa
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ab298]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4927f3
Capabilities:
Read file on windows

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

Function at 0x492bed
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00471d70
mov eax, dword [0x4d1a14]
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.0049141e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x492c2f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x492d8b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004717d0
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 + 0x4d8d90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00493da3
mov ecx, dword [esi*4 + 0x4d8d90]
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 0x492d84
cmp eax, dword [edi + ecx + 0x24]
jne 0x492d84
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 0x492d84
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00493da3
add esp, 0x14
test edx, edx
jl 0x492d84
jg 0x492cfa
test eax, eax
jb 0x492d84
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x492d84
jl 0x492d14
cmp dword [ebp - 0x1008], eax
ja 0x492d84
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x492d32
test ebx, ebx
je 0x492d6b
cmp ecx, edi
jae 0x492d6b
mov al, byte [ecx]
cmp al, 0xd
jne 0x492d4c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x492d58
cmp byte [ecx + 1], 0xa
jne 0x492d58
inc ecx
jmp 0x492d58
movzx eax, al
movsx eax, byte [eax + 0x4d1ca8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x492d32
cmp edx, ebx
jne 0x492d32
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x492d89
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004717ba
leave
ret
Function at 0x49325b
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 + 0x4d8d90]
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 0x49329b
cmp byte [ebx], 0xa
jne 0x49329b
or byte [eax + edi + 0x28], 4
jmp 0x4932a0
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49339e
mov al, byte [edx]
cmp al, 0x1a
je 0x493380
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4932cf
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4932f4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4932fe
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 0x4932b1
jmp 0x49339e
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 0x49337b
cmp dword [ebp - 0xc], 0
je 0x49337b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d8d90]
test byte [eax + edi + 0x28], 0x48
je 0x493355
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x493340
mov byte [esi], dl
jmp 0x493351
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d8d90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49339e
cmp byte [ebp - 1], 0xa
jne 0x493364
cmp esi, ebx
jne 0x493364
mov byte [esi], 0xa
jmp 0x49339d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00493dc1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49339e
mov byte [esi], 0xd
jmp 0x49339d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d8d90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49339a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49339e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4933a7
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 + 0x4d8d90]
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 0x4933ea
cmp word [esi], dx
jne 0x4933ea
or byte [edi + eax + 0x28], 4
jmp 0x4933ef
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 0x493528
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 0x493508
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x493431
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x493467
cmp eax, edx
jae 0x493473
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 0x493409
jmp 0x493528
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 0x493504
cmp dword [ebp - 0x14], 0
je 0x493504
mov eax, dword [ebx*4 + 0x4d8d90]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4934dc
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x493522
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d8d90]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x4d8d90]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d8d90]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x493525
pop ebx
cmp word [ebp - 4], bx
jne 0x4934ed
cmp esi, dword [ebp + 0xc]
jne 0x4934ed
mov word [esi], bx
jmp 0x493525
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00493dc1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x493528
push 0xd
jmp 0x493521
mov ecx, dword [ebx*4 + 0x4d8d90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49351f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x493528
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