joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b7d0
Capabilities:
Write file on windows

Disassembly:
add dword [eax], eax
mov eax, dword [ebp - 0x1ad8]
mov ecx, dword [eax*4 + 0x42da38]
mov eax, dword [ebp - 0x1adc]
test byte [eax + ecx + 4], 0x80
or byte [eax + eax*4], al
je 0x41bb4e
mov edx, dword [ebp - 0x1ad0]
xor edi, edi
mov dword [ebp - 0x1acc], edi
test bl, bl
jne 0x41b8fd
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x1ac8], edx
invalid
mov ecx, edx
cmp bl, 2
jne 0x41b9f2
cmp dword [ebp + 0x10], esi
jbe 0x41bb8d
mov dword [ebp - 0x1aec], 0xa
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x1ac8], ecx
test ebx, ebx
je 0x41bb8d
mov dword [ebp - 0x1aec], 0xa
and dword [ebp - 0x1ae8], 0
lea eax, [ebp - 0x1ab8]
mov edi, dword [ebp - 0x1ac8]
sub ecx, edx
mov edx, dword [ebp - 0x1ae8]
cmp ecx, ebx
jae 0x41ba67
movzx esi, word [edi]
add ecx, 2
add edi, 2
mov dword [ebp - 0x1ac8], edi
cmp si, word [ebp - 0x1aec]
jne 0x41ba56
push 0xd
pop edi
mov word [eax], di
add eax, 2
mov edi, dword [ebp - 0x1ac8]
add edx, 2
mov word [eax], si
add edx, 2
add eax, 2
cmp edx, 0x6a8
jb 0x41ba28
xor esi, esi
lea ecx, [ebp - 0xd64]
push esi
push esi
push 0xd55
push ecx
lea ecx, [ebp - 0x1ab8]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, ecx
push eax
push esi
push 0x1af8ce9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [ebp - 0x1ac0]
mov edi, dword [ebp - 0x1acc]
mov dword [ebp - 0x1ac4], eax
test eax, eax
je 0x41b7ae
xor ecx, ecx
mov dword [ebp - 0x1ac0], ecx
push 0
sub eax, ecx
lea edx, [ebp - 0x1ae0]
push edx
push eax
lea eax, [ebp - 0xd64]
add eax, ecx
mov ecx, dword [ebp - 0x1adc]
push eax
mov eax, dword [ebp - 0x1ad8]
mov eax, dword [eax*4 + 0x42da38]
push dword [ecx + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41bb09
mov ecx, dword [ebp - 0x1ac0]
add ecx, dword [ebp - 0x1ae0]
mov eax, dword [ebp - 0x1ac4]
mov dword [ebp - 0x1ac0], ecx
cmp eax, ecx
jg 0x41bab6
jmp 0x41bb23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1ac0]
mov edi, eax
mov eax, dword [ebp - 0x1ac4]
mov dword [ebp - 0x1acc], edi
cmp eax, ecx
jg 0x41b8c5
mov ecx, dword [ebp - 0x1ac8]
mov esi, ecx
mov edx, dword [ebp - 0x1ad0]
sub esi, edx
mov dword [ebp - 0x1ac0], esi
cmp esi, ebx
jb 0x41ba0d
jmp 0x436813
push 0
lea edx, [ebp - 0x1ae0]
push edx
push dword [ebp + 0x10]
push dword [ebp - 0x1ad0]
push dword [eax + ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b7ae
mov esi, dword [ebp - 0x1ae0]
xor edi, edi
jmp 0x436843
Function at 0x41b7f8
Capabilities:
Write file on windows

Disassembly:
test ebx, ebx
je 0x41bb8d
xor ecx, ecx
lea edi, [ebp - 0x140c]
mov eax, edx
mov dword [ebp - 0x1ac4], ecx
sub eax, dword [ebp - 0x1ad0]
cmp eax, ebx
jae 0x41b85e
mov cl, byte [edx]
inc edx
inc eax
mov byte [ebp - 0x1ae1], cl
cmp cl, 0xa
mov dword [ebp - 0x1ac8], edx
mov ecx, dword [ebp - 0x1ac4]
jne 0x41b840
inc dword [ebp - 0x1abc]
mov byte [edi], 0xd
inc edi
inc ecx
mov dl, byte [ebp - 0x1ae1]
mov byte [edi], dl
inc edi
mov edx, dword [ebp - 0x1ac8]
inc ecx
mov dword [ebp - 0x1ac4], ecx
inc dword [ecx + 0x13fff9]
add byte [edx - 0x48], dh
mov ecx, dword [ebp - 0x1adc]
lea eax, [ebp - 0x140c]
sub edi, eax
lea eax, [ebp - 0x1ae0]
push 0
push eax
push edi
lea eax, [ebp - 0x140c]
push eax
mov eax, dword [ebp - 0x1ad8]
mov eax, dword [eax*4 + 0x42da38]
push dword [ecx + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b7ae
add esi, dword [ebp - 0x1ae0]
cmp dword [ebp - 0x1ae0], edi
jl 0x41b8bf
mov edx, dword [ebp - 0x1ac8]
mov eax, edx
sub eax, dword [ebp - 0x1ad0]
cmp eax, ebx
jb 0x41b800
mov edi, dword [ebp - 0x1acc]

Function at 0x41b90a
Capabilities:
Write file on windows

Disassembly:
adc byte [edi], cl
xchg byte [edx + eax], bh
add bh, al
test dword [0xaffff], edx
add byte [eax], al
and dword [ebp - 0x1ae8], 0
lea ebx, [ebp - 0x140c]
mov eax, ecx
push 0xd
sub eax, edx
mov edx, dword [ebp - 0x1ae8]
pop esi
cmp eax, dword [ebp + 0x10]
jae 0x41b96d
movzx edi, word [ecx]
add eax, 2
add ecx, 2
cmp di, word [ebp - 0x1aec]
jne 0x41b95c
add dword [ebp - 0x1abc], 2
mov word [ebx], si
add ebx, 2
add edx, 2
mov word [ebx], di
add edx, 2
add ebx, 2
cmp edx, 0x13fe
jb 0x41b935
lea eax, [ebp - 0x140c]
mov dword [ebp - 0x1ac4], ecx
mov ecx, dword [ebp - 0x1adc]
sub ebx, eax
push 0
lea eax, [ebp - 0x1ae0]
push eax
push ebx
lea eax, [ebp - 0x140c]
push eax
mov eax, dword [ebp - 0x1ad8]
mov eax, dword [eax*4 + 0x42da38]
push dword [ecx + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp - 0x1ac0]
mov edi, dword [ebp - 0x1acc]
test eax, eax
je 0x41b7ae
add esi, dword [ebp - 0x1ae0]
mov dword [ebp - 0x1ac0], esi
invalid
popfd
Function at 0x41fb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00416e52
and dword [ebp - 0x14], 0
cmp dword [0x46d558], 0
mov dword [ebp - 0x18], eax
jne 0x41fc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41fcc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41fcc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46d558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46d55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46d560], eax
call edi
push eax
call esi
mov dword [0x46d568], eax
test eax, eax
je 0x41fc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46d564], eax
mov eax, dword [0x46d564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41fc78
cmp dword [0x46d568], ecx
je 0x41fc78
push eax
call esi
push dword [0x46d568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41fc78
test ebx, ebx
je 0x41fc78
call edi
test eax, eax
je 0x41fc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41fc6f
test byte [ebp - 8], 1
jne 0x41fc78
or dword [ebp + 0x10], 0x200000
jmp 0x41fcab
mov eax, dword [0x46d55c]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41fcab
mov eax, dword [0x46d560]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46d558]
call esi
test eax, eax
je 0x41fcc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41fcc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113cb
leave
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
mov ecx, 0x7ffd6162
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x184a4f3a
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x402c81
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4141c4], 0
jne 0x402c8f
call fcn.00402c57
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402cbc
test cl, 7
je 0x402cbc
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec esi
inc ecx
jmp 0x402c9d
cmp esi, 8
jb 0x402d40
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4141c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec edi
jne 0x402cc6
xor edx, edx
test esi, esi
jbe 0x402d60
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4141c0]
inc edx
cmp edx, esi
jb 0x402d47
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x40505e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc18], ebx
cmp byte [esi + 0x16], bl
je 0x405078
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x40508b
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x40509e
mov dword [ebp + 0x14], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.00406e67
test eax, eax
je 0x4050d7
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4050d7
cmp word [eax], bx
je 0x4050d7
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4050eb
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405107
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x405107
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x405169
mov dword [esi + 4], edi
cmp dword [ebp + 0xc], ebx
je 0x405135
push dword [ebp + 0xc]
lea eax, [esi + 0x418]
push eax
call fcn.0040e40c
jmp 0x40513e
xor eax, eax
mov word [esi + 0x418], ax
lea eax, [esi + 0x17]
cmp dword [ebp + 8], ebx
je 0x405151
push dword [ebp + 8]
push eax
call fcn.0040a450
jmp 0x40515f
push 0x1000000
push eax
push dword [ebp + 0xc]
call fcn.0040e1e9
push dword [esi + 4]
mov ecx, esi
call fcn.00404ece
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405299
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x4052bf
cmp dword [ebp + 0xc], esi
jbe 0x4052b4
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40530f
mov ecx, edi
call fcn.00405018
test al, al
je 0x4052f5
cmp dword [ebp + 0xc], esi
jbe 0x4052f5
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00405299
jmp 0x405312
cmp dword [edi + 0xc], 1
jne 0x40530a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x40530a
xor eax, eax
jmp 0x405312
or eax, 0xffffffff
jmp 0x405312
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8

Function at 0x40572e
Capabilities:
Get file attributes

Disassembly:
call fcn.00406e67
test eax, eax
je 0x40574e
mov eax, dword [esp + 8]
test eax, eax
je 0x40574e
cmp word [eax], 0
je 0x40574e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x405758
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret 8

Function at 0x40577d
Capabilities:
Get file attributes

Disassembly:
call fcn.00406e67
test eax, eax
je 0x40579d
mov eax, dword [esp + 8]
test eax, eax
je 0x40579d
cmp word [eax], 0
je 0x40579d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x4057a7
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8

Function at 0x4057aa
Capabilities:
Set file attributes

Disassembly:
call fcn.00406e67
test eax, eax
je 0x4057ce
mov eax, dword [esp + 8]
test eax, eax
je 0x4057ce
cmp word [eax], 0
je 0x4057ce
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x4057dc
push dword [esp + 0xc]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret 0xc

Function at 0x40585a
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00406e67
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x40587f
test esi, esi
je 0x40587f
cmp word [esi], 0
je 0x40587f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40588a
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4058a4
cmp byte [ebp + 0x10], 0
je 0x4058a0
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.004057aa
xor eax, eax
jmp 0x4058bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4058b9
cmp eax, 3
je 0x4058b9
xor eax, eax
inc eax
jmp 0x4058bc
push 2
pop eax
pop esi
pop ebp
ret 0x10
Function at 0x4064bf
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
pop ebp
clc
mov dword [ebp - 4], ebx
call esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push edi
call dword [eax + 0x48]
test eax, eax
jl 0x4064f1
cmp dword [ebp - 8], ebx
jne 0x406532
call esi
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x406532
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4064de
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4064de
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x406572
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x412858
push eax
call dword [ecx]
test eax, eax
jl 0x406572
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x406569
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
setge bl
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8
Function at 0x40b850
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
xor esi, esi
inc esi
jae 0x40b8b2
mov dword [0x2419f50], esi
cmp dword [0xc19e80], edi
je 0x40b87a
push 0x6d
ljmp 0x5650
mov dword [0x419fca], eax
mov dword [0x419f6c], ebx
mov dword [0x419f68], eax
cmp eax, ebx
je 0x40b8ca
push esp
push eax
jg 0x40b8b0
pushal
and ah, byte [ecx]
cmp dword [ebp + 0x34], ebx
test al, 0x41
add byte [ebp + 0x62], dh
cmp byte [0x41ac14], bl
jne 0x40b8c1
push ebx
push ss
push 0x110
adc byte [ecx], al
add byte [eax], al
in eax, dx
xor eax, 0x40419f80
sbb byte [edi + 0x5ff4041], 0xcc
and dword [eax], eax
inc ecx
inc eax
inc dword [0x4021cc]
jmp 0x40b8d1
cmp dword [ebp + 0x78], 0xffffff8f
add dword [eax], eax
add dh, byte [ebp - 0xe]
js 0x40b8e5
mov byte [edi + 0x5b5e0441], bl
pop ebx
je 0x40b929
jmp 0x40b8ff
xor byte ds:[esi + 0x1c], 0x8b
inc esi
retf 0x8008
inc esp
xor byte [eax], 0
jge 0x40b8eb
rol byte [eax + eax], cl
inc ecx
xor esp, 0xffffff81
in al, dx
or dword [eax + eax], eax
add byte [ebx + 0x33], al
invalid
add byte [ebp - 0x4004054b], cl
dec dword [eax - 0x500085b]
lea eax, [ebp - 8]
pop eax
lea ecx, [edi - 4]
push eax
push ebx
push 0x1220026
push ebx
push ebx
push edx
imul esi, dword [esi], 0x16880c1
add al, 5
cmp bh, 0x15
dec esp
and al, byte [ecx]
pop esi
test eax, eax
jne 0x40b9a4
push dword [ebp + 8]
mov eax, 0xfffee9ea
pushal
push eax
push dword [ebp]
lea eax, [ebp - 0x101408]
push 1
push ecx
push eax
push dword [ebp - 4]
call dword [0x1412014]
out dx, eax
push ebp
cld
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
leave
push edx
add eax, 0xec0b5500
mov esp, ebp
or al, 8
add dword [eax], eax
shr byte [eax + edx*4], 0x9e
inc eax
add byte [eax], al
hlt
out dx, eax
in al, dx
xor bh, bh
invalid
Function at 0x45920a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x459231
call fcn.004597ab
mov dword [eax], esi
call fcn.00459798
push 0x16
pop esi
mov dword [eax], esi
call fcn.0046061a
mov eax, esi
jmp 0x459286
test dword [ebp + 0xc], 0xfffffff9
jne 0x459217
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45925e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004597be
pop ecx
call fcn.00459798
mov eax, dword [eax]
jmp 0x459286
test al, 0x10
jne 0x459284
test al, 1
je 0x459284
test byte [ebp + 0xc], 2
je 0x459284
call fcn.004597ab
mov dword [eax], 5
call fcn.00459798
mov dword [eax], 0xd
jmp 0x459255
xor eax, eax
pop esi
pop ebp
ret

Function at 0x46ec0d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4954c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00460661
and dword [ebp - 0x14], 0
cmp dword [0x4981ac], 0
mov dword [ebp - 0x18], eax
jne 0x46ecc0
push 0x47da88
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x46ed68
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47da7c
push ebx
call edi
test eax, eax
je 0x46ed68
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x47da6c
push ebx
mov dword [0x4981ac], eax
call edi
push eax
call esi
push 0x47da58
push ebx
mov dword [0x4981b0], eax
call edi
push eax
call esi
push 0x47da3c
push ebx
mov dword [0x4981b4], eax
call edi
push eax
call esi
mov dword [0x4981bc], eax
test eax, eax
je 0x46ecc0
push 0x47da24
push ebx
call edi
push eax
call esi
mov dword [0x4981b8], eax
mov eax, dword [0x4981b8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x46ed19
cmp dword [0x4981bc], ecx
je 0x46ed19
push eax
call esi
push dword [0x4981bc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x46ed19
test ebx, ebx
je 0x46ed19
call edi
test eax, eax
je 0x46ed10
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x46ed10
test byte [ebp - 8], 1
jne 0x46ed19
or dword [ebp + 0x10], 0x200000
jmp 0x46ed4c
mov eax, dword [0x4981b0]
cmp eax, dword [ebp - 0x18]
je 0x46ed4c
push eax
call esi
test eax, eax
je 0x46ed4c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46ed4c
mov eax, dword [0x4981b4]
cmp eax, dword [ebp - 0x18]
je 0x46ed4c
push eax
call esi
test eax, eax
je 0x46ed4c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4981ac]
call esi
test eax, eax
je 0x46ed68
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x46ed6a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00457813
leave
ret
Function at 0x40178c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x18], 0xffffffff
jne 0x4017a8
xor eax, eax
jmp 0x401860
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.004015a0
add esp, 4
push eax
push ecx
push edx
mov eax, dword [ebp + 0x10]
mov ecx, 0x200
mul ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
pop edx
pop ecx
pop eax
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
and eax, 0xff
cmp eax, 2
jne 0x401827
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x14]
and edx, 0xffff
shl edx, 9
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
jmp 0x40184e
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
and ecx, 0xffff
shl ecx, 9
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x18]
push eax
call fcn.004015c5
add esp, 4
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40246c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov dword [ebp - 0x204], ecx
push 0x200
push 0
lea eax, [ebp - 0x200]
push eax
call fcn.00415b10
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x200
lea edx, [ebp - 0x200]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x200]
push edx
call fcn.00415b70
add esp, 4
test eax, eax
jbe 0x4024da
lea eax, [ebp - 0x200]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.004260d7
mov eax, 1
jmp 0x4024dc
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10