joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b9b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42b9be
and dword [esi], 0
and dword [ebp + 0x10], 0
xor eax, eax
inc eax
cmp dword [ebp + 0xc], 0
jbe 0x42b9fa
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
jae 0x42b9d8
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 8]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x42b9fa
mov ecx, dword [ebp + 0x10]
add dword [esi], ecx
test eax, eax
setne al
push eax
call fcn.0040e0ea
pop ecx
pop esi
pop ebp
ret 0xc

Function at 0x42f2c4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
push edi
mov edi, dword [ebp + 8]
jb 0x42f410
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + ecx - 4]
push ebx
mov dword [ebp - 8], ecx
push esi
lea esi, [eax + edi]
jmp 0x42f300
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x42f305
inc esi
cmp esi, dword [ebp - 8]
jb 0x42f2f7
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
jae 0x42f3f1
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x42f384
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x42f331
cmp cl, 0xff
jne 0x42f3b3
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
sub edi, eax
sub edi, dword [ebp + 0xc]
test edx, edx
mov ebx, edi
mov dword [ebp - 0xc], ebx
je 0x42f3c4
movzx edi, byte [edx + 0x444c08]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
shr ebx, cl
test bl, bl
je 0x42f374
cmp bl, 0xff
jne 0x42f3c1
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, dword [ebp - 0xc]
jmp 0x42f34c
dec ecx
shl edx, cl
and edx, 7
je 0x42f31e
movzx ecx, byte [edx + 0x444c08]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x444c00], 0
mov cl, byte [ebx + 4]
je 0x42f3b0
test cl, cl
je 0x42f3b0
cmp cl, 0xff
jne 0x42f31e
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x42f2f2
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x42f2f2
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
pop edi
leave
ret

Function at 0x42f5c7
Capabilities:
Hash data using sha256

Disassembly:
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret
Function at 0x42f8ae
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
movzx ecx, byte [eax + str.cw]
mov byte [ecx + 0x454ff8], al
inc eax
cmp eax, 0x100
jb 0x42f8b6
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov esi, 0xff
movzx ebx, byte [edi + str.cw]
mov eax, ebx
and al, 0x80
neg al
lea ecx, [ebx + ebx]
sbb eax, eax
and eax, 0x1b
xor eax, ecx
and eax, esi
mov ecx, eax
mov edx, ecx
xor edx, ebx
mov dword [ebp - 8], edx
shl edx, 8
or edx, ebx
shl edx, 8
or edx, ebx
shl edx, 8
or edx, ecx
mov eax, edi
shl eax, 2
mov dword [eax + 0x452ff8], edx
mov edx, ebx
shl edx, 8
mov edi, edx
or edi, ebx
or edx, ecx
shl edi, 8
or edi, ecx
shl edx, 8
or edx, dword [ebp - 8]
shl edi, 8
or edi, dword [ebp - 8]
shl ecx, 8
or ecx, dword [ebp - 8]
shl edx, 8
shl ecx, 8
mov dword [eax + 0x4533f8], edi
mov edi, dword [ebp - 0x10]
movzx ebx, byte [edi + str.cw]
or edx, ebx
or ecx, ebx
mov dword [eax + 0x4537f8], edx
shl ecx, 8
or ecx, ebx
mov dword [eax + 0x453bf8], ecx
movzx ecx, byte [edi + 0x454ff8]
mov edx, ecx
and dl, 0x80
neg dl
lea ebx, [ecx + ecx]
mov dword [ebp - 0x18], ecx
sbb edx, edx
and edx, 0x1b
xor edx, ebx
and edx, esi
mov ebx, edx
and bl, 0x80
neg bl
mov dword [ebp - 0x10], edx
sbb ebx, ebx
and ebx, 0x1b
add edx, edx
xor ebx, edx
and ebx, esi
mov edx, ebx
and bl, 0x80
neg bl
mov dword [ebp - 0x14], edx
sbb ebx, ebx
add edx, edx
and ebx, 0x1b
xor ebx, edx
and ebx, esi
mov edx, ebx
xor edx, ecx
mov dword [ebp - 8], edx
mov edx, ebx
xor edx, dword [ebp - 0x10]
xor edx, ecx
mov dword [ebp - 0xc], edx
shl edx, 8
mov ecx, ebx
xor ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
xor ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
or edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x10]
shl edx, 8
or edx, dword [ebp - 8]
shl edx, 8
or edx, ecx
mov dword [eax + 0x453ff8], edx
mov edx, dword [ebp - 4]
shl edx, 8
or edx, dword [ebp - 8]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, dword [ebp - 0xc]
mov dword [eax + 0x4543f8], edx
mov edx, dword [ebp - 8]
shl edx, 8
or edx, ecx
shl ecx, 8
or ecx, dword [ebp - 0xc]
shl edx, 8
or edx, dword [ebp - 0xc]
shl ecx, 8
or ecx, dword [ebp - 4]
shl edx, 8
or edx, dword [ebp - 4]
shl ecx, 8
or ecx, dword [ebp - 8]
inc edi
cmp edi, 0x100
mov dword [eax + 0x4547f8], edx
mov dword [eax + 0x454bf8], ecx
mov dword [ebp - 0x10], edi
jb 0x42f8d8
mov dword [0x4563e8], 0x430423
mov dword [0x4563f0], 0x43047c
mov dword [0x4563ec], 0x4304ff
call fcn.0040fe83
test eax, eax
pop edi
pop esi
pop ebx
je 0x42fa88
mov dword [0x4563e8], 0x431114
mov dword [0x4563f0], 0x431119
mov dword [0x4563ec], 0x43111e
leave
ret
Function at 0x42fa8a
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 0x1c]
shr eax, 2
mov esi, eax
shr esi, 1
add esi, 3
mov dword [ecx], esi
add ecx, 0x10
xor esi, esi
test eax, eax
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], eax
jbe 0x42fac1
mov ebx, dword [edx]
mov dword [ecx + esi*4], ebx
inc esi
add edx, 4
cmp esi, eax
jb 0x42fab4
cmp esi, edi
jae 0x42fb91
mov edx, esi
sub edx, eax
lea eax, [ecx + edx*4]
mov dword [ebp - 4], eax
xor edx, edx
mov eax, esi
div dword [ebp + 8]
mov ebx, dword [ecx + esi*4 - 4]
test edx, edx
mov dword [ebp - 8], eax
jne 0x42fb31
mov edi, 0xff
mov eax, ebx
and eax, edi
mov dh, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
mov dl, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x10
and eax, edi
movzx eax, byte [eax + str.cw]
mov edi, dword [ebp - 8]
movzx edi, byte [edi + 0x44f430]
shl edx, 8
or edx, eax
movzx eax, bh
movzx eax, byte [eax + str.cw]
shl edx, 8
xor eax, edi
or edx, eax
mov ebx, edx
jmp 0x42fb79
cmp dword [ebp + 8], 6
jbe 0x42fb79
cmp edx, 4
jne 0x42fb79
mov eax, ebx
shr eax, 0x10
mov edi, 0xff
and eax, edi
movzx eax, byte [eax + str.cw]
mov edx, ebx
shr edx, 0x18
mov ah, byte [edx + str.cw]
movzx edx, bh
movzx edx, byte [edx + str.cw]
shl eax, 8
and ebx, edi
or eax, edx
movzx edx, byte [ebx + str.cw]
shl eax, 8
or eax, edx
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add dword [ebp - 4], 4
xor eax, ebx
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x42fad3
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x430d8a
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, eax
push edi
lea edi, [esi + 4]
mov eax, edi
call fcn.004307e4
test al, al
je 0x430da1
pop edi
xor al, al
pop esi
ret
push 0xc
call fcn.004322be
test eax, eax
pop ecx
je 0x430dbc
push esi
push 0x430d3d
mov esi, eax
call fcn.0040ee51
jmp 0x430dbe
xor eax, eax
push ebx
mov ebx, eax
call fcn.0040bf72
mov eax, edi
call fcn.00414c13
pop ebx
pop edi
pop esi
jmp fcn.0040eefc

Function at 0x43223b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44e4f8]
jne 0x432245
repz ret
jmp fcn.004350c9

Function at 0x435a90
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x44e510]
je 0x435aab
inc edi
cmp edi, 0x17
jb 0x435a9c
cmp edi, 0x17
jae 0x435c2b
push ebp
push 3
call fcn.0043b73e
cmp eax, 1
pop ecx
je 0x435bf7
push 3
call fcn.0043b73e
test eax, eax
pop ecx
jne 0x435adf
cmp dword [0x44e0f0], 1
je 0x435bf7
cmp ebx, 0xfc
je 0x435c2a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4523d8
push ebp
call fcn.004387ca
add esp, 0xc
test eax, eax
je 0x435b15
push esi
push esi
push esi
push esi
push esi
call fcn.00431f98
add esp, 0x14
push 0x104
mov esi, 0x4523f1
push esi
push 0
mov byte [0x4524f5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x435b59
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004387ca
add esp, 0xc
test eax, eax
je 0x435b59
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00431f98
add esp, 0x14
push esi
call fcn.004321b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x435b9e
push esi
call fcn.004321b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4526ec
push 0x441a74
sub ecx, eax
push ecx
push eax
call fcn.00436636
add esp, 0x14
test eax, eax
je 0x435b9e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00431f98
add esp, 0x14
jmp 0x435ba0
xor esi, esi
push 0x441a70
push ebx
push ebp
call fcn.0043b6cd
add esp, 0xc
test eax, eax
je 0x435bc0
push esi
push esi
push esi
push esi
push esi
call fcn.00431f98
add esp, 0x14
push dword [edi*8 + 0x44e514]
push ebx
push ebp
call fcn.0043b6cd
add esp, 0xc
test eax, eax
je 0x435be2
push esi
push esi
push esi
push esi
push esi
call fcn.00431f98
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043b510
add esp, 0xc
jmp 0x435c2a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x435c2a
cmp ebp, 0xffffffff
je 0x435c2a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44e514]
push dword [esi]
call fcn.004321b0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43b510
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00434a4c
xor ebx, ebx
cmp dword [0x452b14], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43b5e6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43b6c6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43b6c6
push eax
call fcn.004349de
mov dword [esp], 0x4422f0
push edi
mov dword [0x452b14], eax
call esi
push eax
call fcn.004349de
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x452b18], eax
call esi
push eax
call fcn.004349de
mov dword [0x452b1c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043552a
test eax, eax
pop ecx
pop ecx
je 0x43b5b4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00431f98
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43b5e6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004349de
cmp eax, ebx
pop ecx
mov dword [0x452b24], eax
je 0x43b5e6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004349de
pop ecx
mov dword [0x452b20], eax
mov eax, dword [0x452b20]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43b66b
cmp dword [0x452b24], ecx
je 0x43b66b
push eax
call fcn.00434a55
push dword [0x452b24]
mov esi, eax
call fcn.00434a55
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43b66b
cmp edi, ebx
je 0x43b66b
call esi
cmp eax, ebx
je 0x43b638
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43b638
test byte [ebp - 0x18], 1
jne 0x43b66b
lea eax, [ebp - 0x10]
push eax
call fcn.00435561
test eax, eax
pop ecx
je 0x43b653
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00431f98
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43b662
or dword [ebp + 0x10], 0x200000
jmp 0x43b6a6
or dword [ebp + 0x10], 0x40000
jmp 0x43b6a6
mov eax, dword [0x452b18]
cmp eax, dword [ebp - 8]
je 0x43b6a6
push eax
call fcn.00434a55
cmp eax, ebx
pop ecx
je 0x43b6a6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43b6a6
mov eax, dword [0x452b1c]
cmp eax, dword [ebp - 8]
je 0x43b6a6
push eax
call fcn.00434a55
cmp eax, ebx
pop ecx
je 0x43b6a6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x452b14]
call fcn.00434a55
cmp eax, ebx
pop ecx
je 0x43b6c6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43b6c8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100010cc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x100010de
mov eax, dword [0x1000f08b]
shl eax, 2
mov dword [0x1000f08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.10005694
pop edx
call fcn.10004a30
call fcn.10005698
push 0
call fcn.1000694c
pop ecx
push 0x1000f034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x1000f093], eax
push 0
jmp fcn.1000a720

Function at 0x10001430
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [0x1004f37c]
mov edx, dword [0x1004f384]
lea ecx, [ebp - 0x224]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x1004f380]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [0x1004f388]
mov dword [0x10053628], 1
mov dword [ebp - 0x18], edx
push 0x208
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10001574
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
push 2
push 0
push 0xfffffffffffffff8
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 4]
push 0
push eax
lea edx, [ebp - 0x14]
push 8
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x100014df
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x10001576
push 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
push ecx
call fcn.10005b40
add esp, 0xc
test eax, eax
je 0x100014f9
xor eax, eax
jmp 0x10001576
push 2
push 0
push 0xfffffffffffffff4
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 4]
push edx
push 4
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x10001522
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x10001576
push 4
push 0x1000
mov edx, dword [esi]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x1004f378], eax
mov eax, edi
sub eax, dword [esi]
sub eax, 0xc
push 0
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 4]
push 0
push edx
mov eax, dword [0x1004f378]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x1000156d
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x10001576
mov eax, 1
jmp 0x10001576
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100032ac
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x14]
add eax, dword [ebp + 0xc]
add eax, 0x18
xor ecx, ecx
jmp 0x100032e0
mov edx, dword [eax + 8]
test edx, edx
jne 0x100032cf
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x100032dc
add edx, esi
cmp ebx, edx
jb 0x100032ed
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x100032c5
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x10003328
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x10003342
xor eax, eax
jmp 0x100034c2
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x10003356
xor eax, eax
jmp 0x100034c2
cmp word [ebx + 0x14], 0xe0
jne 0x10003366
cmp word [ebx + 0x18], 0x10b
je 0x1000336d
xor eax, eax
jmp 0x100034c2
mov dword [0x1005342c], edi
mov ebx, dword [edi + 0x3c]
mov esi, edi
add ebx, esi
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
push ebx
mov edx, dword [ebp - 0x18]
push edx
call fcn.100032ac
add esp, 8
test eax, eax
jne 0x10003398
xor eax, eax
jmp 0x100034c2
mov edx, dword [0x1005342c]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.100032f4
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x100033ca
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x100034c2
add ebx, esi
mov edx, dword [ebx + 0x24]
add edx, esi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x20]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x10
test cx, cx
je 0x10003494
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x10003486
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x10003481
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 0x1c], edx
jmp 0x10003478
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x1000346d
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x1000346d
test cl, cl
je 0x10003462
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x1000346d
add eax, 2
add edx, 2
test cl, cl
jne 0x10003446
jne 0x1000346d
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x100034c2
inc dword [ebp - 0x14]
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 2
mov edx, dword [ebx + 0x18]
dec edx
cmp edx, dword [ebp - 0x14]
jae 0x1000342c
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x10003404
jmp 0x100034c0
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x100034b8
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x100034b4
cmp dword [eax], 0
je 0x100034b4
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x100034c2
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x1000349b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100035d4
Capabilities:
Query service status

Disassembly:
push ebx
add esp, 0xffffffe4
push 0xf003f
push str.ServicesActive
push 0
call sub.ADVAPI32.DLL_OpenSCManagerA
test eax, eax
jne 0x100035f1
xor eax, eax
jmp 0x1000362e
push 0xf01ff
push str.NTice
push eax
call sub.ADVAPI32.DLL_OpenServiceA
mov ebx, eax
push esp
push ebx
call sub.ADVAPI32.DLL_QueryServiceStatus
test eax, eax
jne 0x10003618
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
xor eax, eax
jmp 0x1000362e
cmp dword [esp + 4], 4
jne 0x1000362c
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, 1
jmp 0x1000362e
xor eax, eax
add esp, 0x1c
pop ebx
ret

Function at 0x10003690
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x100036a9
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x100036b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call sub.KERNEL32.DLL_GetCurrentProcessId
push eax
push 1
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
push 0
push eax
call sub.KERNEL32.DLL_TerminateProcess
pop ebp
ret
Function at 0x100036d0
Capabilities:
Enumerate process modules
Enumerate processes
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
mov ecx, 0x4a
push eax
add esp, 0xfffffc30
push ebx
push esi
push edi
lea edi, [ebp - 0x238]
mov ebx, dword [ebp + 8]
push esi
mov esi, 0x1004f974
rep movsd dword es:[edi], dword [esi]
pop esi
push ebx
call fcn.10003668
pop ecx
test eax, eax
je 0x1000370c
push ebx
call fcn.100036b0
pop ecx
mov dword [ebp - 0x2cc], 0x94
lea eax, [ebp - 0x2cc]
push eax
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [ebp - 0x2bc], 1
jne 0x1000374a
push ebx
call fcn.10003544
pop ecx
test eax, eax
jne 0x10003741
push ebx
call fcn.1000357c
pop ecx
test eax, eax
je 0x10003767
push ebx
call fcn.100036b0
pop ecx
jmp 0x10003767
push ebx
call fcn.10003690
pop ecx
test eax, eax
jne 0x10003760
push ebx
call fcn.10003634
pop ecx
test eax, eax
je 0x10003767
push ebx
call fcn.100036b0
pop ecx
mov dword [ebp - 0x238], 0x128
call sub.KERNEL32.DLL_GetCurrentProcessId
mov edi, eax
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [ebp - 0x238]
push eax
push ebx
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x100037d3
jmp 0x100037c2
push str.explorer.exe
lea edx, [ebp - 0x214]
push edx
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x100037b4
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 4], ecx
cmp edi, dword [ebp - 0x230]
jne 0x100037c2
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x238]
push eax
push ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x10003796
cmp esi, dword [ebp - 4]
je 0x100037f8
cmp dword [ebp - 4], 0
je 0x100037f8
push esi
push 1
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
push 0
push eax
call sub.KERNEL32.DLL_TerminateProcess
jmp 0x100038d6
xor edx, edx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0xc], edx
push 0x105
push ecx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x1004fb19
lea eax, [ebp - 0x110]
push eax
call sub.KERNEL32.DLL_lstrcatA
push str.EXPLORER.EXE
lea edx, [ebp - 0x110]
push edx
call sub.KERNEL32.DLL_lstrcatA
push esi
push 0
push 0x410
call sub.KERNEL32.DLL_OpenProcess
mov edi, eax
test edi, edi
je 0x100038d6
lea eax, [ebp - 8]
lea edx, [ebp - 0x12cc]
push eax
push 0x1000
push edx
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x100038b2
xor esi, esi
lea ebx, [ebp - 0x12cc]
jmp 0x100038a8
push 0x104
lea eax, [ebp - 0x13d0]
push eax
mov edx, dword [ebx]
push edx
push edi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x100038a4
lea ecx, [ebp - 0x13d0]
push ecx
lea eax, [ebp - 0x110]
push eax
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x100038a4
mov dword [ebp - 0xc], 1
jmp 0x100038b2
inc esi
add ebx, 4
mov edx, dword [ebp - 8]
shr edx, 2
cmp esi, edx
jb 0x1000386b
push edi
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0xc], 0
jne 0x100038d6
mov ecx, dword [ebp - 4]
push ecx
push 1
push 0x1f0fff
dec dword [edi]
pop ds
add al, ch
cwde
mov dl, 0
add byte [edx], ch