joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a8a9
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x47a8e1
push dword [edi]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
push dword [edi]
push esi
call fcn.004eccd3
test byte [edi + 0x14], 8
mov dword [esp + 0x14], eax
je 0x47a9d2
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x47a9d2
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x47aa00
test ebp, ebp
jle 0x47aa00
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x47aa00
push ebp
push dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x30], eax
test eax, eax
je 0x47a9c9
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x47a973
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x47a988
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 2
pop eax
add dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
sub dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x40]
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x47aa00
cmp dword [edi + 0x10], ebx
je 0x47a9ec
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x47aa00
push ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push dword [esp + 0x14]
push esi
call fcn.004ecddd
cmp dword [esp + 0x10], 0
je 0x47aa1a
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x47aa32
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
movzx esi, ax
push 2
shr esi, 0xf
call edi
bt ax, 0xf
jae 0x47aa53
or esi, 2
push 4
call edi
bt ax, 0xf
jae 0x47aa61
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x47aa67
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, dword [esp + 0x1c]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi]
mov ebp, eax
call fcn.004ecb8e
push eax
call fcn.00480e84
push dword [0xd9340c]
mov dword [esp + 0x20], eax
call fcn.0048af7f
mov ebx, eax
movsx ecx, si
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
movzx esi, ax
push 0x12
shr esi, 0xf
call edi
bt ax, 0xf
jae 0x47aadf
or esi, 2
push 0x11
call edi
bt ax, 0xf
jae 0x47aaed
or esi, 4
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 4], eax
call fcn.0047aa32
push 0x47aa22
push ebx
push dword [esp + 0x28]
mov dword [ebx + 8], eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x14], eax
movzx eax, word [esp + 0x3c]
push ebp
push 0x332c
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x18], eax
call fcn.004ebf84
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x47d937
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0xd9372c]
call fcn.0048ac51
mov ebx, eax
test ebx, ebx
je 0x47d99b
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x47d960
push dword [esp + 0xc]
push ebx
call eax
jmp 0x47d99b
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00493860
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call fcn.0049345b
pop ecx
sub edi, eax
push edi
call fcn.00494450
pop edi
pop esi
pop ebx
ret 8

Function at 0x480b72
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x480cf6
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x480cd9
sub eax, 1
jne 0x480cf6
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.00480d02
pop ecx
test eax, eax
je 0x480be6
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
cmp byte [esp + 0x23a], 1
jmp 0x480c17
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x480cf6
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x356], 1
jne 0x480c1c
xor edi, edi
inc edi
sub ecx, 3
je 0x480cd5
sub ecx, 1
je 0x480cd1
sub ecx, 1
je 0x480cac
sub ecx, 1
je 0x480c5c
sub ecx, 4
jne 0x480cf6
test eax, eax
jne 0x480cf6
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x480cf6
sub eax, 0
je 0x480c9e
sub eax, 1
je 0x480c90
sub eax, 1
je 0x480c82
sub eax, 1
jne 0x480cf6
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x480cf6
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x480cf6
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x480cf6
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x480cf6
sub eax, 0
je 0x480ccd
sub eax, 1
je 0x480cc9
sub eax, 1
jne 0x480cf6
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x480cf6
push 0x3c
jmp 0x480cf5
push 0x32
jmp 0x480cf5
push 0x14
jmp 0x480cf5
push 5
jmp 0x480cf5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x480cf3
cmp eax, 0xa
je 0x480cef
cmp eax, 0x5a
jne 0x480cf6
push 0x28
jmp 0x480cf5
push 0x1e
jmp 0x480cf5
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x480fde
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0xd93ba4]
call fcn.0048ac51
mov esi, eax
test esi, esi
je 0x4810b8
cmp dword [ebp + 0xc], 0
je 0x48102a
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x48101b
cmp dword [esi + 0x1c], 0
jne 0x48101b
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4810b8
test byte [ebp + 0x10], 3
je 0x481045
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.004ef158
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x48106a
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x48107e
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x48109b
test ebx, ebx
je 0x48108f
push 8
jmp 0x4810a1
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x4810ae
test ebx, ebx
je 0x4810a4
push 3
pop ecx
jmp 0x4810ae
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x48193d
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x48195d
cmp dword [esp + 8], 0
je 0x48195d
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x48195f
xor eax, eax
ret 8

Function at 0x481962
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4819da
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.00494403
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0049345b
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4819bb
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4819b8
cmp ecx, 0x5c
je 0x4819b8
cmp ecx, 0x2f
jne 0x4819c5
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4819a5
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4819dc
xor eax, eax
leave
ret 4
Function at 0x481d1d
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x481d46
test byte [esp + 8], 2
je 0x481d3a
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x481d48
xor eax, eax
ret 8

Function at 0x481e2b
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0xd93ce0]
push esi
test eax, eax
jne 0x481e50
push fcn.00481df9
push 0x10
push 0x258
call fcn.0048ad35
mov dword [0xd93ce0], eax
push dword [esp + 0xc]
push eax
call fcn.0048abbd
mov esi, eax
test esi, esi
je 0x481f51
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x481e72
mov edi, 0x581684
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x481e82
xor eax, eax
cmp word [ebx], ax
jne 0x481e87
mov ebx, 0x580cf8
push edi
call fcn.0049345b
push ebx
mov dword [esp + 0x24], eax
call fcn.0049345b
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0xd92724]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x481f38
push edi
push eax
call fcn.00493439
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x481ee8
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x481eec
push 0x57fc64
push edi
call fcn.004ae33e
pop ecx
pop ecx
jmp 0x481eec
mov edi, dword [esp + 0x18]
push ebx
push edi
call fcn.004ae33e
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x481f10
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x481f26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x481f24
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0xd92724]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x481f4f
cmp dword [esp + 0x14], 0xffffffff
je 0x481f43
mov esi, dword [esp + 0x14]
push esi
push dword [0xd93ce0]
call fcn.0048ace6
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x481f9c
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x4820e4
xor ecx, ecx
cmp word [eax], cx
je 0x4820e4
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00494403
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.0049345b
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x481ff5
cmp eax, 3
jne 0x48202f
cmp word [esp + 0xa], 0x3a
jne 0x48202f
cmp eax, 2
jne 0x482013
lea eax, [esp + 8]
push 0x57fc64
push eax
call fcn.004ae33e
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4820e4
push 0xfffffffffffffffe
pop edi
jmp 0x4820e4
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x482044
cmp ax, bx
jne 0x48204e
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x482037
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x48208d
test byte [esp + 0x21c], 0x10
je 0x482074
push 0xfffffffffffffffe
pop edi
jmp 0x482084
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4820e2
cmp word [esp + 0x10], bp
jne 0x48209b
cmp word [esp + 0x12], bp
je 0x4820ba
cmp word [esp + 0x10], bx
jne 0x4820a9
cmp word [esp + 0x12], bx
je 0x4820ba
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4820e2
cmp word [esp + 0x12], ax
jne 0x4820e2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4820cf
test al, 0x10
je 0x4820e2
jmp 0x4820df
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4820e2
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x482148
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x48215e
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x482161
or eax, 0xffffffff
ret 4

Function at 0x48231d
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x48232b
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x4823c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x4823fc
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x482410
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x482429
push dword [0xd93ce4]
call fcn.0048ad88
pop edi
ret 4
push esi
push edi
push dword [0xd93ce4]
call fcn.0048ac51
mov esi, eax
test esi, esi
je 0x482493
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x48247f
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x48246e
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0xd92724]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0xd93ce4]
call fcn.0048ace6
pop esi
pop edi
ret 4

Function at 0x482940
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0xd93ce4]
call fcn.0048ac51
mov esi, eax
test esi, esi
je 0x4829bf
cmp dword [esi + 4], 0
je 0x482990
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.004efb40
test eax, eax
je 0x482984
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4829ca
cmp dword [esp + 8], 0
je 0x4829ca
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x482a90
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov byte [esp + 7], 0
push dword [0xd93ce4]
call fcn.0048ac51
test eax, eax
je 0x482adb
cmp dword [eax + 4], 0
je 0x482ac5
push 1
lea ecx, [esp + 7]
push ecx
push eax
call fcn.004efb40
movzx eax, byte [esp + 3]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
lea ecx, [esp + 0xf]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x482d00
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x482d65
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x482d5d
push dword [esp + 0x10]
push dword [0xd93ce4]
call fcn.0048ac51
test eax, eax
je 0x482d53
cmp dword [eax + 4], 0
je 0x482d42
push edi
push esi
push eax
call fcn.004f0140
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x482d70
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0xd93ce4]
call fcn.0048ac51
test eax, eax
je 0x482d8c
mov dword [esp + 4], eax
jmp fcn.00482da0
xor eax, eax
ret 0xc
Function at 0x482da0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x482e9f
cmp word [edx], 0
je 0x482e9f
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x482dce
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x482e24
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x482de0
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x482e06
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.004f0140
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
lea eax, [esp + 0x14]
push eax
xor eax, eax
cmp ecx, 2
push edx
setne al
dec eax
and eax, 0xfde9
push eax
call fcn.004f0260
mov edi, eax
test edi, edi
je 0x482e1a
cmp dword [esi + 4], 0
je 0x482e72
push dword [esp + 0x14]
push edi
push esi
call fcn.004f0140
push edi
push 0
push dword [0xd92724]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0xd92724]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
Function at 0x4841d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x10], 0
xor esi, esi
mov dword [esp + 0x14], 0
call fcn.004f0ee0
mov edi, eax
test edi, edi
je 0x4842e2
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4842e2
push ebp
push esi
push 0x80
push 3
push esi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4842e1
push ebx
push 0x100000
push esi
push dword [0xd92724]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4842d9
push dword [esp + 0x28]
mov eax, dword [edi + 4]
call eax
mov esi, eax
test esi, esi
je 0x4842ca
mov ecx, dword [edi + 8]
push 0
push esi
call ecx
push 0
push 0
push dword [esp + 0x2c]
push edi
push esi
call fcn.004f6150
cmp dword [esp + 0x18], 0
jl 0x484290
mov eax, dword [esp + 0x14]
jg 0x48427d
test eax, eax
je 0x484290
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea esp, [esp]
push 0
lea eax, [esp + 0x14]
push eax
push 0x100000
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x10]
mov eax, dword [edi + 0xc]
push ebx
push esi
call eax
cmp dword [esp + 0x10], 0x100000
je 0x484290
mov eax, dword [edi + 0x10]
push esi
call eax
push dword [esp + 0x24]
push edi
push esi
call fcn.004f62f0
push ebx
push 0
push dword [0xd92724]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
push dword [esp + 0x24]
push esi
call fcn.004f60e0
test esi, esi
je 0x4842f6
mov eax, dword [edi + 0x14]
push esi
call eax
pop edi
pop esi
add esp, 0xc
ret 0x10

Function at 0x4846ad
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0xd93cf8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x4846d5
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [ebp + 0x14]
mov eax, dword [esi + 0x90]
push dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 4]
pop esi
pop ebp
ret 0x14

Function at 0x4846f8
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0xd93cf8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [esi + 0xa4]
cmp eax, dword [esi + 0xac]
je 0x484720
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [esp + 0x14]
mov eax, dword [esi + 0x90]
push dword [esp + 0x14]
add eax, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [esp + 0x14]
push eax
push esi
call dword [esi + 4]
pop esi
ret 0x10

Function at 0x484746
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xd93cf8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov ecx, dword [edx + 0x74]
cmp ecx, 2
je 0x48476b
cmp ecx, 3
je 0x48476b
cmp ecx, 8
je 0x48476b
cmp ecx, 0xc
jne 0x484779
mov eax, dword [esp + 4]
test eax, eax
je 0x484779
mov dword [edx + 0xb8], eax
ret 4