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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push 0x3c
pop edx
push edx
xor edi, edi
push edi
lea eax, [ebp - 0x3c]
push eax
call fcn.0042c138
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push eax
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x3c], edx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x4329ef
xor al, al
jmp 0x432ad9
push 0x14
push edi
push esi
call fcn.0042c138
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.0042c4e3
mov dword [esi + 4], eax
cmp eax, edi
je 0x4329e8
inc dword [esi]
push ebx
mov ebx, dword [esi]
mov ecx, eax
mov edi, eax
jmp 0x432a3d
cmp al, 0x2e
jne 0x432a3c
mov eax, edi
sub eax, ecx
cmp eax, 3
jne 0x432a36
push ecx
push 4
pop edx
mov eax, edx
mov ecx, 0x407e80
call fcn.0042cc3c
test eax, eax
je 0x432a39
inc ebx
mov dword [esi], ebx
lea ecx, [edi + 1]
inc edi
mov al, byte [edi]
test al, al
jne 0x432a15
pop ebx
jmp 0x432a54
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x2f
jne 0x432a5a
dec dword [ebp - 0xc]
inc dword [ebp - 0x10]
cmp dword [ebp - 0xc], 0
ja 0x432a46
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
lea edi, [eax + ecx + 1]
lea eax, [edi + 1]
call fcn.0042c055
mov dword [esi + 8], eax
test eax, eax
jne 0x432a80
push dword [esi + 4]
call fcn.0042c085
jmp 0x4329e8
push dword [ebp - 0xc]
inc eax
push dword [ebp - 0x10]
push eax
call fcn.0042c0c1
push dword [ebp - 4]
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ecx + eax + 1]
push eax
call fcn.0042c0c1
mov eax, dword [esi + 8]
mov byte [eax], 0x2f
mov byte [eax + edi], 0
mov eax, dword [ebp - 0xc]
inc eax
mov dword [esi + 0xc], eax
mov ax, word [ebp - 0x24]
mov word [esi + 0x10], ax
mov eax, dword [ebp - 0x30]
sub eax, 3
je 0x432ad3
dec eax
je 0x432acd
mov byte [esi + 0x12], 0
jmp 0x432ad7
mov byte [esi + 0x12], 2
jmp 0x432ad7
mov byte [esi + 0x12], 1
mov al, 1
pop edi
leave
ret 4

Function at 0x4331c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x433221
cmp dword [ebp + 0xc], ebx
je 0x43320b
cmp dword [ebp + 0x10], ebx
je 0x43320b
push ebx
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43320d
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp bl, 1
je 0x433221
push dword [ebp + 8]
call fcn.00433406
pop esi
mov al, bl
pop ebx
pop ebp
ret 0xc
Function at 0x433229
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0
push 0
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
mov dword [ebp - 4], 0x1fe
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, ebx
je 0x433277
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
cmovne ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x43327f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
and al, 2
movzx eax, al
xor edi, edi
push edi
push edi
neg eax
push 3
sbb eax, eax
push edi
and eax, 6
or eax, 1
push eax
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x433320
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x433317
cmp dword [ebp - 4], edi
jne 0x433317
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
cmp eax, edi
jne 0x4332d6
mov dword [esi], edi
mov al, 1
jmp 0x433322
push 4
push 0x3000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi], eax
cmp eax, edi
je 0x433317
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 0x433309
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 4]
je 0x4332d2
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
leave
ret 4

Function at 0x433406
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
ret 4

Function at 0x433427
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0xf5
ja 0x433473
cmp dword [ebp + 8], 0
mov eax, 0x407ee8
je 0x433458
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push 0
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x433473
mov al, 1
jmp 0x433475
xor al, al
leave
ret 8
Function at 0x433479
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
lea eax, [ebp - 0x208]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0xf5
ja 0x4334f6
xor esi, esi
push dword [ebp + 8]
call fcn.0042d75d
push eax
push 0x407ee8
push 0x407ef0
mov edx, 0x104
lea edi, [ebp - 0x410]
call fcn.0042cebe
add esp, 0x10
cmp eax, 0xffffffff
je 0x4334f6
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0xc]
mov eax, edi
call fcn.00433982
test al, al
je 0x4334f0
push 0
push 0
push dword [ebp + 0xc]
call fcn.004331c4
test al, al
jne 0x4334fe
inc esi
cmp esi, 0x64
jb 0x4334a0
xor al, al
pop edi
pop esi
leave
ret 8
mov al, 1
jmp 0x4334f8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
lea eax, [ebp - 0x208]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0xf5
ja 0x43357b
xor esi, esi
call fcn.0042d75d
push eax
push 0x407ee8
push 0x407f04
mov edx, 0x104
lea edi, [ebp - 0x410]
call fcn.0042cebe
add esp, 0xc
cmp eax, 0xffffffff
je 0x43357b
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
mov eax, edi
call fcn.00433982
test al, al
je 0x433575
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x433583
inc esi
cmp esi, 0x64
jb 0x433529
xor al, al
pop edi
pop esi
leave
ret 4
mov al, 1
jmp 0x43357d

Function at 0x433704
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 0x43371d
mov esi, ebp
movzx eax, word [esi]
cmp eax, 0x5c
je 0x43372f
cmp eax, 0x2f
je 0x43372f
test ax, ax
jne 0x43375b
mov edi, eax
xor eax, eax
push ebp
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43374f
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x433751
test al, 0x10
je 0x433762
test di, di
je 0x433760
mov word [esi], di
add esi, 2
jmp 0x43371d
mov bl, 1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4
Function at 0x43376b
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, 0x407f14
call fcn.00433982
test al, al
je 0x433808
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 0x433808
lea eax, [esp + 0x23c]
call fcn.00433587
test al, al
jne 0x4337ee
push edi
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x244]
call fcn.00433982
test al, al
je 0x4337ee
test byte [esp + 0x210], 0x10
je 0x4337e4
lea ecx, [esp + 8]
call fcn.0043376b
jmp 0x4337ee
lea eax, [esp + 8]
push eax
call fcn.00433406
lea eax, [esp + 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4337a9
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 0x433826
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, 0x407f14
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
call fcn.00433982
test al, al
je 0x433979
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 0x433979
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp dword [ebp + 0x18], esi
je 0x43389d
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x43396f
lea eax, [esp + 0x44]
call fcn.00433587
test al, al
jne 0x433958
mov eax, dword [esp + 0x18]
and eax, 0x10
je 0x4338bc
test bl, 2
jne 0x4338c5
cmp eax, esi
jne 0x433905
test bl, 4
je 0x433905
cmp dword [ebp + 8], esi
jbe 0x433905
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 0x4338e8
inc esi
cmp esi, dword [ebp + 8]
jb 0x4338ca
jmp 0x433905
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
call dword [ebp + 0x10]
test al, al
je 0x43396f
cmp dword [ebp + 0x20], 0
je 0x433905
push dword [ebp + 0x20]
call edi
test byte [esp + 0x18], 0x10
je 0x433958
test bl, 1
je 0x433958
push dword [esp + 0x10]
lea eax, [esp + 0x26c]
push eax
lea eax, [esp + 0x4c]
call fcn.00433982
test al, al
je 0x433958
cmp dword [ebp + 0x1c], 0
je 0x433935
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.00433826
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x433881
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 0x433d54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
test byte [ebp + 0xc], 1
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push ebx
push esi
push edi
mov dword [ebp - 8], edx
je 0x433dfa
xor eax, eax
call fcn.00433c25
mov esi, eax
test esi, esi
je 0x433dfa
mov ebx, 0xfff0ffff
mov edi, 0x70000000
cmp dword [esi], 0
jbe 0x433dea
mov eax, dword [esi + 4]
test eax, 0xc0000
je 0x433d9a
and dword [esi], 0
jmp 0x433dea
and eax, ebx
mov dword [esi + 4], eax
and eax, edi
mov dword [ebp - 0xc], eax
mov eax, esi
jmp 0x433dc4
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x433dc4
mov ecx, dword [eax + 4]
and ecx, edi
cmp ecx, dword [ebp - 0xc]
jne 0x433dc4
test dword [eax + 4], 0xe0000
jne 0x433dd2
and dword [eax], 0
mov edx, dword [ebp - 8]
call fcn.00433c25
test eax, eax
jne 0x433da8
jmp 0x433dea
and dword [esi], 0
mov ecx, dword [eax + 4]
test ecx, 0x80000
je 0x433de5
and dword [eax], 0
jmp 0x433dea
and ecx, ebx
mov dword [eax + 4], ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00433c25
mov esi, eax
test esi, esi
jne 0x433d86
call fcn.004339de
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x433f1b
xor eax, eax
jmp 0x433e6b
cmp dword [edi], 0
jbe 0x433e69
mov ebx, dword [edi + 8]
mov eax, dword [esi + 0x14]
add ebx, 0x10
add eax, ebx
lea esi, [ebp - 0xc]
call fcn.0042c000
test al, al
je 0x433f12
mov esi, dword [ebp - 0xc]
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 0x433e63
push ecx
lea ecx, [edi + 0x10]
push ecx
add eax, 0x10
push eax
call fcn.0042c0c1
inc dword [esi + 0x1c]
add dword [esi + 0x14], ebx
mov eax, edi
mov edx, dword [ebp - 8]
call fcn.00433c25
mov edi, eax
test edi, edi
jne 0x433e10
test esi, esi
je 0x433e9e
mov eax, dword [esi + 0x14]
test al, 0xf
je 0x433e9e
lea edi, [eax + 0xf]
and edi, 0xfffffff0
mov eax, edi
lea esi, [ebp - 0xc]
call fcn.0042c000
test al, al
je 0x433f12
mov esi, dword [ebp - 0xc]
mov dword [esi + 0x14], edi
mov eax, dword [esi + 0x14]
sub eax, 0x30
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [esi + 0x20]
push eax
call fcn.0042d6c9
test al, al
je 0x433f15
push 0
push 0x14
push esi
call fcn.0042dad7
cmp dword [ebp + 0x10], 0
mov edi, dword [esi + 0x14]
je 0x433f01
xor eax, eax
inc eax
cmp edi, eax
jbe 0x433edc
mov cl, byte [eax + esi - 1]
xor byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x433ed0
cmp edi, 0x64000
jb 0x433eea
test byte [ebp + 0xc], 2
je 0x433f01
push 0x10
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.0042c0c1
push edi
push eax
mov eax, esi
call fcn.0042e723
push dword [ebp - 8]
call fcn.0042c085
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, edi
jmp 0x433f1d
mov esi, dword [ebp - 0xc]
push esi
call fcn.0042c085
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x433f24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
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 0x433fcd
xor eax, eax
call fcn.00433c25
mov esi, eax
test esi, esi
je 0x433fcd
mov ebx, 0xfff0ffff
mov edi, 0x70000000
cmp dword [esi], 0
jbe 0x433fbd
mov eax, dword [esi + 4]
test eax, 0xc0000
je 0x433f6d
and dword [esi], 0
jmp 0x433fbd
and eax, ebx
mov dword [esi + 4], eax
and eax, edi
mov dword [ebp - 8], eax
mov eax, esi
jmp 0x433f97
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x433f97
mov ecx, dword [eax + 4]
and ecx, edi
cmp ecx, dword [ebp - 8]
jne 0x433f97
test dword [eax + 4], 0xe0000
jne 0x433fa5
and dword [eax], 0
mov edx, dword [ebp - 4]
call fcn.00433c25
test eax, eax
jne 0x433f7b
jmp 0x433fbd
and dword [esi], 0
mov ecx, dword [eax + 4]
test ecx, 0x80000
je 0x433fb8
and dword [eax], 0
jmp 0x433fbd
and ecx, ebx
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00433c25
mov esi, eax
test esi, esi
jne 0x433f59
call fcn.004339de
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x4340cb
xor eax, eax
jmp 0x43403e
cmp dword [edi], 0
jbe 0x43403c
mov ebx, dword [edi + 8]
mov eax, dword [esi + 0x14]
add ebx, 0x10
add eax, ebx
lea esi, [ebp - 8]
call fcn.0042c000
mov esi, dword [ebp - 8]
test al, al
je 0x4340c5
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 0x434036
push ecx
lea ecx, [edi + 0x10]
push ecx
add eax, 0x10
push eax
call fcn.0042c0c1
inc dword [esi + 0x1c]
add dword [esi + 0x14], ebx
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00433c25
mov edi, eax
test edi, edi
jne 0x433fe3
mov eax, dword [esi + 0x14]
sub eax, 0x30
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [esi + 0x20]
push eax
call fcn.0042d6c9
test al, al
je 0x4340c5
push edi
push 0x14
push esi
call fcn.0042dad7
cmp dword [ebp + 0x10], 0
mov edi, dword [esi + 0x14]
je 0x4340b4
xor eax, eax
inc eax
cmp edi, eax
jbe 0x434089
mov cl, byte [eax + esi - 1]
xor byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x43407d
cmp edi, 0x64000
jb 0x434097
test byte [ebp + 0xc], 2
je 0x4340b4
push 0x103
push dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push eax
call fcn.0042c0c1
push edi
push esi
mov edx, eax
call fcn.0042d92d
push dword [ebp - 4]
call fcn.0042c085
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, edi
jmp 0x4340cd
push esi
call fcn.0042c085
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4340d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, eax
lea eax, [edi - 0x30]
cmp eax, 0x31fffd0
ja 0x43414f
cmp dword [ebp + 8], 0
je 0x434119
push 0x10
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.0042c0c1
push edi
push eax
mov eax, esi
call fcn.0042e7a8
test edi, edi
je 0x434119
lea eax, [edi - 1]
test eax, eax
je 0x434119
mov cl, byte [eax + esi - 1]
xor byte [eax + esi], cl
dec eax
jne 0x43410f
cmp dword [esi + 0x14], edi
ja 0x43414f
call fcn.004339af
test al, al
je 0x43414f
mov ecx, dword [esi + 0x1c]
lea eax, [esi + 0x30]
test ecx, ecx
je 0x43414a
cmp dword [esi + 0x14], 0x40
jbe 0x43414a
test ecx, ecx
je 0x434145
dec ecx
mov edx, dword [eax + 8]
lea eax, [eax + edx + 0x10]
jne 0x43413b
sub eax, esi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
jmp 0x434151
xor eax, eax
pop esi
leave
ret 4

Function at 0x434156
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, 0x31fffd0
ja 0x4341b7
cmp dword [ebp + 8], 0
je 0x4341a4
push 0x103
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0042c0c1
push edi
push esi
mov edx, eax
call fcn.0042d92d
test edi, edi
je 0x4341a4
lea eax, [edi - 1]
test eax, eax
je 0x4341a4
mov cl, byte [eax + esi - 1]
xor byte [eax + esi], cl
dec eax
jne 0x43419a
cmp dword [esi + 0x14], edi
ja 0x4341b7
call fcn.004339af
test al, al
je 0x4341b7
mov eax, dword [esi + 0x14]
jmp 0x4341b9
xor eax, eax
pop esi
leave
ret 4
Function at 0x434232
Capabilities:
Clear file content
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
and ecx, 1
push edi
mov eax, closesocket
mov byte [ebp - 1], 0
mov dword [ebp - 8], ecx
je 0x434254
mov eax, 0xc0000000
push 4
jmp 0x434256
push 3
pop ecx
xor edi, edi
push edi
push 0x80
push ecx
push edi
push 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x434376
push eax
call fcn.0043339e
mov ecx, eax
and ecx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
cmp ecx, 0xffffffff
je 0x4342b2
or eax, edx
je 0x434360
push edi
lea eax, [ebp + 8]
push eax
push 5
lea eax, [ebp - 0x10]
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 0x4342c4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
jmp 0x434376
xor edi, edi
cmp dword [ebp + 8], edi
je 0x434360
cmp dword [ebp + 8], 5
jne 0x434331
mov eax, dword [ebp - 0x10]
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 - 0x10], eax
cmp edi, dword [ebp - 0x1c]
ja 0x43432f
jb 0x4342f9
cmp ebx, dword [ebp - 0x20]
ja 0x43432f
cmp eax, 0x3200000
ja 0x43432f
push 1
push ecx
push eax
push dword [esi]
call fcn.0043334e
test al, al
je 0x4342b2
push 0
lea eax, [ebp + 8]
push eax
push 5
lea eax, [ebp - 0x10]
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 0x4342c2
jmp 0x4342b2
xor edi, edi
cmp dword [ebp - 8], edi
je 0x4342b2
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi]
call fcn.0043334e
test al, al
je 0x4342b2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4342b2
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.0043334e
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 4
Function at 0x43439d
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], 0x3200000
push edi
mov byte [ebp - 1], bl
ja 0x434477
push dword [esi]
call fcn.0043336e
mov dword [ebp - 0x20], eax
and eax, edx
mov dword [ebp - 0x1c], edx
cmp eax, 0xffffffff
je 0x434477
push 2
push ebx
push ebx
push dword [esi]
call fcn.0043334e
test al, al
je 0x434477
push dword [esi]
call fcn.0043336e
mov dword [ebp - 0x18], eax
and eax, edx
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x434461
push 5
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0042c138
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 0x43444b
cmp dword [ebp - 8], 5
jne 0x43444b
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 0x43444b
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
jne 0x43444b
mov byte [ebp - 1], 1
jmp 0x434461
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi]
call fcn.0043334e
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.0043334e
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8

Function at 0x434480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push dword [esi]
call fcn.0043336e
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
jmp 0x4344dc
cmp dword [ebp - 4], ebx
je 0x4344f7
cmp dword [ebp - 4], 5
jne 0x434554
mov eax, dword [ebp - 0xc]
xor eax, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
cmp eax, 0x3200000
ja 0x434554
test byte [ebp - 8], 1
jne 0x4344c6
cmp eax, ebx
jne 0x434500
push 1
push ebx
push eax
push dword [esi]
call fcn.0043334e
test al, al
je 0x434554
push dword [esi]
call fcn.0043336e
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 0x434499
jmp 0x434554
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov al, 1
jmp 0x434556
call fcn.0042c055
mov ebx, eax
test ebx, ebx
je 0x434554
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push ebx
push dword [esi]
call edi
test eax, eax
je 0x43454e
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 4], edi
jne 0x43454e
push dword [ebp + 0x10]
mov eax, ebx
call fcn.004340d4
mov dword [ebp - 4], eax
test eax, eax
je 0x43454e
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 0x4344fc
push ebx
call fcn.0042c085
xor al, al
pop edi
pop ebx
leave
ret 0xc