joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408f72
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x409146
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x5ae1c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x409146
test cl, 0x48
je 0x408fdd
cmp byte [eax + 5], 0xa
je 0x408fdd
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40902f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x409017
call fcn.004096bb
mov dword [eax], 9
call fcn.004096c4
mov dword [eax], esi
jmp 0x409027
cmp eax, 0x6d
je 0x409146
push eax
call fcn.004096cd
pop ecx
or eax, 0xffffffff
jmp 0x409148
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x409141
test eax, eax
je 0x409056
cmp byte [ebx], 0xa
jne 0x409056
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x40905f
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x40913b
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x40912b
cmp al, 0xd
je 0x409091
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x40911d
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4090ab
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4090a6
add dword [ebp + 0x10], 2
jmp 0x4090ff
mov dword [ebp + 0x10], eax
jmp 0x409119
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4090d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x409119
cmp dword [ebp - 0xc], 0
je 0x409119
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4090f4
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4090ff
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40911c
cmp ebx, dword [ebp + 0xc]
jne 0x409104
cmp byte [ebp - 1], 0xa
jne 0x409104
mov byte [ebx], 0xa
jmp 0x40911c
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00409740
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40911d
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x409075
jmp 0x40913b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40913b
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x409148
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bcbb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40bce9
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40bcf0
cmp ebx, dword [eax + 4]
jae 0x40bcf0
xor eax, eax
jmp 0x40bee0
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40bd01
xor eax, eax
inc eax
jmp 0x40bedf
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40bd17
cmp ecx, edx
jae 0x40be5c
cmp dword [eax + 4], 0
je 0x40bd20
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40bd08
cmp dword [ebp + 8], 0
je 0x40bd42
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40be5c
cmp eax, esi
jae 0x40be5c
mov eax, dword [0x5adba8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40bd67
cmp dword [esi*4 + 0x5adbb0], edi
je 0x40be60
inc esi
cmp esi, eax
jl 0x40bd55
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40bedc
cmp dword [ebp - 8], 0x1000000
jne 0x40bedc
test byte [ebp - 0xc], 0xcc
je 0x40bde5
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40bedc
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40bedc
cmp word [eax + 0x18], 0x10b
jne 0x40bedc
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40bedc
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40bde5
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40bde5
test byte [ecx + 0x27], 0x80
jne 0x40be5c
push 1
push 0x5adbf0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40bcf9
mov ecx, dword [0x5adba8]
test ecx, ecx
mov edx, ecx
jle 0x40be19
lea eax, [ecx*4 + 0x5adbac]
cmp dword [eax], edi
je 0x40be19
dec edx
sub eax, 4
test edx, edx
jg 0x40be0d
test edx, edx
jne 0x40be4a
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40be26
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40be3e
lea eax, [edx*4 + 0x5adbb0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40be2c
cmp ecx, 0x10
jge 0x40be4a
inc ecx
mov dword [0x5adba8], ecx
push 0
push 0x5adbf0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40bcf9
xor eax, eax
jmp 0x40bedf
test esi, esi
jle 0x40bcf9
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x5adbf0
call ebx
test eax, eax
jne 0x40bcf9
cmp dword [esi*4 + 0x5adbb0], edi
je 0x40beb6
mov eax, dword [0x5adba8]
lea esi, [eax - 1]
test esi, esi
jl 0x40bea4
cmp dword [esi*4 + 0x5adbb0], edi
je 0x40bea0
dec esi
jns 0x40be94
test esi, esi
jge 0x40beb4
cmp eax, 0x10
jge 0x40beaf
inc eax
mov dword [0x5adba8], eax
lea esi, [eax - 1]
jmp 0x40beb6
je 0x40bece
xor ecx, ecx
test esi, esi
jl 0x40bece
lea eax, [ecx*4 + 0x5adbb0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40bebc
push 0
push 0x5adbf0
call ebx
jmp 0x40bcf9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bfe8
Capabilities:
Terminate process

Disassembly:
push 8
push 0x412a60
call fcn.00407370
push 8
call fcn.0040a367
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x5adc38], esi
jne 0x40c01c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x5adc34], esi
mov al, byte [ebp + 0x10]
mov byte [0x5adc30], al
cmp dword [ebp + 0xc], edi
jne 0x40c066
cmp dword [0x5ae188], edi
je 0x40c056
mov eax, dword [0x5ae184]
sub eax, 4
mov dword [0x5ae184], eax
cmp eax, dword [0x5ae188]
jb 0x40c056
mov eax, dword [eax]
cmp eax, edi
je 0x40c037
call eax
jmp 0x40c037
push 0x41503c
mov eax, 0x415034
call fcn.0040bf66
pop ecx
push 0x415048
mov eax, 0x415040
call fcn.0040bf66
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40c097
cmp dword [ebp + 0x10], edi
jne 0x40c0a5
mov dword [0x5adc38], esi
push dword [ebp + 8]
call fcn.0040bf24
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40c0a4
push 8
call fcn.0040a2b2
pop ecx
ret
call fcn.004073ab
ret

Function at 0x40cbac
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4150f0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x415928]
je 0x40cbe1
inc eax
cmp eax, 0x13
jb 0x40cbd2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x415928]
jne 0x40cd07
mov eax, dword [0x5ada14]
cmp eax, 1
je 0x40ccdf
cmp eax, edx
jne 0x40cc11
cmp dword [0x415134], 1
je 0x40ccdf
cmp ecx, 0xfc
je 0x40cd07
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40cc47
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040b8f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00407be0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40cc7b
mov eax, edi
push eax
call fcn.00407be0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41216c
push edi
call fcn.004075f0
add esp, 0x10
push edi
call fcn.00407be0
push dword [esi + 0x41592c]
mov ebx, eax
call fcn.00407be0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004068e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040b8f0
push edi
push ebx
call fcn.0040b900
push 0x412168
push ebx
call fcn.0040b900
push dword [esi + 0x41592c]
push ebx
call fcn.0040b900
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040dba1
add esp, 0x2c
jmp 0x40cd07
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x41592c]
push dword [esi]
call fcn.00407be0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004068c2
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40dba1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x5add5c], ebx
push esi
push edi
jne 0x40dc21
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40dc5c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x412f74
push edi
call esi
test eax, eax
mov dword [0x5add5c], eax
je 0x40dc5c
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x5add60], eax
call esi
cmp dword [0x5adbf8], 2
mov dword [0x5add64], eax
jne 0x40dc21
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x5add6c], eax
je 0x40dc21
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x5add68], eax
mov eax, dword [0x5add68]
test eax, eax
je 0x40dc66
call eax
test eax, eax
je 0x40dc4d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x5add6c]
test eax, eax
je 0x40dc4d
test byte [ebp - 8], 1
jne 0x40dc66
cmp dword [0x5adc04], 4
jb 0x40dc60
or byte [ebp + 0x12], 0x20
jmp 0x40dc85
xor eax, eax
jmp 0x40dc95
or byte [ebp + 0x12], 4
jmp 0x40dc85
mov eax, dword [0x5add60]
test eax, eax
je 0x40dc85
call eax
mov ebx, eax
test ebx, ebx
je 0x40dc85
mov eax, dword [0x5add64]
test eax, eax
je 0x40dc85
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x5add5c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e599
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004068e0
mov eax, dword [0x4150f0]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00409740
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x40e6cc
push 2
push esi
push dword [ebp + 8]
call fcn.00409740
add esp, 0xc
cmp eax, ebx
je 0x40e6cc
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40e66c
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040e1e0
push 0x8000
push dword [ebp + 8]
call fcn.0040e947
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x40e622
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0040894e
add esp, 0xc
cmp eax, 0xffffffff
je 0x40e642
sub edi, eax
test edi, edi
jg 0x40e61a
jmp 0x40e65a
call fcn.004096c4
cmp dword [eax], 5
jne 0x40e657
call fcn.004096bb
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0040e947
pop ecx
pop ecx
jmp 0x40e6b4
jge 0x40e6b4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409740
push dword [ebp + 8]
call fcn.0040943c
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x40e6b4
call fcn.004096bb
mov dword [eax], 0xd
call fcn.004096c4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00409740
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40e6ce
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004068c2
leave
ret

Function at 0x40eb10
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x304]
test eax, eax
je 0x40eb53
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40eb3c
mov eax, dword [esi + 0x304]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x304]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x304], 0
pop esi
ret
Function at 0x40eb60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41007b
push eax
mov eax, 0x1118
mov dword fs:[0], esp
call fcn.004068e0
mov eax, dword [0x4150f0]
push esi
push edi
mov edi, 0x413328
push edi
mov dword [esp + 0x1120], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40eba3
mov edi, str..._ver.csv
push 1
push 1
push 0x2c
push edi
lea ecx, [esp + 0x18]
mov esi, 2
call fcn.0040f730
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
add ecx, eax
cmp dword [esp + 0x10], ecx
mov dword [esp + 0x1128], 0
jae 0x40ec32
lea ecx, [esp + 8]
call fcn.0040f680
lea ecx, [esp + 8]
call fcn.0040f550
lea ecx, [esp + 8]
call fcn.0040f550
lea ecx, [esp + 8]
call fcn.0040f550
lea ecx, [esp + 8]
call fcn.0040f550
mov edi, str.alpha
lea esi, [esp + 0x14]
mov ecx, 6
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40ec18
xor esi, esi
jmp 0x40ec32
xor eax, eax
mov edi, str.beta
lea esi, [esp + 0x14]
mov ecx, 5
repe cmpsb byte [esi], byte es:[edi]
mov edx, eax
setne dl
inc edx
mov esi, edx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40ec43
push eax
call fcn.00406428
add esp, 4
mov ecx, dword [esp + 0x1120]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1118]
mov eax, esi
pop esi
call fcn.004068c2
add esp, 0x1124
ret

Function at 0x40f390
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 4], 0x7fffffff
push esi
mov esi, ecx
jne 0x40f3af
lea eax, [esp + 8]
push eax
lea ecx, [esi + 0x308]
call fcn.0040f290
jmp 0x40f3bf
lea ecx, [esp + 8]
push ecx
lea ecx, [esi + 0x308]
call fcn.0040f310
mov eax, dword [esi + 0x304]
test eax, eax
jne 0x40f3ee
lea edx, [esp + 8]
push edx
push 0
push esi
push 0x40f0b0
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x304], eax
pop esi
ret 4

Function at 0x40f400
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x410118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push 0x5aded0
lea ecx, [esp + 8]
call fcn.0040fba0
mov esi, dword [0x5adecc]
test esi, esi
mov dword [esp + 0x14], 0
je 0x40f4c1
lea eax, [esp + 8]
push eax
lea ecx, [esi + 0x308]
mov dword [esp + 0xc], 0x7fffffff
call fcn.0040f290
mov eax, dword [esi + 0x304]
test eax, eax
jne 0x40f484
lea ecx, [esp + 8]
push ecx
push 0
push esi
push 0x40f0b0
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x304], eax
lea ecx, [esp + 4]
call fcn.0040fbc0
mov ecx, dword [0x5adecc]
call fcn.0040eb10
mov eax, dword [0x5adecc]
test eax, eax
mov esi, eax
je 0x40f4b7
lea ecx, [eax + 0x308]
call fcn.0040ec70
push esi
call fcn.00406428
add esp, 4
mov dword [0x5adecc], 0
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040fbc0
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40f8a0
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx]
push ebp
push esi
push edi
push eax
call fcn.00405db8
mov ecx, dword [ebx]
mov esi, eax
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
add esp, 4
rep stosb byte es:[edi], al
mov eax, dword [ebx]
mov edi, dword [esp + 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ebp, eax
test ebp, ebp
jg 0x40f8ec
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f8e3
jmp 0x40f917
mov ecx, dword [ebx]
mov edx, edi
mov byte [ecx + esi - 1], 0
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40f900
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f910
sub eax, edx
inc eax
push esi
mov dword [ebx], eax
call fcn.00406428
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x40f9b0
Capabilities:
Query or enumerate registry value

Disassembly:
cmp dword [ecx], 0
jne 0x40f9bb
or eax, 0xffffffff
ret 0x10
push ebx
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x40f9c9
xor ebx, ebx
jmp 0x40f9cb
mov ebx, dword [esi]
mov eax, dword [esi]
push edi
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push edi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push 0
mov dword [esi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40fa4d
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x40fa14
cmp eax, 2
je 0x40fa14
pop edi
pop esi
mov eax, 0xd
pop ebx
ret 0x10
test edi, edi
je 0x40fa24
mov ecx, dword [esp + 0x18]
mov dl, byte [ecx + edi - 1]
test dl, dl
jne 0x40fa09
cmp eax, 2
jne 0x40fa45
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40fa45
test edi, edi
je 0x40fa45
test ebx, ebx
jbe 0x40fa45
push esi
push edi
mov dword [esi], ebx
call fcn.0040f8a0
add esp, 8
mov edx, dword [esp + 0x18]
mov dword [esi], edx
xor eax, eax
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x40fab0
Capabilities:
Connect to http server

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
jne 0x40fabd
pop esi
ret 8
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push 0
push 3
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 4], eax
pop esi
mov eax, ecx
ret 8
Function at 0x40b02d
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x718
mov eax, dword [0x426fa0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, 0x101
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x718], eax
call fcn.0040ab36
cmp dword [esi + 0x14], 8
jb 0x40b063
mov eax, dword [esi]
jmp 0x40b065
mov eax, esi
lea ecx, [ebp - 0x718]
push ecx
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x40b0b1
push 0x4026d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x714]
call fcn.0040afa7
mov esi, eax
push 0x422218
lea eax, [ebp - 0x38c]
mov ecx, 0xe2
lea edi, [ebp - 0x38c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00412300
push 0
push dword [ebp - 0x718]
mov ecx, esi
call fcn.0040ab36
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004122f2
leave
ret 4
Function at 0x40f640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x718
mov eax, dword [0x426fa0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ecx + 0x24]
mov eax, dword [ebp + 8]
push esi
cmp edx, 0xffffffff
jne 0x40f691
push 0x404a38
push 0x15
lea ecx, [ebp - 0x714]
call fcn.0040fa96
mov esi, eax
push 0x422218
lea eax, [ebp - 0x38c]
mov ecx, 0xe2
lea edi, [ebp - 0x38c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00412300
and dword [ebp - 0x718], 0
cmp dword [eax + 0x14], 0x10
jb 0x40f6a2
mov ecx, dword [eax]
jmp 0x40f6a4
mov ecx, eax
push 0
lea esi, [ebp - 0x718]
push esi
push dword [eax + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40f6e0
cmp byte [ebp + 0xc], al
je 0x40f6dc
push 0x404a0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x714]
call fcn.0040af21
jmp 0x40f671
xor al, al
jmp 0x40f6e2
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004122f2
leave
ret 8

Function at 0x40f78e
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x714
mov eax, dword [0x426fa0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
push edi
jb 0x40f7b0
mov eax, dword [esi]
jmp 0x40f7b2
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
jne 0x40f838
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40f838
cmp eax, 5
jne 0x40f7f6
push dword [ebp + 0xc]
push 0x80
push esi
call fcn.0040f84a
cmp dword [esi + 0x14], 8
jb 0x40f7e7
mov eax, dword [esi]
jmp 0x40f7e9
mov eax, esi
push eax
call edi
test eax, eax
jne 0x40f838
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f838
cmp byte [ebp + 0xc], 0
je 0x40f834
push esi
push 0x404b44
push eax
push 0xf
lea ecx, [ebp - 0x714]
call fcn.0040f9f4
mov esi, eax
push 0x422218
lea eax, [ebp - 0x38c]
mov ecx, 0xe2
lea edi, [ebp - 0x38c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00412300
xor al, al
jmp 0x40f83a
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004122f2
leave
ret 8

Function at 0x40f84a
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x714
mov eax, dword [0x426fa0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x40f86b
mov eax, dword [esi]
jmp 0x40f86d
mov eax, esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40f8be
cmp byte [ebp + 0x10], al
je 0x40f8be
lea eax, [ebp + 0xc]
push eax
push esi
push 0x404b78
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x714]
call fcn.0040fb1a
mov esi, eax
push 0x422218
lea eax, [ebp - 0x38c]
mov ecx, 0xe2
lea edi, [ebp - 0x38c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00412300
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004122f2
leave
ret 0xc
Function at 0x4122f2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426fa0]
jne 0x414d44
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x428c58], eax
mov dword [0x428c54], ecx
mov dword [0x428c50], edx
mov dword [0x428c4c], ebx
mov dword [0x428c48], esi
mov dword [0x428c44], edi
mov word [0x428c70], ss
mov word [0x428c64], cs
mov word [0x428c40], ds
mov word [0x428c3c], es
mov word [0x428c38], fs
mov word [0x428c34], gs
pushfd
pop dword [0x428c68]
mov eax, dword [ebp]
mov dword [0x428c5c], eax
mov eax, dword [ebp + 4]
mov dword [0x428c60], eax
lea eax, [ebp + 8]
mov dword [0x428c6c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x428ba8], 0x10001
mov eax, dword [0x428c60]
mov dword [0x428b5c], eax
mov dword [0x428b50], 0xc0000409
mov dword [0x428b54], 1
mov eax, dword [0x426fa0]
mov dword [ebp - 0x328], eax
mov eax, dword [0x426fa4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x428ba0], eax
push 1
call fcn.00416f22
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x405c7c
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x428ba0], 0
jne 0x414e30
push 1
call fcn.00416f22
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret