joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416e98
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x421494]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040df39
and dword [ebp - 0x14], 0
cmp dword [0x423368], 0
mov dword [ebp - 0x18], eax
jne 0x416f4b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x416ff3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x416ff3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x423368], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42336c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x423370], eax
call edi
push eax
call esi
mov dword [0x423378], eax
test eax, eax
je 0x416f4b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x423374], eax
mov eax, dword [0x423374]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x416fa4
cmp dword [0x423378], ecx
je 0x416fa4
push eax
call esi
push dword [0x423378]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x416fa4
test ebx, ebx
je 0x416fa4
call edi
test eax, eax
je 0x416f9b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x416f9b
test byte [ebp - 8], 1
jne 0x416fa4
or dword [ebp + 0x10], 0x200000
jmp 0x416fd7
mov eax, dword [0x42336c]
cmp eax, dword [ebp - 0x18]
je 0x416fd7
push eax
call esi
test eax, eax
je 0x416fd7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x416fd7
mov eax, dword [0x423370]
cmp eax, dword [ebp - 0x18]
je 0x416fd7
push eax
call esi
test eax, eax
je 0x416fd7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x423368]
call esi
test eax, eax
je 0x416ff3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x416ff5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407900
leave
ret
Function at 0x4010f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10008
call fcn.0041b9b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10004], eax
cmp dword [0x427550], 0
push esi
push edi
je 0x40119f
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [esp + 0x14]
push 0x8000
push eax
call fcn.00401000
push dword [eax + 4]
push dword [eax]
call fcn.0040e8c4
mov esi, eax
add esp, 0x1c
or eax, 0xffffffff
test esi, esi
cmovs esi, eax
test esi, esi
jle 0x40119f
push dword [0x427550]
lea eax, [esp + 0xc]
push eax
call fcn.0040ee82
add esp, 8
lea edi, [esi + esi]
movzx eax, word [esp + edi + 8]
push eax
call fcn.0040f470
add esp, 4
test eax, eax
je 0x40118c
dec esi
cmp edi, 0x10000
jae 0x4011b3
xor eax, eax
mov word [esp + edi + 8], ax
test esi, esi
jne 0x401163
cmp word [esp + 8], 0
je 0x40119f
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x1000c]
pop edi
pop esi
xor ecx, esp
call fcn.00406004
mov esp, ebp
pop ebp
ret
call fcn.00406134
int3
Function at 0x402370
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10008
call fcn.0041b9b0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10008], eax
mov esi, edx
lea eax, [ebp - 0x10004]
mov ebx, ecx
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombineEx]
test eax, eax
js 0x40246e
push 1
push str.py.ini
lea eax, [ebp - 0x10004]
push eax
push 0x8000
push eax
call edi
test eax, eax
js 0x40246e
push esi
push ebx
lea eax, [ebp - 0x10004]
push eax
push str._Reading_from__s_for__s__s_n
call fcn.004010f0
add esp, 0x10
lea eax, [ebp - 0x10004]
push eax
push 0x8000
push dword [ebp - 0x10008]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
test edi, edi
je 0x402438
lea eax, [ebp - 0x10004]
push eax
push esi
push str._Found__s_in__s_n
call fcn.004010f0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406004
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
lea eax, [ebp - 0x10004]
push eax
jne 0x402459
push str._Did_not_find_file__s_n
call fcn.004010f0
add esp, 8
jmp 0x402468
push str.Failed_to_read_from__s_n
push 0
call fcn.004011c0
add esp, 0xc
mov edi, dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombineEx]
push 0x8000
lea eax, [ebp - 0x10004]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40253b
push 0x8000
lea eax, [ebp - 0x10004]
push eax
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
test eax, eax
js 0x40253b
push 1
push str.py.ini
lea eax, [ebp - 0x10004]
push eax
push 0x8000
push eax
call edi
test eax, eax
js 0x40253b
push esi
push ebx
lea eax, [ebp - 0x10004]
push eax
push str._Reading_from__s_for__s__s_n
call fcn.004010f0
add esp, 0x10
lea eax, [ebp - 0x10004]
push eax
push 0x8000
push dword [ebp - 0x10008]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
test edi, edi
jne 0x402410
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
lea eax, [ebp - 0x10004]
push eax
jne 0x40252c
push str._Did_not_find_file__s_n
call fcn.004010f0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406004
mov esp, ebp
pop ebp
ret
push str.Failed_to_read_from__s_n
push 0
call fcn.004011c0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406004
mov esp, ebp
pop ebp
ret
Function at 0x402cd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10008
call fcn.0041b9b0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x38], 0
je 0x402d6a
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x402d7d
mov ecx, dword [esi + 0x30]
lea ebx, [esi + 0x30]
test ecx, ecx
je 0x402d7d
cmp byte [esi + 0x34], 0
je 0x402d6a
push ecx
push 0x4220e0
push eax
call fcn.0040f4f4
add esp, 0xc
test eax, eax
jne 0x402d31
mov dword [ebp - 0x10008], str.python3
mov eax, str.py_python3
jmp 0x402d8f
push dword [ebx]
push 0x4220dc
push dword [esi + 0x2c]
call fcn.0040f4f4
add esp, 0xc
test eax, eax
jne 0x402d58
mov dword [ebp - 0x10008], str.python2
mov eax, str.py_python2
jmp 0x402d8f
push dword [esi + 0x2c]
push dword [ebx]
push str._Cannot_select_defaults_for_tag__.s_n
call fcn.004010f0
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406004
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10008], str.python
lea ebx, [esi + 0x30]
mov eax, str.py_python
push 0x8000
lea ecx, [ebp - 0x10004]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jne 0x402dc9
mov edx, dword [ebp - 0x10008]
lea eax, [ebp - 0x10004]
push ecx
push eax
mov ecx, str.defaults
call fcn.00402370
mov edi, eax
add esp, 8
test edi, edi
je 0x402d6a
lea eax, [edi*2 + 6]
push eax
call fcn.0040f52e
add esp, 4
test eax, eax
je 0x402e80
mov ecx, dword [esi + 0x40]
mov dword [eax], ecx
lea ecx, [eax + 4]
mov dword [esi + 0x40], eax
mov dword [ebp - 0x10008], ecx
test ecx, ecx
je 0x402e80
lea eax, [ebp - 0x10004]
push eax
lea eax, [edi + 1]
push eax
push ecx
call fcn.0040ef06
push 0x2f
push dword [ebp - 0x10008]
call fcn.00406c58
mov edx, eax
add esp, 0x14
test edx, edx
jne 0x402e47
mov eax, dword [ebp - 0x10008]
mov cl, 1
mov dword [esi + 0x2c], eax
xor eax, eax
mov dword [ebx], edi
mov byte [esi + 0x34], cl
pop edi
mov byte [esi + 0x35], cl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406004
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10008]
mov eax, edx
sub eax, ecx
mov dword [esi + 0x24], ecx
sar eax, 1
xor cl, cl
mov dword [esi + 0x28], eax
sub edi, eax
dec edi
lea eax, [edx + 2]
mov dword [esi + 0x2c], eax
xor eax, eax
mov dword [ebx], edi
mov byte [esi + 0x34], cl
pop edi
mov byte [esi + 0x35], 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406004
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x68
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406004
mov esp, ebp
pop ebp
ret
Function at 0x403380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 6
push dword [ebp + 0xc]
mov ebx, edx
mov edi, ecx
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4033f4
push dword [ebp - 4]
call fcn.0040f52e
mov esi, eax
add esp, 4
test esi, esi
jne 0x4033c8
pop edi
lea eax, [esi + 0x68]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push esi
push 0
push 6
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4033eb
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0040f452
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404140
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
mov edi, edx
mov dword [ebp - 0x40], 0x3c
mov esi, ecx
mov dword [ebp - 0x3c], 0x8140
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push esi
push str._Installing_with__s__s_n
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 1
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
call fcn.004010f0
add esp, 0xc
push 0
push 0
push str.PYLAUNCHER_DRYRUN
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, 2
jb 0x404264
push ebx
push str._Exiting_due_to_PYLAUNCHER_DRYRUN_n
call fcn.004010f0
push 1
call fcn.0040e9cd
push eax
call fcn.0040ed61
add esp, 0xc
push 0x40000
push 1
call fcn.0040e9cd
push eax
call fcn.0040f22d
add esp, 8
push eax
call fcn.0040f03e
add esp, 8
mov ebx, eax
test edi, edi
je 0x404211
push edi
push esi
push str.__s___s_n
push 1
call fcn.0040e9cd
add esp, 4
push eax
call fcn.00401040
add esp, 0x10
jmp 0x40422a
push esi
push str.__s__n
push 1
call fcn.0040e9cd
add esp, 4
push eax
call fcn.00401040
add esp, 0xc
push 1
call fcn.0040e9cd
push eax
call fcn.0040ed61
add esp, 8
test ebx, ebx
js 0x404258
push ebx
push 1
call fcn.0040e9cd
push eax
call fcn.0040f22d
add esp, 8
push eax
call fcn.0040f03e
add esp, 8
pop ebx
pop edi
mov eax, 0x6f
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40427d
pop edi
mov eax, 0x67
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
test eax, eax
je 0x404259
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x404259
mov eax, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
and eax, 0x6f
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40691e
Capabilities:
Parse pe header

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

Function at 0x41006b
Capabilities:
Parse pe header

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

Function at 0x4128f9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41dc9c
push 0x41dc94
push str.FlsAlloc
push 0x1f
call fcn.00412834
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41292d
push dword [ebp + 8]
mov ecx, esi
call dword [0x41c1a0]
call esi
jmp 0x412933
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412977
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41dcac
push 0x41dca4
push str.FlsGetValue
push 0x21
call fcn.00412834
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4129ae
push dword [ebp + 8]
mov ecx, esi
call dword [0x41c1a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4129b6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41dcb4
push 0x41dcac
push str.FlsSetValue
push 0x22
call fcn.00412834
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4129f0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41c1a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x413f0a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x413f55
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004140a5
test al, al
jne 0x413f4f
sub edx, 2
cmp edx, edi
jne 0x413f35
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x413f77
lea eax, [edi + 2]
cmp edx, eax
je 0x413f77
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00413e56
add esp, 0x10
jmp 0x414071
push esi
lea ecx, [ebp - 0x255]
call fcn.004140a5
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413fba
push dword [ebp - 0x25c]
jmp 0x413f67
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x413ff7
cmp word [ebp - 0x226], 0
je 0x414018
cmp word [ebp - 0x226], ax
jne 0x413ff7
cmp word [ebp - 0x224], 0
je 0x414018
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00413e56
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x414064
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x413fd1
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41404c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x414071
push 0x413c86
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00418570
add esp, 0x10
jmp 0x414041
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406004
leave
ret

Function at 0x41b5e0
Capabilities:
Parse pe header

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

Function at 0x4b3600
Capabilities:
Encode data using xor

Disassembly:
call 0x4b3605
pop edi
mov ebp, edi
sub ebp, 0x401005
cmp ebp, 0
je 0x4b3624
lea esi, [ebp + 0x401024]
mov ecx, 0x120a
or dl, byte [edx]
add byte [eax], al
xor byte [esi], 0x7b
inc esi
loop 0x4b361e
clc
xchg esp, eax
jle 0x4b361a
invalid
Function at 0x406b20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
push 0x40
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x406b43
mov eax, 1
jmp 0x406c4e
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x406b59
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
jne 0x406b63
mov eax, 2
jmp 0x406c4e
mov edx, dword [ebp + 0x10]
push edx
push pe_nt_image_headers32
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x406b8e
mov eax, 1
jmp 0x406c4e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0x4550
jne 0x406bb4
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x58]
cmp edx, 0x10b
jne 0x406bb4
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x46]
test ecx, ecx
jne 0x406bbe
mov eax, 2
jmp 0x406c4e
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x46]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x140], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x140]
push eax
call fcn.00415d10
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x138], 0
jne 0x406bff
mov eax, 3
jmp 0x406c4e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x54]
lea ecx, [ecx + eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x13c], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
push eax
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x406c4c
mov eax, 1
jmp 0x406c4e
xor eax, eax
pop ebp
ret

Function at 0x4075e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x4075f6
xor eax, eax
jmp 0x407636
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x40761b
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x40761f
xor eax, eax
jmp 0x407636
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.00407640
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x4169c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4169f0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x416a03
xor eax, eax
jmp 0x416ac1
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x416a1e
xor eax, eax
jmp 0x416ac1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x416a3c
xor eax, eax
jmp 0x416ac1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x416a7e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x416abf
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.00415d30
add esp, 8
test eax, eax
jne 0x416abd
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x416ac1
jmp 0x416a75
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100013e0
Capabilities:
Contain obfuscated stackstrings
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10011dfb
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x10017d2c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x130]
call fcn.100039e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x118], 0x100
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov byte [ebp - 0x13c], 0
xor edx, edx
mov dword [ebp - 0x13b], edx
mov dword [ebp - 0x137], edx
mov word [ebp - 0x133], dx
mov byte [ebp - 0x131], dl
mov byte [ebp - 0x13c], 0x63
mov byte [ebp - 0x136], 0x74
mov byte [ebp - 0x13a], 0x72
mov byte [ebp - 0x133], 0x65
mov byte [ebp - 0x135], 0x75
mov byte [ebp - 0x138], 0x65
mov byte [ebp - 0x139], 0x72
mov byte [ebp - 0x132], 0x72
mov byte [ebp - 0x134], 0x73
mov byte [ebp - 0x137], 0x6e
mov byte [ebp - 0x13b], 0x75
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x114]
push ecx
call fcn.10001040
add esp, 8
test eax, eax
jne 0x100014cc
mov byte [ebp - 0xd], 1
push 0xd
lea ecx, [ebp - 0x130]
call fcn.10003a70
push eax
lea edx, [ebp - 0x114]
push edx
call fcn.10001040
add esp, 8
test eax, eax
jne 0x100014f1
mov byte [ebp - 0xd], 1
push 0xe
lea ecx, [ebp - 0x130]
call fcn.10003a70
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.10001040
add esp, 8
test eax, eax
jne 0x10001516
mov byte [ebp - 0xd], 1
push 0xf
lea ecx, [ebp - 0x130]
call fcn.10003a70
push eax
lea ecx, [ebp - 0x114]
push ecx
call fcn.10001040
add esp, 8
test eax, eax
jne 0x1000153b
mov byte [ebp - 0xd], 1
push 0x10
lea ecx, [ebp - 0x130]
call fcn.10003a70
push eax
lea edx, [ebp - 0x114]
push edx
call fcn.10001040
add esp, 8
test eax, eax
jne 0x10001560
mov byte [ebp - 0xd], 1
push 0x11
lea ecx, [ebp - 0x130]
call fcn.10003a70
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.10001040
add esp, 8
test eax, eax
jne 0x10001585
mov byte [ebp - 0xd], 1
push 0x12
lea ecx, [ebp - 0x130]
call fcn.10003a70
push eax
lea ecx, [ebp - 0x114]
push ecx
call fcn.10001040
add esp, 8
test eax, eax
jne 0x100015aa
mov byte [ebp - 0xd], 1
push 0x13
lea ecx, [ebp - 0x130]
call fcn.10003a70
push eax
lea edx, [ebp - 0x114]
push edx
call fcn.10001040
add esp, 8
test eax, eax
jne 0x100015cf
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov byte [ebp - 0x13d], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.10003a50
mov al, byte [ebp - 0x13d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000693d
mov esp, ebp
pop ebp
ret