joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
test edi, edi
je 0x44d941
cmp word [edi], 0
je 0x44d941
push ebx
push esi
push 0x230
call fcn.004a35dc
add esp, 4
mov dword [ebp + 8], eax
mov ecx, eax
call fcn.0044fc10
mov ebx, eax
mov dword [ebp + 8], 0
push 0x551f54
lea eax, [ebp + 8]
mov dword [ebp - 0xc], ebx
push edi
push eax
call fcn.004b1a8f
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x44d92f
push eax
push 0xc
lea esi, [ebx + 0x214]
push 1
push esi
call fcn.004b2cfb
add esp, 0x10
cmp dword [esi], 0x43555450
jne 0x44d924
cmp dword [ebx + 0x218], 1
jg 0x44d924
cmp dword [ebx + 0x21c], 0xffff
jg 0x44d924
push 0x103
push edi
lea eax, [ebx + 0xc]
mov byte [ebx + 0x22c], 1
push 0x104
push eax
call fcn.004b370a
add esp, 0x10
mov dword [ebp - 8], 0
cmp dword [ebx + 0x21c], 0
jle 0x44d8ed
mov esi, 2
push 0xc
call fcn.004a35dc
push dword [ebp + 8]
mov edi, eax
mov dword [ebp - 4], 0
push 4
lea eax, [ebp - 4]
mov dword [ebp - 0x10], edi
push 1
push eax
call fcn.004b2cfb
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
inc eax
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a3bb6
mov dword [edi], eax
push dword [ebp + 8]
push dword [ebp - 4]
push 1
push eax
call fcn.004b2cfb
mov ecx, dword [ebp - 4]
lea esi, [edi + 8]
mov eax, dword [edi]
xor edx, edx
shr ecx, 1
mov word [eax + ecx*2], dx
push dword [ebp + 8]
push 4
push 1
push esi
call fcn.004b2cfb
push dword [esi]
call fcn.004a3bb6
mov dword [edi + 4], eax
push dword [ebp + 8]
push dword [esi]
push 1
push eax
call fcn.004b2cfb
add esp, 0x4c
lea eax, [ebp - 0x10]
lea ecx, [ebx + 0x220]
push eax
call fcn.004478b0
mov eax, dword [ebp - 8]
mov esi, 2
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebx + 0x21c]
jl 0x44d845
push dword [ebp + 8]
call fcn.004b1b4c
mov edi, dword [ebp - 0x14]
add esp, 4
lea esi, [edi + 0x5c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0xc]
push eax
lea ecx, [edi + 0x48]
call fcn.004478b0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call fcn.004b1b4c
add esp, 4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x44dfb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4faa5d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x57b070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x57e6c4], 0
mov dword [ebp - 0x10], 0
je 0x44e123
push dword [0x57e6cc]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
test eax, eax
je 0x44e038
cmp dword [eax], 3
jbe 0x44e038
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x44e038
push 0
push 0x581110
push 0x581098
push 0
push eax
call fcn.004a5e6f
add esp, 0x14
test eax, eax
je 0x44e038
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x44e180
cmp dword [0x57e6c4], 0
je 0x44e123
push 0x58ecf4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp - 0x10]
call fcn.0044e1a0
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x44e104
push 4
call fcn.004a35dc
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.0044d410
mov dword [ebp - 4], 0xffffffff
mov esi, eax
cmp dword [0x57e6c4], 0
je 0x44e104
push dword [0x57e6cc]
call ebx
test eax, eax
je 0x44e104
cmp dword [eax], 3
jbe 0x44e104
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x44e0fe
push 8
call fcn.004a35dc
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.t_visualDataItemPtr_struct_t_cuResourceManagerWrap_.0
mov dword [edi + 4], esi
cmp dword [0x57e6c4], 0
je 0x44e104
push dword [0x57e6cc]
call ebx
test eax, eax
je 0x44e104
cmp dword [eax], 3
jbe 0x44e104
mov eax, dword [eax + 8]
push 0x58ecf4
mov dword [eax + 0xc], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ecx]
push esi
call dword [edx + 0xc]
push 0x58ecf4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x58ed54]
test eax, eax
jne 0x44e180
push 0x58ecf4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x58f4a0]
test al, 1
jne 0x44e166
or eax, 1
mov dword [0x58f4a0], eax
mov ecx, 0x58f4a4
mov dword [ebp - 4], 1
call fcn.0044d410
push 0x4ffc10
call fcn.004a3ba1
add esp, 4
push 0x58ecf4
mov dword [0x58ed54], 0x58f4a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x58ed54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e1a0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x57e6c4], 0
push esi
mov esi, edx
je 0x44e1f3
push dword [0x57e6cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44e1f3
cmp dword [eax], 3
jbe 0x44e1f3
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x44e1f3
push 0
push 0x581110
push 0x581098
push 0
push eax
call fcn.004a5e6f
mov ecx, eax
add esp, 0x14
test ecx, ecx
je 0x44e1f3
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [esi], eax
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x456d00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x57e6c4], 0
push ebx
mov dword [ebp - 4], 0
je 0x456e48
push dword [0x57e6cc]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
test eax, eax
je 0x456d67
cmp dword [eax], 0xc
jbe 0x456d67
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x456d67
push 0
push 0x581214
push 0x581098
push 0
push eax
call fcn.004a5e6f
add esp, 0x14
test eax, eax
je 0x456d67
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov dword [ebp - 4], eax
test eax, eax
jne 0x456e9e
cmp dword [0x57e6c4], 0
je 0x456e48
push esi
push edi
push 0x58ecf4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp - 4]
call fcn.00457000
mov esi, dword [ebp - 4]
test esi, esi
jne 0x456e34
push 0x10
call fcn.004a35dc
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
cmp dword [0x57e6c4], 0
je 0x456e34
push dword [0x57e6cc]
call ebx
test eax, eax
je 0x456e34
cmp dword [eax], 0xc
jbe 0x456e34
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x456e2e
push 8
call fcn.004a35dc
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
mov dword [edi], vtable.t_visualDataItemPtr_struct_CherryUIPoint_.0
mov dword [edi + 4], esi
cmp dword [0x57e6c4], 0
je 0x456e34
push dword [0x57e6cc]
call ebx
test eax, eax
je 0x456e34
cmp dword [eax], 0xc
jbe 0x456e34
mov eax, dword [eax + 8]
push 0x58ecf4
mov dword [eax + 0x30], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ecx]
push esi
call dword [edx + 0xc]
push 0x58ecf4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x58ed58]
test eax, eax
jne 0x456e9e
push 0x58ecf4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x58f4a8]
test al, 1
jne 0x456e84
or eax, 1
xorps xmm0, xmm0
mov dword [0x58f4a8], eax
push 0x4ffc80
movups xmmword [0x58f4ac], xmm0
call fcn.004a3ba1
add esp, 4
push 0x58ecf4
mov dword [0x58ed58], 0x58f4ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x58ed58]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x457000
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x57e6c4], 0
push esi
mov esi, edx
je 0x457053
push dword [0x57e6cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x457053
cmp dword [eax], 0xc
jbe 0x457053
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x457053
push 0
push 0x581214
push 0x581098
push 0
push eax
call fcn.004a5e6f
mov ecx, eax
add esp, 0x14
test ecx, ecx
je 0x457053
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [esi], eax
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x45b420
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fae23
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x57b070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x583804
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx], 0x583804
mov byte [ebp - 4], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x5147c0
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0045c1a0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45db60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
cmp ebx, 0x1c
jne 0x45dbb1
test edi, edi
jne 0x45dbff
cmp byte [esi + 0x30], 0
je 0x45db8e
mov eax, dword [esi]
mov ecx, esi
push edi
mov byte [esi + 0x30], 0
call dword [eax + 0x48]
cmp dword [esi + 0x84], esi
je 0x45db9a
mov byte [esi + 0x64], 1
push 0
push dword [esi + 0xfc]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x14
cmp ebx, 0x113
jne 0x45dbff
cmp edi, 0x3e9
jne 0x45dbff
push dword [esi + 0xfc]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x45dbee
push 0x213
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [esi + 0xfc]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x45dbff
push 0x3e9
push dword [esi + 0xfc]
call dword [sym.imp.USER32.dll_KillTimer]
push dword [ebp + 0x18]
push edi
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00450210
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x45e310
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov ebx, dword [esi + 0x18c]
mov edi, dword [esi + 0x188]
cmp edi, ebx
je 0x45e333
mov ecx, edi
call fcn.00456a40
add edi, 0xc
cmp edi, ebx
jne 0x45e325
mov eax, dword [esi + 0x188]
xor edi, edi
mov dword [esi + 0x18c], eax
mov eax, dword [esi + 0x180]
sub eax, dword [esi + 0x17c]
sar eax, 2
test eax, eax
je 0x45e378
mov eax, dword [esi + 0x17c]
mov ecx, esi
push dword [eax + edi*4]
call fcn.00455240
mov eax, dword [esi + 0x180]
inc edi
sub eax, dword [esi + 0x17c]
sar eax, 2
cmp edi, eax
jb 0x45e354
mov eax, dword [esi + 0x17c]
mov dword [esi + 0x180], eax
cmp byte [esi + 0x30], 0
je 0x45e397
mov eax, dword [esi]
mov ecx, esi
push 0
mov byte [esi + 0x30], 0
call dword [eax + 0x48]
cmp dword [esi + 0x84], esi
je 0x45e3a3
mov byte [esi + 0x64], 1
push 0
push dword [esi + 0xfc]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
ret
Function at 0x4608c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x57b070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x4c
mov dword [ebp - 0x10], ecx
call fcn.004b12a2
mov esi, eax
add esp, 4
test esi, esi
jne 0x460904
test edi, edi
je 0x4608f2
mov dword [edi], 0x6d
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
push ebx
push 0x4c
push 0
push esi
call fcn.004a64e0
push 0x614c
push 1
mov dword [esi + 0x34], 0
mov dword [esi + 0x14], 0
call fcn.004b12ad
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x460958
test edi, edi
je 0x46093c
mov dword [edi], 0x6d
push esi
call fcn.004ac7ec
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
push 0x614c
push 0
push ebx
call fcn.004a64e0
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [esi + 0x48], ebx
mov dword [ebx + 4], 0
mov dword [ebx + 0x38], 0
mov dword [ebx], 8
mov dword [ebx + 0x3c], 0x45d8c0
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x44], eax
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4609a4
push 6
lea ecx, [ebp - 0xc]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4609b7
push dword [ecx + 0x38]
lea eax, [ebp - 0xc]
push 6
push 1
push eax
call fcn.004b2cfb
add esp, 0x10
cmp eax, 6
je 0x4609c8
test edi, edi
je 0x4609ed
mov dword [edi], 0x66
jmp 0x4609ed
push 3
lea eax, [ebp - 0xc]
mov byte [ebp - 6], 0
push eax
push str.GIFVER
call fcn.004b72c0
add esp, 0xc
test eax, eax
je 0x460a0f
test edi, edi
je 0x4609ed
mov dword [edi], 0x67
push ebx
call fcn.004ac7ec
push esi
call fcn.004ac7ec
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00460a70
test eax, eax
jne 0x460a46
push ebx
call fcn.004ac7ec
push esi
call fcn.004ac7ec
add esp, 8
test edi, edi
je 0x460a33
mov dword [edi], 0x68
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [esi + 0x40], 0
cmp byte [ebp - 9], 0x39
sete al
xor ecx, ebp
mov dword [ebx + 0x6148], eax
mov eax, esi
pop ebx
pop edi
pop esi
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
Function at 0x460a70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x48]
test byte [eax], 8
jne 0x460a8d
mov dword [esi + 0x40], 0x6f
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, esi
call fcn.004612c0
test eax, eax
je 0x460a86
lea edx, [esi + 4]
mov ecx, esi
call fcn.004612c0
test eax, eax
je 0x460a86
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x460abe
push 3
lea ecx, [ebp - 4]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x460ad1
push dword [ecx + 0x38]
lea eax, [ebp - 4]
push 3
push 1
push eax
call fcn.004b2cfb
add esp, 0x10
push edi
cmp eax, 3
je 0x460b05
mov edi, dword [esi + 0x14]
mov dword [esi + 0x40], 0x66
test edi, edi
je 0x460af6
push dword [edi + 0xc]
call fcn.004ac7ec
push edi
call fcn.004ac7ec
add esp, 8
pop edi
mov dword [esi + 0x14], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov dl, byte [ebp - 4]
movzx ecx, dl
mov eax, ecx
mov edi, ecx
shr eax, 4
and ecx, 7
and eax, 7
shr edi, 3
inc eax
and edi, 1
mov dword [esi + 8], eax
inc ecx
movzx eax, byte [ebp - 3]
mov dword [esi + 0xc], eax
mov al, byte [ebp - 2]
mov byte [esi + 0x10], al
push ebx
test dl, dl
jns 0x460bff
mov eax, 1
xor edx, edx
shl eax, cl
mov ecx, eax
call fcn.00461820
mov dword [esi + 0x14], eax
test eax, eax
jne 0x460b5e
pop ebx
pop edi
mov dword [esi + 0x40], 0x6d
pop esi
mov esp, ebp
pop ebp
ret
mov dword [eax + 8], edi
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp dword [eax], ebx
jle 0x460c06
xor edi, edi
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x460b88
push 3
lea ecx, [ebp - 4]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x460b9b
push dword [ecx + 0x38]
lea eax, [ebp - 4]
push 3
push 1
push eax
call fcn.004b2cfb
add esp, 0x10
cmp eax, 3
jne 0x460be0
mov eax, dword [esi + 0x14]
inc ebx
mov ecx, dword [eax + 0xc]
movzx eax, byte [ebp - 4]
mov byte [edi + ecx], al
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0xc]
movzx eax, byte [ebp - 3]
mov byte [ecx + edi + 1], al
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0xc]
movzx eax, byte [ebp - 2]
mov byte [ecx + edi + 2], al
add edi, 3
mov eax, dword [esi + 0x14]
cmp ebx, dword [eax]
jl 0x460b70
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x14]
call fcn.004618c0
pop ebx
pop edi
mov dword [esi + 0x14], 0
xor eax, eax
mov dword [esi + 0x40], 0x66
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14], 0
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x460c20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov esi, edx
mov eax, dword [edi + 0x48]
test byte [eax], 8
jne 0x460c41
mov dword [edi + 0x40], 0x6f
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x460c56
push 1
lea eax, [ebp - 1]
push eax
push edi
call ecx
add esp, 0xc
jmp 0x460c69
push dword [eax + 0x38]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.004b2cfb
add esp, 0x10
cmp eax, 1
je 0x460c7d
mov dword [edi + 0x40], 0x66
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 1]
cmp al, 0x21
je 0x460cc3
cmp al, 0x2c
je 0x460cb2
cmp al, 0x3b
je 0x460ca1
mov dword [edi + 0x40], 0x6b
xor eax, eax
pop edi
mov dword [esi], 0
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi], 4
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi], 2
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi], 3
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x461030
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, dword [esi + 0x48]
test byte [eax], 8
jne 0x461051
pop edi
mov dword [esi + 0x40], 0x6f
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x461066
push 1
lea eax, [ebp - 1]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x461079
push dword [eax + 0x38]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.004b2cfb
add esp, 0x10
cmp eax, 1
je 0x46108d
pop edi
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, byte [ebp - 1]
mov ecx, esi
mov edx, dword [ebp + 8]
mov dword [edi], eax
call fcn.004610b0
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4610b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov ebx, dword [esi + 0x48]
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x4610d3
push 1
lea ecx, [ebp - 1]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4610e6
push dword [ebx + 0x38]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.004b2cfb
add esp, 0x10
cmp eax, 1
jne 0x461134
mov al, byte [ebp - 1]
test al, al
je 0x461144
lea ecx, [ebx + 0x44]
mov byte [ecx], al
mov eax, dword [esi + 0x48]
mov dword [edi], ecx
mov edx, dword [eax + 0x3c]
test edx, edx
je 0x461114
movzx eax, byte [ebp - 1]
push eax
lea eax, [ecx + 1]
push eax
push esi
call edx
add esp, 0xc
jmp 0x46112a
push dword [eax + 0x38]
movzx eax, byte [ebp - 1]
push eax
lea eax, [ecx + 1]
push 1
push eax
call fcn.004b2cfb
add esp, 0x10
mov ecx, eax
movzx eax, byte [ebp - 1]
cmp ecx, eax
je 0x46114a
pop edi
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4612c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, edx
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4612e2
push 2
lea ecx, [ebp - 4]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4612f5
push dword [ecx + 0x38]
lea eax, [ebp - 4]
push 2
push 1
push eax
call fcn.004b2cfb
add esp, 0x10
cmp eax, 2
je 0x461309
pop edi
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ax, word [ebp - 4]
movzx ecx, ah
movzx eax, al
shl ecx, 8
or ecx, eax
mov eax, 1
mov dword [edi], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x461330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [esi + 0x48]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x461353
push 1
lea ecx, [ebp - 1]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x461366
push dword [edi + 0x38]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.004b2cfb
add esp, 0x10
cmp eax, 1
jne 0x4613b4
mov al, byte [ebp - 1]
test al, al
je 0x4613c4
add edi, 0x44
mov dword [ebx], edi
mov byte [edi], al
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x461394
movzx eax, byte [ebp - 1]
push eax
lea eax, [edi + 1]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x4613aa
push dword [eax + 0x38]
movzx eax, byte [ebp - 1]
push eax
lea eax, [edi + 1]
push 1
push eax
call fcn.004b2cfb
add esp, 0x10
mov ecx, eax
movzx eax, byte [ebp - 1]
cmp ecx, eax
je 0x4613d5
pop edi
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx], 0
mov byte [edi + 0x44], 0
mov dword [edi + 0x34], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4616a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebx + 0x48]
mov eax, dword [edi + 0x18]
cmp eax, 0xc
jle 0x4616c5
pop edi
mov dword [ebx + 0x40], 0x70
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
cmp dword [edi + 0x2c], eax
jge 0x461788
lea esi, [edi + 0x44]
mov dl, byte [esi]
test dl, dl
jne 0x46175c
mov ecx, dword [ebx + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4616f1
push 1
push esi
push ebx
call eax
add esp, 0xc
jmp 0x461701
push dword [ecx + 0x38]
push 1
push 1
push esi
call fcn.004b2cfb
add esp, 0x10
cmp eax, 1
jne 0x4617e7
mov al, byte [esi]
test al, al
je 0x4617d7
mov ecx, dword [ebx + 0x48]
movzx eax, al
mov edx, dword [ecx + 0x3c]
lea ecx, [esi + 1]
test edx, edx
je 0x46172e
push eax
push ecx
push ebx
call edx
add esp, 0xc
jmp 0x461740
mov edx, dword [ebx + 0x48]
push dword [edx + 0x38]
push eax
push 1
push ecx
call fcn.004b2cfb
add esp, 0x10
mov cl, byte [esi]
mov edx, eax
movzx eax, cl
cmp edx, eax
jne 0x4617e7
mov dh, byte [esi + 1]
dec cl
mov byte [esi + 1], 2
mov byte [esi], cl
jmp 0x46176e
mov cl, byte [esi + 1]
movzx eax, cl
inc cl
dec dl
mov dh, byte [eax + esi]
mov byte [esi + 1], cl
mov byte [esi], dl
mov ecx, dword [edi + 0x2c]
movzx eax, dh
shl eax, cl
or dword [edi + 0x30], eax
lea eax, [ecx + 8]
mov dword [edi + 0x2c], eax
cmp eax, dword [edi + 0x18]
jl 0x4616d2
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x30]
mov esi, dword [ebp - 4]
sub dword [edi + 0x2c], ecx
movzx eax, word [ecx*2 + 0x548944]
and eax, edx
shr edx, cl
mov dword [esi], eax
mov eax, dword [edi + 0x14]
mov dword [edi + 0x30], edx
cmp eax, 0x1001
jge 0x4617cb
mov edx, dword [edi + 0x1c]
inc eax
mov dword [edi + 0x14], eax
cmp eax, edx
jle 0x4617cb
cmp ecx, 0xc
jge 0x4617cb
lea eax, [edx + edx]
mov dword [edi + 0x1c], eax
lea eax, [ecx + 1]
mov dword [edi + 0x18], eax
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
pop edi
mov dword [ebx + 0x40], 0x70
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
pop edi
mov dword [ebx + 0x40], 0x66
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x461a60
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x57e6c4], 0
push esi
mov esi, edx
je 0x461ab5
push dword [0x57e6cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x461ab5
cmp dword [eax], 1
jbe 0x461ab5
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0x461ab5
push 0
push 0x581498
push 0x581098
push 0
push eax
call fcn.004a5e6f
mov ecx, eax
add esp, 0x14
test ecx, ecx
je 0x461ab5
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov byte [esi], al
mov al, 1
pop esi
ret
xor al, al
pop esi
ret