joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452730
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4bfde8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4c35fc]
push 0
lea ecx, [esp + 0x20]
call fcn.004b5b96
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00452090
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004b5ac4
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004b22a8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004b22a8
push 1
push 0
push 0
mov ecx, esi
call fcn.004b2250
push 1
push 0
push 1
mov ecx, esi
call fcn.004b2250
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004b5c08
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4528b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4bfe08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004b5b96
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00452090
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004b5ac4
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4c35fc]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x452974
cmp dword [esp + 0x40], 1
jne 0x452972
cmp ecx, eax
jge 0x452974
mov eax, ecx
cmp eax, 0xc8
jge 0x452980
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00452730
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4c35f8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004b5c08
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x453170
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4bfeb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004b06c8
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x66d4a0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x66d3e8
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4c3158]
push eax
mov ecx, edi
call fcn.004b5e3e
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004b73d9
test eax, eax
je 0x45328c
mov ecx, dword [esp + 0x3c]
call fcn.004b5e6b
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4c361c]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x453250
push edi
mov ecx, esi
call fcn.004b3423
mov ecx, esi
call fcn.00453430
cmp dword [esp + 0x38], 1
jne 0x453285
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004b358d
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x455470
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4554a3
push esi
call fcn.00463830
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45549c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x455529
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x455512
mov eax, dword [esi + 8]
test eax, eax
je 0x4554c7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45550e
cmp eax, 2
je 0x455512
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4554ba
cmp eax, 3
je 0x4554ed
cmp eax, 1
jne 0x4554ba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4554ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4554ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00455550
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x455538
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00455550
add esp, 4
pop esi
ret
Function at 0x47a590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c09e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0047a140
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0047a1c0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0047a1c0
lea ecx, [esi + 0xc]
call fcn.004aef8c
lea ecx, [esi + 0x10]
call fcn.004aef8c
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0047b750
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0047b750
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0047b750
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004af001
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004af001
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x480280
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6d376c]
xor edx, edx
cmp eax, edx
jne 0x4802a6
xor eax, eax
mov byte [eax + 0x6d366c], al
inc eax
cmp eax, 0x100
jl 0x48028e
mov dword [0x6d376c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6d366c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x480337
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x48030a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4802d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x480340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x480393
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x48037a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x486d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c10be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00487640
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x670204
call fcn.004aed42
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x486db3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004aed42
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x486dac
push 0
mov ecx, eax
call fcn.0047deb0
mov dword [esi + 0xc], eax
jmp 0x486db5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x486db5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x401183
Capabilities:
Get number of processors
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fbc
push ebx
push esi
push edi
push edi
xor edi, 0x14ddc
add edi, 0xb34b
pop edi
push edi
or edi, 0x5d84
pop edi
push esi
or esi, 0x1c05
and esi, 0x8e57
pop esi
push ecx
add ecx, 0x657e
add ecx, 0x10ef5
pop ecx
mov eax, 0x4d
mov word [ebp - 0x1ef4], ax
mov ecx, 0x42
mov word [ebp - 0x1ef2], cx
mov edx, 0x53
mov word [ebp - 0x1ef0], dx
mov eax, 0x65
mov word [ebp - 0x1eee], ax
mov ecx, 0x72
mov word [ebp - 0x1eec], cx
mov edx, 0x76
mov word [ebp - 0x1eea], dx
mov eax, 0x69
mov word [ebp - 0x1ee8], ax
mov ecx, 0x63
mov word [ebp - 0x1ee6], cx
mov edx, 0x65
mov word [ebp - 0x1ee4], dx
mov eax, 0x2e
mov word [ebp - 0x1ee2], ax
mov ecx, 0x65
mov word [ebp - 0x1ee0], cx
mov edx, 0x78
mov word [ebp - 0x1ede], dx
mov eax, 0x65
mov word [ebp - 0x1edc], ax
xor ecx, ecx
mov word [ebp - 0x1eda], cx
mov dword [ebp - 0xfac], 1
push edx
push edi
add esp, 4
or edx, 0x164c8
add edx, 0xccb5
pop edx
push edx
push eax
add esp, 4
sub edx, 0x22a3
xor edx, 0x5e83
jmp 0x40129b
jmp 0x4012a1
pop edx
imul edx, dword [ebp - 0xfac], 0x138
add edx, 0x44f3644b
imul eax, dword [ebp - 0xfac], 0x138
sub edx, eax
xor edx, 0xabe912
imul edx, dword [ebp - 0xfac]
imul ecx, dword [ebp - 0xfac], 0x138
sub edx, ecx
mov dword [ebp - 0xfb0], edx
push ebx
push eax
add esp, 4
and ebx, 0xa54c
add ebx, 0x58f6
call fcn.004012fd
add byte [esi], dh
inc esi
inc edx
dec esi
inc ebp
inc ecx
Function at 0x289c3fe
Capabilities:
Encode data using xor

Disassembly:
xchg ebp, eax
lodsd eax, dword [esi]
int1
arpl cx, dx
mov ah, 0xe2
aad 0xb1
sub dword [edi], 0x898b3f8e
retf
call 0x1823ef8
loopne 0x182486e
xchg ecx, eax
dec edi
movsd dword es:[edi], dword [esi]
mov cl, byte [eax + 0x33]
add ebp, 0xfffffff5
xchg esp, eax
xchg byte [ebp + esi - 0x29], ah
pushfd
jb 0x1824968
jmp 0x1878f78
xor dword [edx + edx*2 + 0x43], ebx
out dx, eax
mov word [eax + 0x7c], es
xchg esp, eax
mov eax, 0xffa202dd
sbb al, 0xdc
out 0xe1, eax
jmp 0x1d398bfc
push 0x4a
jbe 0x1824940
dec esp
jp 0x18249e4
jmp edi
push ds
adc dl, byte [edx + ebp - 0x626211b2]
and ebp, esp
pop ecx
in eax, 0x59
clc
xchg edx, eax
mov byte [0x73276533], al
not byte [ebp + 0x35]
imul ebp, dword [ecx + edi*2], 0x27
daa
jae 0x18249dd
push ebp
xor eax, 0x27792c6b
adc ecx, dword [eax - 0x18]
mov ecx, 0x57eaed59
mov dh, 2
pushal
pop ebp
or eax, dword [edi]
mov ecx, 0x995215b7
xor byte [ecx + 0x44], dh
jb 0x18249d4
mov al, byte [0xe2075f24]
rep lodsd eax, dword [esi]
cmpsb byte [esi], byte es:[edi]
invalid
mov edi, 0xf6553bdb
dec edx
aam 0x92
sub ecx, ebx
adc eax, 0xca94fbf4
cmp dword [edx], esp
xchg byte [ecx + 0x54], cl
std
invalid
push esi
lea esp, [esp + 8]
jne 0x289e381
sets al
seto ah
mov eax, dword [edx + 8]
pushal
push dword [esp]
lea esp, [esp + 0x24]
jmp 0x289e5ff
pushfd
stc
pushfd
add ecx, 0xffffffff
pushal
push dword [esp]
pushfd
lea esp, [esp + 0x30]
jne 0x18248d9
je 0x289e5f2
pushfd
pushfd
add edx, 0x11c
mov byte [esp + 4], ah
pushal
mov word [esp + 8], 0xc6a1
mov dword [esp + 8], 0x203dfc4f
lea esp, [esp + 0x28]
jmp 0x28ba327
pop edx
add byte [eax], al
into
lea edx, [ebx + 4]
call fcn.015a0891
loopne 0x28ba2bc
xchg ecx, eax
dec edi
xchg esp, eax
mov cl, byte [eax + 0x33]
inc ecx
arpl word [esi - 0x5c], si
mov word [ebx + edi + 0x27], fs
pushfd
leave
ja 0x28ba323
xor byte [esi], 5
add byte [0x33ba1a23], ch
add al, 0xc5
push 0x7a7c5d89
pop ebp
jl 0x28ba3ca
jg 0x28ba34d
invalid
cmp dword [esi - 0x43], esi
ret 0x8416
Function at 0x28bb53c
Capabilities:
Encode data using xor

Disassembly:
cmc
cmp ah, 0x7e
pushfd
test cx, 0xc468
cmp ecx, dword [ebp - 4]
push 0xbcce59c5
call fcn.028b9399
stc
cmc
call fcn.01823d77
pushal
mov dword [esp + 0x1c], 0x40a298e
call fcn.01826dd3
mov word [esp + 8], cx
lea esp, [esp + 0x3c]
ja 0x28a0ca2
push ebx
push dword [esp]
lea esp, [esp + 8]
and al, 0x8d
and al, 8
jb 0x28b9a41
pushfd
cmp byte [edi - 1], 0
pushal
pushfd
call fcn.028a6699
jbe 0x28bb5b4
dec edx
out dx, al
add bl, byte [esi - 0x40]
pop ecx
stosb byte es:[edi], al
invalid
fcomp dword [edx - 0x3c]
stosd dword es:[edi], eax
inc cl
lodsb al, byte [esi]
sub byte [edi], bl
inc ebp
or byte [edx + ecx*2 + 5], bl
loop 0x28bb54e
mov byte [edi - 0x44f3a612], cl
inc ebx
nop
test edx, esp
pop ebx
pop eax
cmp bh, byte [eax - 0x66b9b9da]
mov bl, 0x8a
add byte [eax + 0x50], ah
cmp dword [edi + 0x27], ebp
sbb eax, 0x50a2f490
fistp qword [ecx + 0x329b1f74]
push edx
out dx, al
mov ch, 0x12
and ah, byte [edi + 0x7ad24212]
push ebp
in eax, dx
mov cl, dl
mov al, byte [0x2c89368a]
xchg ebx, eax
mov dword ss:[ebx + edx*4], ebp
je 0x28bb60f
xor dl, byte [edi + 0x37]
pop ebp
sar dword [ebp + 0x48267219], 1
cmc
xchg ebx, eax
stc
xchg ecx, eax
mul dword [ebp - 0x14]
in al, dx
push ebx
pop edx
cmp ch, byte [ebx + 0xb]
pop ebp
or eax, 0x16ec4cef
xchg edi, edx
adc al, 0xce
pop ecx
cmp al, 0x6a
cmp ecx, dword [edi]
sti
aad 0x70
aas
pop ebx
or eax, 0x58a3cc2f
xor ebp, dword [ebp + 0x4cfb8814]
cmpsd dword [esi], dword es:[edi]
cmp dword [eax + 0xc6f8f69], esp
imul edx, dword [edi], 0x22ed407e
jns 0x28bb5f9
xor dl, byte [eax + ebp*2 + 0x33]
mov eax, dword [0xe1243b3e]
mov eax, 0x94c9a6f0
sbb al, 0xe5
pop ebp
push es
dec ebx
sbb al, 0x93
xor bl, byte [eax + 0x5f]
hlt
Function at 0x405480
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546178
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x595978]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x405508
cmp dword [ebx + 0x14], 8
jb 0x4054c6
mov eax, dword [ebx]
jmp 0x4054c8
mov eax, ebx
push 0x24
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x405501
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4054fa
cmp dword [ebp - 0x28], 1
je 0x4054fa
lea ecx, [ebp - 0x2c]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str..exe
lea edx, [ebp - 0x2c]
push ebx
push edx
call fcn.00416c70
add esp, 0xc
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00408df0
cmp dword [ebp - 0x18], 8
jb 0x40553a
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049cf83
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049cc86
mov esp, ebp
pop ebp
ret
Function at 0x40b010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544058
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x595978]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x40b051
xor eax, eax
jmp 0x40b1ea
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
xor eax, eax
cmp edx, eax
je 0x40b07f
mov ecx, dword [esi + 0x34]
mov ebx, dword [ecx]
lea ebx, [edx + ebx*2]
cmp edx, ebx
jae 0x40b07f
dec dword [ecx]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x40b1ea
cmp dword [esi + 0x54], eax
je 0x40b1e5
mov edx, dword [esi + 0x10]
lea ebx, [esi + 0x48]
cmp dword [edx], ebx
jne 0x40b0a8
mov ecx, dword [esi + 0x40]
mov ebx, dword [esi + 0x3c]
mov dword [edx], ebx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov edx, dword [esi + 0x30]
sub ecx, ecx
sar ecx, 1
mov dword [edx], ecx
cmp dword [esi + 0x44], eax
jne 0x40b0d2
mov esi, dword [esi + 0x54]
push esi
push edi
call fcn.0049e40f
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x40b1ea
mov eax, ecx
jmp 0x40b1ea
movzx edx, di
mov ecx, 0xf
mov dword [ebp - 0x30], edx
mov edx, eax
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x40b0fa
lea edx, [ebp - 0x2c]
mov byte [edx + 8], al
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40b112
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x2e]
push edx
mov edx, dword [edi + 0x14]
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call edx
test eax, eax
js 0x40b1dd
cmp eax, 1
jg 0x40b1a5
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40b152
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, ecx
je 0x40b17b
cmp ebx, 0x10
jae 0x40b161
lea eax, [ebp - 0x2c]
mov ecx, dword [esi + 0x54]
push ecx
push edi
push 1
push eax
call fcn.0049eb00
add esp, 0x10
cmp edi, eax
jne 0x40b1dd
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
mov byte [esi + 0x4a], 1
cmp dword [ebp - 0x38], edx
jne 0x40b1cf
test edi, edi
jne 0x40b106
cmp dword [ebp - 0x1c], 0x20
lea ecx, [ebp - 0x2c]
jae 0x40b1e0
push edi
push 8
call fcn.0040d0d0
jmp 0x40b100
cmp eax, 3
jne 0x40b1dd
mov eax, dword [esi + 0x54]
mov ecx, dword [ebp - 0x30]
call fcn.00403420
movzx esi, word [ebp + 8]
test al, al
jne 0x40b1c2
mov esi, 0xffff
lea ecx, [ebp - 0x2c]
call fcn.00408f80
mov ax, si
jmp 0x40b1ea
lea ecx, [ebp - 0x2c]
call fcn.00408f80
mov ax, word [ebp + 8]
jmp 0x40b1ea
lea ecx, [ebp - 0x2c]
call fcn.00408f80
mov eax, 0xffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049cc86
mov esp, ebp
pop ebp
ret 4
Function at 0x40e410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544758
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x595978]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40e53b
cmp byte [edi + 0x4a], bl
je 0x40e53b
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
mov ecx, edi
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x40e52f
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x40e48f
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40e4a7
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x40e4d0
dec eax
je 0x40e4d4
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x40e52a
jmp 0x40e536
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40e4e4
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x40e50d
cmp ebx, 0x10
jae 0x40e4f3
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0049eb00
add esp, 0x10
cmp esi, eax
jne 0x40e527
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x40e533
test esi, esi
jne 0x40e49b
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040d0d0
jmp 0x40e495
lea ecx, [ebp - 0x2c]
call fcn.00408f80
xor al, al
jmp 0x40e53d
lea ecx, [ebp - 0x2c]
call fcn.00408f80
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049cc86
mov esp, ebp
pop ebp
ret
Function at 0x40ed80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544728
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x595978]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40eea1
cmp byte [edi + 0x49], bl
je 0x40eea1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x40ee95
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x40edf5
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40ee0d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40ee36
dec eax
je 0x40ee3a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x40ee90
jmp 0x40ee9c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40ee4a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x40ee73
cmp ebx, 0x10
jae 0x40ee59
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0049eb00
add esp, 0x10
cmp esi, eax
jne 0x40ee8d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x40ee99
test esi, esi
jne 0x40ee01
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040d0d0
jmp 0x40edfb
lea ecx, [ebp - 0x2c]
call fcn.00408f80
xor al, al
jmp 0x40eea3
lea ecx, [ebp - 0x2c]
call fcn.00408f80
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049cc86
mov esp, ebp
pop ebp
ret