joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004010a0
add esp, 8
push 0x4018e0
mov edx, dword [0x4042c0]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00401d10
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
call fcn.00401950
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401086
mov edx, dword [ebp - 4]
push edx
call fcn.00401170
add esp, 4
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x20
push eax
mov eax, dword [ebp - 4]
push eax
call sub.cgraph.dll_agwrite
add esp, 8
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x20
push eax
call dword [sym.imp.MSVCR90.dll_fflush]
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call sub.cgraph.dll_agclose
add esp, 4
jmp 0x40102e
push 0
call dword [sym.imp.MSVCR90.dll_exit]
mov esp, ebp
pop ebp
ret

Function at 0x401140
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [str.Usage:_gvcolor_______files__n_______print_usage_nIf_no_files_are_specified__stdin_is_used_n]
push eax
push 0x404094
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_exit]
pop ebp
ret
Function at 0x4020b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4042a0]
jne 0x4020ba
repz ret
jmp fcn.00402372
Function at 0x46c000
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ecx - 0x43], cl
dec ecx
mov ebp, 0x60301e45
js 0x46bfa0
dec ecx
mov ebp, 0x60301e45
js 0x46bfa0
dec esi
dec eax
mov eax, esp
dec ebp
loopne 0x46c05b
xor ecx, ecx
and ax, 0xf6b0
fcmovnb st(0), st(1)
inc ecx
mov cl, 0x40
dec eax
fxsave [eax]
dec eax
mov esi, dword [eax + 8]
dec ecx
dec ecx
dec esi
xor dword [esi + ecx*8 + 0x1a], ebp
dec ebp
test ecx, ecx
jne 0x46c021
mov ecx, 0x8884b356
jo 0x46bfb7
inc ebp
push ds
jno 0x46c06b
cmp eax, ecx
sbb al, 0x66
je 0x46c00c
push ebp
sub bl, dh
retf 0x7f2e
sar byte [edi - 0x12], 1
jmp 0x7a631185
pop ecx
lodsb al, byte [esi]
ret
Function at 0x50020c4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
push ebx
push esi
push edi
mov dword [ebp - 0x264], 0x72657375
mov dword [ebp - 0x260], 0x61746164
mov dword [ebp - 0x25c], 0x7275635c
mov dword [ebp - 0x258], 0x746e6572
mov dword [ebp - 0x254], 0x76726573
mov dword [ebp - 0x250], 0x692e7265
mov dword [ebp - 0x24c], 0x696e
and dword [ebp - 0x248], 0
lea eax, [ebp - 0x264]
mov dword [ebp - 0x244], eax
call 0x5002132
js 0xf059301f
add dl, byte [eax + 0x33]
add ecx, 2
jmp 0x500213d
push ecx
ret

Function at 0x5002f0a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push ebx
push esi
push edi
mov dword [ebp - 0x38], 0x32302e25
mov dword [ebp - 0x34], 0x302e2564
mov dword [ebp - 0x30], 0x2e256432
mov dword [ebp - 0x2c], 0x643230
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x18], eax
call 0x5002f45
js 0xf0593e32
add dl, byte [eax + 0x33]
add ecx, 2
jmp 0x5002f50
push ecx
ret

Function at 0x5003174
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 1
call fcn.05001df2
xor esi, esi
pop ecx
cmp eax, esi
je 0x50031b4
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x32423141
push ecx
push eax
mov dword [ebp - 8], 0x3343
mov dword [ebp - 4], esi
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x50031b4
push 0x7530
call fcn.05003913
cmp dword [0x50060f0], esi
jne 0x50031d0
push 0x50060f0
push esi
push esi
push 0x5001cf0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
leave
ret
Function at 0x40e46c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.0041aaf0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x40e687
push esi
call fcn.0041a7af
pop ecx
cmp eax, 0x7f6
jae 0x40e687
push edi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.0041a820
movzx ecx, word [esi]
add esp, 0xc
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x1c0
cmp cx, 0x22
jne 0x40e4c7
lea eax, [esi + 2]
mov dword [ebp - 0x38], eax
jmp 0x40e4ca
mov dword [ebp - 0x38], esi
xor eax, eax
cmp cx, bx
je 0x40e520
mov ecx, esi
cmp word [ecx], 0x22
jne 0x40e4f2
jmp 0x40e4e2
cmp word [esi + eax*2], 0x22
je 0x40e4eb
inc eax
cmp word [esi + eax*2], bx
jne 0x40e4db
jmp 0x40e4f2
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x40e50c
cmp word [esi + eax*2 + 2], 0x2f
je 0x40e50c
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x40e4d3
jmp 0x40e520
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x40e51a
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x40e52c
cmp word [eax], bx
jne 0x40e541
cmp byte [ebp + 0xc], bl
jne 0x40e541
cmp word [0x44287a], bx
je 0x40e541
mov dword [ebp - 0x34], 0x44287a
push dword [ebp - 0x38]
mov dword [ebp - 0x2c], 1
call fcn.0040a76a
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40e56d
push str..inf
push eax
call fcn.00411e60
test eax, eax
jne 0x40e56d
mov dword [ebp - 0x3c], 0x42a910
push dword [ebp - 0x38]
call fcn.004092a5
test al, al
je 0x40e596
push 0x800
lea eax, [ebp - 0x1048]
push eax
push dword [ebp - 0x38]
call fcn.0040a9cb
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40e686
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
mov edi, 0x3e8
cmp byte [0x441870], bl
jne 0x40e5cb
cmp byte [ebp + 0xc], bl
jne 0x40e5cb
cmp byte [0x44185d], bl
je 0x40e628
cmp dword [ebp + 8], ebx
je 0x40e5e7
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40e5e7
push ebx
push dword [ebp + 8]
call esi
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x10]
call fcn.0040d857
cmp byte [0x44185d], bl
je 0x40e628
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40e628
mov eax, dword [ebp - 0xc]
add eax, edi
cmp eax, dword [0x441860]
jbe 0x40e628
mov dword [0x441860], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x40e647
push 0x42a904
push dword [ebp - 8]
call fcn.00411e60
test eax, eax
je 0x40e675
cmp byte [0x441870], bl
je 0x40e660
cmp byte [ebp + 0xc], bl
jne 0x40e660
mov dword [0x441864], 0x1b58
jmp 0x40e675
xor eax, eax
cmp byte [ebp + 0xc], bl
sete al
dec eax
and eax, 0xfffffce0
add eax, edi
mov dword [0x441864], eax
cmp byte [ebp - 1], bl
je 0x40e686
cmp byte [ebp + 0xc], bl
je 0x40e686
push 1
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401f8a
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3b24
call fcn.0040db90
cmp dword [0x4140f8], 0
push ebx
push edi
je 0x4021d9
push dword [ebp + 8]
lea eax, [ebp - 0x279c]
push str._s_autorun.inf
push eax
call fcn.0040da16
lea eax, [ebp - 0x279c]
push eax
call fcn.004019c0
push dword [ebp + 8]
mov ebx, str._s1.taz
lea eax, [ebp - 0x279c]
push ebx
push eax
call fcn.0040da16
add esp, 0x1c
lea eax, [ebp - 0x8c]
push 0x1001
push eax
lea eax, [ebp - 0x279c]
push eax
call dword [0x4140f8]
mov edi, eax
cmp edi, 0xffffffff
je 0x4021d9
push esi
push 0xa
push 0xd
lea eax, [ebp - 0x1414]
push str._AutoRun__c_c
push eax
call fcn.0040da16
add esp, 0x10
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x1414]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x1414]
push eax
push edi
call dword [0x414108]
push 0xa
mov esi, str.zPharaoh.exe
push 0xd
push esi
lea eax, [ebp - 0x1414]
push str.ShellExecute_s_c_c
push eax
call fcn.0040da16
add esp, 0x14
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x1414]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x1414]
push eax
push edi
call dword [0x414108]
push 0xa
push 0xd
push esi
lea eax, [ebp - 0x1414]
push str.shellopencommand_s_c_c
push eax
call fcn.0040da16
add esp, 0x14
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x1414]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x1414]
push eax
push edi
call dword [0x414108]
push 0xa
push 0xd
push esi
lea eax, [ebp - 0x1414]
push str.shellexplorecommand_s_c_c
push eax
call fcn.0040da16
add esp, 0x14
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x1414]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x1414]
push eax
push edi
call dword [0x414108]
push 0xa
push 0xd
push esi
lea eax, [ebp - 0x1414]
push str.open_s_c_c
push eax
call fcn.0040da16
add esp, 0x14
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x1414]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x1414]
push eax
push edi
call dword [0x414108]
push edi
call dword [0x41409c]
mov edi, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 0x3b24]
push 0x410164
push eax
call fcn.0040da16
add esp, 0x10
lea eax, [ebp - 0x3b24]
push 7
push eax
call dword [0x414100]
push edi
lea eax, [ebp - 0x3b24]
push 0x410314
push eax
call fcn.0040da16
push 1
push 1
lea eax, [ebp - 0x3b24]
push esi
push eax
call fcn.004021dd
push edi
lea eax, [ebp - 0x279c]
push ebx
push eax
call fcn.0040da16
push edi
lea eax, [ebp - 0x3b24]
push str._s_autorun.inf
push eax
call fcn.0040da16
lea eax, [ebp - 0x3b24]
push eax
lea eax, [ebp - 0x279c]
push eax
call sub.MSVCRT.dll_rename
lea eax, [ebp - 0x3b24]
push eax
lea eax, [ebp - 0x279c]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x44
lea eax, [ebp - 0x279c]
push 7
push eax
call dword [0x414100]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, eax
push ebx
mov eax, dword fs:[0x18]
sub esp, 0x2c
mov dword [ebp - 0x1c], edx
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
je 0x4010c0
mov ebx, eax
mov eax, edx
or eax, 0xf01ff
test edx, 0x2000000
mov dword [ebx], 2
cmovne edx, eax
lea eax, [ebx + 4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 4], edx
mov dword [esp], eax
mov dword [esp + 4], 0x41abc8
call dword [sym.imp.ntdll.dll_RtlMapGenericMask]
sub esp, 8
mov dword [esp], esi
call fcn.00407810
lea edx, [esi + 0x80]
mov dword [ebx + 0x14], esi
lea eax, [ebx + 8]
mov dword [ebx + 8], edx
mov edx, dword [esi + 0x84]
mov dword [ebx + 0xc], edx
mov dword [edx], eax
mov dword [esi + 0x84], eax
mov dword [esp], esi
call fcn.00407830
mov dword [edi], ebx
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call fcn.00406da0
mov eax, 0x46a
jmp 0x4010b7
Function at 0x4010d0
Capabilities:
Check for peb beingdebugged flag
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [ebp - 0x20], edx
test eax, eax
je 0x401178
movzx ecx, word [eax]
mov ebx, eax
test cx, cx
je 0x401178
mov dword [ebp - 0x1c], 0
mov edx, eax
xor esi, esi
lea esi, [esi]
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401108
sub eax, edx
lea edi, [eax + 2]
sar eax, 1
add eax, 1
cmp cx, 0x2b
je 0x401160
add esi, eax
add edx, edi
movzx ecx, word [edx]
test cx, cx
jne 0x401100
xor ecx, ecx
test esi, esi
jne 0x40122d
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x60], ecx
test edx, edx
jne 0x401184
xor edx, edx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], edx
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [edx + 2], 0
je 0x401121
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax - 1]
mov dword [ebp - 0x1c], eax
jmp 0x401123
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x60], 0
jmp 0x401144
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
mov esi, dword fs:[0x18]
lea eax, [eax + eax + 2]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x24]
sub esp, 0xc
test eax, eax
mov edx, eax
je 0x4012c8
movzx ecx, word [ebx]
mov edi, eax
test cx, cx
je 0x4011f9
mov dword [ebp - 0x1c], eax
lea esi, [esi]
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4011d8
sub eax, ebx
lea esi, [eax + 2]
cmp cx, 0x2b
je 0x401208
add ebx, esi
movzx ecx, word [ebx]
test cx, cx
jne 0x4011d0
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov word [edi], ax
jmp 0x401146
cmp word [ebx + 2], 0
je 0x4011ec
xor edx, edx
lea esi, [esi]
movzx ecx, word [ebx + edx + 2]
mov word [edi + edx], cx
add edx, 2
test cx, cx
jne 0x401218
add edi, eax
jmp 0x4011ec
lea edx, [esi + esi + 2]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x4012e6
movzx edx, word [ebx]
test dx, dx
je 0x4012c4
mov dword [ebp - 0x24], eax
mov esi, ebx
mov edi, eax
nop
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401278
sub eax, esi
add eax, 2
cmp dx, 0x2b
jne 0x4012a8
add esi, eax
movzx edx, word [esi]
test dx, dx
jne 0x401270
mov ecx, dword [ebp - 0x24]
xor esi, esi
mov word [edi], si
jmp 0x401137
xor edx, edx
lea esi, [esi]
movzx ecx, word [esi + edx]
mov word [edi + edx], cx
add edx, 2
test cx, cx
jne 0x4012b0
add edi, eax
jmp 0x40128c
mov edi, eax
jmp 0x401299
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, 0xe
jmp 0x40114e
Function at 0x4012f0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x10
mov eax, dword [eax + 0x40]
cmp eax, dword [edx + 0x40]
je 0x401329
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, dword [esi + 0x44]
cmp eax, dword [ebx + 0x44]
je 0x401356
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, dword [esi + 0x50]
cmp eax, dword [ebx + 0x50]
je 0x401383
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, dword [esi + 0x54]
cmp eax, dword [ebx + 0x54]
je 0x4013b0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, dword [esi + 0x60]
cmp eax, dword [ebx + 0x60]
je 0x4013dd
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, dword [esi + 0x64]
cmp eax, dword [ebx + 0x64]
je 0x40140a
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x4014a0
Capabilities:
Get process heap flags

Disassembly:
lock sub dword [eax + 0x10], 1
je 0x4014b0
ret
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
mov edi, dword fs:[0x18]
sub esp, 0x1c
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebx + 0x14]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4015b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x24
mov eax, dword [eax]
cmp eax, 1
je 0x401612
cmp eax, 2
jne 0x40163b
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.00407810
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [edx + 4], eax
mov edx, dword [ebx + 8]
mov dword [eax], edx
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x4015fc
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov eax, dword [ebx + 0x18]
sub esp, 4
call fcn.004014a0
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.00407830
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.00406da0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret
test byte [section..data], 2
jne 0x401650
mov dword [esp], 6
call sub.rpcrt4.dll_RpcRaiseException
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.invalid_handle_type__d_n
mov dword [esp + 8], str.SC_RPC_HANDLE_destroy
mov dword [esp + 4], 0x419000
mov dword [esp], 1
call fcn.00401520
jmp 0x401644

Function at 0x401a30
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
mov eax, dword fs:[0x18]
sub esp, 0x2c
mov dword [esp + 8], 0x6c
mov dword [esp + 4], 8
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x401b0d
mov edx, dword [ebx + 0xc]
lea edi, [eax + 0xc]
mov dword [ebp - 0x1c], edi
mov dword [eax + 0x14], edx
mov edi, dword [esi + 0x14]
mov ecx, dword [esi + 0x68]
mov dword [eax + 0x38], edi
mov edi, dword [esi + 0x18]
mov dword [ebp - 0x20], ecx
mov dword [eax + 0x3c], edi
mov edi, dword [esi + 0x1c]
mov dword [eax + 0x40], edi
mov edi, dword [esi + 0x20]
mov dword [eax + 0x44], edi
mov edi, dword [esi + 0x24]
mov dword [eax + 0x48], edi
mov edi, dword [esi + 0x28]
mov dword [eax + 0x4c], edi
mov ecx, dword [esi + 0x2c]
mov dword [eax + 0x54], 0
mov dword [eax + 0x50], ecx
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x401ac3
test byte [esi + 0x14], 0xb
jne 0x401ac3
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x54], edx
mov esi, dword [eax + 0x3c]
mov edx, 1
mov dword [eax + 0x58], 0
mov dword [eax + 0x5c], 0
lea ecx, [esi - 1]
mov esi, dword [ebp - 0x1c]
mov dword [eax + 0x68], 0
shl edx, cl
mov dword [eax], 1
mov dword [eax + 0x64], edx
mov dword [eax + 4], 2
mov dword [eax + 8], esi
xchg dword [ebx + 0x14], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402000
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
test byte [section..data], 8
jne 0x4020b8
test ebx, ebx
je 0x40203a
cmp word [ebx], 0
jne 0x402108
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x402160
mov dword [eax], 1
mov eax, edi
or eax, 0xf003f
test edi, 0x2000000
cmovne edi, eax
lea eax, [ebx + 4]
mov dword [ebx + 4], edi
mov dword [esp], eax
mov dword [esp + 4], 0x41abd8
call dword [sym.imp.ntdll.dll_RtlMapGenericMask]
mov eax, dword [0x41d020]
sub esp, 8
mov dword [ebx + 8], eax
xor eax, eax
mov dword [esi], ebx
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, ebx
mov dword [ebp - 0x20], edx
call fcn.00401800
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
call fcn.00401800
mov dword [esp + 0x18], edi
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], str.__s___s___lx__n
mov dword [esp + 8], 0x41abb0
mov dword [esp + 4], 0x419000
mov dword [esp], 3
call fcn.00401520
jmp 0x40202c
mov edx, dword [sym.imp.kernel32.dll_lstrcmpW]
mov dword [esp + 4], str.ServicesFailed
mov dword [esp], ebx
mov dword [ebp - 0x1c], edx
call edx
mov ecx, eax
sub esp, 8
mov eax, 0x429
test ecx, ecx
je 0x4020a8
mov dword [esp + 4], str.ServicesActive
mov dword [esp], ebx
mov edx, dword [ebp - 0x1c]
call edx
mov edx, eax
sub esp, 8
mov eax, 0x7b
test edx, edx
je 0x40203a
jmp 0x4020a8
mov eax, 0x46a
jmp 0x4020a8