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

Disassembly:
push 0xffffffffffffffff
push 0x63a9f8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x14]
call fcn.004024e0
mov dword [esp + 0x20], 0
mov eax, dword [esi + 0x184]
mov ecx, dword [eax + 0x14c]
mov edx, dword [eax + 0x148]
push ecx
push edx
lea eax, [esp + 0x1c]
push str.___s__s
push eax
call fcn.00402f60
mov ecx, dword [esp + 0x24]
mov eax, ecx
add esp, 0x10
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x54e0d7
sub eax, edi
mov byte [ecx], 1
mov edi, ecx
mov ecx, dword [esi + 0x184]
mov ebx, eax
mov eax, dword [ecx + 0x148]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54e0f6
sub eax, edx
mov ecx, eax
mov byte [edi + 1], cl
mov edx, dword [esi + 0x184]
mov eax, dword [edx + 0x14c]
lea ebp, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x54e113
push str.sending_socks5_auth
movzx ecx, cl
sub eax, ebp
push 0
mov byte [ecx + edi + 2], al
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
push ebx
push edx
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0054cd80
push str.socks5:_sending_auth_n
mov ecx, esi
mov edi, eax
call fcn.0054c540
mov dword [esi + 0x30], 0
cmp edi, 0x2733
jne 0x54e163
xor edi, edi
jmp 0x54e167
test edi, edi
jne 0x54e171
mov dword [esi + 0x8c], 0x1f
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402550
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x54e1a0
Capabilities:
Access peb ldr_data
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x637ae8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x30]
push 0
mov ecx, 2
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
call sub.WS2_32.dll_recv
mov edi, eax
push str.recv_socks5_init_reply
push edi
mov ecx, esi
call fcn.0054cd80
test eax, eax
jne 0x54e2be
add dword [esi + 0x30], edi
cmp dword [esi + 0x30], 2
jge 0x54e219
mov eax, 0x2733
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
cmp byte [esi + 0x29], 0
jne 0x54e24c
mov al, byte [esi + 0x28]
cmp al, 5
je 0x54e22a
cmp al, 1
jne 0x54e24c
push str.socks5:_auth_reply_OK_n
mov ecx, esi
call fcn.0054c540
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
push 0x710ef8
lea ecx, [esp + 0x20]
call fcn.004027d0
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x1c]
push 1
push ecx
mov ecx, esi
call fcn.0054cc90
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x9c]
push edx
call fcn.00554e70
movsx eax, byte [esi + 0x29]
movsx ecx, byte [esi + 0x28]
push eax
push ecx
lea edx, [esp + 0x24]
push str.Sock_ver___d__reply___d_n
push edx
call fcn.00402f60
mov eax, dword [esp + 0x2c]
add esp, 0x10
push eax
mov ecx, esi
call fcn.0054c540
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402550
mov eax, 0x757f
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x54e2e0
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x84]
sub esp, 0x84
push 0xffffffffffffffff
push 0x637b40
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x80], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], ebx
mov edi, dword [ebp + 0x8c]
mov dword [ebp - 0x21c], edi
mov ecx, 1
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x424], ebx
mov eax, dword [esi + 0xf8]
cmp eax, ebx
je 0x54e376
mov edx, dword [eax]
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x220], 2
mov edx, dword [eax]
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x424], ecx
mov ecx, dword [ebp + 0x90]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
lea edx, [ebp - 0x1c]
push edx
neg eax
sbb eax, eax
lea ecx, [ebp - 0x424]
and eax, ecx
push eax
push ebx
lea edx, [ebp - 0x220]
push edx
lea eax, [edi + 1]
push eax
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x54e3e6
call sub.WS2_32.dll_WSAGetLastError
mov ebx, eax
push edi
push ebx
push str.Select_failed__err_code___d__socket___d_n
lea ecx, [ebp]
push ecx
call fcn.005fb4cb
add esp, 0x10
lea edx, [ebp]
push edx
mov ecx, esi
call fcn.0054c540
mov eax, dword [0x710348]
push eax
mov ecx, dword [esi + 0x9c]
call fcn.00554e70
mov eax, ebx
jmp 0x54e48c
cmp eax, ebx
jne 0x54e41b
cmp dword [ebp + 0x90], ebx
je 0x54e414
mov ecx, dword [0x710350]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.00554e70
push 1
mov edx, dword [0x710350]
push edx
mov ecx, esi
call fcn.0054cc90
mov eax, 0x7532
jmp 0x54e48c
mov eax, dword [esi + 0xf8]
cmp eax, ebx
je 0x54e458
lea ecx, [ebp - 0x424]
push ecx
mov edx, dword [eax]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x54e451
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [esi + 0xf8]
mov edx, dword [ecx]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x54e458
mov eax, 0x7540
jmp 0x54e48c
xor eax, eax
jmp 0x54e48c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x80]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x84
mov esp, ebp
pop ebp
ret 8
Function at 0x5516b0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
push esi
push edi
push 0x6513c0
xor edi, edi
call fcn.00445b00
mov ebp, dword [esp + 0x1c]
mov esi, eax
add esp, 4
test esi, esi
je 0x55170a
push ebx
push str.SHGetFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x5516fe
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
push ebp
push edi
push edi
push 0x1a
push edi
call ebx
test eax, eax
jne 0x5516f8
lea edi, [eax + 1]
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
test edi, edi
jne 0x551759
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x551759
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
push eax
push str.AppData
push edx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x55174e
lea edi, [eax + 1]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 8
ret
Function at 0x551830
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x637ea8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
cmp dword [0x7101b8], 0
je 0x55188d
cmp dword [0x7101bc], 0
je 0x55188d
cmp dword [0x7101c0], 0
je 0x55188d
cmp dword [0x7101c4], 0
je 0x55188d
mov eax, 1
jmp 0x5519bc
mov eax, dword [0x7101b4]
test eax, eax
jne 0x5518fc
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov word [esp + 0xc], ax
mov dword [esp + 0x20], eax
mov eax, dword [0x70f66c]
test eax, eax
jne 0x5518b5
mov eax, 0x70f670
push 0
push eax
push str._sidmindex.dll
lea ecx, [esp + 0x14]
call fcn.00402190
mov eax, dword [esp + 8]
test eax, eax
jne 0x5518d2
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x7101b4], eax
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 8]
call fcn.004011f0
mov eax, dword [0x7101b4]
test eax, eax
je 0x551992
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sqlite3_open
push eax
call esi
mov ecx, dword [0x7101b4]
push str.sqlite3_close
push ecx
mov dword [0x7101b8], eax
call esi
mov edx, dword [0x7101b4]
push str.sqlite3_exec
push edx
mov dword [0x7101bc], eax
call esi
mov dword [0x7101c0], eax
mov eax, dword [0x7101b4]
push str.sqlite3_free
push eax
call esi
mov ecx, dword [0x7101b4]
push str.sqlite3_blob_open
push ecx
mov dword [0x7101c4], eax
call esi
mov edx, dword [0x7101b4]
push str.sqlite3_blob_close
push edx
mov dword [0x7101c8], eax
call esi
mov dword [0x7101cc], eax
mov eax, dword [0x7101b4]
push str.sqlite3_blob_bytes
push eax
call esi
mov ecx, dword [0x7101b4]
push str.sqlite3_blob_read
push ecx
mov dword [0x7101d0], eax
call esi
mov dword [0x7101d4], eax
cmp dword [0x7101b8], 0
je 0x5519ba
cmp dword [0x7101bc], 0
je 0x5519ba
cmp dword [0x7101c0], 0
je 0x5519ba
cmp dword [0x7101c4], 0
jne 0x551883
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.005f85e7
add esp, 0x1c
ret
Function at 0x5531b0
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movzx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x5531c3
jmp dword [ecx*4 + 0x55324c]
mov al, 0x41
ret 4
mov al, 0x42
ret 4
mov al, 0x43
ret 4
mov al, 0x44
ret 4
mov al, 0x45
ret 4
mov al, 0x46
ret 4
mov al, 0x47
ret 4
mov al, 0x48
ret 4
mov al, 0x49
ret 4
mov al, 0x4a
ret 4
mov al, 0x4b
ret 4
mov al, 0x4c
ret 4
mov al, 0x4d
ret 4
mov al, 0x4e
ret 4
mov al, 0x4f
ret 4
mov al, 0x50
ret 4
mov al, 0x51
ret 4
mov al, 0x52
ret 4
mov al, 0x53
ret 4
mov al, 0x54
ret 4
mov al, 0x55
ret 4
mov al, 0x56
ret 4
mov al, 0x57
ret 4
mov al, 0x58
ret 4
mov al, 0x59
ret 4
mov al, 0x5a
ret 4

Function at 0x553920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x638038
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.005f9f5e
add esp, 0x20
cmp eax, 6
jne 0x5539f0
lea ecx, [esp + 0x30]
call fcn.004024e0
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [esp + 0x48]
push str._04d_02d_02d__02d:_02d:_02d_GMT
push ecx
call fcn.00402f60
mov edx, dword [esp + 0x50]
add esp, 0x20
push edx
mov ecx, esi
call fcn.00553500
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00402550
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4

Function at 0x553a10
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x5547b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x638060
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x70a308]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [edi + 4]
cmp word [eax], bx
je 0x554866
cmp byte [edi + 0x418], bl
je 0x554866
xor esi, esi
cmp dword [edi + 0x41c], 0xffffffff
jne 0x554828
push ebx
push ebx
push 4
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x554866
mov dword [ebp - 0x14], ebx
push 2
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [ebp + 8]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x554830
sub eax, edx
test esi, esi
mov ecx, esi
jne 0x554845
mov ecx, dword [edi + 0x41c]
push 0
lea edx, [ebp - 0x18]
push edx
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x55485f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5548b3
Capabilities:
Delete file
Get file size

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x41c], 0xffffffff
jne 0x5548de
push 0
push 0
push 4
push 0
push 7
push 0xc0000000
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x41c], eax
mov eax, dword [esi + 0x41c]
cmp eax, 0xffffffff
je 0x5549c7
push ebx
push ebp
push edi
lea ecx, [esp + 0x18]
push ecx
push eax
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x554915
test ebx, ebx
jne 0x554915
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x554938
mov edx, dword [esp + 0x18]
push 1
push 0
push 0
push edx
call fcn.005fd4d0
add eax, edi
adc edx, ebx
mov dword [esp + 0x14], edx
js 0x55493d
jg 0x554938
cmp eax, 0x4c4b40
jbe 0x55493d
mov ebp, 1
mov dword [esp + 0x10], ebx
test ebp, ebp
je 0x5549ae
mov eax, dword [esi + 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 4
push 0
push 7
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x41c], eax
cmp eax, 0xffffffff
je 0x5549c4
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push str.Log_h_b_cleared_n
mov ecx, esi
call fcn.005547b0
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
mov ecx, dword [esi + 0x41c]
push 2
lea eax, [esp + 0x14]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x5549d0
Capabilities:
Delete file
Get file size

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
cmp dword [esi + 0x41c], 0xffffffff
je 0x554ae0
lea eax, [esp + 0x10]
push eax
call fcn.005fbfd3
mov eax, dword [esi + 0x420]
add esp, 4
test eax, eax
jne 0x554a09
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x420], ecx
pop esi
add esp, 0x18
ret
lea edx, [eax + 5]
mov eax, dword [esp + 0x10]
cmp edx, eax
jge 0x554ae0
mov ecx, dword [esi + 0x41c]
push ebx
push ebp
push edi
mov dword [esi + 0x420], eax
lea eax, [esp + 0x10]
push eax
push ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x554a4c
test ebx, ebx
jne 0x554a4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x554a6f
mov edx, dword [esp + 0x10]
push 1
push 0
push 0
push edx
call fcn.005fd4d0
add eax, edi
adc edx, ebx
mov dword [esp + 0x18], edx
js 0x554a74
jg 0x554a6f
cmp eax, 0x4c4b40
jbe 0x554a74
mov ebp, 1
mov dword [esp + 0x14], ebx
test ebp, ebp
je 0x554add
mov eax, dword [esi + 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 4
push 0
push 7
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x41c], eax
cmp eax, 0xffffffff
je 0x554add
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push str.Log_h_b_cleared_n
mov ecx, esi
call fcn.005547b0
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x18
ret

Function at 0x554b20
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x54
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
mov esi, ecx
cmp dword [esi + 0x41c], 0xffffffff
je 0x554b8b
lea eax, [esp + 4]
push eax
call fcn.005fbfd3
movzx ecx, word [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
lea eax, [esp + 0x20]
push str.Time:__ld._ld_n
push eax
call fcn.005fb4cb
lea eax, [esp + 0x28]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x554b68
push 0
sub eax, edx
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esi + 0x41c]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x54]
pop esi
xor ecx, esp
call fcn.005f85e7
add esp, 0x54
ret
Function at 0x554c90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6380c0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x70a308]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
xor esi, esi
cmp dword [edi + 0x41c], 0xffffffff
jne 0x554d03
push ebx
push ebx
push 4
push ebx
push 3
push 0xc0000000
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x554d2f
mov dword [ebp - 0x14], ebx
push 2
lea ecx, [ebp - 0x14]
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, ebx
je 0x554d03
mov edi, esi
jmp 0x554d09
mov edi, dword [edi + 0x41c]
push ebx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, ebx
je 0x554d28
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x555030
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push esi
mov esi, dword [esp + 0x3c]
xor ebp, ebp
push edi
mov edi, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebp
lea esp, [esp]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push ebp
sub eax, 4
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x10]
sbb ecx, ebp
push eax
mov dword [esp + 0x2c], ecx
call ebx
cmp eax, 0xffffffff
jne 0x555094
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x5551f1
mov eax, dword [edi + 0x10]
push ebp
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x555226
cmp dword [esp + 0x10], 4
jne 0x555226
lea ecx, [esp + 0x24]
push ecx
call fcn.0058e660
add esp, 4
cmp eax, ebp
jbe 0x555226
xor edx, edx
mov ecx, 0xfffffffc
sub ecx, eax
mov eax, 0xffffffff
sbb eax, edx
add dword [esi], ecx
mov ecx, dword [esi]
adc dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp eax, ebp
jl 0x555226
jg 0x555103
cmp ecx, ebp
jbe 0x555226
push ebp
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x10]
push ecx
push eax
mov dword [esp + 0x28], ecx
call ebx
cmp eax, 0xffffffff
jne 0x55512d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x5551f1
mov eax, dword [edi + 0x10]
push ebp
lea ecx, [esp + 0x14]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x555157
cmp dword [esp + 0x10], 0xc
jne 0x555226
cmp byte [esp + 0x38], 0
je 0x555165
cmp byte [esp + 0x24], 8
jmp 0x55517a
cmp byte [esp + 0x24], 9
jne 0x555060
mov cl, byte [esp + 0x2f]
and cl, 0xf0
cmp cl, 0x10
jne 0x555060
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
jl 0x555060
lea edx, [esp + 0x28]
push edx
call fcn.0058e630
movsx ecx, byte [esp + 0x2f]
mov edx, dword [esp + 0x24]
shl ecx, 0x18
add esp, 4
or eax, ecx
mov dword [edx], eax
mov ecx, dword [edi + 0x10]
push 2
lea eax, [esp + 0x18]
push eax
push ebp
push ecx
mov dword [esp + 0x24], ebp
call ebx
cmp eax, 0xffffffff
jne 0x55520f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebp
je 0x55520f
mov ecx, edi
call fcn.00554f50
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005f85e7
add esp, 0x24
ret 0x10
mov ecx, edi
call fcn.00554f50
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005f85e7
add esp, 0x24
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005f85e7
add esp, 0x24
ret 0x10
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.005f85e7
add esp, 0x24
ret 0x10
Function at 0x555240
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push edi
mov edi, dword [esp + 0x20]
mov esi, ecx
push 0
lea ecx, [esp + 0x1c]
push ecx
mov byte [eax], 0
mov edx, dword [esi + 0x10]
push edi
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
call ebp
cmp eax, 0xffffffff
jne 0x55529c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
test eax, eax
je 0x55529c
mov ecx, esi
call fcn.00554f50
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5552d4
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x20], ecx
jne 0x5552d4
mov edx, dword [esp + 0x34]
mov byte [edx], 1
mov eax, dword [esp + 0x28]
xor ecx, ecx
add eax, edi
push 0
adc ecx, ebx
add eax, 4
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x10]
adc ecx, 0
push eax
mov dword [esp + 0x28], ecx
call ebp
cmp eax, 0xffffffff
jne 0x55531e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x55531e
mov ecx, esi
call fcn.00554f50
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0x18

Function at 0x555340
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x10]
cmp eax, 0xffffffff
jne 0x55534d
xor eax, eax
ret 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push ecx
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 0xc

Function at 0x555380
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx + 0x10]
cmp eax, 0xffffffff
jne 0x55538f
xor eax, eax
pop ecx
ret 4
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], 0
cmp eax, 0xffffffff
jne 0x5553ce
cmp dword [esi + 4], 0
jne 0x5553ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5553ce
mov dword [esi], eax
mov dword [esi + 4], 0
xor eax, eax
pop esi
pop ecx
ret 4
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
call fcn.005fd4d0
add dword [esi], eax
mov eax, 1
adc dword [esi + 4], edx
pop esi
pop ecx
ret 4