joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4160a7
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebp
xor bl, bl
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov esi, eax
test esi, esi
jne 0x4160c0
mov esi, ebp
movzx eax, word [esi]
cmp eax, 0x5c
je 0x4160d2
cmp eax, 0x2f
je 0x4160d2
test ax, ax
jne 0x4160fe
mov edi, eax
xor eax, eax
push ebp
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4160f2
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x4160f4
test al, 0x10
je 0x416105
test di, di
je 0x416103
mov word [esi], di
add esi, 2
jmp 0x4160c0
mov bl, 1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4

Function at 0x41610e
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x458
push esi
push edi
mov edi, ecx
push edi
lea eax, [esp + 0xc]
push eax
mov eax, 0x404a30
call fcn.00416325
test al, al
je 0x4161ab
lea eax, [esp + 0x210]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4161ab
lea eax, [esp + 0x23c]
call fcn.00415f25
test al, al
jne 0x416191
push edi
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x244]
call fcn.00416325
test al, al
je 0x416191
test byte [esp + 0x210], 0x10
je 0x416187
lea ecx, [esp + 8]
call fcn.0041610e
jmp 0x416191
lea eax, [esp + 8]
push eax
call fcn.00415df6
lea eax, [esp + 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41614c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4161c9
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
push ebx
push esi
push edi
push ecx
lea eax, [esp + 0x26c]
push eax
mov eax, 0x404a30
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
call fcn.00416325
test al, al
je 0x41631c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x41631c
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp dword [ebp + 0x18], esi
je 0x416240
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x416312
lea eax, [esp + 0x44]
call fcn.00415f25
test al, al
jne 0x4162fb
mov eax, dword [esp + 0x18]
and eax, 0x10
je 0x41625f
test bl, 2
jne 0x416268
cmp eax, esi
jne 0x4162a8
test bl, 4
je 0x4162a8
cmp dword [ebp + 8], esi
jbe 0x4162a8
mov eax, dword [esp + 0x14]
push dword [eax + esi*4]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x41628b
inc esi
cmp esi, dword [ebp + 8]
jb 0x41626d
jmp 0x4162a8
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
call dword [ebp + 0x10]
test al, al
je 0x416312
cmp dword [ebp + 0x20], 0
je 0x4162a8
push dword [ebp + 0x20]
call edi
test byte [esp + 0x18], 0x10
je 0x4162fb
test bl, 1
je 0x4162fb
push dword [esp + 0x10]
lea eax, [esp + 0x26c]
push eax
lea eax, [esp + 0x4c]
call fcn.00416325
test al, al
je 0x4162fb
cmp dword [ebp + 0x1c], 0
je 0x4162d8
push dword [ebp + 0x1c]
call edi
push dword [ebp + 0x20]
mov edx, dword [esp + 0x18]
push dword [ebp + 0x1c]
lea ecx, [esp + 0x270]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.004161c9
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416224
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x41668f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
test byte [ebp + 0xc], 1
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push ebx
push esi
push edi
mov dword [ebp - 4], edx
je 0x416738
xor eax, eax
call fcn.0041655c
mov esi, eax
test esi, esi
je 0x416738
mov ebx, 0xfff0ffff
mov edi, 0x70000000
cmp dword [esi], 0
jbe 0x416728
mov eax, dword [esi + 4]
test eax, 0xc0000
je 0x4166d8
and dword [esi], 0
jmp 0x416728
and eax, ebx
mov dword [esi + 4], eax
and eax, edi
mov dword [ebp + 0xc], eax
mov eax, esi
jmp 0x416702
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x416702
mov ecx, dword [eax + 4]
and ecx, edi
cmp ecx, dword [ebp + 0xc]
jne 0x416702
test dword [eax + 4], 0xe0000
jne 0x416710
and dword [eax], 0
mov edx, dword [ebp - 4]
call fcn.0041655c
test eax, eax
jne 0x4166e6
jmp 0x416728
and dword [esi], 0
mov ecx, dword [eax + 4]
test ecx, 0x80000
je 0x416723
and dword [eax], 0
jmp 0x416728
and ecx, ebx
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0041655c
mov esi, eax
test esi, esi
jne 0x4166c4
call fcn.00416381
mov esi, eax
mov dword [ebp + 0xc], esi
test esi, esi
je 0x416826
xor eax, eax
jmp 0x4167a9
cmp dword [edi], 0
jbe 0x4167a7
mov ebx, dword [edi + 8]
mov ecx, dword [esi + 0x14]
add ebx, 0x10
add ecx, ebx
lea esi, [ebp + 0xc]
call fcn.00410a1b
mov esi, dword [ebp + 0xc]
test al, al
je 0x416820
mov eax, dword [esi + 0x14]
mov ecx, dword [edi]
add eax, esi
mov dword [eax], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4167a1
push ecx
lea ecx, [edi + 0x10]
push ecx
add eax, 0x10
push eax
call fcn.00410acc
inc dword [esi + 0x1c]
add dword [esi + 0x14], ebx
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.0041655c
mov edi, eax
test edi, edi
jne 0x41674e
mov eax, dword [esi + 0x14]
sub eax, 0x30
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [esi + 0x20]
push eax
call fcn.00411d35
test al, al
je 0x416820
push edi
push 0x14
push esi
call fcn.0041206d
cmp dword [ebp + 0x10], 0
mov edi, dword [esi + 0x14]
je 0x41680f
xor eax, eax
inc eax
cmp edi, eax
jbe 0x4167f4
mov cl, byte [eax + esi - 1]
xor byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x4167e8
push 0x102
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push eax
call fcn.00410acc
push edi
push esi
call fcn.00411f0c
push dword [ebp - 4]
call fcn.00410a90
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, edi
jmp 0x416828
push esi
call fcn.00410a90
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41682f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, eax
lea eax, [edi - 0x30]
cmp eax, 0x9fffd0
ja 0x41688e
cmp dword [ebp + 8], 0
je 0x41687b
push 0x102
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00410acc
push edi
push esi
call fcn.00411f0c
test edi, edi
je 0x41687b
lea eax, [edi - 1]
test eax, eax
je 0x41687b
mov cl, byte [eax + esi - 1]
xor byte [eax + esi], cl
dec eax
jne 0x416871
cmp dword [esi + 0x14], edi
ja 0x41688e
call fcn.00416352
test al, al
je 0x41688e
mov eax, dword [esi + 0x14]
jmp 0x416890
xor eax, eax
pop esi
leave
ret 4

Function at 0x416909
Capabilities:
Clear file content
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x416a30
push eax
call fcn.00415dcf
mov ecx, eax
and ecx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
cmp ecx, 0xffffffff
je 0x416975
or eax, edx
je 0x416a1a
push edi
lea eax, [ebp + 8]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push dword [esi]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x416987
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
jmp 0x416a30
xor edi, edi
cmp dword [ebp + 8], edi
je 0x416a1a
cmp dword [ebp + 8], 5
jne 0x4169f4
mov eax, dword [ebp - 0xc]
xor eax, dword [esi + 0x10]
xor ecx, ecx
mov ebx, eax
add ebx, dword [ebp - 0x18]
mov edi, ecx
adc edi, dword [ebp - 0x14]
add ebx, 5
adc edi, ecx
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0x1c]
ja 0x4169f2
jb 0x4169bc
cmp ebx, dword [ebp - 0x20]
ja 0x4169f2
cmp eax, 0xa00000
ja 0x4169f2
push 1
push ecx
push eax
push dword [esi]
call fcn.00415d7f
test al, al
je 0x416975
push 0
lea eax, [ebp + 8]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push dword [esi]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x416985
jmp 0x416975
xor edi, edi
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi]
call fcn.00415d7f
test al, al
je 0x416975
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x416975
or dword [esi + 8], 0xffffffff
or dword [esi + 0xc], 0xffffffff
push edi
push edi
push edi
push dword [esi]
mov byte [ebp - 1], 1
call fcn.00415d7f
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 4
Function at 0x416a57
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 0x416b31
push dword [esi]
call fcn.00415d9f
mov dword [ebp - 0x20], eax
and eax, edx
mov dword [ebp - 0x1c], edx
cmp eax, 0xffffffff
je 0x416b31
push 2
push ebx
push ebx
push dword [esi]
call fcn.00415d7f
test al, al
je 0x416b31
push dword [esi]
call fcn.00415d9f
mov dword [ebp - 0x18], eax
and eax, edx
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x416b1b
push 5
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.00410b43
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 0x416b05
cmp dword [ebp - 8], 5
jne 0x416b05
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 0x416b05
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
jne 0x416b05
mov byte [ebp - 1], 1
jmp 0x416b1b
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi]
call fcn.00415d7f
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.00415d7f
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8

Function at 0x416b3a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push dword [esi]
call fcn.00415d9f
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
jmp 0x416b96
cmp dword [ebp - 4], ebx
je 0x416bb1
cmp dword [ebp - 4], 5
jne 0x416c0e
mov eax, dword [ebp - 0xc]
xor eax, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
cmp eax, 0xa00000
ja 0x416c0e
test byte [ebp - 8], 1
jne 0x416b80
cmp eax, ebx
jne 0x416bba
push 1
push ebx
push eax
push dword [esi]
call fcn.00415d7f
test al, al
je 0x416c0e
push dword [esi]
call fcn.00415d9f
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 0x416b53
jmp 0x416c0e
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov al, 1
jmp 0x416c10
call fcn.00410a60
mov ebx, eax
test ebx, ebx
je 0x416c0e
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push ebx
push dword [esi]
call edi
test eax, eax
je 0x416c08
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 4], edi
jne 0x416c08
push dword [ebp + 0x10]
mov eax, ebx
call fcn.0041682f
mov dword [ebp - 4], eax
test eax, eax
je 0x416c08
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 0x416bb6
push ebx
call fcn.00410a90
xor al, al
pop edi
pop ebx
leave
ret 0xc
Function at 0x416c16
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 0x416cd5
push dword [esi]
call fcn.00415d9f
mov dword [esp + 0x18], eax
and eax, edx
mov dword [esp + 0x1c], edx
cmp eax, 0xffffffff
je 0x416cd5
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
call fcn.00415d7f
test al, al
je 0x416cd5
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 0x416cc5
cmp dword [esp + 0xc], 5
jne 0x416cc5
or byte [esp + 0x14], 1
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
call fcn.00415d7f
test al, al
je 0x416cc5
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 0x416cc5
cmp dword [esp + 0xc], 5
jne 0x416cc5
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.00415d7f
mov al, byte [esp + 0xb]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416eb5
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 0x416eff
xor eax, eax
xor cl, cl
cmp dword [ebp + 8], eax
jbe 0x416ef2
movzx edx, cl
mov dl, byte [ebp + edx + 0xc]
xor byte [eax + edi], dl
inc cl
cmp cl, 4
jne 0x416eec
xor cl, cl
inc eax
cmp eax, dword [ebp + 8]
jb 0x416ed9
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 0x4176a5
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x230
push esi
push edi
push 0x26
lea esi, [esp + 0x24]
pop eax
call fcn.0040e24a
mov eax, esi
mov dword [esp + 8], eax
xor edi, edi
lea eax, [esp + 0x30]
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 0x41773f
push 0x27
lea esi, [esp + 0x1c]
pop eax
call fcn.0040e24a
push edi
push edi
push edi
lea eax, [esp + 0x18]
push eax
mov esi, 0x41761c
push esi
push 4
push 1
lea edx, [esp + 0x24]
lea ecx, [esp + 0x4c]
call fcn.004161c9
lea eax, [esp + 0x30]
push eax
push eax
lea eax, [esp + 0x20]
call fcn.00416325
test al, al
je 0x41773f
push edi
push edi
push edi
lea eax, [esp + 0x18]
push eax
push esi
push 4
push 1
lea edx, [esp + 0x24]
lea ecx, [esp + 0x4c]
call fcn.004161c9
test bl, 2
je 0x417756
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 8
Function at 0x417805
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, 0x1000
call fcn.00410a60
xor esi, esi
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x41783a
push esi
call fcn.00410a90
xor al, al
jmp 0x417916
mov ebx, dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push 0x4177bc
push dword [ebp + 8]
call ebx
push 0x28
pop edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
push edx
mov dword [eax], esi
push esi
lea eax, [esp + 0x20]
push eax
mov dword [edi], esi
mov byte [esp + 0x1b], 1
call fcn.00410b43
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], eax
push esi
push 8
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
mov dword [esp + 0x40], 0x1000
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x4178aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4178e0
lea eax, [ebp + 0xc]
push eax
call fcn.004141fd
jmp 0x417875
cmp dword [esp + 0x30], esi
je 0x4178e5
mov ecx, dword [edi]
add ecx, dword [esp + 0x30]
mov esi, dword [ebp + 0x10]
call fcn.00410a1b
test al, al
je 0x4178e0
push dword [esp + 0x30]
mov eax, esi
mov eax, dword [eax]
push dword [esp + 0x14]
add eax, dword [edi]
push eax
call fcn.00410acc
mov eax, dword [esp + 0x30]
add dword [edi], eax
xor esi, esi
jmp 0x417875
mov byte [esp + 0xf], 0
mov eax, dword [esp + 0x14]
inc eax
neg eax
sbb eax, eax
and eax, dword [esp + 0x14]
push eax
push dword [ebp + 8]
call ebx
push dword [esp + 0x10]
call fcn.00410a90
cmp byte [esp + 0xf], 0
jne 0x417912
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.00410a90
mov al, byte [esp + 0xf]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41833a
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 0x41837f
mov ebx, dword [esi + 0x20]
add ebx, edi
test ebx, ebx
je 0x418371
mov ecx, dword [ebx]
push dword [ebp + 8]
or eax, 0xffffffff
add ecx, edi
or edx, eax
call fcn.004115f3
test eax, eax
je 0x418387
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x18]
jb 0x418358
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 0x418381

Function at 0x418400
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 0x418423
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x41841a
cmp edi, 0x6a4abc5b
mov eax, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x418410
pop edi
pop esi
ret
Function at 0x41856d
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 0x418608
cmp byte [0x42382c], 1
jbe 0x41861b
xor ebx, ebx
xor edi, edi
mov ax, word [edi + 0x401a40]
lea esi, [ebp - 0x498]
call fcn.0040e24a
lea eax, [ebp - 0x208]
push eax
xor eax, eax
push eax
push eax
push dword [edi + 0x401a48]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4185ec
lea eax, [ebp - 0x208]
push eax
push eax
mov eax, esi
call fcn.00416325
test al, al
je 0x4185ec
push dword [0x42361c]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4185f7
add edi, 0xc
inc ebx
cmp edi, 0x54
jb 0x418594
jmp 0x41861b
imul ebx, ebx, 0xc
mov eax, dword [ebx + 0x401a44]
or dword [0x4235c0], eax
jmp 0x41861b
test byte [0x4235c0], 1
je 0x41861b
or dword [0x4235c0], 0x1e0
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 4

Function at 0x418624
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
push 0x422454
call esi
xor ebx, ebx
xor eax, eax
push 0x422544
mov dword [0x422448], ebx
mov word [0x422450], ax
mov word [0x42244c], ax
mov dword [0x422444], ebx
mov dword [0x422564], ebx
mov dword [0x42255c], ebx
mov dword [0x422560], ebx
call esi
push ebx
lea edi, [ebp - 0x210]
call fcn.00418ea3
or dword [ebp - 8], 0xffffffff
push ebx
push ebx
push 3
push ebx
push 1
push accept
mov eax, edi
push eax
mov dword [ebp - 4], 0x1fe
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4186cc
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 0x4186c5
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 0x4186d8
test al, 1
je 0x4186da
xor eax, eax
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x210], cx
lea eax, [ebp - 0x210]
call fcn.004172da
lea eax, [ebp - 0x210]
call fcn.00409d4a
push 0x422424
mov dword [0x4223bc], ebx
mov dword [0x42243c], ebx
call esi
call fcn.0041ced1
push 0x403190
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x41872c
mov edi, eax
call fcn.004102ef
jmp 0x41872e
xor al, al
cmp al, bl
je 0x418739
or dword [0x422484], 1
call fcn.004100b8
pop edi
pop esi
mov al, 1
pop ebx
leave
ret
Function at 0x418adc
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a0
push esi
lea eax, [ebp - 0x5a0]
call fcn.00418e24
lea eax, [ebp - 0x250]
push eax
call fcn.00418e51
push 2
lea eax, [ebp - 0x3f9]
push eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x72]
push 0x423838
lea ecx, [ebp - 0x68]
call fcn.004150ed
lea eax, [ebp - 0x68]
push eax
push 1
push 0x4235f8
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x418b46
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x418b46
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, esi
pop esi
leave
ret 4

Function at 0x418e24
Capabilities:
Encode data using xor

Disassembly:
push esi
mov edx, 0x34c
push edx
push 0x4016a8
push eax
call fcn.00410acc
mov ecx, dword [0x4235d4]
add ecx, dword [0x423a80]
mov esi, edx
sub ecx, eax
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x418e46
pop esi
ret
Function at 0x419674
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0
xor bl, bl
call fcn.00418745
test al, al
je 0x419760
push 0x8007
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xc], 1
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x41973b
xor edx, edx
cmp dword [ebp - 8], edx
jle 0x419700
mov ecx, dword [eax + edx*4]
test ecx, ecx
je 0x4196fa
cmp word [ecx], 0x2d
jne 0x4196fa
movzx ecx, word [ecx + 2]
cmp ecx, 0x66
je 0x4196f6
cmp ecx, 0x69
je 0x4196f2
cmp ecx, 0x6e
je 0x4196ec
cmp ecx, 0x76
jne 0x4196fa
mov byte [ebp - 1], 1
jmp 0x4196fa
mov byte [ebp - 0xc], 0
jmp 0x4196fa
mov bl, 1
jmp 0x4196fa
mov byte [ebp - 0x10], 1
inc edx
cmp edx, dword [ebp - 8]
jl 0x4196c1
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test bl, bl
je 0x419712
call fcn.0041917f
jmp 0x419746
cmp byte [ebp - 1], 0
je 0x41973b
call fcn.0041ced1
call fcn.0041bab5
test byte [0x4235c0], 4
mov bl, al
je 0x419748
push 0
mov eax, 0x423ea0
call fcn.0041cd4a
jmp 0x419748
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.0041936d
mov bl, al
test bl, bl
je 0x419760
test byte [0x4235c0], 2
je 0x419760
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
pop ebx
leave
ret
xor eax, eax
test bl, bl
sete al
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]