joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b61b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.005b6140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.005b6140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.005b6140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.005b6140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x5b6bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5b6c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x5c887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5b6c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5b6c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.004016ae
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x41f993
Capabilities:
Parse pe header

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

Function at 0x432150
Capabilities:
Parse pe header

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

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0xfc24d4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0xfd90ec
sub esp, 0x24
mov eax, dword [0x1086154]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0xc], eax
push edi
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0xfd9157
mov eax, dword [edi]
lea ecx, [esp + 0x18]
add eax, esi
push eax
call fcn.00fc2c18
push dword [esp + 0x10]
lea ecx, [esp + 0x1c]
call fcn.00fc7cd6
test al, al
jne 0xfd916e
lea ecx, [esp + 0x18]
add edi, 4
call fcn.00fc38cf
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0xfd9125
xor esi, esi
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00fc405e
add esp, 0x24
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov esi, dword [eax + esi]
lea ecx, [esp + 0x18]
call fcn.00fc38cf
jmp 0xfd9159

Function at 0xfc4ddd
Capabilities:
Encode data using xor

Disassembly:
jmp 0xfd9a49
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0xfd9b4a
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, 0x1089508
mov bl, byte [esi + edi]
push 0x106b5c8
push ebp
call fcn.00fc3d2f
xor edx, edx
mov eax, esi
div dword [esp + 0x24]
push 0x106b5d4
push 0x10895f0
mov bh, byte [edx + 0x108e004]
xor bh, bl
call fcn.00fc3d2f
push eax
call fcn.00fc7835
mov bl, byte [esi + edi]
push 0x106b5e4
push ebp
call fcn.00fc3d2f
push eax
call fcn.00fc7835
push 0x106b5fc
push ebp
call fcn.00fc3d2f
push eax
call fcn.00fc7835
push 0x106b60c
push ebp
call fcn.00fc3d2f
push eax
call fcn.00fc7835
add byte [esi + edi], bh
push 0x106b620
push ebp
call fcn.00fc3d2f
add esp, 0x40
push eax
call fcn.00fc7835
dec byte [esi + edi]
mov dword [esp], 0x106b640
push ebp
call fcn.00fc3d2f
add byte [esi + edi], 0xfe
push 0x106b64c
push ebp
call fcn.00fc3d2f
sub byte [esi + edi], bl
push 0x106b660
push ebp
call fcn.00fc3d2f
inc byte [esi + edi]
push 0x106b670
push ebp
call fcn.00fc3d2f
inc byte [esi + edi]
push 0x106b67c
push ebp
call fcn.00fc3d2f
inc byte [esi + edi]
push 0x106b688
push ebp
call fcn.00fc3d2f
add esp, 0x30
inc esi
cmp esi, dword [esp + 0x18]
jb 0xfd9a62
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0xfc6d31
Capabilities:
Parse pe header

Disassembly:
jmp 0x1001c20
push 0
call dword [0x108c114]
test eax, eax
je 0x1001c5f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001c5f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001c5f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001c5f
cmp dword [ecx + 0x74], 0xe
jbe 0x1001c5f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x404a42
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x404a51
pop dword [ebp - 0x50]
mov eax, 0x404a51
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x85e14511
sub dword [ebp - 0x60], 0x378effc6
mov dword [ebp - 0x5c], 0xf978aae5
sub dword [ebp - 0x5c], 0xc7455ea0
mov dword [ebp - 0x58], 0x82b28efa
sub dword [ebp - 0x58], 0x36664acc
mov dword [ebp - 0x54], 0x2c46c766
sub dword [ebp - 0x54], 0x2c46c766
lea eax, [ebp - 0x60]
push eax
mov eax, 0x97d526c8
sub eax, 0x9794567c
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x5eeb57c7
sub dword [ebp - 0x60], 0xea78ee71
mov dword [ebp - 0x5c], 0xbd1051a7
add dword [ebp - 0x5c], 0x845c0fce
mov dword [ebp - 0x58], 0x6fdb2b2e
add dword [ebp - 0x58], 0xf394413e
mov dword [ebp - 0x54], 0x4fe7d7b4
sub dword [ebp - 0x54], 0x4fe7d7b4
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x60353b72
sub eax, 0x5ff46b2a
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x37fa2
push 0
call eax
mov ecx, 0x4207
xor esi, esi
add esi, eax
mov edi, 0xc3d46c8f
sub edi, 0xc392bc8f
add edi, dword [ebp - 0x50]
mov edx, 0xb415c74
add edx, 0x4b91258a
sub dword [ebp - 0x30], ecx
mov ebx, dword [edi]
xor dword [ebp - 0x1c], 0xd43915de
sub ebx, edx
xor dword [ebp - 8], ebx
mov dword [esi], ebx
add esi, 0x980952dd
add esi, 0x67f6ad27
add edi, 4
loop 0x404b6a
add eax, 0xe0bf7f4e
sub eax, 0xe0be845f
xor ebx, ebx
add ebx, eax
add eax, 0xf56a5eb4
add eax, 0xa95a151
mov ecx, 0xe8b0b6bb
add ecx, 0x178f4945
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x402c00
pop dword [ebp - 0x14]
mov eax, 0x860672a3
sub eax, 0x85c646a3
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x630f73d8
sub dword [ebp - 0x24], 0x14bd2e8d
mov dword [ebp - 0x20], 0xfa6142b3
sub dword [ebp - 0x20], 0xc82df66e
mov dword [ebp - 0x1c], 0x992e7f4b
sub dword [ebp - 0x1c], 0x4ce23b1d
mov dword [ebp - 0x18], 0x1cee8d9
sub dword [ebp - 0x18], 0x1cee8d9
lea eax, [ebp - 0x24]
push eax
mov eax, 0x53b7d4f9
add eax, 0xac88ab93
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xaeb6cef2
add dword [ebp - 0x24], 0xc5bb9a64
mov dword [ebp - 0x20], 0xd890dbd5
sub dword [ebp - 0x20], 0x97247a60
mov dword [ebp - 0x1c], 0xdc3ec037
add dword [ebp - 0x1c], 0x8730ac35
mov dword [ebp - 0x18], 0xa19ef6c
add dword [ebp - 0x18], 0xf5e61094
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x8f27b798
add eax, 0x7118c93c
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x396d6
push 0
call eax
mov ecx, 0x9ebae6b3
sub ecx, 0x9eba93bf
xor esi, esi
add esi, eax
mov edx, 0x411000
add edx, dword [ebp - 0x14]
mov edi, 0x8406844d
xor dword [ebp - 8], esi
mov ebx, dword [edx]
add ebx, edi
mov dword [ebp - 0x10], 0x9e904c82
mov dword [esi], ebx
xor dword [ebp - 4], ecx
add esi, 0xec79bed2
add esi, 0x13864132
add edx, 0x936486a2
add edx, 0x6c9b7962
loop 0x402d18
add eax, 0xf518a097
add eax, 0xae89e0c
mov ebx, eax
add eax, 0xbd31b7d0
add eax, 0x42ce4835
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x414fb0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x41515a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 0xf
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 8
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x64
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xa5
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xb0
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x13
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xb0
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x53
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x36
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xbe
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x1c
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x8e
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x3f
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xb5
add esp, 0x30
inc esi
cmp esi, edi
jb 0x414fd0
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x453329
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45333a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405920
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c7e2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c7f3
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c6c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c81b
push ebx
push esi
push edi
call fcn.00405713
add esp, 0xc
push 0
call fcn.00406262
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x1013f627
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x103c8580
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x1043c27c], 1
jge 0x103c85ef
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x103c85c5
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x103c85c5
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x103c85a2
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x103c85db
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x103c85e2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x103c86df
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x103c86b0
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x103c86a5
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x103c8699
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x103c86a0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x103c86df
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x103c86da
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x103c86c3
mov eax, dword [ebx + 8]
jmp 0x103c86df
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x103c86d1
xor eax, eax
jmp 0x103c86df
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x103c860f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x10142309
Capabilities:
Query environment variable

Disassembly:
jmp 0x103ac850
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x103ac864
xor edi, edi
jmp 0x103ac8a8
push ebx
push esi
call fcn.103ac749
push 0x40
mov ebx, eax
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
sub ebx, esi
and ebx, 0xfffffffe
push 2
push ebx
call fcn.10142791
mov edi, eax
add esp, 0x14
test edi, edi
je 0x103ac895
push ebx
push esi
push edi
call fcn.101423b8
add esp, 0xc
push 2
push 0
call fcn.101444dd
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x1014afc0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1043c69c], 0
je 0x1014afd9
mov eax, dword [0x1043c69c]
jmp 0x1014b176
mov dword [0x1043c69c], 0x1043c66c
push 0x28
push 0
push 0x1043c66c
call fcn.10143722
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x1043c66c], eax
push str.imagehlp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1043c670], eax
cmp dword [0x1043c670], 0
jne 0x1014b01f
xor eax, eax
jmp 0x1014b176
push str.ImagehlpApiVersionEx
mov eax, dword [0x1043c670]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1043c674], eax
push str.SymInitialize
mov ecx, dword [0x1043c670]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1043c678], eax
push str.SymSetOptions
mov edx, dword [0x1043c670]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1043c67c], eax
push str.SymGetOptions
mov eax, dword [0x1043c670]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1043c680], eax
push str.SymLoadModule
mov ecx, dword [0x1043c670]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1043c684], eax
push str.SymGetModuleInfo
mov edx, dword [0x1043c670]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1043c688], eax
push str.SymGetSymFromName
mov eax, dword [0x1043c670]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1043c68c], eax
push str.BindImage
mov ecx, dword [0x1043c670]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1043c690], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call fcn.10143722
add esp, 0xc
mov word [ebp - 8], 9
cmp dword [0x1043c674], 0
je 0x1014b0fd
lea eax, [ebp - 8]
push eax
call dword [0x1043c674]
cmp dword [0x1043c674], 0
je 0x1014b10f
movzx ecx, word [ebp - 8]
cmp ecx, 9
jge 0x1014b12a
mov edx, dword [0x1043c670]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1043c670], 0
xor eax, eax
jmp 0x1014b176
cmp dword [0x1043c678], 0
je 0x1014b143
push 0
push 0
mov eax, dword [0x1043c66c]
push eax
call dword [0x1043c678]
cmp dword [0x1043c680], 0
je 0x1014b171
cmp dword [0x1043c67c], 0
je 0x1014b171
call dword [0x1043c680]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 7
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [0x1043c67c]
mov eax, dword [0x1043c69c]
mov esp, ebp
pop ebp
ret
Function at 0x1014bb10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x103fb708
push 0x10140108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jne 0x1014bb4d
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x1014bb83
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
jmp 0x1014bce1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x1014bbbb
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
jmp 0x1014bce1
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x14]
test ecx, ecx
jne 0x1014bbe7
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
jmp 0x1014bce1
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], 0
jmp 0x1014bc0a
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x28], edx
jae 0x1014bcbb
push str..detour
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
add ecx, eax
push ecx
call fcn.10144014
add esp, 8
test eax, eax
jne 0x1014bcb6
mov edx, dword [ebp - 0x28]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x20]
cmp dword [eax + edx + 0xc], 0
je 0x1014bc57
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx + 0x10], 0
jne 0x1014bc59
jmp 0x1014bcbb
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx], 0x30
jb 0x1014bc86
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 4], 0x727444
je 0x1014bc88
jmp 0x1014bcbb
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 8], 0
jne 0x1014bc9c
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ecx + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
jmp 0x1014bce1
jmp 0x1014bc01
mov dword [ebp - 4], 0xffffffff
jmp 0x1014bcd4
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4