joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e9d10
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, eax
xor eax, eax
test esi, esi
je 0x5e9d65
push ebp
push edi
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov edi, dword [esi + 8]
add edx, dword [ecx]
cmp ebx, edi
jge 0x5e9d30
mov edi, ebx
xor ecx, ecx
test edi, edi
jle 0x5e9d56
movzx ebx, byte [ecx + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x6b1730]
add ecx, 1
cmp ecx, edi
jl 0x5e9d36
mov ebx, dword [esp + 0x14]
mov esi, dword [esi + 0xc]
sub ebx, ecx
test esi, esi
mov dword [esp + 0x14], ebx
jne 0x5e9d20
pop edi
pop ebp
pop esi
pop ebx
ret

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

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x5f34af
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x5f3597
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x66e6a0]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x66e6a0]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x66e6a0]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x66e6a0]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x66e6a0]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x66e6a0]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x66e6a0]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x66e6a0]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x5f34c0
pop ebp
test edi, edi
je 0x5f35bc
jmp 0x5f35a0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x66e6a0]
add ecx, 1
sub edi, 1
jne 0x5f35a0
mov eax, esi
pop edi
not eax
pop esi
ret
Function at 0x5f7f90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x20]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [esp + 0x18], esi
jne 0x5f7fb7
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x5f7fc3
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0xc], ecx
jle 0x5f80cf
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x18], edx
jmp 0x5f800c
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebp, dword [edx]
cdq
idiv ebp
cmp dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
je 0x5f802d
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov edi, dword [edx + ecx*4]
add ebp, 0xffffffff
mov ecx, ebp
xor eax, eax
xor ebx, ebx
call fcn.005f7e00
mov ecx, eax
xor esi, esi
cmp esi, ecx
jle 0x5f8062
lea esp, [esp]
add ebx, 1
mov ecx, ebp
mov eax, ebx
call fcn.005f7e00
mov ecx, eax
cmp esi, ecx
jg 0x5f8050
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + edi], al
add esi, 1
cmp esi, 0xff
jle 0x5f8045
cmp dword [esp + 0x10], 0
je 0x5f80b0
mov eax, 1
lea ecx, [edi - 1]
jmp 0x5f8090
movzx edx, byte [edi]
mov byte [ecx], dl
movzx edx, byte [edi + 0xff]
mov byte [edi + eax + 0xff], dl
add eax, 1
sub ecx, 1
cmp eax, 0xff
jle 0x5f8090
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
add dword [esp + 0x18], 4
add eax, 1
cmp eax, dword [ecx + 0x64]
mov dword [esp + 0x14], eax
jl 0x5f8000
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x60c0a0
Capabilities:
Write file on windows

Disassembly:
mov eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x60c0ae
jmp fcn.0060dba0
mov ecx, dword [eax + 8]
jmp 0x60f940
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
je 0x60f968
mov eax, dword [esi + 4]
test eax, eax
je 0x60f961
push eax
push 1
lea eax, [esi + 0x14]
push 1
push eax
call fcn.00627cab
add esp, 0x10
mov dword [esi + 0x18], 0
pop esi
ret

Function at 0x60dd10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x647368
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push esi
push edi
mov eax, dword [0x6af168]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 0x1c], ebx
je 0x60ddb4
mov edi, dword [ebp + 0xc]
add dword [esi + 0x14], edi
mov ecx, dword [esi + 0x14]
cmp ecx, dword [esi + 0x10]
jbe 0x60dd8f
push ebx
push 0x66f61c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], bl
call fcn.00402300
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.00404590
push 0x698898
lea ecx, [ebp - 0x50]
push ecx
call fcn.0062a249
mov edx, dword [ebp + 8]
push edi
push eax
push edx
call fcn.0062a790
add esp, 0xc
add dword [esi + 8], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x60ddf7
push ebx
push 0x66f61c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], bl
call fcn.00402300
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 1
call fcn.00404590
push 0x698898
lea ecx, [ebp - 0x50]
push ecx
call fcn.0062a249
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push esi
push 1
push edx
call fcn.00626e1f
add esp, 0x10
cmp eax, esi
je 0x60dda0
push 0x66f61c
lea ecx, [ebp - 0x6c]
call fcn.00402130
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 2
call fcn.00404590
push 0x698898
lea ecx, [ebp - 0x94]
push ecx
call fcn.0062a249
int3
Function at 0x60e5d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.0062ab60
mov eax, dword [0x6af168]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x1008], eax
cmp dword [esi + 0xa8], eax
push edi
mov edi, dword [ebp + 8]
jne 0x60e611
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], eax
mov byte [edi + 4], al
push eax
jmp 0x60e70c
cmp dword [esi + 0xac], 0x10
jb 0x60e622
mov eax, dword [esi + 0x98]
jmp 0x60e628
lea eax, [esi + 0x98]
lea ecx, [ebp - 0x100c]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x60e6f8
push str._dir
add esi, 0xb0
lea edx, [ebp - 0x102c]
push esi
push edx
mov dword [ebp - 0x1010], 0x1000
call fcn.0044cf70
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x60e67a
mov eax, dword [eax + 4]
jmp 0x60e67d
add eax, 4
lea ecx, [ebp - 0x1010]
push ecx
lea edx, [ebp - 0x1004]
push edx
mov edx, dword [ebp - 0x100c]
lea ecx, [ebp - 0x1008]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x1014], 0x10
mov esi, eax
jb 0x60e6bc
mov eax, dword [ebp - 0x1028]
push eax
call fcn.0062493b
add esp, 4
mov ecx, dword [ebp - 0x100c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x60e6f8
cmp dword [ebp - 0x1008], 1
jne 0x60e6f8
lea edx, [ebp - 0x1004]
push edx
mov ecx, edi
call fcn.00402130
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00624940
mov esp, ebp
pop ebp
ret 4
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], 0
mov byte [edi + 4], 0
push 0
push 0x66f61c
mov ecx, edi
call fcn.00402300
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00624940
mov esp, ebp
pop ebp
ret 4

Function at 0x60e730
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi + 0xa8], 0
je 0x60e7ed
push edi
mov edi, 0x10
cmp dword [esi + 0xac], edi
jb 0x60e75c
mov eax, dword [esi + 0x98]
jmp 0x60e762
lea eax, [esi + 0x98]
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x60e7ec
push str._dir
add esi, 0xb0
lea edx, [ebp - 0x20]
push esi
push edx
call fcn.0044cf70
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
add esp, 0xc
cmp dword [ecx + 0x18], edi
jb 0x60e7ad
mov ecx, dword [ecx + 4]
jmp 0x60e7b0
add ecx, 4
cmp dword [eax + 0x18], edi
jb 0x60e7ba
mov eax, dword [eax + 4]
jmp 0x60e7bd
add eax, 4
add edx, 1
push edx
push ecx
push 1
push 0
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 8], edi
jb 0x60e7e2
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0062493b
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x60e800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.0062ab60
mov eax, dword [0x6af168]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x1008], eax
cmp dword [esi + 0xa8], eax
push edi
mov edi, dword [ebp + 8]
jne 0x60e841
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], eax
mov byte [edi + 4], al
push eax
jmp 0x60e93c
cmp dword [esi + 0xac], 0x10
jb 0x60e852
mov eax, dword [esi + 0x98]
jmp 0x60e858
lea eax, [esi + 0x98]
lea ecx, [ebp - 0x100c]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x60e928
push str._file
add esi, 0xb0
lea edx, [ebp - 0x102c]
push esi
push edx
mov dword [ebp - 0x1010], 0x1000
call fcn.0044cf70
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x60e8aa
mov eax, dword [eax + 4]
jmp 0x60e8ad
add eax, 4
lea ecx, [ebp - 0x1010]
push ecx
lea edx, [ebp - 0x1004]
push edx
mov edx, dword [ebp - 0x100c]
lea ecx, [ebp - 0x1008]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x1014], 0x10
mov esi, eax
jb 0x60e8ec
mov eax, dword [ebp - 0x1028]
push eax
call fcn.0062493b
add esp, 4
mov ecx, dword [ebp - 0x100c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x60e928
cmp dword [ebp - 0x1008], 1
jne 0x60e928
lea edx, [ebp - 0x1004]
push edx
mov ecx, edi
call fcn.00402130
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00624940
mov esp, ebp
pop ebp
ret 4
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], 0
mov byte [edi + 4], 0
push 0
push 0x66f61c
mov ecx, edi
call fcn.00402300
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00624940
mov esp, ebp
pop ebp
ret 4

Function at 0x60e960
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi + 0xa8], 0
je 0x60ea1d
push edi
mov edi, 0x10
cmp dword [esi + 0xac], edi
jb 0x60e98c
mov eax, dword [esi + 0x98]
jmp 0x60e992
lea eax, [esi + 0x98]
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x60ea1c
push str._file
add esi, 0xb0
lea edx, [ebp - 0x20]
push esi
push edx
call fcn.0044cf70
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
add esp, 0xc
cmp dword [ecx + 0x18], edi
jb 0x60e9dd
mov ecx, dword [ecx + 4]
jmp 0x60e9e0
add ecx, 4
cmp dword [eax + 0x18], edi
jb 0x60e9ea
mov eax, dword [eax + 4]
jmp 0x60e9ed
add eax, 4
add edx, 1
push edx
push ecx
push 1
push 0
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 8], edi
jb 0x60ea12
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0062493b
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x60f9c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x60f9ff
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [ebp + 0xc]
add eax, edi
push eax
call fcn.0060f970
mov edx, dword [esi + 0xc]
mov ecx, dword [ebp + 8]
add edx, dword [esi + 8]
push edi
push ecx
push edx
call fcn.0062a790
add esp, 0xc
add dword [esi + 0xc], edi
pop edi
mov dword [esi + 0x18], 0
pop esi
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x60fa3a
cmp dword [esi + 0x18], 0
je 0x60fa24
push eax
push 1
lea eax, [esi + 0x14]
push 1
push eax
mov dword [esi + 0x18], 0
call fcn.00627cab
add esp, 0x10
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
push edx
push 1
push eax
call fcn.00627cab
add esp, 0x10
pop esi
pop ebp
ret 8

Function at 0x612180
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x647953
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6af168]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea edi, [esi + 4]
xor ebx, ebx
mov dword [esi], vtable.Sexy::ConfigParser.0
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov eax, 0xf
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], ebx
mov dword [ebp - 4], ebx
mov byte [esi + 0x1c], bl
mov dword [esi + 0x4c], eax
mov dword [esi + 0x48], ebx
mov byte [esi + 0x38], bl
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], ebx
mov byte [esi + 0x68], bl
mov dword [esi + 0x98], eax
mov dword [esi + 0x94], ebx
mov byte [esi + 0x84], bl
lea ecx, [esi + 0xa4]
mov byte [ebp - 4], 5
call fcn.00612ca0
push 0x64
mov ecx, edi
mov byte [ebp - 4], 6
mov dword [esi + 0x9c], ebx
call fcn.00611570
sub esp, 0x50
mov ecx, esp
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x10], ecx
call fcn.00613980
mov eax, dword [ebp - 0x10]
mov ecx, 0xf
mov dword [eax + 0x30], ecx
mov dword [eax + 0x2c], ebx
mov byte [eax + 0x1c], bl
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x48], ebx
push 1
mov ecx, edi
mov byte [eax + 0x38], bl
call fcn.00611d50
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x612273
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x612278
call fcn.0062492b
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 8]
mov dword [esi + 0x14], ecx
push edx
mov ecx, esi
call fcn.0060fca0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x6137b0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x6af168]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6b7568], 0
jne 0x61382a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x104]
push str.gPakInterfaceP__d
push eax
call fcn.0062635f
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 4
push 0
push 0
push 0xf001f
push eax
mov dword [0x6b7568], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x6b756c], eax
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00624940
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov edx, dword [0x6b756c]
mov eax, dword [edx]
xor ecx, ebp
call fcn.00624940
mov esp, ebp
pop ebp
ret

Function at 0x613940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
call fcn.006137b0
test eax, eax
je 0x613963
mov eax, dword [0x6b756c]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0x14]
push esi
push edi
push ebx
push eax
call edx
pop ebp
ret
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 8]
push eax
push edi
push ebx
push ecx
call fcn.00626e1f
add esp, 0x10
pop ebp
ret

Function at 0x624940
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6af168]
jne 0x62494a
repz ret
jmp fcn.00631a35
Function at 0x626b83
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x626bc0
cmp dword [ebp + 0x14], edi
je 0x626bc0
cmp ecx, edi
jne 0x626bc7
call fcn.00629a03
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00624907
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x626bdb
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x626bfc
cmp ebx, 0xffffffff
je 0x626beb
push ebx
push edi
push ecx
call fcn.0062a710
add esp, 0xc
cmp esi, edi
je 0x626ba8
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x626ba8
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x626c18
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x626c1f
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x626d10
test word [esi + 0xc], 0x10c
je 0x626c73
mov eax, dword [esi + 4]
test eax, eax
je 0x626c73
jl 0x626d71
cmp ebx, eax
mov edi, ebx
jb 0x626c44
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x626d18
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.006249ef
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x626d08
cmp ebx, dword [ebp - 0xc]
jb 0x626ce0
cmp dword [ebp - 0xc], 0
je 0x626c9d
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x626c92
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x626c99
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x626ca8
mov eax, closesocket
cmp ebx, eax
ja 0x626ca8
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x626d44
push eax
push dword [ebp - 8]
push esi
call fcn.00635b8f
pop ecx
push eax
call fcn.006378a9
add esp, 0xc
test eax, eax
je 0x626d83
cmp eax, 0xffffffff
je 0x626d71
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x626d08
push esi
call fcn.00635bbc
cmp eax, 0xffffffff
pop ecx
je 0x626d75
cmp dword [ebp - 4], 0
je 0x626d44
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x626c27
mov eax, dword [ebp + 0x14]
jmp 0x626bc2
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x626d2f
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0062a710
add esp, 0xc
call fcn.00629a03
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x626bb8
cmp dword [ebp + 0xc], 0xffffffff
je 0x626d5a
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0062a710
add esp, 0xc
call fcn.00629a03
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x626bb8
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x626bc2
or dword [esi + 0xc], 0x10
jmp 0x626d75
Function at 0x631097
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x6af268]
je 0x6310b2
inc edi
cmp edi, 0x17
jb 0x6310a3
cmp edi, 0x17
jae 0x631232
push ebp
push 3
call fcn.0063e71d
cmp eax, 1
pop ecx
je 0x6311fe
push 3
call fcn.0063e71d
test eax, eax
pop ecx
jne 0x6310e6
cmp dword [0x6aecb0], 1
je 0x6311fe
cmp ebx, 0xfc
je 0x631231
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x6b7970
push ebp
call fcn.0062aaf5
add esp, 0xc
test eax, eax
je 0x63111c
push esi
push esi
push esi
push esi
push esi
call fcn.0062480b
add esp, 0x14
push 0x104
mov esi, 0x6b7989
push esi
push 0
mov byte [0x6b7a8d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x631160
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0062aaf5
add esp, 0xc
test eax, eax
je 0x631160
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0062480b
add esp, 0x14
push esi
call fcn.0062ab90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x6311a5
push esi
call fcn.0062ab90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x6b7c84
push 0x660284
sub ecx, eax
push ecx
push eax
call fcn.0063d9d6
add esp, 0x14
test eax, eax
je 0x6311a5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0062480b
add esp, 0x14
jmp 0x6311a7
xor esi, esi
push 0x660280
push ebx
push ebp
call fcn.0063d965
add esp, 0xc
test eax, eax
je 0x6311c7
push esi
push esi
push esi
push esi
push esi
call fcn.0062480b
add esp, 0x14
push dword [edi*8 + 0x6af26c]
push ebx
push ebp
call fcn.0063d965
add esp, 0xc
test eax, eax
je 0x6311e9
push esi
push esi
push esi
push esi
push esi
call fcn.0062480b
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0063e560
add esp, 0xc
jmp 0x631231
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x631231
cmp ebp, 0xffffffff
je 0x631231
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x6af26c]
push dword [esi]
call fcn.0062ab90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x63e560
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0063134a
xor ebx, ebx
cmp dword [0x6b8364], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x63e636
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x63e716
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x661f8c
push edi
call esi
cmp eax, ebx
je 0x63e716
push eax
call fcn.006312dc
mov dword [esp], 0x661f7c
push edi
mov dword [0x6b8364], eax
call esi
push eax
call fcn.006312dc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x6b8368], eax
call esi
push eax
call fcn.006312dc
mov dword [0x6b836c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.006292e8
test eax, eax
pop ecx
pop ecx
je 0x63e604
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0062480b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x63e636
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.006312dc
cmp eax, ebx
pop ecx
mov dword [0x6b8374], eax
je 0x63e636
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.006312dc
pop ecx
mov dword [0x6b8370], eax
mov eax, dword [0x6b8370]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x63e6bb
cmp dword [0x6b8374], ecx
je 0x63e6bb
push eax
call fcn.00631353
push dword [0x6b8374]
mov esi, eax
call fcn.00631353
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x63e6bb
cmp edi, ebx
je 0x63e6bb
call esi
cmp eax, ebx
je 0x63e688
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x63e688
test byte [ebp - 0x18], 1
jne 0x63e6bb
lea eax, [ebp - 0x10]
push eax
call fcn.0062931f
test eax, eax
pop ecx
je 0x63e6a3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0062480b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x63e6b2
or dword [ebp + 0x10], 0x200000
jmp 0x63e6f6
or dword [ebp + 0x10], 0x40000
jmp 0x63e6f6
mov eax, dword [0x6b8368]
cmp eax, dword [ebp - 8]
je 0x63e6f6
push eax
call fcn.00631353
cmp eax, ebx
pop ecx
je 0x63e6f6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x63e6f6
mov eax, dword [0x6b836c]
cmp eax, dword [ebp - 8]
je 0x63e6f6
push eax
call fcn.00631353
cmp eax, ebx
pop ecx
je 0x63e6f6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6b8364]
call fcn.00631353
cmp eax, ebx
pop ecx
je 0x63e716
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x63e718
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret