joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493e6d
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x204]
mov ebx, 0x200
push ebx
push 0
push eax
call fcn.004c37f0
mov eax, dword [ebp + 0x10]
add esp, 0xc
test eax, eax
je 0x493f9e
cmp byte [eax], 0
je 0x493f9e
lea ecx, [ebp + 0x14]
push ecx
push 0
push eax
lea esi, [ebp - 0x204]
push 0x1ff
mov eax, esi
push eax
jmp 0x493f00
lea eax, [ebp - 0x204]
cmp esi, eax
je 0x493ed9
push esi
call fcn.004cceff
pop ecx
add ebx, ebx
lea eax, [ebx + 0xa]
push eax
push 1
call fcn.004ccef4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x493f9e
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
lea ecx, [ebx - 1]
push ecx
push esi
call fcn.00403d86
add esp, 0x14
cmp eax, 0xffffffff
je 0x493ec8
push esi
call fcn.004906c6
push esi
call fcn.004cd280
mov ebx, eax
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
test eax, eax
je 0x493f36
cmp eax, 0x7ffffffe
ja 0x493f2e
push eax
jmp 0x493f30
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.C:UsersOfficeDocumentsVisual_StudioPAULATelNet.c
push 0x2ca
push 1
push edi
call fcn.004909e1
add esp, 0x10
test eax, eax
je 0x493f8d
push 0x2ca
push edi
call fcn.00490a8d
pop ecx
pop ecx
test eax, eax
je 0x493f8d
push 0
push ebx
push esi
push dword [edi + 0xacc]
call sub.WSOCK32.dll_send
push edi
mov ebx, eax
call fcn.004947a6
lea eax, [ebp - 0x204]
pop ecx
cmp esi, eax
je 0x493f89
push esi
call fcn.004cceff
pop ecx
mov eax, ebx
jmp 0x493fa0
lea eax, [ebp - 0x204]
cmp esi, eax
je 0x493f9e
push esi
call fcn.004cceff
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret
Function at 0x4b4d08
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.004c37f0
push 0x140
lea eax, [ebp - 0x268]
push ebx
push eax
call fcn.004c37f0
xor eax, eax
lea edi, [ebp - 0x128]
stosd dword es:[edi], eax
add esp, 0x18
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x118]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004b729a
sub eax, dword [0x661a80]
cmp eax, 0x493e0
jb 0x4b4eba
call fcn.004b729a
mov dword [0x661a80], eax
call fcn.004b5c6e
test eax, eax
je 0x4b4eba
push esi
lea eax, [ebp - 0x108]
push 0x661238
push eax
call fcn.0048dd2a
lea eax, [ebp - 0x108]
push eax
call fcn.0048ccf5
push str.PAULATempTimeDetectionFile
lea eax, [ebp - 0x108]
push 0x50e52c
push eax
call fcn.0048d9a0
add esp, 0x1c
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x26c], esi
cmp esi, 0xffffffff
je 0x4b4eba
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x264]
jg 0x4b4e25
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
sub esp, 0x10
lea esi, [ebp - 0x118]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x128]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004b715e
add esp, 0x20
cmp eax, 0xdbba0
jle 0x4b4e93
lea eax, [ebp - 0x108]
push eax
call fcn.0048ccf5
lea eax, [ebp - 0x23c]
mov dword [esp], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0048dc3d
lea eax, [ebp - 0x108]
push eax
call fcn.004208fc
add esp, 0x10
test eax, eax
je 0x4b4e93
inc ebx
mov esi, dword [ebp - 0x26c]
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4b4dfa
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
jmp 0x4b4ebc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret
Function at 0x4b6105
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x18], ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ecx, ecx
je 0x4b613a
push 0x10
push 0
push ecx
call fcn.004c37f0
add esp, 0xc
push esi
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x4b61a3
push 0xbba
push str.C:UsersOfficeDocumentsVisual_StudioPAULATime.c
push 0x4e75e0
push esi
call fcn.00422a3e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b61a3
push ebx
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004c37f0
push esi
push 1
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.004c7617
push esi
lea ebx, [eax - 1]
neg ebx
sbb ebx, ebx
call fcn.004228b3
mov edi, dword [ebp - 0x18]
add esp, 0x20
test edi, edi
je 0x4b619d
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 1]
pop ebx
jmp 0x4b61a5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004c2120
leave
ret
Function at 0x4b7a2e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
xorps xmm0, xmm0
xor ebx, ebx
movlpd qword [ebp - 0x1c], xmm0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [0x661b00], eax
test eax, eax
je 0x4b7b2e
call fcn.004b729a
mov dword [0x661b04], eax
cmp dword [0x661b00], ebx
jne 0x4b7b7b
push esi
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4b7b63
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test ebx, ebx
jne 0x4b7aaa
call fcn.0040cd58
mov ebx, eax
test ebx, ebx
je 0x4b7b65
test edi, edi
jne 0x4b7b65
lea eax, [ebp - 0x14]
push eax
call fcn.0040cd58
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 6
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 4
mov esi, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add esi, dword [ebp - 0x10]
add eax, 3
mov ecx, dword [ebp - 0xc]
add esi, eax
mov eax, ecx
mov dword [ebp - 0x20], 3
sub eax, dword [ebp - 0x14]
cdq
idiv dword [ebp - 0x20]
mov dword [ebp - 0x10], esi
sub ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
cmp eax, dword [ebp - 0x14]
jle 0x4b7b5e
cmp eax, ecx
jge 0x4b7b5e
cmp dword [ebp - 0x18], esi
jle 0x4b7b5e
push 0xf
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, dword [ebp - 0x10]
cmp dword [ebp - 0x18], eax
jge 0x4b7b5e
mov dword [0x661ae4], 1
call fcn.004b729a
mov dword [0x661ae8], eax
jmp 0x4b7b65
call fcn.004b729a
sub eax, dword [0x661b04]
cmp eax, 0xde
jae 0x4b7a6f
call fcn.004b729a
sub eax, dword [0x661b04]
push eax
push str.:7:CheckForMouseButton___was_called_consecutively_too_quickly:__dms
call fcn.0041cce9
pop ecx
pop ecx
jmp 0x4b7b7b
xor edi, edi
inc edi
jmp 0x4b7b65
xor edi, edi
push 0x16
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x661b00], 0
je 0x4b7a7c
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret 4
Function at 0x4bbe09
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1444
call fcn.004c2130
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1440]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x1234
push ebx
push eax
call fcn.004c37f0
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x1444], ebx
push ebx
push eax
call fcn.004c37f0
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004c37f0
push esi
call fcn.0048c30a
add esp, 0x28
test eax, eax
je 0x4bbe7c
or eax, 0xffffffff
jmp 0x4bbfce
test edi, edi
je 0x4bbe8f
push 0x1234
push ebx
push edi
call fcn.004c37f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0048dd2a
lea eax, [ebp - 0x20c]
push eax
call fcn.0048ce46
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push 0x4e8ad8
push eax
call fcn.0046aa0e
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.004cd1a7
add esp, 0x24
test eax, eax
jne 0x4bbef8
call fcn.004ccf29
push eax
push 0x4ea560
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0048d915
add esp, 0x10
push ebx
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.004c19e7
push 0x32a
push str.C:UsersOfficeDocumentsVisual_StudioPAULATrackProg.c
lea eax, [ebp - 0x108]
push 0x4e75e0
push eax
call fcn.00422a3e
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x4bbf3e
lea eax, [ebp - 0x108]
push eax
call fcn.004208fc
or eax, 0xffffffff
jmp 0x4bbfcd
lea eax, [ebp - 0x1440]
push eax
push esi
call fcn.004bbfdd
pop ecx
pop ecx
test eax, eax
jne 0x4bbf7c
lea eax, [ebp - 0x108]
push eax
push str.:7:LoadTillSheetFromProgress___s___FAILED:_fread___FAILED_to_read_the_till_sheet_struct.
call fcn.0041c80a
push esi
call fcn.004228b3
lea eax, [ebp - 0x108]
push eax
call fcn.004208fc
add esp, 0x10
jmp 0x4bbe74
push esi
push 1
lea eax, [ebp - 0x1444]
push 4
push eax
call fcn.004c7617
add esp, 0x10
cmp eax, 1
jae 0x4bbf9b
mov dword [ebp - 0x1444], ebx
push esi
call fcn.004228b3
pop ecx
test edi, edi
je 0x4bbfbb
push 0x1234
lea eax, [ebp - 0x1440]
push eax
push edi
call fcn.004c3270
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call fcn.004208fc
mov eax, dword [ebp - 0x1444]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret
Function at 0x4bbfdd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4bc15b
test ebx, ebx
je 0x4bc15b
push esi
xor edi, edi
lea eax, [ebp - 4]
inc edi
push edi
push 4
push eax
call fcn.004c7617
add esp, 0x10
cmp eax, edi
jae 0x4bc01e
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4bc021
mov eax, dword [ebp - 4]
mov ecx, 0x1234
test eax, eax
je 0x4bc15b
cmp eax, ecx
ja 0x4bc13e
push ecx
push 0
push ebx
call fcn.004c37f0
push esi
push edi
push dword [ebp - 4]
push ebx
call fcn.004c7617
add esp, 0x1c
cmp eax, edi
jae 0x4bc063
push edi
push esi
call fcn.00422864
push eax
push str.:7:LoadTillSheetFromProgressRAW___s___FAILED:_fread___FAILED_to_read_the_till_sheet_struct.
jmp 0x4bc153
mov eax, dword [ebx + 0x11b8]
test eax, eax
je 0x4bc08b
push edi
push eax
call fcn.004ccef4
push esi
push edi
push dword [ebx + 0x11b8]
mov dword [ebx + 0x11b0], eax
push eax
call fcn.004c7617
add esp, 0x18
mov eax, dword [ebx + 0x11c0]
test eax, eax
je 0x4bc0b3
push edi
push eax
call fcn.004ccef4
push esi
push edi
push dword [ebx + 0x11c0]
mov dword [ebx + 0x11bc], eax
push eax
call fcn.004c7617
add esp, 0x18
and dword [ebx + 0x104c], 0
cmp dword [ebx + 0x1040], 0
je 0x4bc13a
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
lea esi, [ebp - 0x14]
push 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
inc eax
mov word [ebp - 0x12], ax
pop eax
mov word [ebp - 0xe], ax
sub esp, 0x10
mov edi, esp
mov eax, 0x7d7
mov word [ebp - 0x14], ax
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebx + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004b5dfb
add esp, 0x20
test eax, eax
je 0x4bc137
xor ecx, ecx
lea eax, [ebx + 0x1040]
cmp dword [ebx + 0xb8], ecx
je 0x4bc122
cmp word [ebx + 0x2a], cx
je 0x4bc122
xor edi, edi
inc edi
jmp 0x4bc12b
xor edi, edi
inc edi
mov dword [ebx + 0x1050], edi
cmp dword [ebx + 0x1050], ecx
jne 0x4bc13a
mov dword [eax], ecx
jmp 0x4bc13a
xor edi, edi
inc edi
mov eax, edi
jmp 0x4bc15d
test eax, eax
je 0x4bc15b
push ecx
push eax
push edi
push esi
call fcn.00422864
pop ecx
pop ecx
push eax
push str.:7:LoadTillSheetFromProgressRAW___s___FAILED:_The_server_may_need_to_be_recompiled:_The_till_sheet_size_is_invalid:__ld__ld
call fcn.0041c80a
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4bf5ba
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x108]
push 0x104
push esi
push eax
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x118], esi
call fcn.004c37f0
lea eax, [ebp - 0x108]
push str.Live2.ark
push eax
call fcn.00451c70
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00403835
add esp, 0x20
test eax, eax
je 0x4bf733
call fcn.004b729a
push esi
push esi
mov ebx, eax
call fcn.0046aa0e
push eax
lea eax, [ebp - 0x108]
push str._sLUA.DAT
push eax
call fcn.00403dd1
add esp, 0x14
push 0x2e6
push str.C:UsersOfficeDocumentsVisual_StudioPAULAUpdatePAULA2.c
lea eax, [ebp - 0x108]
push 0x4e75e0
push eax
call fcn.00422a3e
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4bf6b3
lea eax, [ebp - 0x108]
push eax
call fcn.0041fc00
pop ecx
test eax, eax
je 0x4bf72e
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004b729a
sub eax, ebx
cmp eax, 0x157c
ja 0x4bf72e
inc esi
cmp esi, 0xf
jl 0x4bf655
jmp 0x4bf72e
push edi
push 1
lea eax, [ebp - 0x118]
push 4
push eax
call fcn.004c7617
add esp, 0x10
cmp eax, 1
je 0x4bf6df
lea eax, [ebp - 0x108]
push eax
push str.:8:IsNewUpdateAvailable___encountered_a_problem:_fread___s___FAILED_to_read_the_archive_size_
call fcn.0041cce9
pop ecx
pop ecx
push edi
push 1
lea eax, [ebp - 0x110]
push 4
push eax
call fcn.004c7617
add esp, 0x10
cmp eax, 1
je 0x4bf70b
lea eax, [ebp - 0x108]
push eax
push str.:8:IsNewUpdateAvailable___encountered_a_problem:_fread___s___FAILED_to_read_the_archive_CheckSum_
call fcn.0041cce9
pop ecx
pop ecx
push edi
call fcn.004228b3
pop ecx
mov ecx, dword [ebp - 0x10c]
cmp ecx, dword [ebp - 0x110]
jne 0x4bf72e
mov ecx, dword [ebp - 0x114]
cmp ecx, dword [ebp - 0x118]
je 0x4bf733
xor eax, eax
inc eax
jmp 0x4bf735
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret
Function at 0x4c2c14
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x4c2c49
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x4c2c46
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x4c2c52
add edx, 0x28
cmp edx, esi
jne 0x4c2c34
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x4c2c4f

Function at 0x4c30b1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4c30f0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4c30f0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c30f0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4c30f0
cmp dword [ecx + 0x74], 0xe
jbe 0x4c30f0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4c7e93
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004c2130
mov eax, dword [0x55f900]
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.004d81c9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4c7ed5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4c8031
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004c2560
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 + 0x6658a0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004da46b
mov ecx, dword [esi*4 + 0x6658a0]
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 0x4c802a
cmp eax, dword [ecx + edi + 0x24]
jne 0x4c802a
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 0x4c802a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004da46b
add esp, 0x14
test edx, edx
jl 0x4c802a
jg 0x4c7fa0
test eax, eax
jb 0x4c802a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4c802a
jl 0x4c7fba
cmp dword [ebp - 0x1008], eax
ja 0x4c802a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4c7fd8
test ebx, ebx
je 0x4c8011
cmp ecx, edi
jae 0x4c8011
mov al, byte [ecx]
cmp al, 0xd
jne 0x4c7ff2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4c7ffe
cmp byte [ecx + 1], 0xa
jne 0x4c7ffe
inc ecx
jmp 0x4c7ffe
movzx eax, al
movsx eax, byte [eax + 0x55fb50]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4c7fd8
cmp edx, ebx
jne 0x4c7fd8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4c802f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret
Function at 0x4d9903
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 + 0x6658a0]
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 0x4d9943
cmp byte [ebx], 0xa
jne 0x4d9943
or byte [edi + eax + 0x28], 4
jmp 0x4d9948
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 0x4d9a47
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4d9a2a
inc eax
cmp dl, 0xd
je 0x4d9974
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4d999a
cmp eax, ecx
jae 0x4d99a8
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 0x4d995c
jmp 0x4d9a47
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 0x4d9a25
cmp dword [ebp - 0x10], 0
je 0x4d9a25
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x6658a0]
test byte [eax + edi + 0x28], 0x48
je 0x4d99ff
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4d99ea
mov byte [esi], dl
jmp 0x4d99fb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6658a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4d9a47
cmp byte [ebp - 1], 0xa
jne 0x4d9a0e
cmp esi, ebx
jne 0x4d9a0e
mov byte [esi], 0xa
jmp 0x4d9a46
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004da489
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4d9a47
mov byte [esi], 0xd
jmp 0x4d9a46
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x6658a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4d9a44
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4d9a47
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4d9a50
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 + 0x6658a0]
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 0x4d9a96
cmp word [ebx], dx
jne 0x4d9a96
or byte [eax + edi + 0x28], 4
jmp 0x4d9a9b
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 0x4d9bfe
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 0x4d9bde
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4d9adc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4d9b12
cmp eax, edx
jae 0x4d9b20
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 0x4d9ab7
jmp 0x4d9bfe
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 0x4d9bd9
cmp dword [ebp - 0x18], 0
je 0x4d9bd9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x6658a0]
test byte [eax + edi + 0x28], 0x48
je 0x4d9baf
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 0x4d9b73
mov word [esi], cx
jmp 0x4d9baa
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x6658a0]
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 + 0x6658a0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x6658a0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4d9bfe
pop eax
cmp word [ebp - 4], ax
jne 0x4d9bbf
cmp esi, ebx
jne 0x4d9bbf
mov word [esi], ax
jmp 0x4d9bfb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004da489
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4d9bfe
push 0xd
pop eax
jmp 0x4d9bba
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x6658a0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4d9bf8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4d9bfe
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4dcc75
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5497b8
push 0x5497b0
push str.FlsAlloc
push 0x1f
call fcn.004dcb34
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4dcca9
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e751c]
call esi
jmp 0x4dccaf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4dccf3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5497c8
push 0x5497c0
push str.FlsGetValue
push 0x21
call fcn.004dcb34
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4dcd2a
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e751c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4dcd32
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5497d0
push 0x5497c8
push str.FlsSetValue
push 0x22
call fcn.004dcb34
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4dcd6c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4e751c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]