joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x46bb10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4d000]
push edi
or ebp, 0xffffffff
jmp 0x46bb32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46bb39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46bb28
mov eax, 1
add ebx, ebx
jne 0x46bb4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46bb40
jne 0x46bb5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46bb40
xor ecx, ecx
sub eax, 3
jb 0x46bb70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46bbe2
mov ebp, eax
add ebx, ebx
jne 0x46bb7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x46bb88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x46bbac
inc ecx
add ebx, ebx
jne 0x46bb98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46bb8d
jne 0x46bba9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46bb8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46bbcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46bbbd
jmp 0x46bb2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46bbcc
add edi, ecx
jmp 0x46bb2e
pop esi
mov edi, esi
mov ecx, 5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46bbea
cmp byte [edi], 0x30
jne 0x46bbea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46bbef
lea edi, [esi + 0x69000]
mov eax, dword [edi]
or eax, eax
je 0x46bc67
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6e4f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6e52c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46bc1c
mov ecx, edi
jns 0x46bc4b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6e530]
or eax, eax
je 0x46bc61
mov dword [ebx], eax
add ebx, 4
jmp 0x46bc39
call dword [esi + 0x6e540]
mov ebp, dword [esi + 0x6e534]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x46bc9b
sub esp, 0xffffff80
jmp 0x4010b0
Function at 0x403730
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x40375f
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, 1
cmp dword [ebp - 4], edi
jle 0x40383d
push esi
nop
mov esi, dword [eax + edi*4]
mov ecx, str.__typeutility
mov eax, esi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4037a6
test dx, dx
je 0x4037a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4037a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x403780
xor eax, eax
jmp 0x4037ab
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4037b6
mov byte [ebx], al
jmp 0x40382f
push 8
push str.__entry
push esi
call fcn.004b1876
add esp, 0xc
test eax, eax
jne 0x4037f5
add esi, 0x10
cmp word [esi], ax
jne 0x4037da
xor ecx, ecx
push ecx
lea ecx, [ebx + 0x1c]
jmp 0x403829
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4037e0
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [ebx + 0x1c]
jmp 0x403829
push 7
push str.__from
push esi
call fcn.004b1876
add esp, 0xc
test eax, eax
jne 0x40382f
add esi, 0xe
cmp word [esi], ax
je 0x403825
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403816
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebx + 4]
push esi
call fcn.00402ad0
mov eax, dword [ebp - 8]
inc edi
cmp edi, dword [ebp - 4]
jl 0x403770
pop esi
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403850
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cdb36
mov eax, dword fs:[0]
push eax
mov eax, 0x1050
call fcn.004c97c0
mov eax, dword [0x50c620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x50fd80]
mov dword [ebp - 0x105c], 0
test al, 1
jne 0x4038c7
or eax, 1
mov dword [0x50fd98], 7
mov dword [0x50fd80], eax
xor eax, eax
push 0x4e2590
mov dword [0x50fd94], 0
mov word [0x50fd84], ax
call fcn.004b177f
add esp, 4
cmp dword [0x50fd94], 0
jne 0x403a43
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x100e]
push eax
call fcn.004b5340
add esp, 0xc
lea eax, [ebp - 0x1010]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x1010], 0
je 0x403a43
push 0x4e9d40
lea ecx, [ebp - 0x1058]
call fcn.00402470
lea eax, [ebp - 0x1010]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x1028]
call fcn.00402470
lea eax, [ebp - 0x1058]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1028]
push eax
lea eax, [ebp - 0x1040]
push eax
call fcn.0040d9b0
mov edi, eax
add esp, 0xc
cmp edi, 0x50fd84
je 0x4039a5
cmp dword [0x50fd98], 8
jb 0x40397e
push dword [0x50fd84]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [0x50fd98], 7
push edi
mov ecx, 0x50fd84
mov dword [0x50fd94], 0
mov word [0x50fd84], ax
call fcn.004026a0
cmp dword [ebp - 0x102c], 8
jb 0x4039bc
push dword [ebp - 0x1040]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [ebp - 0x102c], 7
cmp dword [ebp - 0x1014], 8
mov dword [ebp - 0x1030], 0
mov word [ebp - 0x1040], ax
jb 0x4039f0
push dword [ebp - 0x1028]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1044], 8
mov dword [ebp - 0x1014], 7
mov dword [ebp - 0x1018], 0
mov word [ebp - 0x1028], ax
jb 0x403a2b
push dword [ebp - 0x1058]
call fcn.004b17b6
add esp, 4
mov ecx, 0x50fd84
call fcn.004103f0
test al, al
jne 0x403a43
mov ecx, 0x50fd84
call fcn.00410ad0
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x50fd84
mov word [esi], ax
call fcn.004029b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b0ff2
mov esp, ebp
pop ebp
ret
Function at 0x409010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ce231
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x30], 0
mov edi, dword [esp + 0x44]
push 0
push edi
push dword [esp + 0x48]
mov dword [esp + 0x18], 0
push dword [esp + 0x48]
mov esi, dword [esp + 0x48]
push esi
call fcn.00409110
mov dword [esp + 0x30], 0
cmp dword [esi + 0x10], 0
mov dword [esp + 0xc], 1
jne 0x4090f8
push 0x100
push edi
push dword [esp + 0x48]
lea eax, [esp + 0x1c]
push dword [esp + 0x48]
push eax
call fcn.00409110
mov edi, eax
mov dword [esp + 0x30], 1
cmp esi, edi
je 0x4090c9
cmp dword [esi + 0x14], 8
jb 0x4090ae
push dword [esi]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.004026a0
mov byte [esp + 0x30], 0
cmp dword [esp + 0x24], 8
jb 0x4090e1
push dword [esp + 0x10]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0x10
Function at 0x40a180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ce571
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x50c620]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov dword [esp + 0x6c], 0
xor eax, eax
mov esi, dword [esp + 0x74]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0
push 0x11
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
push str.SOFTWARE2345.com
mov dword [esp + 0x30], esi
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
call fcn.00402ad0
mov dword [esp + 0x6c], 1
xor eax, eax
push 4
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
push str.UUID
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
call fcn.00402ad0
mov byte [esp + 0x6c], 2
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x30]
push eax
push 0x80000001
lea eax, [esp + 0x50]
push eax
call fcn.00409010
mov byte [esp + 0x6c], 4
cmp dword [esp + 0x20], 8
jb 0x40a273
push dword [esp + 0xc]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov word [esi], ax
push esi
lea eax, [esp + 0x48]
mov dword [esp + 0x28], 1
push eax
call fcn.00408ba0
mov byte [esp + 0x6c], 1
cmp dword [esp + 0x58], 8
jb 0x40a2c2
push dword [esp + 0x44]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
mov byte [esp + 0x6c], al
cmp dword [esp + 0x40], 8
jb 0x40a2f0
push dword [esp + 0x2c]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
mov eax, esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004b0ff2
add esp, 0x68
ret 4

Function at 0x40f080
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x40f096
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [esp + 8]
mov word [esi + 4], 0
cmp dword [eax + 0x10], 0
je 0x40f0b0
cmp dword [eax + 0x14], 8
jb 0x40f0b2
mov eax, dword [eax]
jmp 0x40f0b2
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x40f0d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40f0d4
mov byte [esi + 5], 1
cmp dword [esi], 0
pop esi
setne al
ret 4
Function at 0x40f0e0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cef58
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x50c620]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [esp + 0x2c]
test eax, eax
je 0x40f12a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [esp + 0x14]
mov word [edi + 4], 0
mov dword [esp + 0x14], 0
call fcn.0042b020
mov dword [esp + 0x24], 0
mov esi, dword [esp + 0x14]
cmp dword [esi], 0
je 0x40f157
lea eax, [esi + 8]
jmp 0x40f159
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x40f169
cmp dword [ebx + 0x14], 8
jb 0x40f16b
mov ebx, dword [ebx]
jmp 0x40f16b
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x40f18c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40f18c
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x40f1b6
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40f1cb
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push esi
call fcn.004b17b6
add esp, 4
mov dword [esp + 0x14], 0
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004b0ff2
add esp, 0x18
ret 4
Function at 0x40f200
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cef88
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x50c620]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [esp + 0x2c]
test eax, eax
je 0x40f24b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [esp + 0x18]
mov word [edi + 4], 0
mov dword [esp + 0x18], 0
call fcn.0042b160
mov dword [esp + 0x24], 0
mov esi, dword [esp + 0x14]
cmp dword [esi], 0
je 0x40f279
lea ebp, [esi + 8]
jmp 0x40f27b
xor ebp, ebp
cmp dword [ebx + 0x10], 0
je 0x40f28f
cmp dword [ebx + 0x14], 8
jb 0x40f28b
mov eax, dword [ebx]
jmp 0x40f291
mov eax, ebx
jmp 0x40f291
xor eax, eax
push eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x40f2dd
call eax
cmp eax, 5
jne 0x40f2d3
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x10], 0
je 0x40f2c5
cmp dword [ebx + 0x14], 8
jb 0x40f2c7
mov ebx, dword [ebx]
jmp 0x40f2c7
xor ebx, ebx
push ebx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
cmp dword [edi], 0
je 0x40f2f4
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0xb7
jne 0x40f2ea
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.00419890
cmp dword [edi], 0
setne bl
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x40f31b
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40f330
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push esi
call fcn.004b17b6
add esp, 4
mov dword [esp + 0x14], 0
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004b0ff2
add esp, 0x14
ret 4
Function at 0x410e70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ce231
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x30], 0
xor eax, eax
mov dword [esp + 0xc], 0
mov esi, dword [esp + 0x38]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [esp + 0x30], eax
mov edi, dword [esp + 0x3c]
push 2
push ecx
push 0x4ed6d0
mov ecx, edi
mov dword [esp + 0x18], 1
call fcn.0040dca0
cmp eax, 0xffffffff
je 0x410fba
inc eax
cmp eax, dword [edi + 0x10]
jae 0x410f79
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0040cca0
mov edi, eax
mov dword [esp + 0x30], 1
cmp esi, edi
je 0x410f36
cmp dword [esi + 0x14], 8
jb 0x410f1b
push dword [esi]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.004026a0
mov byte [esp + 0x30], 0
cmp dword [esp + 0x24], 8
jb 0x410f4e
push dword [esp + 0x10]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov word [esp + 0x10], ax
mov eax, esi
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x410fa1
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
cmp esi, edi
je 0x410fca
push 0xffffffffffffffff
push 0
push edi
mov ecx, esi
call fcn.004029b0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
Function at 0x417660
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x50c620]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.004b1806
mov dword [esi], eax
push 0x11c
push 0
mov byte [eax], 0
lea eax, [esp + 0x10]
push eax
call fcn.004b5340
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x4176bc
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.004b0ff2
add esp, 0x120
ret
Function at 0x4191f0
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x4d0528
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x50c620]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
mov dword [esp + 0x50], eax
xorps xmm0, xmm0
mov word [esp + 0x24], ax
mov dword [esp + 0x3e], eax
mov word [esp + 0x42], ax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
movq qword [esp + 0x3a], xmm0
push eax
push 2
movdqu xmmword [esp + 0x32], xmm0
mov dword [esp + 0x2c], 0xf
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x4192b5
cmp word [esp + 0x24], 0
jne 0x419290
xor ecx, ecx
jmp 0x4192a6
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419297
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00402ad0
cmp dword [esp + 0x18], 0
setne al
mov byte [esp + 7], al
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x1c], 8
jb 0x4192e0
push dword [esp + 8]
call fcn.004b17b6
mov al, byte [esp + 0xb]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], 0
mov word [esp + 8], cx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004b0ff2
add esp, 0x50
ret
Function at 0x41d0e0
Capabilities:
Read file on windows

Disassembly:
mov edx, ecx
mov eax, dword [edx]
test eax, eax
jne 0x41d0ed
xor al, al
ret 0xc
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x41d0e8
cmp dword [eax], 0xffffffff
je 0x41d0e8
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [edx]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
ret 0xc

Function at 0x41d1a0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x50c620]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push edi
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x41d1cd
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004b0ff2
add esp, 8
ret 4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41d1b9
push esi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41d207
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41d207
pop esi
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004b0ff2
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, esi
mov dword [edi], eax
mov al, 1
adc ecx, 0
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0xc]
pop esi
pop edi
xor ecx, esp
call fcn.004b0ff2
add esp, 8
ret 4

Function at 0x41d2c0
Capabilities:
Clear file content

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x41d2da
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.0041d230
test al, al
je 0x41d2ce
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
mov ebp, dword [esp + 0x28]
xorps xmm0, xmm0
push eax
push 0
push edi
push ebp
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.0041d230
test al, al
je 0x41d2ce
xor bl, bl
cmp dword [esp + 0x10], ebp
jne 0x41d347
cmp dword [esp + 0x14], edi
jne 0x41d347
mov eax, dword [esi]
test eax, eax
jne 0x41d334
xor bl, bl
jmp 0x41d347
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41d330
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.0041d230
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x14
ret 8