joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471720
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0128
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x51a500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], 0
push 0x288
call fcn.004ba86b
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x288
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x471797
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b87d6
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004ba86b
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x4718f9
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x190]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x194
push edx
lea ecx, [ebp - 0x28]
call fcn.00422080
mov dword [ebp - 4], 0
push 1
lea ecx, [ebp - 0xfc]
call fcn.00460ba0
mov byte [ebp - 4], 1
push 0x473340
lea ecx, [ebp - 0xfc]
call fcn.00470fe0
mov dword [ebp - 0x44], eax
push 0x4736a0
mov ecx, dword [ebp - 0x44]
call fcn.00470fe0
mov dword [ebp - 0x4c], eax
push 0x30
lea eax, [ebp - 0x35]
push eax
call fcn.004707e0
add esp, 8
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0046f960
add esp, 8
mov dword [ebp - 0x30], 0
jmp 0x47183c
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x28]
call fcn.004024c0
cmp dword [ebp - 0x30], eax
jae 0x4718b0
push 0
push 2
lea ecx, [ebp - 0x64]
push ecx
call fcn.004a52d6
add esp, 0xc
push eax
lea edx, [ebp - 0xfc]
push edx
call fcn.0046f990
add esp, 8
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403050
movsx ecx, byte [eax]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
push edx
mov ecx, dword [ebp - 0x54]
call fcn.00470c20
lea ecx, [ebp - 0x28]
call fcn.004024c0
sub eax, 1
cmp dword [ebp - 0x30], eax
jae 0x4718ae
push 0x4e84f4
lea eax, [ebp - 0xfc]
push eax
call fcn.0046f9c0
add esp, 8
jmp 0x471833
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b87d6
add esp, 4
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0xfc]
call fcn.00464350
mov eax, dword [ebp - 0x34]
or eax, 1
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xfc]
call fcn.00461d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004031d0
mov eax, dword [ebp + 8]
jmp 0x47191e
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b87d6
add esp, 4
push 0x4e8417
mov ecx, dword [ebp + 8]
call fcn.00403260
mov edx, dword [ebp - 0x34]
or edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6675
mov esp, ebp
pop ebp
ret
Function at 0x4782f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e07a4
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x51a500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x138], 0
push str.unknow
mov ecx, dword [ebp + 8]
call fcn.00403260
mov dword [ebp - 0x13c], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x138]
or eax, 1
mov dword [ebp - 0x138], eax
push 0x11c
push 0
lea ecx, [ebp - 0x12c]
push ecx
call fcn.004a8ae0
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4784c0
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x134], ecx
cmp dword [ebp - 0x130], 5
jne 0x4783c6
cmp dword [ebp - 0x134], 1
jne 0x4783c6
push str.winxp
mov ecx, dword [ebp + 8]
call fcn.0040a8c0
jmp 0x4784c0
cmp dword [ebp - 0x130], 6
jne 0x4783ea
cmp dword [ebp - 0x134], 0
jne 0x4783ea
push str.winvista
mov ecx, dword [ebp + 8]
call fcn.0040a8c0
jmp 0x4784c0
cmp dword [ebp - 0x130], 6
jne 0x47840e
cmp dword [ebp - 0x134], 1
jne 0x47840e
push str.win7
mov ecx, dword [ebp + 8]
call fcn.0040a8c0
jmp 0x4784c0
cmp dword [ebp - 0x130], 6
jne 0x478432
cmp dword [ebp - 0x134], 2
jne 0x478432
push str.win8
mov ecx, dword [ebp + 8]
call fcn.0040a8c0
jmp 0x4784c0
cmp dword [ebp - 0x130], 6
jne 0x478453
cmp dword [ebp - 0x134], 3
jne 0x478453
push str.win8.1
mov ecx, dword [ebp + 8]
call fcn.0040a8c0
jmp 0x4784c0
cmp dword [ebp - 0x128], 0xa
jne 0x478480
cmp dword [ebp - 0x124], 0
jne 0x478480
cmp dword [ebp - 0x120], 0x55f0
jb 0x478480
push 0x4e9d30
mov ecx, dword [ebp + 8]
call fcn.0040a8c0
jmp 0x4784c0
cmp dword [ebp - 0x130], 0xa
jne 0x4784a1
cmp dword [ebp - 0x134], 0
jne 0x4784a1
push str.win10
mov ecx, dword [ebp + 8]
call fcn.0040a8c0
jmp 0x4784c0
cmp dword [ebp - 0x130], 0xa
jne 0x4784c0
cmp dword [ebp - 0x134], 0
jle 0x4784c0
push str.win11
mov ecx, dword [ebp + 8]
call fcn.0040a8c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6675
mov esp, ebp
pop ebp
ret

Function at 0x4784e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov byte [ebp - 1], 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [ebp - 0x28]
cmp ecx, 9
je 0x478506
movzx edx, word [ebp - 0x28]
cmp edx, 0xc
jne 0x47850a
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x47eb00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
cmp dword [ebp + 8], 0
jne 0x47eb10
xor eax, eax
jmp 0x47eb8a
push 0x44
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.004a8ae0
add esp, 0xc
mov dword [ebp - 0x54], 0x44
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x47eb5f
xor eax, eax
jmp 0x47eb8a
cmp dword [ebp + 0x10], 0
je 0x47eb71
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x47eb90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
cmp dword [ebp + 8], 0
jne 0x47eba0
xor eax, eax
jmp 0x47ec18
push 0x44
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.004a8ae0
add esp, 0xc
mov dword [ebp - 0x54], 0x44
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x47ebed
xor eax, eax
jmp 0x47ec18
cmp dword [ebp + 0xc], 0
je 0x47ebff
push 0xffffffffffffffff
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x48aee0
Capabilities:
Check if file exists
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1e75
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x51a500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x40], 1
jne 0x48af8b
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4eb544
mov edx, dword [ebp + 0xc]
add edx, 0x4c
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.00485760
add esp, 0xc
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x60]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00485720
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004031d0
lea ecx, [ebp - 0x28]
call fcn.00403040
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x48af81
lea ecx, [ebp - 0x28]
call fcn.00403040
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x28]
call fcn.004031d0
jmp 0x48affd
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x40], 0
jne 0x48affd
push 0
lea edx, [ebp - 0x40]
push edx
call fcn.00402190
add esp, 8
mov dword [ebp - 4], 1
push 0x4eb548
lea ecx, [ebp - 0x40]
call fcn.004146d0
lea ecx, [ebp - 0x40]
call fcn.00402760
push eax
push 0
push 0x4eb574
push str.login_run
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x48afee
push str.JiebangbangService
call fcn.004515f0
push str.JiebangbangService
call fcn.00451560
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402650
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6675
mov esp, ebp
pop ebp
ret 8
Function at 0x48b600
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1efd
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x51a500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x28]
call fcn.004026f0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x5c]
add ecx, 0x28
push ecx
push 0x4eb348
mov edx, dword [ebp - 0x5c]
add edx, 0x10
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.0044deb0
add esp, 0xc
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x64]
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.0042ee30
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.00402650
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00434620
mov edx, dword [eax]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402770
mov edx, dword [eax]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00434620
mov edx, dword [eax]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x7c], eax
push fcn.004bf6a7
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0xa4]
push ecx
call fcn.00488c70
add esp, 0x14
lea edx, [ebp - 0xa8]
push edx
lea ecx, [ebp - 0x40]
call fcn.00434620
mov eax, dword [eax]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x8c], ecx
lea edx, [ebp - 0xac]
push edx
lea ecx, [ebp - 0x40]
call fcn.00402770
mov eax, dword [eax]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x90], ecx
lea edx, [ebp - 0xb0]
push edx
lea ecx, [ebp - 0x40]
call fcn.00434620
mov eax, dword [eax]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x94], ecx
push fcn.004bf6a7
mov edx, dword [ebp - 0x8c]
push edx
mov eax, dword [ebp - 0x90]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
lea edx, [ebp - 0xb4]
push edx
call fcn.00488c70
add esp, 0x14
push 0
lea ecx, [ebp - 0x40]
call fcn.00402760
push eax
lea ecx, [ebp - 0x28]
call fcn.00420fd0
cmp eax, 0xffffffff
je 0x48b7bb
push 0
push 0x4eb34c
lea ecx, [ebp - 0x28]
call fcn.00420fd0
cmp eax, 0xffffffff
jne 0x48b7bb
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402650
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6675
mov esp, ebp
pop ebp
ret 8
Function at 0x48b950
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1f8b
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x51a500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x454], ecx
push 0
lea eax, [ebp - 0x438]
push eax
call fcn.00402190
add esp, 8
mov dword [ebp - 4], 0
push 0x4eb38c
lea ecx, [ebp - 0x438]
push ecx
lea edx, [ebp - 0x450]
push edx
call fcn.0044deb0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.00402760
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48ba0b
push str.jiebangbanglog
lea ecx, [ebp - 0x438]
call fcn.004146d0
lea ecx, [ebp - 0x438]
call fcn.00402760
push eax
call fcn.00402450
add esp, 4
lea ecx, [ebp - 0x438]
call fcn.00402760
push eax
push 0x4eb3d0
call fcn.00477e10
add esp, 8
mov eax, dword [ebp - 0x454]
mov dword [eax + 8], 0
lea ecx, [ebp - 0x464]
push ecx
call fcn.00488ac0
add esp, 4
mov dword [ebp - 0x460], eax
mov edx, dword [ebp - 0x460]
push edx
mov ecx, dword [ebp - 0x454]
add ecx, 0x44
call fcn.00487a40
lea ecx, [ebp - 0x464]
call fcn.00489920
mov dword [ebp - 0x45c], 1
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.004a8ae0
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.004a8ae0
add esp, 0xc
mov dword [ebp - 0x458], 0x208
lea edx, [ebp - 0x458]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x45c]
push ecx
push str.InstallPath
push 0x4eb3f0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x458], 0x208
lea edx, [ebp - 0x458]
push edx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x45c]
push ecx
push 0x4eb41c
push 0x4eb440
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp - 0x454]
add ecx, 0x14
call fcn.00402620
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0x454]
add ecx, 0x2c
call fcn.00402620
mov ecx, dword [ebp - 0x454]
mov byte [ecx + 0x48], 1
call fcn.0048b920
mov ecx, eax
call fcn.00458e80
mov ecx, eax
call fcn.0048f130
call fcn.0048b920
mov ecx, eax
call fcn.00458e80
mov ecx, eax
call fcn.0048ee70
movzx edx, al
mov dword [ebp - 0x468], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x450]
call fcn.00402650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.00402650
mov eax, dword [ebp - 0x468]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6675
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a5509
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4a5530
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4a5533
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004a54e5
pop esi
leave
ret 8

Function at 0x4a7704
Capabilities:
Parse pe header

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

Function at 0x4c8b0e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f5434
push 0x4f542c
push str.FlsAlloc
push 0x1f
call fcn.004c8939
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c8b42
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e5730]
call esi
jmp 0x4c8b48
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4c8b8c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f5444
push 0x4f543c
push str.FlsGetValue
push 0x21
call fcn.004c8939
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c8bc3
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e5730]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4c8bcb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f544c
push 0x4f5444
push str.FlsSetValue
push 0x22
call fcn.004c8939
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c8c05
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4e5730]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4cce64
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004a6d00
mov eax, dword [0x51a500]
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.004ca17e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4ccea6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4cd002
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004a6700
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 + 0x522a98]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004ce03a
mov ecx, dword [esi*4 + 0x522a98]
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 0x4ccffb
cmp eax, dword [ecx + edi + 0x24]
jne 0x4ccffb
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 0x4ccffb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004ce03a
add esp, 0x14
test edx, edx
jl 0x4ccffb
jg 0x4ccf71
test eax, eax
jb 0x4ccffb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4ccffb
jl 0x4ccf8b
cmp dword [ebp - 0x1008], eax
ja 0x4ccffb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4ccfa9
test ebx, ebx
je 0x4ccfe2
cmp ecx, edi
jae 0x4ccfe2
mov al, byte [ecx]
cmp al, 0xd
jne 0x4ccfc3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4ccfcf
cmp byte [ecx + 1], 0xa
jne 0x4ccfcf
inc ecx
jmp 0x4ccfcf
movzx eax, al
movsx eax, byte [eax + 0x51a9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4ccfa9
cmp edx, ebx
jne 0x4ccfa9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4cd000
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a6675
leave
ret
Function at 0x4cd4d2
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 + 0x522a98]
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 0x4cd512
cmp byte [ebx], 0xa
jne 0x4cd512
or byte [edi + eax + 0x28], 4
jmp 0x4cd517
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 0x4cd616
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4cd5f9
inc eax
cmp dl, 0xd
je 0x4cd543
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4cd569
cmp eax, ecx
jae 0x4cd577
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 0x4cd52b
jmp 0x4cd616
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 0x4cd5f4
cmp dword [ebp - 0x10], 0
je 0x4cd5f4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x522a98]
test byte [eax + edi + 0x28], 0x48
je 0x4cd5ce
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4cd5b9
mov byte [esi], dl
jmp 0x4cd5ca
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x522a98]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4cd616
cmp byte [ebp - 1], 0xa
jne 0x4cd5dd
cmp esi, ebx
jne 0x4cd5dd
mov byte [esi], 0xa
jmp 0x4cd615
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004ce058
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4cd616
mov byte [esi], 0xd
jmp 0x4cd615
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x522a98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4cd613
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4cd616
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret