joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a5b
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x407c1a
call fcn.00406ce7
lea eax, [ebp - 0x24]
push eax
push 3
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsUser_AgentPost_Platform
mov dword [ebp - 0x18], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403a55
push str.TencentTraveler_4.0
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], ebx
call fcn.00401822
mov dword [ebp - 4], ebx
push 0x40
pop edi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], ebx
call fcn.00401919
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push ebx
push ebx
lea ecx, [ebp - 0x28]
push ecx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
push ebx
jmp 0x403a24
cmp dword [ebp - 0x28], 1
jne 0x4039bc
push dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x14]
call fcn.004035b2
mov byte [ebp - 4], 1
or dword [ebp - 0x18], 1
push str.TencentTraveler_4.0
mov ecx, eax
call fcn.00402d79
test eax, eax
mov byte [ebp - 0xd], 1
je 0x4039bf
mov byte [ebp - 0xd], bl
mov dword [ebp - 4], ebx
test byte [ebp - 0x18], 1
je 0x4039d4
and dword [ebp - 0x18], 0xfffffffe
lea ecx, [ebp - 0x34]
call fcn.00401848
cmp byte [ebp - 0xd], bl
je 0x4039ec
push dword [ebp - 0x14]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x403a40
dec dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401848
inc dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
call fcn.00401822
mov dword [ebp - 4], ebx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], ebx
call fcn.00401919
push ebx
push ebx
lea ecx, [ebp - 0x28]
push ecx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x2c], eax
call fcn.0040167c
cmp dword [ebp - 0x2c], ebx
je 0x40398b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401848
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00406dbf
ret
xor eax, eax
mov ecx, dword [0x40e22c]
cmp ecx, dword [eax*4 + 0x40f008]
je 0x403a74
inc eax
cmp eax, 0xa
jl 0x403a5d
jmp 0x403a85
shl eax, 2
and dword [eax + 0x40f008], 0
and dword [eax + 0x40f030], 0
call dword [sym.imp.TTUtilWidget.dll_int___cdecl_Util::Module::IsAllowMultiTTIntance_void_]
test eax, eax
je 0x403a98
and dword [section.TT_Share], 0
jmp 0x403ab8
xor eax, eax
cmp dword [eax*4 + 0x40f008], 0
jne 0x403aac
inc eax
cmp eax, 0xa
jl 0x403a9a
jmp 0x403ab8
mov eax, dword [eax*4 + 0x40f008]
mov dword [section.TT_Share], eax
call dword [sym.imp.TTUtilWidget.dll_void___cdecl_Util::Module::ReleaseTTInstanceObject_void_]
dec dword [0x40f004]
call dword [sym.imp.TTUtilWidget.dll_int___cdecl_Util::Module::IsTTInstanceExsist_void_]
test eax, eax
jne 0x403ad3
jmp 0x403911
ret
Function at 0x403ec2
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x407c3d
call fcn.00406ce7
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsUser_AgentPost_Platform
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x403f27
push str.TencentTraveler_4.0
lea ecx, [ebp - 0x14]
call fcn.00401d24
and dword [ebp - 4], 0
push 0xa
push str.IEAK
push 1
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401848
call fcn.00406dbf
ret
Function at 0x40686b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x40e1ec]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004067aa
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4068ba
cmp dword [ebp - 0x1c], 5
jb 0x4068d2
jmp 0x4068ce
cmp dword [ebp - 0x10], 1
jne 0x4068d2
cmp dword [ebp - 0x1c], 4
ja 0x4068ce
jne 0x4068d2
cmp dword [ebp - 0x18], 0
jbe 0x4068d2
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40ab10
call fcn.004025ad
test eax, eax
jge 0x4068f3
mov byte [0x40e210], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00406cd8
add ebp, 0x78
leave
ret

Function at 0x406cd8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e1ec]
jne 0x406ce2
repz ret
jmp fcn.00407390
Function at 0x4012a0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
push 0x458c80
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [0x458c80]
mov ebx, eax
lea ecx, [ecx*4 + 4]
push ecx
call fcn.00427e88
mov ecx, dword [0x458c80]
add esp, 4
xor edi, edi
mov dword [0x458c8c], eax
test ecx, ecx
jle 0x401327
nop
mov eax, dword [ebx + edi*4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4012e6
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
lea eax, [esi + esi]
push eax
call fcn.00427e88
mov ecx, dword [0x458c8c]
push esi
mov dword [ecx + edi*4], eax
push dword [ebx + edi*4]
push eax
call fcn.0040d58b
mov ecx, dword [0x458c80]
inc edi
add esp, 0x10
cmp edi, ecx
jl 0x4012e0
mov eax, dword [0x458c8c]
push ebx
mov dword [eax + ecx*4], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.XASH3D_GAME
xor esi, esi
call fcn.00427e72
test eax, eax
mov ecx, str.valve
push 0x7f
cmovne ecx, eax
push ecx
push 0x458c90
call fcn.0040ce10
call fcn.004010c0
cmp dword [0x458c84], esi
mov eax, 0x401190
cmovne esi, eax
push esi
push 0
push 0x458c90
push dword [0x458c8c]
push dword [0x458c80]
call dword [0x458c88]
mov ecx, dword [0x458c84]
add esp, 0x24
mov esi, eax
test ecx, ecx
je 0x401396
call ecx
mov ecx, dword [0x458d10]
test ecx, ecx
je 0x4013a7
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x458d10], 0
mov dword [0x458c88], 0
mov dword [0x458c84], 0
cmp edi, dword [0x458c80]
jge 0x4013e9
nop dword [eax]
mov eax, dword [0x458c8c]
push dword [eax + edi*4]
call fcn.00427673
inc edi
add esp, 4
cmp edi, dword [0x458c80]
jl 0x4013d0
push dword [0x458c8c]
call fcn.00427673
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x401fcd
Capabilities:
Parse pe header

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

Function at 0x40cc75
Capabilities:
Parse pe header

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

Function at 0x4322ff
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004321d3
Function at 0x432c68
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
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 0x432cb3
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00433040
test al, al
jne 0x432cad
sub edx, 2
cmp edx, edi
jne 0x432c93
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x432cd5
lea eax, [edi + 2]
cmp edx, eax
je 0x432cd5
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043292f
add esp, 0x10
jmp 0x432dcf
push esi
lea ecx, [ebp - 0x255]
call fcn.00433040
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 0x432d18
push dword [ebp - 0x25c]
jmp 0x432cc5
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 0x432d55
cmp word [ebp - 0x226], 0
je 0x432d76
cmp word [ebp - 0x226], ax
jne 0x432d55
cmp word [ebp - 0x224], 0
je 0x432d76
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043292f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x432dc2
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x432d2f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x432daa
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x432dcf
push 0x43237f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00440570
add esp, 0x10
jmp 0x432d9f
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.0040140b
leave
ret
Function at 0x434510
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 0x4345ad
push ebx
push esi
call fcn.004344cc
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.0042dcc1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43455a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4345ac
push edi
push eax
call fcn.0042f4fd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43457a
call fcn.0042f4c3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4345ab
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042dcc1
add esp, 0x20
test eax, eax
jne 0x434599
push edi
call fcn.0042f4c3
jmp 0x4345a1
push ebx
call fcn.0042f4c3
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 0x4345b0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4345c1
pop esi
ret
push ebx
push edi
push esi
call fcn.004344cc
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042f4fd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4345e9
push ebx
push esi
push edi
call fcn.0040ac20
add esp, 0xc
push 0
call fcn.0042f4c3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x434ece
Capabilities:
Set environment variable

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

Function at 0x437e08
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042f04f
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x437e77
cmp esi, dword [ebp - 4]
je 0x437e72
cmp dword [ebp + 0xc], 0
je 0x437e72
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x437e4f
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0043795a
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x437e79
xor eax, eax
inc eax
jmp 0x437e79
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x437ede
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042f04f
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042f04f
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x437f55
cmp word [ecx], dx
je 0x437f55
mov eax, dword [0x44fbb4]
push edi
dec eax
push eax
push 0x44faa0
call fcn.00437e7d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x437fc8
cmp word [eax], dx
je 0x437fc8
mov eax, dword [edi]
test eax, eax
je 0x437f79
cmp word [eax], dx
je 0x437f79
lea eax, [ebp - 0x10]
push eax
call fcn.00437860
jmp 0x437f82
lea eax, [ebp - 0x10]
push eax
call fcn.004378fb
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x437ff2
mov eax, dword [0x44fa9c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x44f790
call fcn.00437e7d
add esp, 0xc
test al, al
je 0x437ff2
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x437fbd
cmp word [eax], di
je 0x437fbd
lea eax, [ebp - 0x10]
push eax
call fcn.00437860
pop ecx
jmp 0x437ff4
lea eax, [ebp - 0x10]
push eax
call fcn.004378fb
jmp 0x437fba
mov eax, dword [edi]
test eax, eax
je 0x437fdf
cmp word [eax], dx
je 0x437fdf
lea eax, [ebp - 0x10]
push eax
call fcn.004377f7
pop ecx
jmp 0x437ff2
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4380bd
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00437d02
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4380bd
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4380bd
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4380bd
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43804a
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00438dcb
test ebx, ebx
je 0x4380b8
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00438dcb
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4380bd
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4380bd
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00441815
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4380bf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040140b
leave
ret
Function at 0x438a3d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x450ddc
push 0x450dd4
push str.FlsAlloc
push 0x1f
call fcn.0043870b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x438a71
push dword [ebp + 8]
mov ecx, esi
call dword [0x44d168]
call esi
jmp 0x438a77
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x438abb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x450dec
push 0x450de4
push str.FlsGetValue
push 0x21
call fcn.0043870b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x438af2
push dword [ebp + 8]
mov ecx, esi
call dword [0x44d168]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x438afa
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x450df4
push 0x450dec
push str.FlsSetValue
push 0x22
call fcn.0043870b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x438b34
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44d168]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x444d8a
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 + 0x458900]
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 0x444dca
cmp byte [ebx], 0xa
jne 0x444dca
or byte [edi + eax + 0x28], 4
jmp 0x444dcf
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 0x444ece
mov dl, byte [eax]
cmp dl, 0x1a
je 0x444eb1
inc eax
cmp dl, 0xd
je 0x444dfb
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x444e21
cmp eax, ecx
jae 0x444e2f
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 0x444de3
jmp 0x444ece
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 0x444eac
cmp dword [ebp - 0x10], 0
je 0x444eac
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x458900]
test byte [eax + edi + 0x28], 0x48
je 0x444e86
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x444e71
mov byte [esi], dl
jmp 0x444e82
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x458900]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x444ece
cmp byte [ebp - 1], 0xa
jne 0x444e95
cmp esi, ebx
jne 0x444e95
mov byte [esi], 0xa
jmp 0x444ecd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044468a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x444ece
mov byte [esi], 0xd
jmp 0x444ecd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x458900]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x444ecb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x444ece
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x444ed7
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 + 0x458900]
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 0x444f1d
cmp word [ebx], dx
jne 0x444f1d
or byte [eax + edi + 0x28], 4
jmp 0x444f22
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 0x445085
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 0x445065
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x444f63
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x444f99
cmp eax, edx
jae 0x444fa7
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 0x444f3e
jmp 0x445085
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 0x445060
cmp dword [ebp - 0x18], 0
je 0x445060
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x458900]
test byte [eax + edi + 0x28], 0x48
je 0x445036
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 0x444ffa
mov word [esi], cx
jmp 0x445031
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x458900]
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 + 0x458900]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x458900]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x445085
pop eax
cmp word [ebp - 4], ax
jne 0x445046
cmp esi, ebx
jne 0x445046
mov word [esi], ax
jmp 0x445082
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044468a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x445085
push 0xd
pop eax
jmp 0x445041
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x458900]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x44507f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x445085
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret