joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58e6d0
Capabilities:
Hash data using djb2

Disassembly:
sub esp, 0x808
push esi
mov esi, eax
push 5
push esi
push str.data_
call fcn.005cc11f
add esp, 0xc
test eax, eax
je 0x58e70b
push 5
push esi
push 0x6a842c
call fcn.005cc11f
add esp, 0xc
test eax, eax
je 0x58e70b
xor al, al
pop esi
add esp, 0x808
ret
push edi
mov edi, dword [0x22348a8]
test edi, edi
jne 0x58e721
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 0x58e730
push ebx
xor ebx, ebx
xor ecx, ecx
mov esi, edi
xor eax, eax
mov dl, byte [esp + ebx + 0x14]
cmp dl, 0x2f
je 0x58e759
cmp dl, 0x5c
je 0x58e759
test dl, dl
je 0x58e7a6
inc ebx
inc eax
jmp 0x58e743
test eax, eax
lea edx, [esp + ecx + 0x14]
mov ecx, 0x1505
je 0x58e781
mov edi, eax
movsx eax, byte [edx]
inc edx
cmp eax, 0x40
jle 0x58e779
cmp eax, 0x5b
jge 0x58e779
add eax, 0x20
imul ecx, ecx, 0x21
add ecx, eax
dec edi
jne 0x58e768
mov dword [esp + 0xc], ecx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x2c]
call fcn.00529da0
mov eax, dword [eax]
cmp eax, dword [esi + 0x30]
je 0x58e802
mov esi, dword [eax + 0x10]
inc ebx
mov ecx, ebx
jmp 0x58e741
push eax
lea edx, [esp + ecx + 0x18]
push edx
call fcn.0040b5a0
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.00529da0
mov eax, dword [eax]
cmp eax, dword [esi + 0x24]
je 0x58e802
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.005b99a2
add esp, 0x10
pop ebx
pop edi
mov dword [0x22348ac], 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 0x590cf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x69f628
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.0058bfb0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x38]
mov dword [esp + 0x10], eax
push edx
mov dword [esp + 0x1c], ecx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x20], 0x43480000
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xbf800000
mov dword [esp + 0x30], 0
call fcn.005907d0
test al, al
pop esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
je 0x590d8d
call fcn.00525410
fld dword [esp + 4]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 8
call fcn.00525410
fld dword [0x6a75fc]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 8
Function at 0x590db0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x69f628
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.0058bfb0
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.005907d0
test al, al
pop esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
je 0x590e4d
call fcn.00525410
fld dword [esp + 4]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc
call fcn.00525410
fld dword [0x6a75fc]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc

Function at 0x5980b0
Capabilities:
Hash data using djb2

Disassembly:
sub esp, 0x808
push esi
mov esi, eax
push 5
push esi
push str.data_
call fcn.005cc11f
add esp, 0xc
test eax, eax
je 0x5980eb
push 5
push esi
push 0x6a842c
call fcn.005cc11f
add esp, 0xc
test eax, eax
je 0x5980eb
xor al, al
pop esi
add esp, 0x808
ret
push edi
mov edi, dword [0x22348d8]
test edi, edi
jne 0x598101
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 0x598110
push ebx
xor ebx, ebx
xor ecx, ecx
mov esi, edi
xor eax, eax
mov dl, byte [esp + ebx + 0x14]
cmp dl, 0x2f
je 0x598139
cmp dl, 0x5c
je 0x598139
test dl, dl
je 0x598186
inc ebx
inc eax
jmp 0x598123
test eax, eax
lea edx, [esp + ecx + 0x14]
mov ecx, 0x1505
je 0x598161
mov edi, eax
movsx eax, byte [edx]
inc edx
cmp eax, 0x40
jle 0x598159
cmp eax, 0x5b
jge 0x598159
add eax, 0x20
imul ecx, ecx, 0x21
add ecx, eax
dec edi
jne 0x598148
mov dword [esp + 0xc], ecx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x2c]
call fcn.00529da0
mov eax, dword [eax]
cmp eax, dword [esi + 0x30]
je 0x5981e2
mov esi, dword [eax + 0x10]
inc ebx
mov ecx, ebx
jmp 0x598121
push eax
lea edx, [esp + ecx + 0x18]
push edx
call fcn.0040b5a0
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.00529da0
mov eax, dword [eax]
cmp eax, dword [esi + 0x24]
je 0x5981e2
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.005b99a2
add esp, 0x10
pop ebx
pop edi
mov dword [0x22348dc], 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 0x5a7ac0
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 [0x2234f48], eax
mov eax, dword [esp + 0x14]
mov dword [0x2234f40], ecx
mov ecx, dword [esp + 0x1c]
mov dword [0x2234f44], edx
mov edx, dword [esp + 0x10]
mov dword [0x2234f54], eax
mov dword [0x2234f4c], ecx
mov dword [0x2234f50], edx
mov eax, 0x2234f40
add esp, 0x20
ret

Function at 0x5a7d00
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 0x5a7d27
mov eax, dword [esi]
jmp 0x5a7d29
mov eax, esi
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.005bbea5
add esp, 8
test eax, eax
jne 0x5a7d44
mov eax, dword [esp + 0x1a]
test ah, 0x40
je 0x5a7d69
push 0x45c
push str..gsSystem.cpp
push str.gsSystem::AppVersion
push 0x10009
call fcn.005af2b0
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x60
ret
cmp dword [ebp + 0x18], edi
jb 0x5a7d72
mov eax, dword [esi]
jmp 0x5a7d74
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 0x5a7dac
push 0x464
push str..gsSystem.cpp
push str.gsSystem::AppVersion
push 0x10022
call fcn.005af2b0
add esp, 0x10
pop ebx
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x60
ret
push ebx
call fcn.005b951f
mov edi, eax
add esp, 4
test edi, edi
jne 0x5a7de1
push 0x46b
push str..gsSystem.cpp
push str.gsSystem::AppVersion
push 0x10006
call fcn.005af2b0
add esp, 0x10
pop ebx
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x60
ret
cmp dword [ebp + 0x18], 0x10
jb 0x5a7de9
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 0x5a7e26
push edi
call fcn.005b89dd
push 0x472
push str..gsSystem.cpp
push str.gsSystem::AppVersion
push 0x1000d
call fcn.005af2b0
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 0x6a7608
lea ecx, [esp + 0x48]
push edi
mov dword [esp + 0x20], ecx
call sub.version.dll_VerQueryValueA
test eax, eax
push edi
jne 0x5a7e73
call fcn.005b89dd
push 0x47d
push str..gsSystem.cpp
push str.gsSystem::AppVersion
push 0x1000d
call fcn.005af2b0
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.005b89dd
add esp, 4
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x60
ret
Function at 0x5a8a60
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x6f872c]
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 0x5a8b05
push 0x3dc
push str..gsSystem.cpp
push str.gsSystem::GetUserNameA
push 0x1000b
call fcn.005af2b0
add esp, 0x10
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x6f6da4
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.005bbd6d
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 0x5a8b20
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.005bbd6d
mov esp, ebp
pop ebp
ret

Function at 0x5a8b50
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x6f872c]
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 0x5a8bf5
push 0x3ea
push str..gsSystem.cpp
push str.gsSystem::GetComputerNameA
push 0x1000b
call fcn.005af2b0
add esp, 0x10
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x6f6da4
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.005bbd6d
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 0x5a8c10
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.005bbd6d
mov esp, ebp
pop ebp
ret
Function at 0x5a99b0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x6a01f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
mov eax, dword [0x6f872c]
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], 0x6af260
mov dword [esp + 0x1c], 0x384
mov dword [esp + 0x20], 0x6bb0e0
mov dword [esp + 0x24], 0x1f4
mov dword [esp + 0x28], 0x6af2ac
mov dword [esp + 0x2c], 0x190
mov dword [esp + 0x30], 0x6bb0dc
mov dword [esp + 0x34], 0x64
mov dword [esp + 0x38], 0x6af270
mov dword [esp + 0x3c], 0x5a
mov dword [esp + 0x40], 0x6bb0d8
mov dword [esp + 0x44], 0x32
mov dword [esp + 0x48], 0x6af294
mov dword [esp + 0x4c], 0x28
mov dword [esp + 0x50], 0x6bb0d4
mov dword [esp + 0x54], 0xa
mov dword [esp + 0x58], 0x6ae948
mov dword [esp + 0x5c], 9
mov dword [esp + 0x60], 0x6bb0d0
mov dword [esp + 0x64], 5
mov dword [esp + 0x68], 0x6af26c
mov dword [esp + 0x6c], 4
mov dword [esp + 0x70], 0x6bb0cc
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], 0x6af2ec
xor ebx, ebx
mov esi, dword [esp + ebx*8 + 0x14]
cmp edi, esi
jb 0x5a9b21
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 0x5a9b00
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x88]
call fcn.00523650
cmp edi, esi
jae 0x5a9af3
mov ecx, dword [esp + 0x10]
xor eax, eax
inc ebx
cmp ebx, 0xd
jb 0x5a9ae7
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 0x5a9b60
mov ecx, dword [esp + 0x74]
push ecx
call fcn.005b806d
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.005bbd6d
add esp, 0x9c
ret
Function at 0x5ab550
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
or eax, 0xffffffff
test edx, edx
jbe 0x5ab580
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 + 0x6f6e18]
shr eax, 8
xor eax, edi
inc ecx
dec edx
jne 0x5ab561
pop edi
pop esi
not eax
ret
Function at 0x5adbf0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x6a0838
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.005af8e0
push eax
mov dword [esp + 0x3c], 0
call fcn.005ad9c0
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 0x5adc52
mov ecx, dword [esp + 0xc]
push ecx
call fcn.005b806d
add esp, 4
test bl, bl
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
jne 0x5adcb5
cmp dword [esi + 0x18], 0x10
jb 0x5adc76
mov esi, dword [esi + 4]
jmp 0x5adc79
add esi, 4
mov eax, dword [esp + 0x38]
cmp dword [eax + 0x18], 0x10
jb 0x5adc88
mov eax, dword [eax + 4]
jmp 0x5adc8b
add eax, 4
push 0
push esi
push eax
call dword [sym.imp.kernel32.dll_CopyFileA]
test eax, eax
jne 0x5adcc8
push 0x9c
push str..gsFileDir.cpp
push str.gsFileDir::CopyOneFile
push 0x1000e
call fcn.005af2b0
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 0x5b95e4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5b9604
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.005c0f9c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5b9627
test byte [esp + 8], 2
je 0x5b9627
call fcn.005c0f8a
mov dword [eax], 0xd
call fcn.005c0f93
mov dword [eax], 5
jmp 0x5b9600
xor eax, eax
ret

Function at 0x5b975d
Capabilities:
Terminate process

Disassembly:
push 8
push 0x6c0cd0
call fcn.005be1d0
push 8
call fcn.005c1c8b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x2235374], esi
jne 0x5b9791
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x2235370], esi
mov al, byte [ebp + 0x10]
mov byte [0x223536c], al
cmp dword [ebp + 0xc], edi
jne 0x5b97db
cmp dword [0x223ab8c], edi
je 0x5b97cb
mov eax, dword [0x223ab88]
sub eax, 4
mov dword [0x223ab88], eax
cmp eax, dword [0x223ab8c]
jb 0x5b97cb
mov eax, dword [eax]
cmp eax, edi
je 0x5b97ac
call eax
jmp 0x5b97ac
push 0x6f34dc
mov eax, 0x6f34d0
call fcn.005b96db
pop ecx
push 0x6f34e8
mov eax, 0x6f34e0
call fcn.005b96db
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x5b980c
cmp dword [ebp + 0x10], edi
jne 0x5b981a
mov dword [0x2235374], esi
push dword [ebp + 8]
call fcn.005b9699
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x5b9819
push 8
call fcn.005c1bd6
pop ecx
ret
call fcn.005be20b
ret
Function at 0x5b9a60
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 0x5b9c36
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x2239820]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x5b9c36
test cl, 0x48
je 0x5b9acb
cmp byte [eax + 5], 0xa
je 0x5b9acb
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 0x5b9b1d
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x5b9b05
call fcn.005c0f8a
mov dword [eax], 9
call fcn.005c0f93
mov dword [eax], esi
jmp 0x5b9b15
cmp eax, 0x6d
je 0x5b9c36
push eax
call fcn.005c0f9c
pop ecx
or eax, 0xffffffff
jmp 0x5b9c38
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x5b9c31
test eax, eax
je 0x5b9b44
cmp byte [ebx], 0xa
jne 0x5b9b44
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x5b9b4d
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 0x5b9c2b
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x5b9c1b
cmp al, 0xd
je 0x5b9b7f
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x5b9c0d
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x5b9b99
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x5b9b94
add dword [ebp + 0x10], 2
jmp 0x5b9bed
mov dword [ebp + 0x10], eax
jmp 0x5b9c09
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 0x5b9bc1
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x5b9c09
cmp dword [ebp - 0xc], 0
je 0x5b9c09
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x5b9be2
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x5b9bed
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x5b9c0c
cmp ebx, dword [ebp + 0xc]
jne 0x5b9bf2
cmp byte [ebp - 1], 0xa
jne 0x5b9bf2
mov byte [ebx], 0xa
jmp 0x5b9c0c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005b991f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5b9c0d
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x5b9b63
jmp 0x5b9c2b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x5b9c2b
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 0x5b9c38
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ba56e
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 0x5ba58b
call fcn.005c0f8a
mov dword [eax], 0x16
xor eax, eax
jmp 0x5ba5f5
push esi
push 0x8c
push 1
call fcn.005c3980
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x5ba5e0
push esi
call fcn.005bdd48
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 0x5ba5be
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x5ba4d9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
jne 0x5ba5f4
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.005ba857
test ebx, ebx
pop ecx
je 0x5ba5f2
push ebx
call fcn.005c0f9c
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5ba8c8
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.005b89a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x5ba963
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 [0x2235334]
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 0x5ba963
cmp eax, 1
je 0x5ba984
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 0x5ba963
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x5ba930
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x5ba95f
xor eax, eax
inc eax
jmp 0x5ba9a3
cmp edi, eax
jae 0x5ba967
xor eax, eax
jmp 0x5ba9a3
cmp eax, esi
jae 0x5ba96e
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 [0x2235334]
jmp 0x5ba987
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