joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6360a079
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push str.SoftwarePIPIjfcheck
push SysReAllocString
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6360a0f3
mov eax, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push ebx
push str.checktm
push dword [ebp - 4]
call esi
cmp dword [ebp + 0xc], ebx
je 0x6360a0de
push 4
lea eax, [ebp - 8]
push eax
push 4
push ebx
push str.finishtm
push dword [ebp - 4]
call esi
cmp eax, ebx
pop esi
jne 0x6360a0ea
mov dword [ebp - 0xc], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 8

Function at 0x6360a0fb
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x6360a153
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x6360a153
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6360a127
and al, 0x10
sub al, 0x10
neg al
sbb eax, eax
inc eax
jmp 0x6360a155
push edi
call fcn.6361664d
mov esi, eax
push 0x5c
push esi
call fcn.63616620
add esp, 0xc
test eax, eax
je 0x6360a16b
push esi
mov byte [eax], 0
call fcn.6360a0fb
test eax, eax
pop ecx
push esi
jne 0x6360a158
call fcn.63614e88
pop ecx
xor eax, eax
pop edi
pop esi
ret
call fcn.63614e88
pop ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x6360a153
xor eax, eax
inc eax
jmp 0x6360a155
Function at 0x6360a599
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x6362e4e0]
push ebx
push edi
xor eax, ebp
mov dword [ebp + 0x38c], eax
lea eax, [ebp - 0x78]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.ppfilm_shellopencommand
push SysReAllocString
xor edi, edi
mov dword [ebp - 0x78], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6360a650
push esi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x63625441
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x7c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x78]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
pop esi
jne 0x6360a650
lea eax, [ebp - 0x74]
push 0x5c
push eax
call fcn.63616620
cmp eax, ebx
pop ecx
pop ecx
je 0x6360a650
mov byte [eax + 1], bl
lea eax, [ebp - 0x74]
push str.configconfig.ini
push eax
call fcn.63616440
pop ecx
pop ecx
lea eax, [ebp - 0x74]
push eax
push ebx
push str.OPERCHAP
push str.SYSTEM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
mov ecx, dword [ebp + 0x38c]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.636151ae
add ebp, 0x390
leave
ret

Function at 0x6360a8e0
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x6362e4e0]
xor eax, ebp
push ebx
xor ebx, ebx
mov dword [ebp + 0x38c], eax
mov eax, dword [ebp + 0x398]
cmp eax, ebx
push esi
mov esi, dword [ebp + 0x39c]
push edi
mov edi, dword [ebp + 0x3a0]
mov byte [esi + 3], bl
mov byte [esi + 2], bl
mov byte [esi + 1], bl
mov byte [esi], bl
jne 0x6360a938
push 0x400
lea eax, [ebp - 0x74]
push eax
push dword [0x636320e8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x6360a944
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.63616430
pop ecx
pop ecx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 0x78], eax
je 0x6360a9d1
push eax
call fcn.6361576d
pop ecx
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
push ebx
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x6360a9a7
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x636248b0
push dword [ebp - 0x7c]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x6360a9a7
mov eax, dword [ebp - 0x80]
mov cl, byte [eax + 0xa]
mov byte [esi], cl
mov cl, byte [eax + 8]
mov byte [esi + 1], cl
mov cl, byte [eax + 0xe]
mov byte [esi + 2], cl
mov al, byte [eax + 0xc]
mov byte [esi + 3], al
push dword [ebp - 0x7c]
call fcn.63615565
xor eax, eax
mov ah, byte [esi]
pop ecx
xor ecx, ecx
mov ch, byte [esi + 2]
mov al, byte [esi + 1]
movzx ecx, cx
shl eax, 0x10
or eax, ecx
movzx ecx, byte [esi + 3]
or eax, ecx
mov dword [edi], eax
xor eax, eax
inc eax
jmp 0x6360a9d3
xor eax, eax
mov ecx, dword [ebp + 0x38c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.636151ae
add ebp, 0x390
leave
ret
Function at 0x6360a9eb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xba4]
sub esp, 0xc24
mov eax, dword [0x6362e4e0]
xor eax, ebp
mov dword [ebp + 0xba0], eax
mov eax, dword [ebp + 0xbac]
push ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xbb0]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x64]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftInternet_ExplorerURLSearchHooks
push SysReAllocString
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x64], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x6360aa46
xor eax, eax
jmp 0x6360ab12
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x3a0]
push eax
mov dword [ebp - 0x70], ebx
mov esi, 0x400
push ebx
jmp 0x6360aaeb
inc dword [ebp - 0x70]
lea eax, [ebp + 0x3a0]
push eax
call fcn.63615900
cmp eax, 0x26
pop ecx
jne 0x6360aad0
lea eax, [ebp + 0x3a0]
push 0x63625970
push eax
call fcn.636202ee
test eax, eax
pop ecx
pop ecx
je 0x6360aad0
lea eax, [ebp + 0x3a0]
push str.1E315374_71A5_471A_B683_4C4ADB5C588B
push eax
call fcn.636202ee
test eax, eax
pop ecx
pop ecx
je 0x6360aafe
push dword [ebp - 0x78]
lea eax, [ebp + 0x3a0]
push dword [ebp - 0x80]
push eax
call fcn.63609cb4
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x74], eax
jne 0x6360aafe
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x3a0]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x64]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x6c], esi
call edi
test eax, eax
je 0x6360aa71
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.ole32.dll_CoFreeUnusedLibraries]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
mov ecx, dword [ebp + 0xba0]
xor ecx, ebp
pop ebx
call fcn.636151ae
add ebp, 0xba4
leave
ret
Function at 0x6360ce87
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x6362e4e0]
push ebx
push esi
push edi
xor edi, edi
xor eax, ebp
mov ebx, ecx
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 8], 0xf
call fcn.63601f60
push 0x63625c38
mov esi, str.loadmethod
push esi
push str.system
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebx + 0x710]
call fcn.6360ca79
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x20]
call fcn.6360908d
push edi
push 1
lea ecx, [ebp - 0x50]
call fcn.63602ab8
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x6360cef9
lea eax, [ebp - 0x1c]
push eax
call fcn.63615780
pop ecx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push edi
push str.SoftwarePIPIjfcheck
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6360cf69
push 4
pop ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
push esi
push dword [ebp - 0x24]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x30]
je 0x6360cf60
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
push edi
push esi
push dword [ebp - 0x24]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 1
lea ecx, [ebp - 0x20]
call fcn.63602ab8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.636151ae
leave
ret
Function at 0x6360d11c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov eax, 0x20ac
lea ebp, [esp - 0x202c]
call fcn.63615140
mov eax, dword [0x6362e4e0]
push ebx
mov ebx, dword [ebp + 0x2038]
push esi
push edi
mov edi, dword [ebp + 0x2034]
xor eax, ebp
xor esi, esi
push esi
lea ecx, [ebp + 0xc]
mov dword [ebp + 0x2028], eax
mov dword [ebp + 0x24], 0xf
call fcn.63601f60
lea ecx, [ebp - 0x60]
call fcn.636131a0
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x6360d220
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x6360d19a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x6360d220
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0x64]
push eax
push 0x2000
lea eax, [ebp + 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6360d1c0
mov dword [ebp - 0x64], esi
cmp dword [ebp - 0x64], esi
jbe 0x6360d1d4
push dword [ebp - 0x64]
lea eax, [ebp + 0x28]
push eax
lea ecx, [ebp - 0x60]
call fcn.63613100
cmp dword [ebp - 0x64], 0x2000
jae 0x6360d1a4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x60]
call fcn.63613120
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x60]
call fcn.63613180
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.636131f0
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0xc]
call fcn.6360908d
push esi
push 1
lea ecx, [ebp - 0x80]
call fcn.63602ab8
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
call fcn.6360c4a5
lea ecx, [ebp - 0x60]
call fcn.636130f0
push esi
lea ecx, [ebp + 0xc]
push 1
call fcn.63602ab8
mov ecx, dword [ebp + 0x2028]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.636151ae
add ebp, 0x202c
leave
ret

Function at 0x636125c5
Capabilities:
Log keystrokes via application hook

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
push edi
xor edi, edi
cmp dword [0x6363139c], edi
jne 0x636125f4
cmp dword [0x6362e254], edi
je 0x636125f4
push edi
push dword [0x636320e8]
push 0x6361182b
push 0xd
call esi
mov dword [0x6363139c], eax
cmp dword [0x636313a0], edi
jne 0x63612619
cmp dword [0x6362e258], edi
je 0x63612619
push edi
push dword [0x636320e8]
push 0x63611ea4
push 7
call esi
mov dword [0x636313a0], eax
cmp dword [0x636313a4], edi
jne 0x6361263e
cmp dword [0x6362e25c], edi
je 0x6361263e
push edi
push dword [0x636320e8]
push 0x6360fc63
push 2
call esi
mov dword [0x636313a4], eax
pop edi
xor eax, eax
pop esi
ret
Function at 0x63612b50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x6362e35a
mov edi, 0x6362e35e
mov ebp, 0x6362e362
sub esi, ecx
sub edi, ecx
mov edx, 0x6362e358
lea eax, [ecx + 2]
sub ebp, ecx
mov cl, byte [edx + 3]
xor byte [eax - 2], cl
mov cl, byte [edx + 2]
xor byte [eax - 1], cl
mov ecx, dword [edx]
mov bl, byte [eax]
sar ecx, 8
xor bl, cl
mov byte [eax], bl
mov cl, byte [edx]
xor byte [eax + 1], cl
mov cl, byte [esi + eax + 3]
xor byte [eax + 2], cl
mov cl, byte [esi + eax + 2]
xor byte [eax + 3], cl
mov ecx, dword [esi + eax]
mov bl, byte [eax + 4]
sar ecx, 8
xor bl, cl
mov byte [eax + 4], bl
mov cl, byte [esi + eax]
xor byte [eax + 5], cl
mov cl, byte [edi + eax + 3]
xor byte [eax + 6], cl
mov cl, byte [edi + eax + 2]
xor byte [eax + 7], cl
mov ecx, dword [edi + eax]
mov bl, byte [eax + 8]
sar ecx, 8
xor bl, cl
mov byte [eax + 8], bl
mov cl, byte [edi + eax]
xor byte [eax + 9], cl
mov cl, byte [eax + ebp + 3]
xor byte [eax + 0xa], cl
mov cl, byte [eax + ebp + 2]
xor byte [eax + 0xb], cl
mov ecx, dword [eax + ebp]
mov bl, byte [eax + 0xc]
sar ecx, 8
xor bl, cl
mov byte [eax + 0xc], bl
mov cl, byte [eax + ebp]
xor byte [eax + 0xd], cl
add edx, 0x10
add eax, 0x10
cmp edx, 0x6362e398
jl 0x63612b71
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x636131a0
Capabilities:
Hash data with md5

Disassembly:
mov eax, ecx
xor ecx, ecx
mov dword [eax], 0x63626574
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 0x67452301
mov dword [eax + 0x10], 0xefcdab89
mov dword [eax + 0x14], 0x98badcfe
mov dword [eax + 0x18], 0x10325476
ret
Function at 0x636131f0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6362369b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
mov eax, dword [0x6362e4e0]
mov edx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [esp + 0xf8], eax
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
xor eax, eax
mov ecx, 0x32
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
movzx eax, byte [edx + 0xf]
movzx ecx, byte [edx + 0xe]
push eax
movzx eax, byte [edx + 0xd]
push ecx
movzx ecx, byte [edx + 0xc]
push eax
movzx eax, byte [edx + 0xb]
push ecx
movzx ecx, byte [edx + 0xa]
push eax
movzx eax, byte [edx + 9]
push ecx
movzx ecx, byte [edx + 8]
push eax
movzx eax, byte [edx + 7]
push ecx
movzx ecx, byte [edx + 6]
push eax
movzx eax, byte [edx + 5]
push ecx
movzx ecx, byte [edx + 4]
push eax
movzx eax, byte [edx + 3]
push ecx
movzx ecx, byte [edx + 2]
push eax
movzx eax, byte [edx + 1]
push ecx
movzx ecx, byte [edx]
push eax
push ecx
lea edx, [esp + 0x70]
push 0x63626578
push edx
mov dword [esp + 0x154], ebx
call fcn.636161f1
mov al, byte [ebp + 0x10]
add esp, 0x48
cmp al, bl
lea eax, [esp + 0x30]
je 0x636132dd
push eax
call fcn.63617a6d
mov ecx, eax
add esp, 4
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x636132d0
sub ecx, edi
push ecx
push eax
jmp 0x636132ef
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x636132e0
sub eax, edx
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call fcn.6360911c
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.6360908d
cmp dword [esp + 0x2c], 0x10
jb 0x63613328
mov eax, dword [esp + 0x18]
push eax
call fcn.63615560
add esp, 4
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xfc]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.636151ae
mov esp, ebp
pop ebp
ret
Function at 0x63613350
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x18]
xor eax, eax
test edi, edi
mov dword [esi], eax
jbe 0x6361344c
mov ebx, dword [esp + 0x14]
lea esp, [esp]
movsx ecx, byte [eax + ebx]
mov cl, byte [ecx + 0x636265c0]
inc eax
cmp eax, edi
jae 0x63613386
cmp cl, 0xff
je 0x63613370
jmp 0x63613390
cmp cl, 0xff
je 0x6361344c
nop
movsx edx, byte [eax + ebx]
mov dl, byte [edx + 0x636265c0]
inc eax
cmp eax, edi
jae 0x636133a6
cmp dl, 0xff
je 0x63613390
jmp 0x636133af
cmp dl, 0xff
je 0x6361344c
mov ebp, dword [esp + 0x1c]
mov bl, dl
sar bl, 4
shl cl, 2
and bl, 3
or bl, cl
mov ecx, dword [esi]
mov byte [ecx + ebp], bl
mov ecx, dword [esi]
mov ebx, dword [esp + 0x14]
inc ecx
mov dword [esi], ecx
mov ebp, ecx
mov cl, byte [eax + ebx]
inc eax
cmp cl, 0x3d
je 0x6361344c
cmp eax, edi
movsx ecx, cl
mov cl, byte [ecx + 0x636265c0]
jae 0x636133ed
cmp cl, 0xff
je 0x636133d0
jmp 0x636133f2
cmp cl, 0xff
je 0x6361344c
mov bl, cl
sar bl, 2
shl dl, 4
and bl, 0xf
or bl, dl
mov edx, dword [esp + 0x1c]
mov byte [edx + ebp], bl
mov edx, dword [esi]
mov ebx, dword [esp + 0x14]
inc edx
mov dword [esi], edx
mov ebp, edx
mov dl, byte [eax + ebx]
inc eax
cmp dl, 0x3d
je 0x6361344c
cmp eax, edi
movsx edx, dl
mov dl, byte [edx + 0x636265c0]
jae 0x6361342e
cmp dl, 0xff
je 0x63613411
jmp 0x63613433
cmp dl, 0xff
je 0x6361344c
shl cl, 6
or cl, dl
mov edx, dword [esp + 0x1c]
mov byte [edx + ebp], cl
mov edx, dword [esi]
inc edx
cmp eax, edi
mov dword [esi], edx
jb 0x63613370
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
Function at 0x63614ef9
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.63615140
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x63614f94
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 [0x63631d84]
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 0x63614f94
cmp eax, 1
je 0x63614fb5
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 0x63614f94
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x63614f61
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x63614f90
xor eax, eax
inc eax
jmp 0x63614fd4
cmp edi, eax
jae 0x63614f98
xor eax, eax
jmp 0x63614fd4
cmp eax, esi
jae 0x63614f9f
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 [0x63631d84]
jmp 0x63614fb8
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 0x636177d5
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x636178c5
mov eax, 0x94
call fcn.63615140
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x6361793a
mov ecx, dword [esi + 0x10]
mov dword [0x63631d84], ecx
mov eax, dword [esi + 4]
mov dword [0x63631d90], eax
mov edx, dword [esi + 8]
mov dword [0x63631d94], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x63631d88], esi
je 0x63617840
or esi, 0x8000
mov dword [0x63631d88], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x63631d8c], eax
call fcn.63618cf3
test eax, eax
pop ecx
je 0x6361793a
call fcn.63618690
test eax, eax
jne 0x6361786d
call fcn.63618d44
jmp 0x6361793a
call fcn.6361d3ea
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x63633600], eax
call fcn.6361d2c8
mov dword [0x63631c00], eax
call fcn.6361cda9
test eax, eax
jl 0x636178be
call fcn.6361d226
test eax, eax
jl 0x636178b9
call fcn.6361cff3
test eax, eax
jl 0x636178b9
push 0
call fcn.6361995b
test eax, eax
pop ecx
jne 0x636178b9
inc dword [0x63631bfc]
jmp 0x6361794b
call fcn.6361cfa7
call fcn.63618479
jmp 0x63617863
test eax, eax
jne 0x636178f5
cmp dword [0x63631bfc], eax
jle 0x6361793a
dec dword [0x63631bfc]
cmp dword [0x63631dc0], eax
jne 0x636178e4
call fcn.63619a99
call fcn.6361cfa7
call fcn.63618479
call fcn.63618d44
jmp 0x6361794b
cmp eax, 2
jne 0x6361793e
push 0x8c
push 1
call fcn.6361ccd2
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x6361793a
push esi
push dword [0x6362e620]
call dword [0x63631c1c]
test eax, eax
push esi
je 0x63617934
call fcn.63618496
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x6361794b
call fcn.63614e88
pop ecx
xor eax, eax
jmp 0x6361794e
cmp eax, 3
jne 0x6361794b
push 0
call fcn.63618661
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x636199c5
Capabilities:
Terminate process

Disassembly:
push 8
push 0x636269b8
call fcn.63614fdc
push 8
call fcn.63618ca8
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x63631dc4], esi
jne 0x636199f9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x63631dc0], esi
mov al, byte [ebp + 0x10]
mov byte [0x63631dbc], al
cmp dword [ebp + 0xc], edi
jne 0x63619a43
cmp dword [0x63633394], edi
je 0x63619a33
mov eax, dword [0x63633390]
sub eax, 4
mov dword [0x63633390], eax
cmp eax, dword [0x63633394]
jb 0x63619a33
mov eax, dword [eax]
cmp eax, edi
je 0x63619a14
call eax
jmp 0x63619a14
push 0x6362e054
mov eax, 0x6362e04c
call fcn.63619943
pop ecx
push 0x6362e060
mov eax, 0x6362e058
call fcn.63619943
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x63619a74
cmp dword [ebp + 0x10], edi
jne 0x63619a82
mov dword [0x63631dc4], esi
push dword [ebp + 8]
call fcn.63619901
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x63619a81
push 8
call fcn.63618bf3
pop ecx
ret
call fcn.63615017
ret
Function at 0x6361c0cd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x6362e4e0]
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 0x6361c109
xor eax, eax
jmp 0x6361c273
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 + 0x63632260]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x6361c147
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.6361dda4
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x6361c1e1
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x6361c244
jmp 0x6361c16b
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 0x6361c1a6
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x6361c197
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 0x6361c177
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 0x6361c205
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x6361c20e
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x6361c169
jmp 0x6361c20e
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 0x6361c205
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x6361c20e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x6361c26e
cmp dword [ebp - 0x68], eax
je 0x6361c241
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x6361c236
call fcn.6361be78
mov dword [eax], 9
call fcn.6361be81
mov dword [eax], esi
jmp 0x6361c269
push dword [ebp - 0x68]
call fcn.6361be8a
pop ecx
jmp 0x6361c269
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x6361c256
cmp byte [edi], 0x1a
jne 0x6361c256
xor eax, eax
jmp 0x6361c271
call fcn.6361be78
mov dword [eax], 0x1c
call fcn.6361be81
and dword [eax], 0
or eax, 0xffffffff
jmp 0x6361c271
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.636151ae
add ebp, 0x3a4
leave
ret