joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e7b1
Capabilities:
Execute anti-debugging instructions

Disassembly:
push edi
pushal
cmp eax, esi
pushal
push esp
lea esp, [esp + 0x48]
je 0x2cb8a
push 0xf3938d35
stc
cmp bl, bh
cmp dword [eax], 0
mov byte [esp], 0xd6
push 0xe3658ed0
lea esp, [esp + 8]
je 0x2cb8a
call fcn.0004daed
pushfd
lea esp, [esp + 4]
jns 0x2ee8d
pushal
pushfd
mov dword [esp + 0x20], esi
pushal
mov byte [esp + 8], dh
lea esp, [esp + 0x40]
call sub.ntoskrnl.exe_memcpy
pushfd
mov eax, dword [0x22428]
push 0x3cf75cbb
cmp al, dl
pushal
add esp, 0x34
call fcn.00046644
call fcn.0001beca
mov dword [esp + 0x44], ebx
mov byte [esp], ah
pushfd
pushfd
push dword [esp + 0x4c]
ret 0x50
lea esp, [esp + 0x28]
jge 0x27f8b
pushal
mov dword [esp + 0x1c], esi
pushfd
push 0x259a5dab
lea esp, [esp + 0x24]
call sub.ntoskrnl.exe_memcpy
btc ax, 9
mov eax, dword [0x22428]
clc
call fcn.0003fee4
shld ax, di, 0xa
mov dword [ebp - 0xc], esi
ror ah, cl
movzx eax, dl
cwde
btr ax, 0xc
mov eax, dword [0x22444]
jmp 0x26cfe
Function at 0x68449d00
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov eax, 0x166c
call fcn.68459650
mov eax, dword [esp + 0x1670]
push esi
mov esi, dword [eax + 0xc]
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
push 0x104
lea edx, [esp + 0x470]
mov dword [esp + 0x14], ecx
push edx
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [esi + 0x28]
push 0x104
lea eax, [esp + 0x268]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [esp + 0x264]
push edx
lea eax, [esp + 0x60]
push eax
call esi
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x684312d0
lea edx, [esp + 0x678]
push edx
mov word [esp + eax*2 + 0x5a], 0x4b
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x678]
push ecx
call esi
push 0x68431290
lea edx, [esp + 0x678]
push edx
call esi
lea eax, [esp + 0x264]
push eax
lea ecx, [esp + 0x678]
push ecx
call esi
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x474]
push ecx
push 0
push 0x20
push 0
push 0
push 0
lea edx, [esp + 0x694]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x68449e17
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
add esp, 0x166c
ret 4
Function at 0x68451530
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x68464724]
sub esp, 0x114
test eax, eax
je 0x68451550
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
add esp, 0x114
ret
push edi
xor eax, eax
lea edx, [esp + 4]
mov ecx, 0x45
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [esp + 8]
cmp ecx, 5
mov eax, 1
pop edi
ja 0x68451588
jne 0x68451594
cmp dword [esp + 8], eax
jb 0x68451594
mov dword [0x68464724], eax
add esp, 0x114
ret
mov dword [0x68464724], 2
xor eax, eax
add esp, 0x114
ret
Function at 0x684520b0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x68464728]
sub esp, 0x9d4
test eax, eax
jne 0x68452213
lea eax, [esp + 0x204]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov al, byte [esp + 0x204]
test al, al
lea edx, [esp + 0x204]
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], al
je 0x684520fd
mov al, byte [edx + 2]
add edx, 2
inc ecx
test al, al
mov byte [ecx], al
jne 0x684520f0
push ebx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x5f4]
push 0x684483e4
push edx
call fcn.6845990d
lea eax, [esp + 0x5fc]
push 0x684483e0
push eax
call fcn.684598fa
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x6845217f
push 0x68464718
push 0x684483dc
push ebx
call fcn.68459854
lea ecx, [esp + 0x14]
push ecx
push 0x684483d8
push ebx
call fcn.68459854
push 0x68464714
push 0x684483dc
push ebx
call fcn.68459854
mov edx, dword [0x68464718]
imul edx, dword [0x68464714]
push edx
call fcn.684597a5
add esp, 0x28
test eax, eax
mov dword [0x6846471c], eax
jne 0x684521aa
mov eax, 0x10
mov dword [0x68464714], eax
mov dword [0x68464718], eax
mov dword [0x6846471c], 0x6843c1d8
mov dword [0x68464728], 1
pop ebx
add esp, 0x9d4
ret
mov eax, dword [0x68464714]
push ebp
push edi
xor edi, edi
xor ebp, ebp
test eax, eax
jle 0x684521fd
mov eax, dword [0x68464718]
push esi
nop
xor esi, esi
test eax, eax
jle 0x684521f1
lea eax, [esp + 0x10]
push eax
push 0x684483dc
push ebx
call fcn.68459854
mov cl, byte [esp + 0x1c]
mov edx, dword [0x6846471c]
add esp, 0xc
mov byte [edx + edi], cl
mov eax, dword [0x68464718]
inc edi
inc esi
cmp esi, eax
jl 0x684521c6
mov ecx, dword [0x68464714]
inc ebp
cmp ebp, ecx
jl 0x684521c0
pop esi
push ebx
call fcn.68459803
add esp, 4
pop edi
pop ebp
mov dword [0x68464728], 1
pop ebx
add esp, 0x9d4
ret
Function at 0x68452220
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x6846472c]
sub esp, 0x9d8
test eax, eax
jne 0x684523c3
lea eax, [esp + 0x208]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov al, byte [esp + 0x208]
test al, al
lea edx, [esp + 0x208]
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
je 0x6845226d
mov al, byte [edx + 2]
add edx, 2
inc ecx
test al, al
mov byte [ecx], al
jne 0x68452260
push ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x5f8]
push 0x684483fc
push edx
call fcn.6845990d
lea eax, [esp + 0x600]
push 0x684483e0
push eax
call fcn.684598fa
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x68452312
lea ecx, [esp + 0xc]
push ecx
push 0x684483d8
push ebx
call fcn.68459854
lea edx, [esp + 0x18]
push edx
push 0x684483d8
push ebx
call fcn.68459854
push 0x6846375c
push 0x684483dc
push ebx
call fcn.68459854
lea eax, [esp + 0x30]
push eax
push 0x684483d8
push ebx
call fcn.68459854
push 0x68463758
push 0x684483dc
push ebx
call fcn.68459854
mov ecx, dword [0x6846375c]
imul ecx, dword [0x68463758]
shl ecx, 8
push ecx
call fcn.684597a5
add esp, 0x40
test eax, eax
mov dword [0x68463760], eax
jne 0x68452342
mov dword [0x68463758], 0x10
mov dword [0x6846375c], 0xc
mov dword [0x68463760], 0x6843c2d8
mov dword [0x6846472c], 1
pop ebx
add esp, 0x9d8
ret
mov ecx, dword [0x68463758]
mov eax, dword [0x6846375c]
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], pe_nt_image_headers32
lea ebx, [ebx]
xor ebp, ebp
test ecx, ecx
jle 0x684523a6
xor esi, esi
test eax, eax
jle 0x684523a1
lea esp, [esp]
lea edx, [esp + 0x14]
push edx
push 0x684483dc
push ebx
call fcn.68459854
mov al, byte [esp + 0x20]
mov ecx, dword [0x68463760]
add esp, 0xc
mov byte [ecx + edi], al
mov eax, dword [0x6846375c]
inc edi
inc esi
cmp esi, eax
jl 0x68452370
mov ecx, dword [0x68463758]
inc ebp
cmp ebp, ecx
jl 0x68452366
dec dword [esp + 0x10]
jne 0x68452360
push ebx
call fcn.68459803
add esp, 4
pop edi
pop esi
pop ebp
mov dword [0x6846472c], 1
pop ebx
add esp, 0x9d8
ret
Function at 0x684576d0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xc
mov ecx, dword [ebx + 0x4c]
push ebp
mov ebp, dword [ebx + 0x54]
push esi
mov esi, dword [ebx + 0x60]
push edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
push 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov word [esi + 0x40], 0x401
mov cx, word [ebp + 4]
mov word [esi + 0x42], cx
mov word [esi + 0x44], 0xdc
mov dx, word [ebx + 0x50]
sub dx, 0xdc
mov word [esi + 0x46], dx
mov eax, dword [ebp + 4]
mov dword [esi + 0xdc], eax
mov ecx, dword [ebx + 0x58]
push ecx
lea edx, [esi + 0xe0]
push edx
call fcn.6845957c
mov eax, dword [esp + 0x24]
mov dword [esi + 0x210], eax
mov ecx, dword [ebx + 0x50]
mov dword [esi + 0x214], ecx
mov edx, dword [ebx + 0x4c]
mov dword [esi + 0x218], edx
mov eax, dword [ebx + 0x50]
mov dword [esi + 0x224], eax
mov edi, dword [ebx + 0x48]
mov dword [esi + 0x228], edi
mov ecx, dword [ebx + 0x44]
mov dword [edi + esi], ecx
mov edx, dword [ebx + 0xc]
mov ebp, eax
mov dword [edi + esi + 0x18], edx
mov eax, dword [ebx + 8]
mov dword [edi + esi + 4], eax
mov ecx, dword [0x6843b804]
add esp, 8
xor eax, eax
mov dword [edi + esi + 0xc], ecx
mov edx, dword [ebx + 0x40]
push 6
mov dword [edi + esi + 0x44], eax
mov dword [edi + esi + 0x14], eax
lea eax, [esp + 0x10]
push eax
push 5
push 0x400
add ebp, esi
mov dword [edi + esi + 0x10], edx
mov dword [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x684577d0
push 0
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.6845a16c
add esp, 0xc
jmp 0x684577d4
mov eax, dword [esp + 0x20]
push 2
lea edx, [esp + 0x24]
push edx
push 0xd
mov dword [edi + esi + 8], eax
mov dword [ebp], eax
push 0x400
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x68457802
xor eax, eax
cmp word [esp + 0x20], 0x30
setne al
mov ebp, eax
push 0
push esi
push ebx
mov dword [edi + esi + 0x1c], ebp
call fcn.68458460
push esi
push ebx
call fcn.68458580
push esi
push ebx
call fcn.68458d10
pop edi
pop esi
pop ebp
add esp, 0xc
ret 8
Function at 0x684592ba
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x684593aa
mov eax, 0x94
call fcn.68459650
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x6845941f
mov ecx, dword [esi + 0x10]
mov dword [0x68467918], ecx
mov eax, dword [esi + 4]
mov dword [0x68467924], eax
mov edx, dword [esi + 8]
mov dword [0x68467928], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x6846791c], esi
je 0x68459325
or esi, 0x8000
mov dword [0x6846791c], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x68467920], eax
call fcn.6845ae09
test eax, eax
pop ecx
je 0x6845941f
call fcn.6845a57c
test eax, eax
jne 0x68459352
call fcn.6845ae5a
jmp 0x6845941f
call fcn.6845ad67
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x68469194], eax
call fcn.6845ac45
mov dword [0x68467904], eax
call fcn.6845a726
test eax, eax
jl 0x684593a3
call fcn.6845aba3
test eax, eax
jl 0x6845939e
call fcn.6845a970
test eax, eax
jl 0x6845939e
push 0
call fcn.6845a20f
test eax, eax
pop ecx
jne 0x6845939e
inc dword [0x68467900]
jmp 0x68459430
call fcn.6845a924
call fcn.6845a365
jmp 0x68459348
test eax, eax
jne 0x684593da
cmp dword [0x68467900], eax
jle 0x6845941f
dec dword [0x68467900]
cmp dword [0x68467954], eax
jne 0x684593c9
call fcn.6845a34d
call fcn.6845a924
call fcn.6845a365
call fcn.6845ae5a
jmp 0x68459430
cmp eax, 2
jne 0x68459423
push 0x8c
push 1
call fcn.6845a66b
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x6845941f
push esi
push dword [0x68463ba0]
call dword [0x68467964]
test eax, eax
push esi
je 0x68459419
call fcn.6845a382
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x68459430
call fcn.6845968d
pop ecx
xor eax, eax
jmp 0x68459433
cmp eax, 3
jne 0x68459430
push 0
call fcn.6845a54d
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x6845a279
Capabilities:
Terminate process

Disassembly:
push 8
push 0x68448650
call fcn.6845b058
push 8
call fcn.6845b5d4
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x68467958], esi
jne 0x6845a2ad
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x68467954], esi
mov al, byte [ebp + 0x10]
mov byte [0x68467950], al
cmp dword [ebp + 0xc], edi
jne 0x6845a2f7
cmp dword [0x68469188], edi
je 0x6845a2e7
mov eax, dword [0x68469184]
sub eax, 4
mov dword [0x68469184], eax
cmp eax, dword [0x68469188]
jb 0x6845a2e7
mov eax, dword [eax]
cmp eax, edi
je 0x6845a2c8
call eax
jmp 0x6845a2c8
push 0x68463028
mov eax, 0x68463020
call fcn.6845a1f7
pop ecx
push 0x68463030
mov eax, 0x6846302c
call fcn.6845a1f7
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x6845a328
cmp dword [ebp + 0x10], edi
jne 0x6845a336
mov dword [0x68467958], esi
push dword [ebp + 8]
call fcn.6845a1b5
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x6845a335
push 8
call fcn.6845b51f
pop ecx
ret
call fcn.6845b093
ret
Function at 0x6845b0a4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x684643a0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x68463c58]
je 0x6845b0d9
inc eax
cmp eax, 0x13
jb 0x6845b0ca
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x68463c58]
jne 0x6845b1ff
mov eax, dword [0x6846790c]
cmp eax, 1
je 0x6845b1d7
cmp eax, edx
jne 0x6845b109
cmp dword [0x68467910], 1
je 0x6845b1d7
cmp ecx, 0xfc
je 0x6845b1ff
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6845b13f
lea eax, [ebp - 0x80]
push 0x68448ad4
push eax
call fcn.6845ec70
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.6845ed70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x6845b173
mov eax, edi
push eax
call fcn.6845ed70
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x68448ad0
push edi
call fcn.6845f240
add esp, 0x10
push edi
call fcn.6845ed70
push dword [esi + 0x68463c5c]
mov ebx, eax
call fcn.6845ed70
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.68459650
mov ebx, esp
push 0x68448ab4
push ebx
call fcn.6845ec70
push edi
push ebx
call fcn.6845ec80
push 0x68448ab0
push ebx
call fcn.6845ec80
push dword [esi + 0x68463c5c]
push ebx
call fcn.6845ec80
push 0x12010
push 0x68448a88
push ebx
call fcn.6845f13d
add esp, 0x2c
jmp 0x6845b1ff
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x68463c5c]
push dword [esi]
call fcn.6845ed70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.6845e18c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x6845f13d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x68467c44], ebx
push esi
push edi
jne 0x6845f1bd
push 0x68448e18
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x6845f1f8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x68448e0c
push edi
call esi
test eax, eax
mov dword [0x68467c44], eax
je 0x6845f1f8
push 0x68448dfc
push edi
call esi
push 0x68448de8
push edi
mov dword [0x68467c48], eax
call esi
cmp dword [0x68467918], 2
mov dword [0x68467c4c], eax
jne 0x6845f1bd
push 0x68448dcc
push edi
call esi
test eax, eax
mov dword [0x68467c54], eax
je 0x6845f1bd
push 0x68448db4
push edi
call esi
mov dword [0x68467c50], eax
mov eax, dword [0x68467c50]
test eax, eax
je 0x6845f202
call eax
test eax, eax
je 0x6845f1e9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x68467c54]
test eax, eax
je 0x6845f1e9
test byte [ebp - 8], 1
jne 0x6845f202
cmp dword [0x68467924], 4
jb 0x6845f1fc
or byte [ebp + 0x12], 0x20
jmp 0x6845f221
xor eax, eax
jmp 0x6845f231
or byte [ebp + 0x12], 4
jmp 0x6845f221
mov eax, dword [0x68467c48]
test eax, eax
je 0x6845f221
call eax
mov ebx, eax
test ebx, ebx
je 0x6845f221
mov eax, dword [0x68467c4c]
test eax, eax
je 0x6845f221
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x68467c44]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6845ffea
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x684643a0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x6846001b
xor eax, eax
jmp 0x684601a4
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x68469080]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x68460057
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.684619b6
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x68460132
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x68460170
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x684600bb
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x684600ac
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x6846008c
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x684600fb
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x68460104
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x6846007d
jmp 0x68460106
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x6846019f
cmp dword [ebp - 0x6c], edi
je 0x68460170
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x68460165
call fcn.6845d450
mov dword [eax], 9
call fcn.6845d459
mov dword [eax], esi
jmp 0x6846019a
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6846015a
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x68460106
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x68460106
push dword [ebp - 0x6c]
call fcn.6845d462
pop ecx
jmp 0x6846019a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x68460188
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x68460188
xor eax, eax
jmp 0x684601a2
call fcn.6845d450
mov dword [eax], 0x1c
call fcn.6845d459
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x684601a2
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.6845e18c
add ebp, 0x3a0
leave
ret
Function at 0x684606a5
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.68459650
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x68460740
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 [0x68467918]
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 0x68460740
cmp eax, 1
je 0x68460761
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 0x68460740
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x6846070d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x6846073c
xor eax, eax
inc eax
jmp 0x68460780
cmp edi, eax
jae 0x68460744
xor eax, eax
jmp 0x68460780
cmp eax, esi
jae 0x6846074b
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 [0x68467918]
jmp 0x68460764
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 0x68461ab0
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 0x68461c84
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x68469080]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x68461c84
test cl, 0x48
je 0x68461b1b
cmp byte [eax + 5], 0xa
je 0x68461b1b
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 0x68461b6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x68461b55
call fcn.6845d450
mov dword [eax], 9
call fcn.6845d459
mov dword [eax], esi
jmp 0x68461b65
cmp eax, 0x6d
je 0x68461c84
push eax
call fcn.6845d462
pop ecx
or eax, 0xffffffff
jmp 0x68461c86
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x68461c7f
test eax, eax
je 0x68461b94
cmp byte [ebx], 0xa
jne 0x68461b94
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x68461b9d
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 0x68461c79
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x68461c69
cmp al, 0xd
je 0x68461bcf
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x68461c5b
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x68461be9
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x68461be4
add dword [ebp + 0x10], 2
jmp 0x68461c3d
mov dword [ebp + 0x10], eax
jmp 0x68461c57
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 0x68461c11
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x68461c57
cmp dword [ebp - 0xc], 0
je 0x68461c57
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x68461c32
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x68461c3d
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x68461c5a
cmp ebx, dword [ebp + 0xc]
jne 0x68461c42
cmp byte [ebp - 1], 0xa
jne 0x68461c42
mov byte [ebx], 0xa
jmp 0x68461c5a
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.68460b00
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x68461c5b
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x68461bb3
jmp 0x68461c79
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x68461c79
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 0x68461c86
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret