joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a4de0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6b4148
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.004441b0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 8]
mov dword [esp + 0x1c], edx
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, esi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xbf800000
mov dword [esp + 0x30], 0
call fcn.005a4800
test al, al
pop esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
je 0x5a4e7d
call fcn.005bfb50
fld dword [esp + 4]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc
call fcn.005bfb50
fld dword [0x6bb5fc]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc

Function at 0x5ac1d0
Capabilities:
Hash data using djb2

Disassembly:
sub esp, 0x808
push esi
mov esi, eax
push 5
push esi
push str.data_
call fcn.005e0a1f
add esp, 0xc
test eax, eax
je 0x5ac20b
push 5
push esi
push 0x6bc710
call fcn.005e0a1f
add esp, 0xc
test eax, eax
je 0x5ac20b
xor al, al
pop esi
add esp, 0x808
ret
push edi
mov edi, dword [0x224e394]
test edi, edi
jne 0x5ac221
pop edi
xor al, al
pop esi
add esp, 0x808
ret
lea eax, [esi + 5]
lea edx, [esp + 0x10]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x5ac230
push ebx
xor ebx, ebx
xor ecx, ecx
mov esi, edi
xor eax, eax
mov dl, byte [esp + ebx + 0x14]
cmp dl, 0x2f
je 0x5ac259
cmp dl, 0x5c
je 0x5ac259
test dl, dl
je 0x5ac2a6
inc ebx
inc eax
jmp 0x5ac243
test eax, eax
lea edx, [esp + ecx + 0x14]
mov ecx, 0x1505
je 0x5ac281
mov edi, eax
movsx eax, byte [edx]
inc edx
cmp eax, 0x40
jle 0x5ac279
cmp eax, 0x5b
jge 0x5ac279
add eax, 0x20
imul ecx, ecx, 0x21
add ecx, eax
dec edi
jne 0x5ac268
mov dword [esp + 0xc], ecx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x2c]
call fcn.00564240
mov eax, dword [eax]
cmp eax, dword [esi + 0x30]
je 0x5ac302
mov esi, dword [eax + 0x10]
inc ebx
mov ecx, ebx
jmp 0x5ac241
push eax
lea edx, [esp + ecx + 0x18]
push edx
call fcn.0040d040
add esp, 8
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x20]
call fcn.00564240
mov eax, dword [eax]
cmp eax, dword [esi + 0x24]
je 0x5ac302
mov esi, dword [eax + 0x10]
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x818]
push 0
push edx
mov edx, dword [ecx]
push eax
push edx
call fcn.005ce2a2
add esp, 0x10
pop ebx
pop edi
mov dword [0x224e398], esi
mov al, 1
pop esi
add esp, 0x808
ret
pop ebx
pop edi
xor al, al
pop esi
add esp, 0x808
ret
Function at 0x5bbdc0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
push eax
mov dword [esp + 4], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [0x224ea00], eax
mov eax, dword [esp + 0x14]
mov dword [0x224e9f8], ecx
mov ecx, dword [esp + 0x1c]
mov dword [0x224e9fc], edx
mov edx, dword [esp + 0x10]
mov dword [0x224ea0c], eax
mov dword [0x224ea04], ecx
mov dword [0x224ea08], edx
mov eax, 0x224e9f8
add esp, 0x20
ret

Function at 0x5bc000
Capabilities:
Get file version info

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x60
push ebp
mov ebp, dword [esp + 0x68]
push esi
push edi
mov dword [eax], 0
mov eax, dword [ebp + 0x18]
mov edi, 0x10
cmp eax, edi
lea esi, [ebp + 4]
jb 0x5bc027
mov eax, dword [esi]
jmp 0x5bc029
mov eax, esi
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.005d1032
add esp, 8
test eax, eax
jne 0x5bc044
mov eax, dword [esp + 0x1a]
test ah, 0x40
je 0x5bc069
push 0x45c
push str.D:ENGLISHCoreLibsgsCommongsSystem.cpp
push str.gsSystem::AppVersion
push 0x10009
call fcn.005be960
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x60
ret
cmp dword [ebp + 0x18], edi
jb 0x5bc072
mov eax, dword [esi]
jmp 0x5bc074
mov eax, esi
push ebx
lea edx, [esp + 0x74]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x5bc0ac
push 0x464
push str.D:ENGLISHCoreLibsgsCommongsSystem.cpp
push str.gsSystem::AppVersion
push 0x10022
call fcn.005be960
add esp, 0x10
pop ebx
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x60
ret
push ebx
call fcn.005cde20
mov edi, eax
add esp, 4
test edi, edi
jne 0x5bc0e1
push 0x46b
push str.D:ENGLISHCoreLibsgsCommongsSystem.cpp
push str.gsSystem::AppVersion
push 0x10006
call fcn.005be960
add esp, 0x10
pop ebx
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x60
ret
cmp dword [ebp + 0x18], 0x10
jb 0x5bc0e9
mov esi, dword [esi]
mov eax, dword [esp + 0x74]
push edi
push ebx
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x5bc126
push edi
call fcn.005cdc59
push 0x472
push str.D:ENGLISHCoreLibsgsCommongsSystem.cpp
push str.gsSystem::AppVersion
push 0x1000d
call fcn.005be960
add esp, 0x14
pop ebx
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x60
ret
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0x6bb608
lea ecx, [esp + 0x48]
push edi
mov dword [esp + 0x20], ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
push edi
jne 0x5bc173
call fcn.005cdc59
push 0x47d
push str.D:ENGLISHCoreLibsgsCommongsSystem.cpp
push str.gsSystem::AppVersion
push 0x1000d
call fcn.005be960
add esp, 0x14
pop ebx
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x60
ret
mov eax, dword [esp + 0x48]
mov ecx, eax
xor edx, edx
shr ecx, 0x10
mov dh, cl
movzx eax, al
or edx, eax
mov eax, dword [esp + 0x4c]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
or edx, ecx
mov ecx, dword [esp + 0x7c]
movzx eax, al
shl edx, 8
or edx, eax
mov dword [ecx], edx
call fcn.005cdc59
add esp, 4
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x60
ret
Function at 0x5bcd60
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x70e4ec]
push ebx
xor eax, ebp
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x11c], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
xor eax, eax
mov byte [esp + 0x10], bl
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x14], 0x103
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x5bce05
push 0x3dc
push str.D:ENGLISHCoreLibsgsCommongsSystem.cpp
push str.gsSystem::GetUserNameA
push 0x1000b
call fcn.005be960
add esp, 0x10
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x70ca8c
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00405620
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.005d0efa
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5bce20
sub eax, edx
push eax
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.00405710
mov ecx, dword [esp + 0x11c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.005d0efa
mov esp, ebp
pop ebp
ret

Function at 0x5bce50
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x70e4ec]
push ebx
xor eax, ebp
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x11c], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
xor eax, eax
mov byte [esp + 0x10], bl
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x14], 0x103
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x5bcef5
push 0x3ea
push str.D:ENGLISHCoreLibsgsCommongsSystem.cpp
push str.gsSystem::GetComputerNameA
push 0x1000b
call fcn.005be960
add esp, 0x10
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x70ca8c
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00405620
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.005d0efa
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5bcf10
sub eax, edx
push eax
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.00405710
mov ecx, dword [esp + 0x11c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.005d0efa
mov esp, ebp
pop ebp
ret
Function at 0x5bf240
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x6b4d98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
mov eax, dword [0x70e4ec]
mov ecx, dword [esp + 0xa0]
xor eax, esp
push ebx
push ebp
mov dword [esp + 0x94], eax
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x98], 0xf
mov dword [esp + 0x94], eax
mov byte [esp + 0x84], al
mov edi, dword [esp + 0xb4]
mov dword [esp + 0xa8], eax
mov dword [esp + 0x14], 0x3e8
mov dword [esp + 0x18], 0x6c3eb8
mov dword [esp + 0x1c], 0x384
mov dword [esp + 0x20], 0x6d1860
mov dword [esp + 0x24], 0x1f4
mov dword [esp + 0x28], 0x6c3f04
mov dword [esp + 0x2c], 0x190
mov dword [esp + 0x30], 0x6d185c
mov dword [esp + 0x34], 0x64
mov dword [esp + 0x38], 0x6c3ec8
mov dword [esp + 0x3c], 0x5a
mov dword [esp + 0x40], 0x6d1858
mov dword [esp + 0x44], 0x32
mov dword [esp + 0x48], 0x6c3eec
mov dword [esp + 0x4c], 0x28
mov dword [esp + 0x50], 0x6d1854
mov dword [esp + 0x54], 0xa
mov dword [esp + 0x58], str.XZWY
mov dword [esp + 0x5c], 9
mov dword [esp + 0x60], 0x6d1850
mov dword [esp + 0x64], 5
mov dword [esp + 0x68], 0x6c3ec4
mov dword [esp + 0x6c], 4
mov dword [esp + 0x70], 0x6d184c
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], 0x6c3f44
xor ebx, ebx
mov esi, dword [esp + ebx*8 + 0x14]
cmp edi, esi
jb 0x5bf3b1
mov ebp, dword [esp + ebx*8 + 0x18]
mov eax, ebp
sub edi, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bf390
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x88]
call fcn.005341e0
cmp edi, esi
jae 0x5bf383
mov ecx, dword [esp + 0x10]
xor eax, eax
inc ebx
cmp ebx, 0xd
jb 0x5bf377
push 0xffffffffffffffff
mov dword [ecx + 0x14], eax
push eax
lea eax, [esp + 0x88]
mov dword [ecx + 0x18], 0xf
push eax
mov byte [ecx + 4], 0
call fcn.00405620
cmp dword [esp + 0x98], 0x10
pop edi
pop esi
pop ebp
pop ebx
jb 0x5bf3f0
mov ecx, dword [esp + 0x74]
push ecx
call fcn.005cc620
add esp, 4
mov ecx, dword [esp + 0x90]
mov eax, dword [esp]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.005d0efa
add esp, 0x9c
ret
Function at 0x5c0de0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x404
mov eax, dword [0x70e4ec]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x40c]
push ebp
mov ebp, dword [esp + 0x414]
mov dword [esp + 0x408], eax
mov eax, dword [0x70cb34]
push esi
mov esi, dword [esp + 0x41c]
push edi
cmp eax, 0x10
mov eax, dword [0x70cb20]
mov edi, ecx
jae 0x5c0e23
mov eax, 0x70cb20
mov ecx, dword [0x70cb30]
mov edx, dword [esi + 0x14]
push ecx
push eax
push edx
push 0
mov ecx, esi
call fcn.0040a670
test eax, eax
je 0x5c0e49
push 0xffffffffffffffff
push 0
push esi
lea ecx, [edi + 0x1c]
call fcn.00405620
mov eax, dword [edi + 0x18]
mov esi, 0x10
cmp eax, esi
jb 0x5c0e5a
mov edx, dword [edi + 4]
jmp 0x5c0e5d
lea edx, [edi + 4]
cmp dword [ebp + 0x18], esi
jb 0x5c0e67
mov ecx, dword [ebp + 4]
jmp 0x5c0e6a
lea ecx, [ebp + 4]
cmp dword [ebx + 0x18], esi
jb 0x5c0e74
mov eax, dword [ebx + 4]
jmp 0x5c0e77
lea eax, [ebx + 4]
cmp dword [edi + 0x34], esi
jb 0x5c0e81
mov edi, dword [edi + 0x20]
jmp 0x5c0e84
add edi, 0x20
push edx
push 0x400
lea edx, [esp + 0x18]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x10]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5c0ea0
sub eax, edx
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call fcn.00405710
mov ecx, dword [esp + 0x410]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.005d0efa
add esp, 0x404
ret 0xc

Function at 0x5c1270
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
or eax, 0xffffffff
test edx, edx
jbe 0x5c12a0
mov ecx, dword [esp + 4]
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov edi, dword [esi*4 + 0x70cb38]
shr eax, 8
xor eax, edi
inc ecx
dec edx
jne 0x5c1281
pop edi
pop esi
not eax
ret
Function at 0x5c36f0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x6b53f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [esp + 0x34]
push 0
lea eax, [esp + 0xc]
push esi
push eax
call fcn.005c3e50
push eax
mov dword [esp + 0x3c], 0
call fcn.005c34c0
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0x20]
neg bl
sbb bl, bl
inc bl
cmp eax, 0x10
mov dword [esp + 0x2c], 0xffffffff
jb 0x5c3752
mov ecx, dword [esp + 0xc]
push ecx
call fcn.005cc620
add esp, 4
test bl, bl
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
jne 0x5c37b5
cmp dword [esi + 0x18], 0x10
jb 0x5c3776
mov esi, dword [esi + 4]
jmp 0x5c3779
add esi, 4
mov eax, dword [esp + 0x38]
cmp dword [eax + 0x18], 0x10
jb 0x5c3788
mov eax, dword [eax + 4]
jmp 0x5c378b
add eax, 4
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x5c37c8
push 0x9c
push str.D:ENGLISHCoreLibsgsCommongsFileDir.cpp
push str.gsFileDir::CopyOneFile
push 0x1000e
call fcn.005be960
add esp, 0x10
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov ecx, dword [esp + 0x24]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x5cdee4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5cdf04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005d58ac
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5cdf27
test byte [esp + 8], 2
je 0x5cdf27
call fcn.005d589a
mov dword [eax], 0xd
call fcn.005d58a3
mov dword [eax], 5
jmp 0x5cdf00
xor eax, eax
ret

Function at 0x5ce05d
Capabilities:
Terminate process

Disassembly:
push 8
push 0x6d5f48
call fcn.005d2ad0
push 8
call fcn.005d659b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x224ee28], esi
jne 0x5ce091
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x224ee24], esi
mov al, byte [ebp + 0x10]
mov byte [0x224ee20], al
cmp dword [ebp + 0xc], edi
jne 0x5ce0db
cmp dword [0x225464c], edi
je 0x5ce0cb
mov eax, dword [0x2254648]
sub eax, 4
mov dword [0x2254648], eax
cmp eax, dword [0x225464c]
jb 0x5ce0cb
mov eax, dword [eax]
cmp eax, edi
je 0x5ce0ac
call eax
jmp 0x5ce0ac
push 0x708510
mov eax, 0x708504
call fcn.005cdfdb
pop ecx
push 0x70851c
mov eax, 0x708514
call fcn.005cdfdb
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x5ce10c
cmp dword [ebp + 0x10], edi
jne 0x5ce11a
mov dword [0x224ee28], esi
push dword [ebp + 8]
call fcn.005cdf99
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x5ce119
push 8
call fcn.005d64e6
pop ecx
ret
call fcn.005d2b0b
ret
Function at 0x5ce360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x5ce536
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x22532e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x5ce536
test cl, 0x48
je 0x5ce3cb
cmp byte [eax + 5], 0xa
je 0x5ce3cb
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5ce41d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x5ce405
call fcn.005d589a
mov dword [eax], 9
call fcn.005d58a3
mov dword [eax], esi
jmp 0x5ce415
cmp eax, 0x6d
je 0x5ce536
push eax
call fcn.005d58ac
pop ecx
or eax, 0xffffffff
jmp 0x5ce538
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x5ce531
test eax, eax
je 0x5ce444
cmp byte [ebx], 0xa
jne 0x5ce444
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x5ce44d
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x5ce52b
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x5ce51b
cmp al, 0xd
je 0x5ce47f
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x5ce50d
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x5ce499
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x5ce494
add dword [ebp + 0x10], 2
jmp 0x5ce4ed
mov dword [ebp + 0x10], eax
jmp 0x5ce509
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5ce4c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5ce509
cmp dword [ebp - 0xc], 0
je 0x5ce509
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x5ce4e2
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x5ce4ed
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x5ce50c
cmp ebx, dword [ebp + 0xc]
jne 0x5ce4f2
cmp byte [ebp - 1], 0xa
jne 0x5ce4f2
mov byte [ebx], 0xa
jmp 0x5ce50c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005ce21f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5ce50d
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x5ce463
jmp 0x5ce52b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x5ce52b
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x5ce538
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5cef6e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x5cef8b
call fcn.005d589a
mov dword [eax], 0x16
xor eax, eax
jmp 0x5ceff5
push esi
push 0x8c
push 1
call fcn.005d8c58
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x5cefe0
push esi
call fcn.005d2646
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x5cefbe
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x5ceed9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x5ceff4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.005cfaf0
test ebx, ebx
pop ecx
je 0x5ceff2
push ebx
call fcn.005d58ac
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5cfb61
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.005cd2a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5cfbfc
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x224ede8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x5cfbfc
cmp eax, 1
je 0x5cfc1d
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5cfbfc
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x5cfbc9
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x5cfbf8
xor eax, eax
inc eax
jmp 0x5cfc3c
cmp edi, eax
jae 0x5cfc00
xor eax, eax
jmp 0x5cfc3c
cmp eax, esi
jae 0x5cfc07
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x224ede8]
jmp 0x5cfc20
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5d0c62
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x70e4ec]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x5d0c9e
xor eax, eax
jmp 0x5d0e08
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x22532e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x5d0cdc
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.005ce21f
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x5d0d76
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x5d0dd9
jmp 0x5d0d00
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x5d0d3b
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x5d0d2c
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x5d0d0c
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5d0d9a
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x5d0da3
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x5d0cfe
jmp 0x5d0da3
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5d0d9a
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x5d0da3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x5d0e03
cmp dword [ebp - 0x68], eax
je 0x5d0dd6
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x5d0dcb
call fcn.005d589a
mov dword [eax], 9
call fcn.005d58a3
mov dword [eax], esi
jmp 0x5d0dfe
push dword [ebp - 0x68]
call fcn.005d58ac
pop ecx
jmp 0x5d0dfe
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x5d0deb
cmp byte [edi], 0x1a
jne 0x5d0deb
xor eax, eax
jmp 0x5d0e06
call fcn.005d589a
mov dword [eax], 0x1c
call fcn.005d58a3
and dword [eax], 0
or eax, 0xffffffff
jmp 0x5d0e06
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.005d0efa
add ebp, 0x3a4
leave
ret