joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100048f0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x278
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
mov ebp, dword [esp + 0x284]
push esi
push edi
push 0x100
xor ebx, ebx
lea eax, [esp + 0x128]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x100
lea ecx, [esp + 0x20]
push ebx
push ecx
mov dword [esp + 0x24], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x51
lea edx, [esp + 0x22c]
push ebx
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x130], ebp
mov dword [esp + 0x12c], 1
call sub.MSVCR90.dll_memset
mov eax, dword [0x10079d80]
add esp, 0xc
push eax
lea ecx, [esp + 0x22c]
push 0x100081d0
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x234]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10004991
sub eax, esi
push eax
lea edx, [esp + 0x22c]
push edx
mov esi, ebp
call fcn.10004ce0
add esp, 8
lea eax, [esp + 0x10]
push eax
push ebx
mov ecx, 0x41
lea esi, [esp + 0x128]
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebx
mov dword [esp + 0x24], 0x14
mov dword [esp + 0x28], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x10004ad5
push 0x51
lea edx, [esp + 0x22c]
push ebx
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 0x51
lea eax, [esp + 0x230]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
push 0x51
lea ecx, [esp + 0x22c]
push ebx
push ecx
mov byte [esp + eax + 0x234], bl
call sub.MSVCR90.dll_memset
mov edx, dword [0x1007b254]
add esp, 0xc
push edx
lea eax, [esp + 0x22c]
push 0x100081d0
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x234]
add esp, 0xc
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10004a50
sub eax, esi
push eax
lea ecx, [esp + 0x22c]
push ecx
mov esi, ebp
call fcn.10004ce0
add esp, 8
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
mov ecx, 0x41
lea esi, [esp + 0x130]
lea edi, [esp + 0x28]
push ebx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x24], 0x14
mov dword [esp + 0x28], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x10004ad5
push 0x51
lea ecx, [esp + 0x22c]
push ebx
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 0x51
lea edx, [esp + 0x230]
push edx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
mov eax, 1
jmp 0x10004ad7
xor eax, eax
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10007058
add esp, 0x278
ret
Function at 0x10005980
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x278
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
mov ebp, dword [esp + 0x284]
push esi
push edi
push 0x100
xor ebx, ebx
lea eax, [esp + 0x128]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x100
lea ecx, [esp + 0x20]
push ebx
push ecx
mov dword [esp + 0x24], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x51
lea edx, [esp + 0x22c]
push ebx
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x130], ebp
mov dword [esp + 0x12c], 1
call sub.MSVCR90.dll_memset
mov eax, dword [0x1007b284]
add esp, 0xc
push eax
lea ecx, [esp + 0x22c]
push 0x100081d0
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x234]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10005a21
sub eax, esi
push eax
lea edx, [esp + 0x22c]
push edx
mov esi, ebp
call fcn.10004ce0
add esp, 8
lea eax, [esp + 0x10]
push eax
push ebx
mov ecx, 0x41
lea esi, [esp + 0x128]
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebx
mov dword [esp + 0x24], 0x14
mov dword [esp + 0x28], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x10005b65
push 0x51
lea edx, [esp + 0x22c]
push ebx
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 0x51
lea eax, [esp + 0x230]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
push 0x51
lea ecx, [esp + 0x22c]
push ebx
push ecx
mov byte [esp + eax + 0x234], bl
call sub.MSVCR90.dll_memset
mov edx, dword [0x1007c758]
add esp, 0xc
push edx
lea eax, [esp + 0x22c]
push 0x100081d0
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x234]
add esp, 0xc
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10005ae0
sub eax, esi
push eax
lea ecx, [esp + 0x22c]
push ecx
mov esi, ebp
call fcn.10004ce0
add esp, 8
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
mov ecx, 0x41
lea esi, [esp + 0x130]
lea edi, [esp + 0x28]
push ebx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x24], 0x14
mov dword [esp + 0x28], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x10005b65
push 0x51
lea ecx, [esp + 0x22c]
push ebx
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 0x51
lea edx, [esp + 0x230]
push edx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
mov eax, 1
jmp 0x10005b67
xor eax, eax
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10007058
add esp, 0x278
ret
Function at 0x100060c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x108
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
push edi
push 0x104
lea eax, [esp + 0x10]
push 0
push eax
call sub.MSVCR90.dll_memset
mov edi, dword [sym.imp.MSVCR90.dll_sprintf]
push esi
lea ecx, [esp + 0x1c]
push str._c_route_delete__s
push ecx
call edi
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteA]
add esp, 0x18
push 0
push 0
lea edx, [esp + 0x14]
push edx
push str.cmd.exe
push 0
push 0
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call ebp
push str.mask_255.255.255.255_0.0.0.0
push esi
lea eax, [esp + 0x14]
push str._c_route_add__s__s
push eax
call edi
add esp, 0x10
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
push str.cmd.exe
push 0
push 0
call ebx
push 0x7d0
call ebp
mov ecx, dword [0x1007d45c]
shl ecx, 4
pop edi
lea ecx, [ecx + 0x1007c788]
pop ebp
mov eax, esi
sub ecx, esi
pop ebx
jmp 0x10006170
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x10006170
mov ecx, dword [esp + 0x104]
inc dword [0x1007d45c]
xor ecx, esp
call fcn.10007058
add esp, 0x108
ret
Function at 0x100067c0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x134
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push edi
xor ebx, ebx
push ebx
push 0xf
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 8]
push eax
push edi
call sub.KERNEL32.dll_Process32First
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10006800
sub eax, edx
mov edx, eax
xor ecx, ecx
test edx, edx
jle 0x10006828
mov al, byte [esp + ecx + 0x2c]
cmp al, 0x41
jl 0x10006823
cmp al, 0x5f
jg 0x10006823
add al, 0x20
mov byte [esp + ecx + 0x2c], al
inc ecx
cmp ecx, edx
jl 0x10006811
mov ecx, esi
lea eax, [esp + 0x2c]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10006850
test dl, dl
je 0x1000684c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10006850
add eax, 2
add ecx, 2
test dl, dl
jne 0x10006830
xor eax, eax
jmp 0x10006855
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000686a
lea ecx, [esp + 8]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100067f5
jmp 0x10006879
mov edx, dword [esp + 0x10]
mov dword [0x1007d460], edx
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
pop edi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.10007058
add esp, 0x134
ret
Function at 0x10006ec0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
sub esp, 0x12c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
call fcn.10006930
mov esi, 0x1000828c
call fcn.100067c0
test eax, eax
jne 0x10006f13
mov esi, 0x10008298
call fcn.100067c0
test eax, eax
jne 0x10006f13
mov esi, str.gostop.exe
call fcn.100067c0
test eax, eax
je 0x10007020
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10007011
mov ebx, dword [sym.imp.MSVCR90.dll_sprintf]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x20]
push edx
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x10006fea
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
cmp eax, 0xf
je 0x10006f75
cmp eax, 0xfffffff1
jne 0x10006fea
push esi
call fcn.100068a0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
push edi
lea ecx, [esp + 0x48]
push str._xsize:_d_tid:_d_pid:_d_base:_ld_delta:_ld_n
push ecx
call ebx
add esp, 0x1c
push 1
call ebp
mov eax, dword [0x1007d460]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jne 0x10006fea
lea edx, [edi - 0x100001]
cmp edx, 0x3feffffe
ja 0x10006fea
push ecx
push eax
push edi
lea eax, [esp + 0x40]
push str.stop:_x_d:_d_n
push eax
call ebx
add esp, 0x14
push 1
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1000700a
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10006f47
jmp 0x10007011
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10007058
add esp, 0x12c
ret

Function at 0x10007058
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10007062
repz ret
jmp fcn.10007415
Function at 0x10002200
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea esi, [ebp - 0x12]
mov edi, dword [ebp + 8]
mov dword [esp], edi
mov dword [esp + 4], 0x59
mov dword [esp + 8], esi
mov dword [esp + 0xc], 6
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
sub esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000234e
mov eax, dword [ebp + 8]
movzx ecx, ax
and ecx, 0x3ff
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 9
je 0x1000227a
cmp dword [ebp - 0x1c], 4
je 0x1000227a
cmp dword [ebp - 0x1c], 1
jne 0x1000228c
mov eax, dword [ebp + 8]
movzx ecx, ax
sar ecx, 0xa
cmp ecx, 1
je 0x1000229e
mov eax, dword [ebp + 8]
movzx ecx, ax
sar ecx, 0xa
cmp ecx, 1
jle 0x100022f3
lea eax, [ebp - 0x12]
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov byte [ebp + ecx - 0x12], 0x2d
mov ecx, 6
sub ecx, dword [ebp - 0x18]
add eax, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov dword [esp + 4], 0x5a
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
sub esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x100022ee
mov eax, dword [ebp - 0x18]
sub eax, 1
mov byte [ebp + eax - 0x12], 0
jmp 0x100022fa
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x12]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x18]
add esi, dword [ebp - 0x1c]
mov dword [esp], 0x400
mov dword [esp + 4], 0x100
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
sub esp, 0x18
xor ecx, ecx
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x1c]
mov esi, dword [ebp + 0x10]
cmp edx, esi
mov edx, 0x80070057
cmovg ecx, edx
mov dword [ebp - 0xc], ecx
jmp 0x10002355
mov dword [ebp - 0xc], 0x80004005
mov eax, dword [ebp - 0xc]
add esp, 0x38
pop esi
pop edi
pop ebp
ret
Function at 0x100023e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea esi, [ebp - 0x18]
mov edi, dword [ebp + 8]
mov dword [esp], edi
mov dword [esp + 4], 0x59
mov dword [esp + 8], esi
mov dword [esp + 0xc], 6
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
sub esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10002537
mov eax, dword [ebp + 8]
movzx ecx, ax
and ecx, 0x3ff
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 9
je 0x1000245a
cmp dword [ebp - 0x20], 4
je 0x1000245a
cmp dword [ebp - 0x20], 1
jne 0x1000246c
mov eax, dword [ebp + 8]
movzx ecx, ax
sar ecx, 0xa
cmp ecx, 1
je 0x1000247e
mov eax, dword [ebp + 8]
movzx ecx, ax
sar ecx, 0xa
cmp ecx, 1
jle 0x100024dc
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
mov word [ebp + ecx*2 - 0x18], 0x2d
mov ecx, 6
sub ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
shl edx, 1
add eax, edx
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov dword [esp + 4], 0x5a
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
sub esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100024d7
mov eax, dword [ebp - 0x1c]
sub eax, 1
mov word [ebp + eax*2 - 0x18], 0
jmp 0x100024e3
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x1c]
add esi, dword [ebp - 0x20]
mov dword [esp], 0x400
mov dword [esp + 4], 0x100
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
sub esp, 0x18
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x20]
mov esi, dword [ebp + 0x10]
cmp edx, esi
mov edx, 0x80070057
cmovg ecx, edx
mov dword [ebp - 0xc], ecx
jmp 0x1000253e
mov dword [ebp - 0xc], 0x80004005
mov eax, dword [ebp - 0xc]
add esp, 0x3c
pop esi
pop edi
pop ebp
ret
Function at 0x44cbc0
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [0x86183d99]
fistp qword [esi - 0x2bac45c4]
or esp, ecx
sub dh, 0x78
outsd dx, dword [esi]
fmul qword [edi + ebx*4 - 0x58419b14]
jg 0x44cb91
aad 0xc
jb 0x44cc57
dec edx
sbb ebp, edi
pop es
cli
xchg esp, eax
adc dh, byte [esi + ecx*2 + 0xf2b7357]
jns 0x44cc20
in eax, 0x34
salc
mov es, word [edx]
push edx
dec ebp
add ah, ch
mov ch, 0x3a
inc ebp
invalid
Function at 0x5eca55
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
cmp dword [0x5f658c], 0
je 0x5eca75
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov dword [0x5f658c], 1
push 0x40
mov eax, 0x5f41c8
add eax, 0x154
push eax
mov eax, 0x5f41c8
add eax, 0x192
push eax
push 0
call dword [sym.imp.USER32.DLL_MessageBoxA]
jmp 0x5ecaa4
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ecf0b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x54], 0
push 1
lea eax, [ebp - 0x54]
push eax
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0xc]
shl eax, 2
cmp dword [eax + eax*4 + 0x5f4648], 0xffffffff
je 0x5ecf5a
inc dword [ebp - 0xc]
jmp 0x5ecf3e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
shl ecx, 2
mov dword [ecx + ecx*4 + 0x5f4648], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
shl ecx, 2
mov dword [ecx + ecx*4 + 0x5f4650], eax
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 0x50]
push eax
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
lea eax, [ebp - 0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 0xc]
shl ecx, 2
mov dword [ecx + ecx*4 + 0x5f4654], eax
test dword [ebp - 0x4c], 0xffff
jne 0x5ecfdd
mov eax, dword [ebp - 0xc]
shl eax, 2
mov dword [eax + eax*4 + 0x5f4650], 4
mov eax, dword [ebp - 0xc]
shl eax, 2
cmp dword [eax + eax*4 + 0x5f4650], 4
je 0x5ed00a
push 0
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x5ed01f
push 0
push 0
mov eax, dword [ebp - 8]
add eax, 0x40
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x5ed024
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ed029
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.005ed12c
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5ed063
jmp 0x5ed122
mov eax, dword [ebp - 4]
sub eax, 0x40
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.005ed12c
add esp, 0x14
test eax, eax
jne 0x5ed094
jmp 0x5ed11d
mov dword [ebp - 0x14], 0
jmp 0x5ed0a3
inc dword [ebp - 0x14]
mov eax, dword [ebp - 4]
sub eax, 0x40
cmp eax, dword [ebp - 0x14]
jbe 0x5ed0d2
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dl, byte [eax + ecx + 0x40]
mov al, byte [edx + 0x5f43f8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov byte [ecx + edx], al
jmp 0x5ed0a0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
jmp 0x5ed127
jmp 0x5ed0d2
jmp 0x5ed0d2
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ed12c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
cmp dword [ebp + 0x18], 0
je 0x5ed14b
mov dword [ebp - 0x14], 0xc0000000
jmp 0x5ed152
mov dword [ebp - 0x14], 0x80000000
cmp dword [ebp + 0x18], 0
je 0x5ed168
mov dword [ebp - 0xc], 2
jmp 0x5ed16f
mov dword [ebp - 0xc], 1
cmp dword [ebp + 0x18], 0
je 0x5ed185
mov dword [ebp - 4], 2
jmp 0x5ed18c
mov dword [ebp - 4], 3
cmp dword [ebp + 0x18], 0
je 0x5ed1a2
mov dword [ebp - 0x10], 4
jmp 0x5ed1a9
mov dword [ebp - 0x10], 2
cmp dword [ebp + 0x18], 0
je 0x5ed1bf
mov dword [ebp - 8], 2
jmp 0x5ed1c6
mov dword [ebp - 8], 4
push 0
push 0x80
mov eax, dword [ebp - 4]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x5ed1fd
xor eax, eax
jmp 0x5ed298
push 0
mov eax, dword [ebp + 0x18]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jne 0x5ed23b
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x5ed298
mov eax, dword [ebp + 0x18]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jne 0x5ed283
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x5ed298
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
jmp 0x5ed298
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ed29d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
lea eax, [ebp - 0x40]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x5c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
push 1
lea eax, [ebp - 0x60]
push eax
push 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [ebp - 4], eax
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 0x64]
push eax
push 0x40
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5ed420
cmp dword [ebp - 0x64], 0x40
jne 0x5ed420
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
sub eax, 0x46534252
cmp eax, 1
sbb eax, eax
neg eax
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx]
je 0x5ed41b
mov eax, dword [0x5f41d8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x14]
cmp dword [eax + 0x30], ecx
jne 0x5ed41b
mov dword [ebp - 0x14], 0
jmp 0x5ed36d
inc dword [ebp - 0x14]
mov eax, dword [0x5f6588]
cmp dword [ebp - 0x14], eax
jge 0x5ed3b7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax*4 + 0x5f6c48]
push eax
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x5ed39d
jmp 0x5ed3b7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax*4 + 0x5f6c48]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
add dword [ebp - 0xc], eax
jmp 0x5ed36a
mov eax, dword [0x5f6588]
cmp dword [ebp - 0x14], eax
jne 0x5ed414
mov ebx, 0x1770
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
sub ebx, eax
sub ebx, 4
cmp ebx, dword [ebp - 0xc]
jle 0x5ed414
mov eax, dword [ebp - 0xc]
add eax, 0x5f4e18
mov ecx, dword [0x5f6588]
mov dword [ecx*4 + 0x5f6c48], eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [0x5f6588]
mov eax, dword [eax*4 + 0x5f6c48]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
inc dword [0x5f6588]
mov dword [ebp - 0x1c], 1
jmp 0x5ed43e
cmp dword [ebp + 0x14], 2
je 0x5ed434
cmp dword [ebp + 0x14], 5
jne 0x5ed43e
cmp dword [ebp + 8], 4
jne 0x5ed43e
push 0
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, dword [ebp - 0x1c]
jmp 0x5ed45c
pop edi
pop esi
pop ebx
leave
ret