joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401007
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x82c
cmp dword [0x43f90c], 0x594
push ebx
mov ebx, dword [eax]
push esi
push edi
mov edi, dword [eax + 4]
jne 0x401038
push 0
lea eax, [ebp - 0x82c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x4305b8]
and dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4305bc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xc]
call fcn.00401000
mov eax, dword [0x4305c0]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4305c4]
add esi, 0x23f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, ebx
shl eax, 4
cmp dword [0x43f90c], 0xc
mov dword [ebp - 4], eax
jne 0x4010b1
push 0
lea eax, [ebp - 0x82c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
xor eax, eax
push eax
lea ecx, [ebp - 0x2c]
push ecx
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x43f90c]
cmp eax, 0xfa9
jne 0x4010cd
mov dword [0x43f908], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010eb
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and dword [0x43f860], 0
mov ecx, dword [ebp - 8]
and dword [ebp - 0x14], 0
mov edx, ebx
lea eax, [esi + ebx]
shr edx, cl
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [0x43f904], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor eax, edx
sub edi, eax
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, edi
shr edx, cl
lea eax, [esi + edi]
mov dword [ebp - 0xc], eax
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
xor dword [ebp - 4], eax
xor dword [ebp - 4], edx
sub ebx, dword [ebp - 4]
add esi, 0x61c88647
dec dword [ebp - 0x18]
jne 0x401074
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ebx
pop ebx
leave
ret 4
Function at 0x40477d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f680]
jne 0x404787
repz ret
jmp fcn.0040928e

Function at 0x40bffd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004030d2
and dword [ebp - 4], 0
cmp dword [0x434c34], 0
mov ebx, eax
jne 0x40c0ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c15f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c15f
push eax
call fcn.00403060
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434c34], eax
call esi
push eax
call fcn.00403060
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x434c38], eax
call esi
push eax
call fcn.00403060
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x434c3c], eax
call esi
push eax
call fcn.00403060
pop ecx
mov dword [0x434c44], eax
test eax, eax
je 0x40c0ae
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403060
pop ecx
mov dword [0x434c40], eax
mov eax, dword [0x434c40]
cmp eax, ebx
je 0x40c106
cmp dword [0x434c44], ebx
je 0x40c106
push eax
call fcn.004030db
push dword [0x434c44]
mov esi, eax
call fcn.004030db
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c106
test edi, edi
je 0x40c106
call esi
test eax, eax
je 0x40c0fd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c0fd
test byte [ebp - 0xc], 1
jne 0x40c106
or dword [ebp + 0x10], 0x200000
jmp 0x40c13f
mov eax, dword [0x434c38]
cmp eax, ebx
je 0x40c13f
push eax
call fcn.004030db
pop ecx
test eax, eax
je 0x40c13f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c13f
mov eax, dword [0x434c3c]
cmp eax, ebx
je 0x40c13f
push eax
call fcn.004030db
pop ecx
test eax, eax
je 0x40c13f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x434c34]
call fcn.004030db
pop ecx
test eax, eax
je 0x40c15f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c161
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x79d908
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x79d90e
pop ebp
sub ebp, 6
sub ebp, 0x39d908
jmp 0x79d96c
jmp 0x79d975
mov eax, 0x39d908
add eax, ebp
add eax, 0x93
mov ecx, 0x61b
mov edx, 0xf07f6816
xor byte [eax], dl
inc eax
dec ecx
jne 0x79d98c
jmp 0x79d99f
jl 0x79d9f7
jle 0x79d9b9
push es
push ss
push ss
jle 0x79d9be
fidivr dword [edx]
push ss
and eax, 0x83e946d6
sal byte [esi - 0x62b9e9da], cl
fistp dword [ebp + 0x16162a9f]
sub dl, byte [esi]
push ss
push ss
xchg edi, eax
xlatb
out dx, al
push ss
push ss
push ss
adc eax, 0x1612aedb
scasb al, byte es:[edi]
adc dl, byte [esi]
push ss
push ss
lodsb al, byte [esi]
push ss
push ss
push ss
loope 0x79d9c5
adc eax, 0x1a979dde
push ss
push ss
push ss
adc eax, 0x9b7e46d3
and byte [edi], bl
push ss
jle 0x79da50
mov ah, 0x26
push ss
pop ss
cmp dh, byte [edx]
jle 0x79da01
push ss
push ss
push ss
invalid
push ss
inc ebx
inc edx
dec ebx
popfd
xchg ebx, eax
push ds
push ss
push ss
push ss
popfd
sbb dword [edx], 0x16
push ss
push ss
popfd
wait
push es
push ss
push ss
push ss
xlatb
call dword [edi]
adc al, 0x95
xchg ebp, eax
aam 0x12
pop edi
sbb dword [ebx - 0x1616161e], edx
dec ebx
aam 0x1a
push ss
popfd
lcall 0x7e16, 0x16161232
wait
and byte [edi], bl
push ss
jle 0x79da9b
mov ah, 0x26
push ss
pop ss
cmp dh, byte [edx]
inc edi
invalid
push ss
push ss
push ss
xchg edi, eax
out 0x14, eax
ror byte [ebp + 0x14e797be], cl
ror byte [ebp + 0x25df25be], cl
les edx, [ebp + 0x195e13fe]
xchg edx, eax
pop eax
push ss
push ss
push ss
sbb dword [esi + 0x1616165e], ebx
jo 0x79da12
or ch, byte [edi]
xchg esi, eax
in eax, dx
invalid
pop edx
das
pop ss
xchg ebp, eax
xlatb
adc edx, dword [ebp - 0x5400ed02]
jmp 0x42b9c494

Function at 0x4016e2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401721
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401721
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401721
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401721
cmp dword [ecx + 0x74], 0xe
jbe 0x401721
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40bf30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40bf5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40bf5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40226a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 0
mov eax, 0x4021d6
sub eax, 0x401cf5
mov dword [ebp - 4], eax
push 8
push 0x408008
lea ecx, [ebp - 0x104]
push ecx
call fcn.00406350
add esp, 0xc
mov edx, dword [ebp - 4]
jmp loc.0040a33c
Function at 0x41cee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x41cf02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41cf09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41cef8
mov eax, 1
add ebx, ebx
jne 0x41cf1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41cf10
jne 0x41cf2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf10
xor ecx, ecx
sub eax, 3
jb 0x41cf40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41cfb2
mov ebp, eax
add ebx, ebx
jne 0x41cf4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41cf58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41cf7c
inc ecx
add ebx, ebx
jne 0x41cf68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41cf5d
jne 0x41cf79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41cf9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41cf8d
jmp 0x41cefe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41cf9c
add edi, ecx
jmp 0x41cefe
pop esi
mov edi, esi
mov ecx, 0x157
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41cfba
cmp byte [edi], 0
jne 0x41cfba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41cfbf
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41d02e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d0b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d100]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41cfec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d104]
or eax, eax
je 0x41d028
mov dword [ebx], eax
add ebx, 4
jmp 0x41d009
call dword [esi + 0x1d108]
popal
jmp 0x403ab4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4010fc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40110e
mov eax, dword [0x40d08b]
shl eax, 2
mov dword [0x40d08f], eax
push edx
push 0
call fcn.0040c3a2
mov edx, eax
call fcn.004047b0
pop edx
call fcn.00403ab8
call fcn.004047b4
push 0
call fcn.00405b7c
pop ecx
push 0x40d034
push 0
call fcn.0040c3a2
mov dword [0x40d093], eax
push 0
jmp fcn.00409cd8
Function at 0x40205c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
mov byte [ebp - 0x41], cl
mov dword [ebp - 0x40], edx
mov ebx, eax
mov eax, 0x40db9c
call fcn.00404edc
cmp byte [ebp - 0x41], 0
jne 0x4020ac
push ebx
call fcn.0040c378
cmp eax, 0xffffffff
je 0x4020ac
test ah, 0x40
je 0x4020ac
mov cl, 1
mov edx, 0x10000000
mov eax, ebx
call fcn.0040205c
cmp dword [0x40d2e0], 0
je 0x4020ac
push 0
push ebx
call dword [0x40d2e0]
push 1
lea edx, [ebp - 0x58]
push edx
call fcn.0040c298
test eax, eax
jne 0x4020c9
xor eax, eax
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
jmp 0x402131
push 0
lea ecx, [ebp - 0x58]
push dword [0x411acc]
push ecx
call fcn.0040c2e6
lea eax, [ebp - 0x58]
push eax
push 1
push ebx
call fcn.0040c2da
mov word [ebp - 0x2c], 8
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x40]
mov edx, dword [0x411ac8]
call fcn.00402e70
mov esi, eax
add dword [ebp - 0x20], 2
push esi
push 4
push ebx
call fcn.0040c2da
test eax, eax
mov edx, 2
setne al
and eax, 1
push eax
lea eax, [ebp - 0x18]
sub dword [ebp - 0x20], 2
call fcn.00402f40
pop eax
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402138
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x402141
mov eax, dword [ebp - 4]
add esp, 0xffffffcc
push ebx
cmp dword [0x40d2e4], 0
jne 0x402162
mov al, 1
jmp 0x40225e
xor edx, edx
lea ecx, [ebp - 4]
mov dword [ebp - 4], edx
xor edx, edx
mov dword [ebp - 0x20], edx
push ecx
lea ebx, [ebp - 0x10038]
push 0x10014
push ebx
push 5
push eax
call fcn.0040c274
test eax, eax
je 0x40220f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.0040c28c
test eax, eax
je 0x40220f
push dword [0x411acc]
push dword [ebp - 0x24]
call fcn.0040c268
test eax, eax
je 0x40220f
lea edx, [ebp - 8]
lea ecx, [ebp - 0xa]
push edx
push ecx
push ebx
call fcn.0040c280
test eax, eax
je 0x40220f
test byte [ebp - 9], 0x10
jne 0x4021ce
test byte [ebp - 9], 4
jne 0x40220f
test byte [ebp - 0xa], 4
je 0x40220f
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
push ecx
push ebx
call fcn.0040c286
test eax, eax
je 0x40220f
cmp dword [ebp - 0x18], 0
je 0x40220f
mov eax, dword [ebp - 0x18]
cmp word [eax + 4], 1
jne 0x40220f
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push edx
push ecx
push dword [ebp - 0x18]
call dword [0x40d2e4]
test eax, eax
je 0x402213
mov al, 1
jmp 0x40225e
xor ebx, ebx
cmp dword [ebp - 0x1c], 1
jne 0x40224c
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
and edx, 0x1f01ff
cmp edx, 0x1200a9
jne 0x40224c
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 1
jne 0x40224c
push dword [0x411ac8]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x1c]
call fcn.0040c268
test eax, eax
jne 0x40224e
mov bl, 1
cmp dword [ebp - 0x20], 0
je 0x40225c
push dword [ebp - 0x20]
call fcn.0040c420
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402288
Capabilities:
Delete file
Move file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, 0x40dbd0
call fcn.00404edc
push 0
lea edx, [ebp - 0x2c]
push edx
push 0
push 1
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call fcn.0040c2bc
test eax, eax
jne 0x4023bf
xor ecx, ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ecx
push eax
push 0
push 0
push 0
push 0x40d162
push dword [ebp - 0x2c]
call fcn.0040c2c8
mov word [ebp - 0x18], 8
mov edi, dword [ebp - 0x30]
inc edi
shr edi, 1
add edi, edi
mov dword [ebp - 0x34], edi
push dword [ebp - 0x34]
push 0
push dword [0x40ed7c]
call fcn.0040c3f0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0x14
push eax
push dword [ebp - 4]
push 0
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x2c]
call fcn.0040c2c8
test eax, eax
jne 0x4023a1
cmp dword [ebp - 0x30], 0
je 0x4023a1
mov ecx, 2
mov eax, dword [ebp - 0x30]
xor edx, edx
div ecx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
mov word [ecx + eax*2 - 2], 0
jmp 0x402358
mov edx, dword [ebp - 4]
mov word [edx + edi*2], 0x20
push dword [ebp - 4]
call fcn.0040c4c8
mov edi, eax
mov edx, dword [ebp - 0x30]
dec edx
cmp eax, edx
jb 0x40234f
push esi
push dword [ebp - 4]
call fcn.00404e78
add esp, 8
test eax, eax
je 0x4023a1
push dword [ebp - 0x2c]
call fcn.0040c2b6
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00402484
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
jmp 0x402429
push dword [ebp - 0x2c]
call fcn.0040c2b6
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00402484
mov word [ebp - 0x18], 0
push ebx
call fcn.0040c330
test eax, eax
jne 0x4023dd
xor ecx, ecx
mov edx, 0x10000000
mov eax, ebx
call fcn.0040205c
push ebx
call fcn.0040c330
push ebx
push esi
call fcn.0040c432
test eax, eax
je 0x4023f4
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
jmp 0x402429
xor ecx, ecx
mov edx, 0x10000000
mov eax, esi
call fcn.0040205c
push ebx
push esi
call fcn.0040c432
test eax, eax
jne 0x402420
push 4
push 0
push ebx
call fcn.0040c42c
push 4
push ebx
push esi
call fcn.0040c42c
mov eax, dword [ebp - 0x28]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402508
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor esi, esi
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push edx
call fcn.0040c318
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40259e
push 0
push ebx
call fcn.0040c37e
mov edi, eax
cmp edi, 0xffffffff
je 0x402598
cmp edi, 0x400
jbe 0x402598
mov eax, edi
push 0
sub eax, 0x400
push 0
push eax
push ebx
call fcn.0040c456
xor edx, edx
lea ecx, [ebp - 8]
mov dword [ebp - 8], edx
push 0
push ecx
lea eax, [ebp - 0x24]
push 0x1c
push eax
push ebx
call fcn.0040c43e
test eax, eax
je 0x402598
cmp dword [ebp - 8], 0x1c
jne 0x402598
cmp edi, dword [ebp - 0x20]
jne 0x402598
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 4]
jne 0x402598
lea eax, [ebp - 0x24]
call fcn.00402d58
test al, al
je 0x402598
mov esi, dword [ebp - 0x24]
push ebx
call fcn.0040c300
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402838
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, 0x411b00
call fcn.00401ce4
test al, al
jne 0x402860
call fcn.00401ff0
call fcn.00401a24
call fcn.00401acc
call fcn.00401a24
xor ebx, ebx
mov eax, dword [esi + ebx*8]
call fcn.00402264
push dword [esi + ebx*8]
call fcn.0040c378
cmp eax, 0xffffffff
jne 0x40288d
mov ecx, dword [esi + ebx*8]
mov edx, dword [ebx*4 + 0x40d308]
mov eax, dword [0x40d320]
call fcn.00402a20
jmp 0x4028a1
test ah, 0x40
je 0x4028a1
mov eax, dword [esi + ebx*8]
xor ecx, ecx
mov edx, 0xa0000000
call fcn.0040205c
inc ebx
cmp ebx, 4
jb 0x402862
cmp dword [0x40d31c], 3
je 0x402904
push 0
lea eax, [ebp - 4]
push 0
push eax
push 0
push str.Start
push dword [0x411b28]
call fcn.0040c2c8
test eax, eax
jne 0x4028d4
cmp dword [ebp - 4], 4
je 0x402904
push dword [0x411b28]
call fcn.0040c2b6
xor edx, edx
mov dword [0x411b28], edx
call fcn.00402da4
push 0x411b28
push 1
push 0
push str.SYSTEMCurrentControlSetServicesLcss
push 0x80000002
call fcn.0040c2c2
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x40290c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, 0x40dc30
call fcn.00404edc
mov word [ebp - 0x18], 8
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push ebx
call fcn.0040c318
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402a0d
push 2
push 0
push 0xfffffc00
push ebx
call fcn.0040c456
xor edx, edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], edx
push 0
push ecx
lea eax, [ebp - 0x48]
push 0x1c
push eax
push ebx
call fcn.0040c43e
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x48]
mov dword [edx + 0x1c], ecx
mov ecx, 8
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x34]
add eax, 0xc
call fcn.00403462
mov ebx, dword [ebp - 0x38]
test ebx, ebx
jl 0x40299c
cmp ebx, 2
jl 0x4029a7
mov eax, dword [ebp - 0x28]
mov dword fs:[0], eax
jmp 0x402a0d
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + ebx*4 + 4], ecx
mov edx, dword [ebp + ebx*4 - 0x34]
mov ecx, dword [ebp + ebx*4 - 0x34]
xor eax, eax
cmp ebx, eax
jle 0x4029d8
mov esi, dword [ebp - 4]
mov dword [esi + eax*4 + 4], edx
add edx, dword [ebp + eax*4 - 0x34]
cmp ecx, dword [ebp + eax*4 - 0x34]
jae 0x4029d3
mov ecx, dword [ebp + eax*4 - 0x34]
inc eax
cmp ebx, eax
jg 0x4029be
lea eax, [ebx + 1]
mov word [ebp - 0x18], 8
cmp eax, 2
jge 0x402a01
mov ebx, dword [ebp - 4]
mov dword [ebx + eax*4 + 4], edx
add edx, dword [ebp + eax*4 - 0x34]
cmp ecx, dword [ebp + eax*4 - 0x34]
jae 0x4029fb
mov ecx, dword [ebp + eax*4 - 0x34]
inc eax
cmp eax, 2
jl 0x4029e6
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402da4
Capabilities:
Create service
Delete service
Persist via windows service
Set registry value
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0xf003f
push 0
push 0
call fcn.0040c2aa
mov ebx, eax
test ebx, ebx
je 0x402e6b
push 0xf01ff
push 0x40d22e
push ebx
call fcn.0040c2b0
mov esi, eax
test esi, esi
je 0x402de4
push esi
call fcn.0040c262
push esi
call fcn.0040c256
push 0
push 0
mov eax, 0x411b18
push 0
push 0
push 0
push dword [eax]
push 0
push 2
push 0x10
push 0xf01ff
push 0x40dabe
push 0x40d22e
push ebx
call fcn.0040c25c
mov esi, eax
test esi, esi
je 0x402e26
push 0
push 0
push esi
call fcn.0040c2f8
push esi
call fcn.0040c256
push ebx
call fcn.0040c256
xor eax, eax
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
push edx
push 2
push 0
push str.SYSTEMCurrentControlSetServicesLcss
push 0x80000002
call fcn.0040c2c2
push 0xa4
push 0x40d23c
push 1
push 0
push str.Description
push dword [ebp - 4]
call fcn.0040c2ce
push dword [ebp - 4]
call fcn.0040c2b6
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x404474
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call fcn.0040c3ea
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x408bc8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call fcn.0040c30c
mov ebx, eax
test eax, eax
je 0x408c2a
call fcn.00408b78
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00404cb4
pop ecx
push eax
push esi
push ebx
call fcn.0040c4b6
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00404cb4
pop ecx
push eax
push edi
push ebx
call fcn.0040c4b6
push ebx
call fcn.0040c300
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x408ca8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4109f4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x408d82
cmp dword [0x4109f0], 0
jne 0x408d82
cmp dword [0x410bfc], 0
je 0x408d3c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call fcn.0040c396
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00408a78
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408d22
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00408a78
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408d22
lea ebx, [ebp - 0x84]
jmp 0x408d23
inc ebx
call fcn.00408c64
or eax, 0x10010
push eax
push ebx
push esi
push 0
call fcn.0040c4d6
jmp 0x408dbd
push 0xfffffffffffffff4
call fcn.0040c3c0
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4109f8
push ebx
call fcn.0040c4b6
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00404cb4
pop ecx
push eax
push esi
push ebx
call fcn.0040c4b6
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4109fb
push ebx
call fcn.0040c4b6
jmp 0x408dbd
cmp dword [0x4109f0], 0
je 0x408d9c
cmp dword [0x4109f0], 0xffffffff
je 0x408dbd
push esi
call dword [0x4109f0]
pop ecx
mov eax, dword [0x4109f4]
test eax, eax
je 0x408dbd
cmp dword [0x4109f4], 0xffffffff
je 0x408dbd
cmp byte [eax], 0
je 0x408dbd
push esi
push eax
call fcn.00408bc8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret