joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4265a0
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x5ca84b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
mov eax, dword [esp + 0xa4]
lea ecx, [esp]
push eax
mov dword [esp + 0x10], 0
call fcn.005980a0
push str._uname_
lea ecx, [esp + 4]
mov dword [esp + 0x9c], 1
call fcn.0058f6e2
cmp eax, 0xffffffff
jle 0x426625
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x10], 0x80
call dword [sym.imp.advapi32.dll_GetUserNameA]
test eax, eax
jne 0x426612
mov byte [esp + 0x10], al
lea eax, [esp + 0x10]
lea ecx, [esp]
push eax
push str._uname_
call fcn.0058f334
push str._date_
lea ecx, [esp + 4]
call fcn.0058f6e2
cmp eax, 0xffffffff
jle 0x426666
lea ecx, [esp + 0x10]
push 0x80
push ecx
push 0
push 0
push 0
push 0x400
call dword [sym.imp.kernel32.dll_GetDateFormatA]
lea edx, [esp + 0x10]
lea ecx, [esp]
push edx
push str._date_
call fcn.0058f334
push str._time_
lea ecx, [esp + 4]
call fcn.0058f6e2
cmp eax, 0xffffffff
jle 0x4266a7
lea eax, [esp + 0x10]
push 0x80
push eax
push 0
push 0
push 0
push 0x400
call dword [sym.imp.kernel32.dll_GetTimeFormatA]
lea ecx, [esp + 0x10]
push ecx
push str._time_
lea ecx, [esp + 8]
call fcn.0058f334
push esi
mov esi, dword [0x63e14c]
push str._file_
lea ecx, [esp + 8]
call fcn.0058f6e2
cmp eax, 0xffffffff
jle 0x42670d
push 0
mov ecx, esi
call fcn.0042c530
test eax, eax
je 0x42670d
lea edx, [esp + 8]
mov ecx, esi
push edx
push 0
call fcn.0042c530
mov ecx, eax
call fcn.00424330
mov eax, dword [eax]
lea ecx, [esp + 4]
push eax
push str._file_
mov byte [esp + 0xa4], 2
call fcn.0058f334
lea ecx, [esp + 8]
mov byte [esp + 0x9c], 1
call fcn.00598032
push str._path_
lea ecx, [esp + 8]
call fcn.0058f6e2
cmp eax, 0xffffffff
jle 0x42678d
push 0
mov ecx, esi
call fcn.0042c530
test eax, eax
je 0x42678d
push 0
mov ecx, esi
call fcn.0042c530
add eax, 0x20
lea ecx, [esp + 8]
push eax
call fcn.00597da7
mov eax, dword [esp + 0xac]
mov byte [esp + 0x9c], 3
test eax, eax
je 0x426769
push 0x61f34c
push 0x61e354
lea ecx, [esp + 0x10]
call fcn.0058f334
mov eax, dword [esp + 8]
lea ecx, [esp + 4]
push eax
push str._path_
call fcn.0058f334
lea ecx, [esp + 8]
mov byte [esp + 0x9c], 1
call fcn.00598032
mov esi, dword [esp + 0xa4]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00597da7
mov dword [esp + 0x10], 1
lea ecx, [esp + 4]
mov byte [esp + 0x9c], 0
call fcn.00598032
mov ecx, dword [esp + 0x94]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x9c
ret
Function at 0x42da00
Capabilities:
Hash data with crc32

Disassembly:
push ecx
mov eax, dword [0x63e1f4]
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov ebx, ecx
je 0x42da49
mov edi, dword [0x63fa0c]
cmp edi, ebp
je 0x42da2f
mov esi, dword [0x63fa10]
cmp esi, ebp
je 0x42da2f
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
jmp 0x42da49
lea eax, [esp + 0x13]
push 0xf327
sub eax, 0x10
push 0x62de34
push eax
call fcn.004f5580
add esp, 0xc
call fcn.0042b300
mov ecx, dword [0x6572d4]
lea edx, [esp + 0x13]
xor ecx, eax
sub edx, 0x10
push ecx
push 0x62de34
push edx
call fcn.004f5580
add esp, 0xc
mov dword [ebx + 0xbdc], ebp
call fcn.004105f0
cmp dword [ebx + 0xbf4], ebp
je 0x42daa8
test byte [ebx + 0xbfc], 1
je 0x42daa8
mov eax, dword [ebx + 0xc04]
push eax
push ebp
call dword [sym.imp.user32.dll_FindWindowA]
pop edi
mov dword [ebx + 0xb84], ebp
pop esi
mov dword [ebx + 0xb98], eax
pop ebp
pop ebx
pop ecx
ret
pop edi
mov dword [ebx + 0xb98], ebp
mov dword [ebx + 0xb84], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x431120
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x5cb0ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [ecx + 0x1c]
push esi
xor esi, esi
push eax
mov dword [esp + 8], esi
call dword [sym.imp.user32.dll_OpenClipboard]
cmp eax, esi
jne 0x43116c
push 0xffffffffffffffff
push esi
push 0x92
call fcn.005a00ab
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
push ebx
push 0x480
call fcn.00596900
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, esi
mov dword [esp + 0x30], esi
je 0x431191
mov ecx, eax
call fcn.004e5b80
mov ebx, eax
jmp 0x431193
xor ebx, ebx
push ebp
push edi
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x18]
push 8
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.user32.dll_IsClipboardFormatAvailable]
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x18], ebx
call edi
mov ebp, dword [sym.imp.user32.dll_GetClipboardData]
test eax, eax
je 0x4311cc
push 8
call ebp
test eax, eax
je 0x4311cc
mov esi, eax
push 2
call edi
test eax, eax
je 0x4311ee
push 2
call ebp
mov edi, eax
test edi, edi
je 0x4311f2
lea ecx, [esp + 0x18]
push ecx
push 0x18
push edi
call dword [sym.imp.gdi32.dll_GetObjectA]
jmp 0x4311f2
mov edi, dword [esp + 0x10]
test esi, esi
je 0x431223
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x431209
mov dx, word [esp + 0x2a]
cmp dx, word [esi + 0xe]
jae 0x431223
push esi
call fcn.004e59c0
mov edi, dword [esi]
add esp, 4
add eax, edi
mov ecx, ebx
add eax, esi
push eax
push esi
call fcn.004e5ed0
jmp 0x43123e
push 9
call ebp
test eax, eax
je 0x431233
push eax
call fcn.0059c09d
jmp 0x431235
xor eax, eax
push eax
push edi
mov ecx, ebx
call fcn.004e6050
push str.HS_Transp_Info
call dword [sym.imp.user32.dll_RegisterClipboardFormatA_1]
push eax
call ebp
mov esi, eax
pop edi
test esi, esi
pop ebp
je 0x43126e
push esi
mov dword [ebx + 0xc], 1
call dword [sym.imp.kernel32.dll_GlobalLock]
mov eax, dword [eax]
push esi
mov dword [ebx + 0x10], eax
call dword [sym.imp.kernel32.dll_GlobalUnlock]
call dword [sym.imp.user32.dll_CloseClipboard]
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x43129b
test ebx, ebx
je 0x431288
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx + 4]
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x438ad0
Capabilities:
Copy file
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5cbe98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0xf0]
lea esi, [ebp + 0xf0]
push 0x63df70
push eax
mov dword [esp + 0x28], ebp
call fcn.004f59f0
add esp, 8
test eax, eax
jle 0x438c20
push ebx
push 0x61e354
lea eax, [esp + 0x18]
push esi
push eax
call fcn.005982c7
lea edi, [ebp + 0xf8]
lea ecx, [esp + 0x10]
push edi
push eax
push ecx
mov dword [esp + 0x3c], 0
call fcn.005982c7
mov eax, dword [eax]
push 0
push eax
call fcn.004f6fcf
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setl bl
call fcn.00598032
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.00598032
test bl, bl
je 0x438be0
push 0x61e354
lea edx, [esp + 0x24]
push esi
push edx
call fcn.005982c7
push edi
push eax
lea eax, [esp + 0x24]
mov ebx, 1
push eax
mov dword [esp + 0x3c], ebx
call fcn.005982c7
mov ebp, dword [eax]
push str._template.rtf
lea ecx, [esp + 0x1c]
push esi
push ecx
mov byte [esp + 0x3c], 2
call fcn.005982c7
mov eax, dword [eax]
push ebx
push ebp
push eax
call dword [sym.imp.kernel32.dll_CopyFileA]
lea ecx, [esp + 0x18]
call fcn.00598032
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.00598032
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
call fcn.00598032
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp + 0xf4]
push 0x63df70
push eax
call fcn.004f59f0
add esp, 8
test eax, eax
pop ebx
push 5
jle 0x438c0d
mov edx, dword [esi]
mov eax, dword [ebp + 0xf4]
push edx
push edi
push eax
push str.open
jmp 0x438c18
mov ecx, dword [esi]
push ecx
push 0
push edi
push str.edit
push 0
call dword [sym.imp.shell32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4466c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ccbf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x2f8]
push eax
call dword [sym.imp.user32.dll_IsWindow]
test eax, eax
jne 0x4466fe
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
mov ecx, dword [0x63094c]
push ebx
mov dword [esp + 0xc], ecx
lea edi, [esi + 0x90]
lea edx, [esp + 0xc]
push edx
mov ecx, edi
mov dword [esp + 0x1c], 0
call fcn.005943d1
mov eax, dword [esp + 0xc]
push eax
call fcn.004f66ae
add esp, 4
lea ecx, [esp + 0xc]
mov ebx, eax
call fcn.0058fb10
lea ecx, [esp + 0xc]
call fcn.0058fac4
test ebx, ebx
jle 0x44676a
mov ecx, dword [esp + 0xc]
push 0x63df70
push ecx
call fcn.004f59f0
add esp, 8
test eax, eax
je 0x44676a
cmp ebx, 0x40
jle 0x446776
push 0x623784
jmp 0x44676f
push 0x61d9f0
mov ecx, edi
call fcn.00596b55
push 1
mov ecx, esi
call fcn.00595e7c
test eax, eax
pop ebx
jne 0x4467aa
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00598032
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
mov edi, dword [esp + 0x1c]
mov edx, dword [esi + 0x318]
push 0
push 0
mov dword [edi + 0x2c], edx
mov eax, dword [esi + 0x2f8]
push 0xf0
push eax
call dword [sym.imp.user32.dll_SendMessageA]
mov dword [edi + 0x34], eax
mov ecx, dword [esi + 0x320]
mov dword [edi + 0x18], ecx
mov edx, dword [esi + 0x31c]
mov dword [edi + 0x1c], edx
mov eax, dword [esi + 0x324]
mov dword [edi + 0x38], eax
mov ecx, dword [esi + 0x328]
mov dword [edi + 0x3c], ecx
mov edx, dword [esi + 0x330]
mov dword [edi + 0x40], edx
mov eax, dword [esi + 0x338]
mov dword [edi + 0x44], eax
mov ecx, dword [esi + 0x334]
mov dword [edi + 0x48], ecx
mov edx, dword [esi + 0x32c]
mov dword [edi + 0x4c], edx
mov eax, dword [esi + 0x1ac]
mov dword [edi + 0x28], eax
mov esi, dword [esi + 0x2b4]
lea ecx, [esp + 8]
mov dword [edi + 0x30], esi
mov dword [esp + 0x14], 0xffffffff
call fcn.00598032
mov ecx, dword [esp + 0xc]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x448a80
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ccf56
push eax
mov dword fs:[0], esp
sub esp, 0x2dc
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.0059890a
test eax, eax
je 0x448ab3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x448ab5
xor eax, eax
push eax
push 0x5df958
call fcn.00598737
add esp, 8
mov ecx, ebp
mov esi, eax
push 0
call fcn.00449930
mov eax, dword [ebp + 0x78]
push 0
push 0
push 0x1009
push eax
call dword [sym.imp.user32.dll_SendMessageA]
lea ebx, [esi + 0xc40]
push 0x620dc8
lea ecx, [esp + 0x14]
push ebx
push ecx
call fcn.005982c7
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1e8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00598032
lea ecx, [esp + 0xa8]
lea edx, [esp + 0x1e8]
push ecx
push edx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x448c52
xor edi, edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], edi
call fcn.004436b0
mov dword [esp + 0x2f4], edi
jmp 0x448b67
xor edi, edi
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x14]
push eax
push ebx
push ecx
mov dword [esp + 0x8c], edi
call fcn.005982c7
mov edx, dword [esp + 0x14]
push 0x61d6e4
push edx
mov byte [esp + 0x2fc], 1
call fcn.004f600d
mov edi, eax
add esp, 8
test edi, edi
je 0x448c0f
push edi
lea ecx, [esp + 0x20]
call fcn.00443b10
test eax, eax
je 0x448c06
lea eax, [esp + 0xd4]
push 0x2e
push eax
call fcn.004f6230
add esp, 8
test eax, eax
je 0x448bc8
mov byte [eax], 0
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0xe0]
push 0
lea esi, [ebp + 0x5c]
push ecx
push edx
push 1
mov ecx, esi
call fcn.00590afb
mov ecx, dword [esp + 0x80]
push ecx
push eax
mov ecx, esi
call fcn.004d1720
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
inc eax
mov dword [esp + 0x10], eax
push edi
call fcn.004f5acf
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x2f4], 0
call fcn.00598032
lea edx, [esp + 0xa8]
push edx
push esi
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x448b65
push esi
call dword [sym.imp.kernel32.dll_FindClose]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2f4], 0xffffffff
call fcn.00443770
mov eax, dword [ebp + 0x5c]
lea esi, [ebp + 0x5c]
mov ecx, esi
call dword [eax + 0xc8]
mov ecx, dword [0x63f974]
push 1
push ecx
mov ecx, esi
call fcn.004d13a0
mov edx, dword [0x63f974]
push 0
push 0
push edx
mov ecx, esi
call fcn.004d1b00
push 1
mov ecx, ebp
call fcn.00449930
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2e8
ret
Function at 0x44bc10
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, dword [0x63f9cc]
sub esp, 0x210
test eax, eax
jne 0x44bc31
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [0x63f9cc], 1
lea eax, [esp]
push eax
push 0x5ef8f8
push 1
push 0
push 0x5ef908
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x44bd2d
mov eax, dword [esp]
lea edx, [esp + 4]
push esi
push edx
mov ecx, dword [eax]
push 0x5ef958
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x44bd20
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jge 0x44bc94
push 0
push 0
push str.SetPath_failed_
call fcn.005a0073
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x220]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jge 0x44bcb8
push 0
push 0
push str.SetDescription_failed_
call fcn.005a0073
mov ecx, dword [esp + 0x21c]
lea eax, [esp + 0xc]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x224]
cmp eax, 1
je 0x44bced
mov ecx, dword [esp + 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov ecx, dword [esp + 0x228]
test ecx, ecx
je 0x44bd03
mov eax, dword [esp + 4]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, esi
pop esi
add esp, 0x210
ret
Function at 0x44f7f9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44f851
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x63df70
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x44f844
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
jmp 0x44f853
xor eax, eax
pop esi
leave
ret 4

Function at 0x452530
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x114
push esi
push edi
push 0x64e180
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
call fcn.00457450
push 0x64e1a0
call fcn.00452360
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.004525e0
mov esi, dword [0x64e1a0]
mov edi, dword [esp + 0x14]
mov ecx, 0x41
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x18]
mov ecx, 0x40
mov edi, dword [eax]
add eax, 4
xor edi, 0xfffffffe
dec ecx
mov dword [eax - 4], edi
jne 0x45257e
push 0x64e1a0
call fcn.00452360
lea edx, [esp + 0xc]
push edx
call fcn.00452360
add esp, 8
push 0x64e180
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x124]
mov esi, dword [esp + 8]
mov edi, dword [esp + 0x120]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x114
ret
Function at 0x458cd0
Capabilities:
Create thread
Read file on windows

Disassembly:
mov eax, dword [0x625eb8]
sub esp, 0x88
cmp eax, 0xffffffff
je 0x458d3c
push 0xa
push eax
call dword [sym.imp.kernel32.dll_PurgeComm]
mov edx, dword [0x625eb8]
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x10]
push 0x80
push ecx
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x458d3c
cmp dword [esp + 4], 0x80
jne 0x458d3c
lea eax, [esp + 8]
push 0x80
push eax
call fcn.00452440
push 0x43
mov dword [0x64e1ac], 0
call fcn.0045f190
add esp, 0xc
test eax, eax
jne 0x458d7d
mov eax, dword [0x63fb60]
test eax, eax
jne 0x458d7d
mov eax, dword [0x64df98]
test eax, eax
je 0x458d5e
lea ecx, [esp]
push ecx
push 0
push 0
push 0x458790
jmp 0x458d6c
lea edx, [esp]
push edx
push 0
push 0
push 0x458a60
push 0
push 0
call fcn.004f7625
add esp, 0x18
mov dword [0x63fb60], eax
add esp, 0x88
ret

Function at 0x458df0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x80
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x625eb8], eax
je 0x458f1f
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetCommState]
mov eax, dword [esp + 0x88]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.kernel32.dll_BuildCommDCBA]
mov ecx, dword [esp + 0x2c]
mov eax, dword [0x625eb8]
and ch, 0xef
lea edx, [esp + 0x24]
or ch, 0x20
push edx
push eax
mov dword [esp + 0x34], ecx
call dword [sym.imp.kernel32.dll_SetCommState]
test eax, eax
je 0x458f1a
mov edx, dword [0x625eb8]
lea ecx, [esp + 0x40]
push ecx
push edx
mov word [esp + 0x48], 0x40
call dword [sym.imp.kernel32.dll_GetCommProperties]
test byte [esp + 0x5c], 0x80
je 0x458ec2
mov ecx, dword [0x625eb8]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetCommTimeouts]
mov eax, dword [0x625eb8]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0xa
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x20], 0x64
call dword [sym.imp.kernel32.dll_SetCommTimeouts]
mov ecx, dword [0x625eb8]
push esi
mov esi, dword [sym.imp.kernel32.dll_PurgeComm]
push 0xa
push ecx
call esi
push 0xfa
call dword [sym.imp.kernel32.dll_Sleep]
mov edx, dword [0x625eb8]
push 0xa
push edx
call esi
mov edx, dword [0x625eb8]
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x10]
push 0xa
push ecx
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
pop esi
je 0x458f1a
cmp dword [esp], 0xa
jne 0x458f1a
xor eax, eax
add esp, 0x80
ret
call fcn.00458f30
or eax, 0xffffffff
add esp, 0x80
ret
Function at 0x459b70
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x459c0e
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x459c06
mov eax, dword [esi + 0x20]
test eax, eax
je 0x459ba9
mov al, byte [esi + 0x1c]
mov dword [esi + 0x20], 0
mov byte [esp + 0xc], al
mov eax, dword [esp + 0xc]
and eax, 0xff
pop esi
pop ecx
ret
mov eax, dword [esi + 4]
test eax, eax
je 0x459bd3
cmp eax, 0xffffffff
je 0x459bbf
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp ecx, eax
jge 0x459c06
mov ecx, dword [esi + 8]
mov edx, dword [esi]
xor eax, eax
mov al, byte [ecx + edx]
inc ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 8], ecx
pop esi
pop ecx
ret
mov edx, dword [esi + 0x10]
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x459c06
mov eax, dword [esp + 4]
test eax, eax
je 0x459c06
mov eax, dword [esp + 0xc]
and eax, 0xff
mov dword [esi + 0x1c], eax
pop esi
pop ecx
ret
mov eax, 0xffffff69
mov dword [esi + 0x18], eax
pop esi
pop ecx
ret

Function at 0x459c20
Capabilities:
Write file on windows

Disassembly:
mov cl, byte [esp + 8]
push esi
mov esi, dword [esp + 8]
mov byte [esp + 0xc], cl
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x459ccd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x459c4a
mov eax, dword [esi + 8]
inc eax
mov dword [esi + 8], eax
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x20]
test eax, eax
je 0x459c63
mov eax, dword [esi + 8]
test eax, eax
je 0x459c63
dec eax
mov dword [esi + 0x20], 0
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x459c9d
cmp eax, 0xffffffff
je 0x459c7e
cmp dword [esi + 8], eax
jl 0x459c7e
mov eax, 0xffffff6a
mov dword [esi + 0x18], eax
pop esi
ret
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov byte [eax + edx], cl
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
inc edx
mov eax, edx
mov dword [esi + 8], edx
cmp ecx, eax
jge 0x459c99
mov dword [esi + 0xc], eax
xor eax, eax
pop esi
ret
mov edx, dword [esi + 0x10]
lea eax, [esp + 8]
push 0
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x459cc5
mov eax, dword [esp + 8]
test eax, eax
je 0x459cc5
xor eax, eax
pop esi
ret
mov eax, 0xffffff36
mov dword [esi + 0x18], eax
pop esi
ret
Function at 0x459d00
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
mov eax, dword [ebx + 0x18]
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x459ddc
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x459d29
mov eax, 0xffffff69
pop edi
mov dword [ebx + 0x18], eax
pop ebp
pop ebx
ret
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x459d37
pop edi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x459d54
mov al, byte [ebx + 0x1c]
mov byte [edi], al
inc edi
dec ebp
mov dword [ebx + 0x20], 0
jne 0x459d54
pop edi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx + 4]
test eax, eax
je 0x459db1
cmp eax, 0xffffffff
je 0x459d8a
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
add ecx, ebp
cmp ecx, eax
jle 0x459d8a
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, 0xffffff69
pop edi
mov dword [ebx + 0x18], eax
pop ebp
pop ebx
ret
mov eax, dword [ebx + 8]
push esi
mov esi, dword [ebx]
mov ecx, ebp
add esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 8]
pop esi
add eax, ebp
pop edi
mov dword [ebx + 8], eax
pop ebp
xor eax, eax
pop ebx
ret
mov edx, dword [ebx + 0x10]
lea ecx, [esp + 0x14]
push 0
push ecx
push ebp
push edi
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x459dd4
cmp dword [esp + 0x14], ebp
jne 0x459dd4
pop edi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 0xffffff37
mov dword [ebx + 0x18], eax
pop edi
pop ebp
pop ebx
ret

Function at 0x459de0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x459e96
mov ebp, dword [esp + 0x14]
test ebp, ebp
jne 0x459dfc
pop ebp
pop ebx
ret
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x459e10
mov eax, dword [ebx + 8]
add eax, ebp
pop ebp
mov dword [ebx + 8], eax
xor eax, eax
pop ebx
ret
mov eax, dword [ebx + 4]
test eax, eax
je 0x459e68
cmp eax, 0xffffffff
je 0x459e30
mov ecx, dword [ebx + 8]
add ecx, ebp
cmp ecx, eax
jle 0x459e30
mov eax, 0xffffff6a
pop ebp
mov dword [ebx + 0x18], eax
pop ebx
ret
mov edx, dword [ebx + 8]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [ebx]
mov ecx, ebp
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
add edx, ebp
pop edi
mov eax, edx
mov dword [ebx + 8], edx
cmp ecx, eax
pop esi
jge 0x459e63
mov dword [ebx + 0xc], eax
pop ebp
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x10]
lea eax, [esp + 0x10]
push 0
push eax
push ebp
push ecx
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x459e8e
cmp dword [esp + 0x10], ebp
jne 0x459e8e
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 0xffffff36
mov dword [ebx + 0x18], eax
pop ebp
pop ebx
ret