joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d931
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 0x3c
mov edi, edx
lea eax, [ebp - 0x3c]
pop edx
push edx
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.0041869b
xor eax, eax
mov dword [ebp - 0x3c], edx
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x41d9be
push 0x10
push ebx
push edi
call fcn.0041869b
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
call fcn.00418a93
mov dword [edi], eax
test eax, eax
je 0x41d9be
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x41d9a3
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x2f
jne 0x41d9a3
dec ecx
inc eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x41d992
mov esi, dword [ebp - 4]
add esi, ecx
lea ecx, [esi + 2]
call fcn.004185cd
mov dword [edi + 4], eax
test eax, eax
jne 0x41d9c5
mov ecx, dword [edi]
call fcn.00418601
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
inc eax
push dword [ebp - 0x10]
push eax
call fcn.0041863c
push dword [ebp - 4]
mov eax, dword [ebp - 0xc]
push dword [ebp - 8]
inc eax
add eax, dword [edi + 4]
push eax
call fcn.0041863c
mov eax, dword [edi + 4]
mov byte [eax], 0x2f
mov eax, dword [edi + 4]
mov byte [esi + eax + 1], bl
mov eax, dword [ebp - 0xc]
inc eax
mov dword [edi + 8], eax
mov ax, word [ebp - 0x24]
mov word [edi + 0xc], ax
mov eax, dword [ebp - 0x30]
sub eax, 3
je 0x41da19
sub eax, 1
je 0x41da13
mov byte [edi + 0xe], bl
jmp 0x41da1d
mov byte [edi + 0xe], 2
jmp 0x41da1d
mov byte [edi + 0xe], 1
mov al, 1
jmp 0x41d9c0

Function at 0x41e184
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push edi
mov ebp, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41e1e2
test ebp, ebp
je 0x41e1cd
cmp dword [esp + 0x18], ebx
je 0x41e1cd
push ebx
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x20]
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41e1cf
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp bl, 1
je 0x41e1e2
mov ecx, edi
call fcn.0041e322
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret 4
Function at 0x41e1ec
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
mov esi, edx
test byte [ebp + 8], 2
push edi
push edi
push 3
push edi
push 1
pop eax
push 7
pop edx
cmovne eax, edx
push eax
push accept
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x41e28c
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41e283
cmp dword [ebp - 4], edi
jne 0x41e283
mov ecx, dword [ebp - 8]
mov dword [esi + 4], ecx
test ecx, ecx
jne 0x41e242
mov dword [esi], edi
mov al, 1
jmp 0x41e28e
push 4
push 0x3000
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi], eax
test eax, eax
je 0x41e283
push edi
lea ecx, [ebp + 8]
push ecx
push dword [esi + 4]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e275
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 4]
je 0x41e23e
push 0x8000
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
leave
ret 4

Function at 0x41e322
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, ecx
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
pop esi
setne al
ret

Function at 0x41e33f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 0x410]
push esi
push edi
push eax
mov esi, 0xf6
mov edi, edx
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x41e3c2
cmp eax, esi
ja 0x41e3c2
xor esi, esi
push edi
call fcn.00419bb4
push eax
push 0x406b54
push 0x406b5c
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.004194ac
add esp, 0x18
cmp eax, 0xffffffff
je 0x41e3c2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
lea edx, [ebp - 0x410]
call fcn.0041e80a
test al, al
je 0x41e3bc
mov ecx, dword [ebp + 8]
xor edx, edx
push 0
call fcn.0041e184
test al, al
jne 0x41e3ca
inc esi
cmp esi, 0x64
jb 0x41e369
xor al, al
pop edi
pop esi
leave
ret 4
mov al, 1
jmp 0x41e3c4

Function at 0x41e3ce
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 0x410]
push esi
push edi
push eax
mov esi, 0xf6
mov edi, edx
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x41e44c
cmp eax, esi
ja 0x41e44c
xor esi, esi
call fcn.00419bb4
push eax
push 0x406b54
push 0x406b70
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.004194ac
add esp, 0x14
cmp eax, 0xffffffff
je 0x41e44c
lea eax, [ebp - 0x208]
mov ecx, edi
push eax
lea edx, [ebp - 0x410]
call fcn.0041e80a
test al, al
je 0x41e446
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41e452
inc esi
cmp esi, 0x64
jb 0x41e3f8
xor al, al
pop edi
pop esi
leave
ret
mov al, 1
jmp 0x41e44e
Function at 0x41e5db
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
push edi
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov esi, eax
test esi, esi
cmove esi, edi
movzx eax, word [esi]
cmp eax, 0x5c
je 0x41e603
cmp eax, 0x2f
je 0x41e603
test ax, ax
jne 0x41e62e
mov ebp, eax
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41e622
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x41e624
test al, 0x10
je 0x41e635
test bp, bp
je 0x41e633
mov word [esi], bp
add esi, 2
jmp 0x41e5f1
mov bl, 1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret

Function at 0x41e63c
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
mov esi, ecx
lea ecx, [esp + 4]
push edi
push 0x406b80
mov edx, esi
call fcn.0041e80a
test al, al
je 0x41e6d0
lea eax, [esp + 0x210]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41e6d0
lea ecx, [esp + 0x23c]
call fcn.0041e456
test al, al
jne 0x41e6b6
mov eax, ecx
mov edx, esi
push eax
lea ecx, [esp + 0xc]
call fcn.0041e80a
test al, al
je 0x41e6b6
test byte [esp + 0x210], 0x10
lea ecx, [esp + 8]
je 0x41e6b1
call fcn.0041e63c
jmp 0x41e6b6
call fcn.0041e322
lea eax, [esp + 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41e67a
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41e6ee
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x460
push esi
mov esi, ecx
mov dword [esp + 8], edx
push edi
push 0x406b80
mov edx, esi
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x264]
call fcn.0041e80a
test al, al
je 0x41e7ec
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41e7ec
lea ecx, [esp + 0x3c]
call fcn.0041e456
test al, al
jne 0x41e7d1
test byte [esp + 0x10], 0x10
je 0x41e75f
test byte [ebp + 0xc], 2
jne 0x41e765
jmp 0x41e78c
test byte [ebp + 0xc], 4
je 0x41e78c
xor esi, esi
cmp dword [ebp + 8], esi
jbe 0x41e788
mov eax, dword [esp + 0xc]
push dword [eax + esi*4]
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x41e7f4
inc esi
cmp esi, dword [ebp + 8]
jb 0x41e76c
mov esi, dword [esp + 8]
test byte [esp + 0x10], 0x10
je 0x41e7d1
test byte [ebp + 0xc], 1
je 0x41e7d1
lea eax, [esp + 0x3c]
mov edx, esi
push eax
lea ecx, [esp + 0x264]
call fcn.0041e80a
test al, al
je 0x41e7d1
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x260]
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041e6ee
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41e73f
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
push dword [ebp + 0x14]
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x14]
mov ecx, esi
call dword [ebp + 0x10]
test al, al
je 0x41e7e5
jmp 0x41e78c
Function at 0x41ebbe
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov eax, ecx
xor ebx, ebx
mov dword [esp + 0x10], eax
push esi
push edi
mov ebp, dword [eax]
test dl, 1
je 0x41ec5f
xor edx, edx
jmp 0x41ec52
mov edi, dword [esi]
test edi, edi
je 0x41ec50
mov eax, dword [esi + 4]
test eax, 0xc0000
je 0x41ebf3
mov dword [esi], ebx
jmp 0x41ec50
and eax, 0xfff0ffff
mov edx, esi
mov dword [esi + 4], eax
and eax, 0x70000000
mov dword [esp + 0x10], eax
jmp 0x41ec29
cmp dword [ecx], edi
jne 0x41ec27
mov eax, dword [ecx + 4]
and eax, 0x70000000
cmp eax, dword [esp + 0x10]
jne 0x41ec27
test dword [ecx + 4], 0xe0000
jne 0x41ec38
mov dword [ecx], ebx
mov edi, dword [esi]
mov edx, ecx
mov ecx, ebp
call fcn.0041ea6f
mov ecx, eax
test ecx, ecx
jne 0x41ec08
jmp 0x41ec50
mov dword [esi], ebx
mov eax, dword [ecx + 4]
test eax, 0x80000
je 0x41ec48
mov dword [ecx], ebx
jmp 0x41ec50
and eax, 0xfff0ffff
mov dword [ecx + 4], eax
mov edx, esi
mov ecx, ebp
call fcn.0041ea6f
mov esi, eax
test esi, esi
jne 0x41ebdf
call fcn.0041e86a
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x41ed63
xor edx, edx
jmp 0x41ecd7
cmp dword [edi], ebx
jbe 0x41ecd5
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
mov edx, dword [esi + 0x14]
add eax, 0x10
add edx, eax
mov dword [esp + 0x14], eax
call fcn.00418586
mov esi, dword [esp + 0x10]
test al, al
je 0x41ed5c
mov ecx, dword [esi + 0x14]
mov eax, dword [edi]
add ecx, esi
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov edx, dword [edi + 8]
mov dword [ecx + 8], edx
mov eax, dword [edi + 0xc]
mov dword [ecx + 0xc], eax
test edx, edx
je 0x41eccb
push edx
lea eax, [edi + 0x10]
push eax
lea eax, [ecx + 0x10]
push eax
call fcn.0041863c
inc dword [esi + 0x1c]
mov eax, dword [esp + 0x14]
add dword [esi + 0x14], eax
mov edx, edi
mov ecx, ebp
call fcn.0041ea6f
mov edi, eax
test edi, edi
jne 0x41ec76
mov eax, dword [esi + 0x14]
lea edx, [esi + 0x30]
sub eax, 0x30
lea ecx, [esi + 0x20]
push eax
call fcn.00419b0c
test al, al
je 0x41ed5c
call fcn.00419bb4
movzx eax, al
mov byte [ebx + esi], al
inc ebx
cmp ebx, 0x14
jb 0x41ecfa
cmp dword [esp + 0x124], 0
mov edi, dword [esi + 0x14]
je 0x41ed4b
xor ecx, ecx
inc ecx
cmp edi, ecx
jbe 0x41ed2b
mov al, byte [ecx + esi - 1]
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jb 0x41ed1f
push 0x102
push dword [esp + 0x128]
lea eax, [esp + 0x24]
push eax
call fcn.0041863c
push eax
mov edx, edi
mov ecx, esi
call fcn.00419cee
mov ecx, ebp
call fcn.00418601
mov eax, dword [esp + 0x18]
mov dword [eax], esi
mov eax, edi
jmp 0x41ed65
mov ecx, esi
call fcn.00418601
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x41ed72
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
cmp edi, 0x30
jb 0x41eddb
cmp edi, 0xa00000
ja 0x41eddb
cmp dword [ebp + 0xc], 0
je 0x41edc6
push 0x102
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.0041863c
push eax
mov edx, edi
mov ecx, esi
call fcn.00419cee
lea ecx, [edi - 1]
test ecx, ecx
je 0x41edc6
mov al, byte [esi + ecx - 1]
xor byte [ecx + esi], al
sub ecx, 1
jne 0x41edba
cmp dword [esi + 0x14], edi
ja 0x41eddb
mov ecx, esi
call fcn.0041e839
test al, al
je 0x41eddb
mov eax, dword [esi + 0x14]
jmp 0x41eddd
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x41ee60
Capabilities:
Clear file content
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
mov ebp, ecx
push edi
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
xor bl, bl
push ebp
mov byte [esp + 0x50], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x41ef91
mov ecx, eax
call fcn.0041e2ff
mov ebx, edx
mov edi, eax
and eax, ebx
cmp eax, 0xffffffff
je 0x41ef81
mov eax, edi
or eax, ebx
je 0x41f053
xor eax, eax
mov dword [esp + 0x18], eax
push eax
jmp 0x41ef37
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41f053
cmp eax, 5
jne 0x41effd
mov ecx, dword [esi + 0x10]
xor edx, edx
xor ecx, dword [esp + 0x28]
mov eax, ecx
mov dword [esp + 0x28], ecx
add eax, dword [esp + 0x18]
adc edx, dword [esp + 0x14]
add eax, 5
mov dword [esp + 0x20], eax
adc edx, 0
mov dword [esp + 0x24], edx
cmp edx, ebx
ja 0x41efcf
jb 0x41ef0c
cmp eax, edi
ja 0x41efcf
cmp ecx, 0xa00000
ja 0x41efcf
push 0
xor edx, edx
push ecx
mov ecx, dword [esi]
inc edx
call fcn.0041e2bc
test al, al
je 0x41ef9d
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
push 0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
push eax
push 5
lea eax, [esp + 0x34]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41eec0
mov ecx, dword [esi]
push ebx
push edi
call fcn.0041e2d6
push edx
push eax
push ebp
push 0x406b88
push 2
push 0x1ae
push 0x406bf0
push 0x406c40
call fcn.0041a5ac
add esp, 0x28
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
mov bl, byte [esp + 0x34]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x20
ret 4
push dword [esp + 0x28]
push ebx
push edi
push ecx
mov ecx, dword [esi]
call fcn.0041e2d6
pop ecx
push edx
push eax
push ebp
push 0x406d70
push 2
push 0x1d7
push 0x406bf0
push 0x406c40
call fcn.0041a5ac
add esp, 0x2c
jmp 0x41ef81
mov ecx, dword [esi]
push edx
push eax
push ebx
push edi
call fcn.0041e2d6
push edx
push eax
push ebp
push 0x406ce8
push 2
push 0x1cd
push 0x406bf0
push 0x406c40
call fcn.0041a5ac
add esp, 0x30
jmp 0x41f02a
push eax
push ebx
push edi
push ecx
mov ecx, dword [esi]
call fcn.0041e2d6
pop ecx
push edx
push eax
push ebp
push 0x406c60
push 2
push 0x1bf
push 0x406bf0
push 0x406c40
call fcn.0041a5ac
add esp, 0x2c
push dword [esp + 0x14]
mov ecx, dword [esi]
xor edx, edx
push dword [esp + 0x1c]
call fcn.0041e2bc
test al, al
je 0x41ef81
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x41ef81
mov ecx, dword [esi]
xor edx, edx
or dword [esi + 8], 0xffffffff
mov bl, 1
or dword [esi + 0xc], 0xffffffff
push 0
push 0
call fcn.0041e2bc
jmp 0x41ef91
Function at 0x41f090
Capabilities:
Clear file content
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x10], edx
mov esi, ecx
cmp edi, 0xa00000
ja 0x41f17b
mov ecx, dword [esi]
call fcn.0041e2d6
mov ecx, edx
mov ebp, eax
and eax, ecx
mov dword [esp + 0x1c], ecx
cmp eax, 0xffffffff
je 0x41f17b
mov ecx, dword [esi]
push ebx
push ebx
push 2
pop edx
call fcn.0041e2bc
test al, al
je 0x41f17b
mov ecx, dword [esi]
call fcn.0041e2d6
mov ecx, edx
mov dword [esp + 0x18], eax
and eax, ecx
mov dword [esp + 0x14], ecx
cmp eax, 0xffffffff
je 0x41f165
push 5
push ebx
lea eax, [esp + 0x28]
push eax
call fcn.0041869b
mov eax, dword [esi + 0x10]
xor eax, edi
push ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x30]
push eax
push 5
lea eax, [esp + 0x2c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41f14c
cmp dword [esp + 0x2c], 5
jne 0x41f14c
push ebx
lea eax, [esp + 0x30]
push eax
push edi
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41f14c
cmp dword [esp + 0x2c], edi
jne 0x41f14c
mov bl, 1
jmp 0x41f165
push dword [esp + 0x14]
mov ecx, dword [esi]
xor edx, edx
push dword [esp + 0x1c]
call fcn.0041e2bc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [esp + 0x1c]
mov ecx, dword [esi]
xor edx, edx
push ebp
call fcn.0041e2bc
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x18
ret 4
Function at 0x41f187
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x14], edx
push edi
mov ecx, dword [esi]
call fcn.0041e2d6
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
jmp 0x41f1f7
cmp dword [esp + 0x10], edi
je 0x41f31c
cmp dword [esp + 0x10], 5
jne 0x41f302
mov ecx, dword [esi + 0x10]
xor ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
cmp ecx, 0xa00000
ja 0x41f2e8
test byte [esp + 0x20], 1
jne 0x41f1dc
test ecx, ecx
jne 0x41f245
push edi
xor edx, edx
push ecx
mov ecx, dword [esi]
inc edx
call fcn.0041e2bc
mov ecx, dword [esi]
test al, al
je 0x41f2d0
call fcn.0041e2d6
push edi
mov ebp, eax
mov dword [esp + 0x18], edx
lea eax, [esp + 0x14]
push eax
push 5
lea eax, [esp + 0x28]
push eax
push dword [esi]
call ebx
test eax, eax
jne 0x41f1a5
mov ecx, dword [esi]
call fcn.0041e2d6
push edx
push eax
push 0x406e18
push 2
push 0x237
push 0x406bf0
push 0x406e5c
call fcn.0041a5ac
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
call fcn.004185cd
mov edi, eax
test edi, edi
je 0x41f239
push 0
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x24]
push edi
push dword [esi]
call ebx
test eax, eax
je 0x41f29d
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x10], eax
jne 0x41f29d
push dword [esp + 0x2c]
mov edx, edi
push eax
call fcn.0041ed72
mov dword [esp + 0x10], eax
test eax, eax
je 0x41f29d
mov ecx, dword [esp + 0x18]
mov dword [esi + 8], ebp
mov dword [ecx], edi
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xc], ecx
jmp 0x41f322
mov ecx, dword [esi]
call fcn.0041e2d6
push edx
push eax
push 0x406f60
push 2
push 0x26c
push 0x406bf0
push 0x406e5c
call fcn.0041a5ac
add esp, 0x1c
mov ecx, edi
call fcn.00418601
jmp 0x41f239
call fcn.0041e2d6
push edx
push eax
push 0x406f18
push 2
push 0x25d
jmp 0x41f227
mov ecx, dword [esi]
call fcn.0041e2d6
push edx
push eax
push 0x406ed0
push 2
push 0x252
jmp 0x41f227
mov ecx, dword [esi]
call fcn.0041e2d6
push edx
push eax
push 0x406e88
push 2
push 0x248
jmp 0x41f227
mov eax, dword [esp + 0x28]
mov dword [eax], edi
mov al, 1
jmp 0x41f23b
Function at 0x41f329
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 8]
and eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x41f3df
mov ecx, dword [esi]
call fcn.0041e2d6
mov ebp, edx
mov edi, eax
and eax, ebp
cmp eax, 0xffffffff
je 0x41f3df
push dword [esi + 0xc]
mov ecx, dword [esi]
xor edx, edx
push dword [esi + 8]
call fcn.0041e2bc
test al, al
je 0x41f3df
push ebx
lea eax, [esp + 0x18]
push eax
push 5
lea eax, [esp + 0x24]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f3d4
cmp dword [esp + 0x14], 5
jne 0x41f3d4
push dword [esi + 0xc]
mov ecx, dword [esi]
xor edx, edx
push dword [esi + 8]
or byte [esp + 0x24], 1
call fcn.0041e2bc
test al, al
je 0x41f3d4
push ebx
lea eax, [esp + 0x18]
push eax
push 5
lea eax, [esp + 0x24]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41f3d4
cmp dword [esp + 0x14], 5
jne 0x41f3d4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov bl, 1
mov ecx, dword [esi]
xor edx, edx
push ebp
push edi
call fcn.0041e2bc
pop edi
mov al, bl
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f5bd
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov esi, edx
push eax
push 0x40
mov edi, ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41f611
xor edx, edx
push ebx
mov ebx, edx
test esi, esi
je 0x41f601
movzx eax, dl
xor ecx, ecx
mov al, byte [ebp + eax + 8]
xor byte [ebx + edi], al
inc ebx
lea eax, [edx + 1]
cmp dl, 3
movzx eax, al
cmovne ecx, eax
mov dl, cl
cmp ebx, esi
jb 0x41f5e2
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x41f99d
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov si, word [esp + 0x1c]
lea eax, [esp + 0xc]
push edi
push 5
pop ebp
xor ebx, ebx
mov word [esp + 0x10], bp
push ebx
push ebp
mov edi, ecx
mov word [esp + 0x1a], si
push eax
push edi
mov byte [esp + 0x24], dl
call dword [sym.imp.WS2_32.dll_send]
cmp eax, ebp
jne 0x41f9e9
test si, si
je 0x41f9e7
mov edx, dword [esp + 0x1c]
mov ecx, edi
movzx eax, si
push eax
call fcn.0041bd49
test al, al
je 0x41f9e9
mov bl, 1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
pop ecx
ret 8
Function at 0x41f9f4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
mov esi, ecx
push esi
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x41fa4b
mov eax, dword [ebp - 4]
test eax, eax
je 0x41fa4b
xor ecx, ecx
mov word [esi + eax*2], cx
movzx eax, word [esi]
test ax, ax
je 0x41fa55
mov ecx, eax
cmp cx, 0x2f
je 0x41fa36
cmp cx, 0x5c
jne 0x41fa3c
push 0x7c
pop eax
mov word [esi], ax
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x41fa2a
jmp 0x41fa55
push 6
mov edx, esi
pop ecx
call fcn.004255fb
pop esi
leave
ret

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

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
xor ebp, ebp
mov eax, dword [edi + 0x3c]
mov ebx, dword [eax + edi + 0x78]
add ebx, edi
cmp dword [ebx + 0x18], ebp
jbe 0x41fe23
mov esi, dword [ebx + 0x20]
add esi, edi
test esi, esi
je 0x41fe1a
mov edx, dword [esi]
mov ecx, dword [esp + 0x10]
add edx, edi
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.004192f9
test eax, eax
je 0x41fe2b
inc ebp
add esi, 4
cmp ebp, dword [ebx + 0x18]
jb 0x41fe01
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + edi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x41fe25

Function at 0x41fea6
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 0x41fec9
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x41fec0
cmp edi, 0x6a4abc5b
mov eax, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x41feb6
pop edi
pop esi
ret