joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406c40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x108
push esi
lea eax, [esp + 4]
push edi
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x11c]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x11c]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x20], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x406c96
jl 0x406d06
and eax, 0xffff
pop edi
or eax, 0x80070000
pop esi
add esp, 0x108
ret 0x14
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x11c]
cmp eax, ecx
jne 0x406d01
cmp eax, 1
je 0x406cb4
cmp eax, 2
jbe 0x406d01
cmp eax, 4
ja 0x406d01
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x120]
mov ecx, eax
push ebx
mov ebx, ecx
lea esi, [esp + 0x14]
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x124], eax
jb 0x406d01
mov ecx, eax
mov edi, edx
mov edx, ecx
lea esi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x108
ret 0x14
mov eax, 0x8007000d
pop edi
pop esi
add esp, 0x108
ret 0x14

Function at 0x4074f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp + 8]
mov dword [esp + 8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40751b
mov eax, 0x80900006
add esp, 0x9c
ret 8
cmp dword [esp + 0x18], 2
jne 0x407530
cmp dword [esp + 0xc], 5
ja 0x407530
cmp dword [esp + 0x10], 1
jb 0x40759a
mov eax, dword [esp + 0xa4]
mov dword [esp], 0
mov cl, byte [esp]
push 0
mov dl, byte [eax + 0x32]
xor dl, cl
and dl, 0xf
xor dl, cl
mov cl, byte [eax + 0x36]
and dl, 0x7f
mov byte [esp + 5], cl
mov ecx, dword [eax + 0xc]
mov byte [esp + 4], dl
lea edx, [esp + 8]
push edx
mov edx, dword [eax + 0x10]
push ecx
mov ecx, dword [esp + 0xac]
push edx
lea eax, [esp + 0x10]
push 4
push eax
push 0x24054
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x407594
xor eax, eax
add esp, 0x9c
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x80900018
add esp, 0x9c
ret 8
Function at 0x40323c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x403278
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA_1
push esp
call sub.kernel32.dll_SetCurrentDirectoryA_1
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA_1
test bl, bl
je 0x403298
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA_1
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405984
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403598
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405704
test esi, esi
jne 0x4035ce
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004057f4
jmp 0x4035ec
call sub.kernel32.dll_GetCommandLineA_2
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040343c
mov edi, eax
test esi, esi
je 0x4035ec
cmp dword [ebx], 0
je 0x4035ec
dec esi
jmp 0x4035d5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403624
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5db008], 0x8088405
inc edx
mov dword [ebx + 0x5db008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4044f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x5db024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404590
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExA_2
test eax, eax
jne 0x404570
xor eax, eax
push ebp
push 0x404569
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4045ac
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA_2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404570
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey_2
ret
movzx eax, word [0x5db024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x5db024], ax
mov esp, ebp
pop ebp
ret
Function at 0x40748c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4076bc
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA_2
test eax, eax
je 0x40750f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4076bc
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExA_2
test eax, eax
je 0x40750f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4076d8
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA_2
test eax, eax
jne 0x407598
xor eax, eax
push ebp
push 0x407591
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004072c8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA_2
test eax, eax
je 0x407576
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4076f8
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA_2
test eax, eax
je 0x407576
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407598
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegCloseKey_2
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyn_1
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale_2
push eax
call sub.kernel32.dll_GetLocaleInfoA_2
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4076b2
cmp byte [ebp - 0xd], 0
jne 0x4075df
cmp byte [ebp - 0x12], 0
je 0x4076b2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlen_1
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4075f8
dec ebx
cmp byte [ebx], 0x2e
je 0x407607
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4075f7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4076b2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x407644
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyn_1
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA_2
mov esi, eax
test esi, esi
jne 0x4076b2
cmp byte [ebp - 0xd], 0
je 0x4076b2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyn_1
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA_2
mov esi, eax
test esi, esi
jne 0x4076b2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyn_1
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA_2
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a3a8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a3fa
test eax, edx
je 0x40a3fd
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40a3bd
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40a3e3
add ecx, 4
js 0x40a3d3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40a3e0
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x40a409
test edx, edx
jne 0x40a3b0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40b2cc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405bc0
push eax
call sub.kernel32.dll_GetFileAttributesA_1
cmp eax, 0xffffffff
je 0x40b2e5
test al, 0x10
je 0x40b2e9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b2f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405bc0
push eax
call sub.kernel32.dll_GetFileAttributesA_1
cmp eax, 0xffffffff
je 0x40b309
test al, 0x10
jne 0x40b30d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40f048
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_3
test eax, eax
jle 0x40f081
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004057f4
jmp 0x40f08a
mov eax, ebx
mov edx, esi
call fcn.00405758
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40f094
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_3
test eax, eax
jle 0x40f0b6
movzx eax, byte [esp]
jmp 0x40f0b8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4100fc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4101d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040579c
lea eax, [ebp - 4]
call fcn.00405c18
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405bc0
push eax
call sub.version.dll_GetFileVersionInfoSizeA_1
mov ebx, eax
test ebx, ebx
je 0x4101bc
mov eax, ebx
call fcn.00402ffc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4101b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405bc0
push eax
call sub.version.dll_GetFileVersionInfoA_1
test eax, eax
je 0x41019f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4101e4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA_1
test eax, eax
je 0x41019f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4101bc
mov eax, dword [ebp - 0x10]
call fcn.00403018
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4101d9
lea eax, [ebp - 4]
call fcn.00405704
ret

Function at 0x42bd40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5eb9f4
cmp dword [edi], 0
jne 0x42bdbc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_3
mov esi, eax
mov eax, dword [0x5eb9f0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5dbde8
mov ecx, 2
call fcn.0040333c
mov edx, 0x42bd18
lea eax, [esi + 5]
call fcn.0042bd38
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042bd38
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x42bd91
mov dword [0x5eb9f0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42e5e8
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
push 0x40
push ebx
call sub.kernel32.dll_IsBadReadPtr_1
test eax, eax
jne 0x42e627
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x42e627
cmp dword [eax + 0x3c], 0
je 0x42e627
mov esi, dword [eax + 0x3c]
add esi, ebx
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr_1
test eax, eax
jne 0x42e625
cmp dword [esi], 0x4550
je 0x42e627
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4332b8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00405704
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00405bc0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA_1
mov ebx, eax
cmp ebx, 0x400
jge 0x4332fd
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.004057f4
jmp 0x433316
mov edx, ebx
dec edx
mov eax, esi
call fcn.00405e50
push ebx
mov eax, dword [esi]
call fcn.00405bc0
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA_1
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43358c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
mov eax, pe_nt_image_headers32
push eax
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA_1
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00405984
add esp, 0x100
pop ebx
ret

Function at 0x433634
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x810], ebx
mov dword [ebp - 0x80c], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00405bb0
xor eax, eax
push ebp
push 0x433730
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, ebx
call fcn.00405758
lea edx, [ebp - 0x80c]
mov eax, dword [ebp - 4]
call fcn.0040b544
cmp dword [ebp - 0x80c], 0
jne 0x4336b8
lea eax, [ebp - 0x810]
call fcn.004335bc
push dword [ebp - 0x810]
push 0x433748
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00405ac4
lea eax, [ebp - 4]
xor ecx, ecx
xor edx, edx
call fcn.004342b4
test al, al
je 0x43370a
mov eax, dword [ebp - 4]
call fcn.00405bc0
push eax
push 0x800
lea eax, [ebp - 0x808]
push eax
mov eax, ebx
call fcn.00405bc0
push eax
mov eax, dword [ebp - 8]
call fcn.00405bc0
push eax
mov eax, edi
call fcn.00405bc0
push eax
call sub.kernel32.dll_GetPrivateProfileStringA_1
mov ecx, eax
lea edx, [ebp - 0x808]
mov eax, esi
call fcn.004057f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433737
lea eax, [ebp - 0x810]
mov edx, 2
call fcn.00405728
lea eax, [ebp - 4]
call fcn.00405704
ret
Function at 0x433ec8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00405bb0
mov eax, dword [ebp - 8]
call fcn.00405bb0
xor eax, eax
push ebp
push 0x433fd6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405704
cmp dword [ebp - 4], 0
je 0x433f20
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x433f20
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00405c68
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00405bc0
push eax
push esi
call sub.ADVAPI32.dll_RegOpenKeyExA_3
test eax, eax
jne 0x433fbb
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405bc0
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA_3
test eax, eax
jne 0x433fab
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00405e50
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.00405bc0
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA_3
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x433f99
sub esi, 4
mov esi, dword [esi]
push ebx
mov ecx, esi
dec ecx
mov eax, dword [ebx]
mov edx, 1
call fcn.00405c28
jmp 0x433fb2
mov eax, ebx
call fcn.00405704
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegCloseKey_3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433fdd
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405728
ret

Function at 0x4341a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x43422c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, esi
call fcn.0040b2cc
mov byte [ebp - 1], al
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
mov eax, esi
call fcn.00405bc0
mov edi, eax
push edi
call sub.kernel32.dll_CreateFileA_3
cmp eax, 0xffffffff
je 0x434216
mov bl, 1
push eax
call sub.kernel32.dll_CloseHandle_3
cmp byte [ebp - 1], 0
jne 0x434216
mov edx, edi
lea eax, [ebp - 8]
call fcn.0040590c
mov eax, dword [ebp - 8]
call fcn.00405bc0
push eax
call sub.kernel32.dll_DeleteFileA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434233
lea eax, [ebp - 8]
call fcn.00405704
ret

Function at 0x434274
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405bc0
push eax
call sub.kernel32.dll_GetFileAttributesA_1
cmp eax, 0xffffffff
je 0x43428d
test al, 0x10
jne 0x434291
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x434af0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.00405bb0
xor eax, eax
push ebp
push 0x434bf2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x434b20
sub eax, 4
mov eax, dword [eax]
dec eax
jle 0x434b66
mov edx, dword [ebp - 4]
mov eax, 0x434c08
call fcn.00405d0c
mov edx, eax
mov ecx, dword [ebp - 4]
mov eax, ecx
test eax, eax
je 0x434b40
sub eax, 4
mov eax, dword [eax]
dec eax
cmp edx, eax
jne 0x434b66
mov ebx, ecx
test ebx, ebx
je 0x434b50
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
mov ecx, ebx
sub ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405c28
mov eax, dword [ebp - 4]
test eax, eax
je 0x434b72
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jle 0x434ba2
mov dword [ebp - 0xc], 1
lea eax, [ebp - 4]
call fcn.00405c20
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
movzx ecx, byte [ecx + esi - 1]
xor cl, 0x62
mov byte [eax + edx - 1], cl
inc dword [ebp - 0xc]
dec ebx
jne 0x434b7f
mov eax, dword [ebp - 4]
test eax, eax
je 0x434bae
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [ebp - 0xc], 0
jle 0x434bdc
lea eax, [ebp - 4]
call fcn.00405c20
mov edx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434bf9
lea eax, [ebp - 4]
call fcn.00405704
ret

Function at 0x435198
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
lea edx, [ebp - 4]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405e50
cmp dword [ebp - 4], 0
jle 0x4351d7
mov eax, ebx
call fcn.00405c20
mov edx, eax
mov ecx, dword [ebp - 4]
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4351e8
sub eax, 4
mov eax, dword [eax]
mov esi, eax
test esi, esi
jle 0x435216
mov dword [ebp - 4], 1
mov eax, ebx
call fcn.00405c20
mov edx, dword [ebp - 4]
mov ecx, dword [ebx]
mov edi, dword [ebp - 4]
movzx ecx, byte [ecx + edi - 1]
xor cl, 0x62
mov byte [eax + edx - 1], cl
inc dword [ebp - 4]
dec esi
jne 0x4351f5
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x436be8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 4]
mov dword [edi], 0x10
push edi
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetComputerNameA_1
mov eax, esi
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00405984
mov eax, dword [esi]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x436c35
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jbe 0x436c69
mov dword [edi], 1
mov eax, dword [esi]
mov edx, dword [edi]
movzx eax, byte [eax + edx - 1]
movzx eax, al
bt dword [0x5dc78c], eax
jae 0x436c64
mov eax, esi
call fcn.00405c20
mov edx, dword [edi]
mov byte [eax + edx - 1], 0x5f
inc dword [edi]
dec ebx
jne 0x436c41
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44014c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x44015b
xor eax, eax
pop esi
pop ebx
ret
cmp byte [0x5ddc98], 0
jne 0x440169
call fcn.004400f0
or eax, 0xffffffff
movzx edx, byte [ebx]
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x5eba64]
shr eax, 8
xor edx, eax
mov eax, edx
inc ebx
dec esi
test esi, esi
jne 0x44016c
xor eax, 0xffffffff
pop esi
pop ebx
ret

Function at 0x440194
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor edx, edx
mov ecx, eax
test ecx, ecx
je 0x4401a4
sub ecx, 4
mov ecx, dword [ecx]
test ecx, ecx
jle 0x4401d9
mov ebx, 1
movzx esi, byte [eax + ebx - 1]
movzx edi, dx
shr edi, 8
xor esi, edi
and esi, 0xff
movzx esi, word [esi*2 + 0x5dda98]
shl edx, 8
and dx, 0xffff
xor si, dx
mov edx, esi
inc ebx
dec ecx
jne 0x4401ad
mov eax, edx
pop edi
pop esi
pop ebx
ret