joyce8/EMBER2024-capa huggingface dataset:
Function at 0x66204bd0
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6621b6bb
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test ebx, ebx
je 0x66204c04
mov byte [ebp + 0xb], 1
cmp esi, 0xffffffff
je 0x66204c08
mov byte [ebp + 0xb], 0
push 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x84]
call fcn.66207c70
mov dword [ebp - 4], 0
cmp byte [ebp + 0xb], 0
je 0x66204c5d
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x1a4]
push eax
push 0
mov eax, ebx
lea ecx, [ebp - 0x84]
cdq
push edx
push eax
call fcn.66208a50
mov edi, eax
test edi, edi
js 0x66204d71
lea ecx, [ebp - 0x1a4]
call fcn.66208c30
mov esi, dword [ebp - 0x154]
cmp byte [ebp + 0x20], 0
mov ecx, 4
push 0
push 0x8000000
mov eax, 0x40
mov dword [ebp - 0x24], esi
cmovne eax, ecx
mov dword [ebp - 0x20], 0
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0xf
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test edi, edi
js 0x66204d71
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0
push 0x100000
push 2
push eax
push 0
push 0
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov edi, eax
test edi, edi
js 0x66204d04
cmp byte [ebp + 0xb], 0
je 0x66204d0f
push dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x1a4]
push ebx
push eax
call fcn.662086b0
mov edi, eax
add esp, 0x10
test edi, edi
jns 0x66204d36
push dword [ebp - 0x10]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x66204d71
test ebx, ebx
je 0x66204d36
mov eax, dword [ebp + 0xc]
push esi
test eax, eax
je 0x66204d2a
push dword [ebp - 0x10]
push eax
push ebx
call fcn.6620b480
add esp, 0x10
jmp 0x66204d36
push ebx
push dword [ebp - 0x10]
call fcn.6620d5b0
add esp, 0xc
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x66204d48
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x66204d4d
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x66204d61
push dword [ebp - 0x10]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
jmp 0x66204d66
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x66204d6f
mov dword [eax], esi
xor edi, edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.66207e50
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x66205610
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6621b77b
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [edi + 0x178]
call fcn.66207580
cmp dword [edi + 0x160], 0
jne 0x66205753
cmp dword [edi + 4], 0
je 0x66205721
lea ecx, [ebp - 0xf8]
call fcn.662031a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xf8]
push eax
push dword [edi]
call fcn.6620add0
add esp, 8
lea ecx, [ebp - 0xf8]
call fcn.66204340
mov dword [ebp - 0x20], eax
lea ebx, [edi + 0x170]
xor ecx, ecx
mov dword [ebp - 0x28], 0x18
cmp byte [edi + 0x18c], cl
mov eax, 0x20
mov dword [ebp - 0x24], 0
cmovne eax, ecx
mov dword [ebp - 0x1c], 0x40
or eax, 0x40
mov dword [ebp - 0x18], 0
push eax
push 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x188]
push ebx
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x6620570f
mov dword [ebx], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf8]
call fcn.66203220
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf8]
call fcn.66203220
push 5
push 0x18
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [edi + 0x170]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x6620580f
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x168], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x16c], eax
mov ecx, edi
call fcn.662059d0
mov ebx, eax
test ebx, ebx
jns 0x66205787
lea ecx, [edi + 0x178]
call fcn.66207580
mov ecx, edi
call fcn.66204b40
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebp + 8], 0
je 0x662057a2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [edi + 0x178]
mov ecx, esi
call fcn.66204980
test al, al
je 0x6620578d
cmp byte [ebp + 0xc], 0
je 0x6620578d
mov eax, dword [edi + 0x170]
mov dword [edi + 0x174], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x170], 0
test eax, eax
je 0x662057e2
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.662041e0
jmp 0x66205802
mov ecx, esi
call fcn.66204960
mov ecx, edi
mov esi, eax
call fcn.66203ec0
push 0
push 0
push 0xffffffffffffffff
push esi
push 1
mov ecx, eax
call fcn.662033b0
push 0
push 0
push 1
mov ecx, edi
call fcn.66205610
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x662058a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 8
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, ecx
mov ecx, ebx
add ecx, edx
adc eax, dword [ebp + 0xc]
cmp dword [esi + 0x16c], eax
jg 0x662058d8
jl 0x662058cb
cmp dword [esi + 0x168], ecx
jae 0x662058d8
pop esi
mov eax, 0xc000007b
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esi + 0x160]
test eax, eax
je 0x662058fb
push ebx
add eax, edx
push eax
push dword [ebp + 0x10]
call fcn.6620d5b0
add esp, 0xc
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [esi + 0x170], 0
jne 0x66205911
pop esi
mov eax, 0xc0000008
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [esi + 0x18c], 0
push edi
mov dword [ebp + 0x14], 0
je 0x66205954
mov edi, dword [ebp + 0x18]
test edi, edi
jne 0x66205940
push edi
push edi
push edi
push 0x100002
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.ntdll.dll_NtCreateEvent]
mov edi, dword [ebp + 0x14]
jmp 0x66205947
push edi
call dword [sym.imp.ntdll.dll_NtClearEvent]
test eax, eax
jns 0x66205956
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
xor edi, edi
push 0
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push 0
push edi
push dword [esi + 0x170]
call dword [sym.imp.ntdll.dll_NtReadFile]
mov esi, eax
cmp esi, 0x103
jne 0x6620599c
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
je 0x66205999
js 0x662059ab
mov esi, 0xc0000001
jmp 0x662059ab
mov esi, dword [ebp - 8]
test esi, esi
js 0x662059ab
cmp dword [ebp - 4], ebx
mov eax, 0xc000007b
cmovne esi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x662059b9
push eax
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x662099c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x662236c0
push 0x6620ebb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], ecx
mov esi, dword [ebp + 8]
mov eax, esi
mov edi, dword [ebp + 0xc]
or eax, edi
je 0x66209bee
cmp esi, 0xffffffff
jne 0x66209a06
test edi, edi
je 0x66209bee
mov eax, esi
and eax, edi
cmp eax, 0xffffffff
je 0x66209bee
cmp dword [ebp + 0x20], 0
ja 0x66209a3b
jb 0x66209a23
mov ebx, dword [ebp + 0x1c]
cmp ebx, 0x40
jae 0x66209a3e
mov eax, 0xc000007b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 4], 0
push 0
push 2
lea eax, [ebp + 0xc]
push eax
push edi
push esi
call fcn.66208e80
test eax, eax
jns 0x66209a72
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, 0x5a4d
cmp word [ebp + 0xc], ax
jne 0x66209bcf
push 0
push 4
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
add ecx, 0x3c
mov eax, edi
adc eax, 0
push eax
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.66208e80
test eax, eax
js 0x66209a58
mov eax, dword [ebp - 0x20]
xor edx, edx
mov ecx, dword [ebp + 0x20]
cmp edx, ecx
ja 0x66209bcf
jb 0x66209abb
cmp eax, ebx
jae 0x66209bcf
lea edx, [eax + 0x18]
cmp edx, eax
jb 0x66209bcf
mov dword [ebp + 0x20], 0
cmp dword [ebp + 0x20], ecx
ja 0x66209bcf
jb 0x66209ae0
cmp edx, ebx
jae 0x66209bcf
cmp eax, 0x10000000
jae 0x66209bcf
add eax, esi
mov ecx, 0
adc ecx, edi
push 0
push 4
lea edx, [ebp - 0x24]
push edx
push ecx
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.66208e80
test eax, eax
js 0x66209a58
cmp dword [ebp - 0x24], 0x4550
jne 0x66209bcf
mov ebx, dword [ebp - 0x20]
xor ecx, ecx
add ebx, esi
adc ecx, edi
mov dword [ebp + 0x20], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x66209b33
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x66209baa
mov dword [edx + 0x108], ebx
mov dword [edx + 0x10c], ecx
mov dword [edx + 0x110], esi
mov dword [edx + 0x114], edi
mov al, byte [ebp + 0x10]
mov byte [edx + 0x118], al
push 0
push 0x18
push edx
push ecx
push ebx
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.66208e80
test eax, eax
js 0x66209a58
mov ecx, dword [ebp + 0x18]
movzx edx, word [ecx + 0x14]
mov eax, edx
mov edi, 0xf0
cmp di, ax
jae 0x66209b89
mov eax, edi
push 0
push eax
lea eax, [ecx + 0x18]
push eax
add ebx, 0x18
mov eax, dword [ebp + 0x20]
adc eax, 0
push eax
push ebx
mov ecx, esi
call fcn.66208e80
test eax, eax
js 0x66209a58
mov dword [ebp - 4], 0xffffffff
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 0x1c
mov dword [ebp - 4], 0xffffffff
mov eax, 0xc000007b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, 0xc000000d
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x6620b920
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea eax, [ebp + 0x14]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
jmp 0x6620b963
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp + 0x10], eax
cmp dword [ebp - 8], 4
jae 0x6620b98e
cmp dword [ebp + 0x10], 0
jbe 0x6620b98e
mov ecx, dword [ebp - 4]
add ecx, 8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax - 8]
mov dword [ebp + edx*8 - 0x30], ecx
mov eax, dword [eax - 4]
mov dword [ebp + edx*8 - 0x2c], eax
jmp 0x6620b951
mov ecx, dword [ebp - 4]
add ecx, 8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
sub edx, 8
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 1
je 0x6620b9b1
mov ecx, dword [ebp + 0x10]
add ecx, 1
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0xc], esp
and esp, 0xfffffff0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x6620b9d7
mov edi, dword [ebp - 0x10]
lea edi, [edi + eax*8 - 8]
push dword [edi + 4]
push dword [edi]
sub edi, 8
dec eax
jne 0x6620b9cc
mov eax, 4
lea edi, [ebp - 0x18]
push dword [edi + 4]
push dword [edi]
sub edi, 8
dec eax
jne 0x6620b9df
xor ecx, ecx
xor edx, edx
lea esi, [ebp + 8]
push 0x33
call 0x6620b9f8
add dword [esp], 5
retf

Function at 0x6620ba50
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
xor eax, eax
xor edx, edx
push 0x33
call fcn.6620ba62

Function at 0x6620c070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov bl, byte [eax]
cmp bl, 0xd8
je 0x6620c0a7
cmp bl, 0xd7
je 0x6620c0a7
mov edx, dword [ebp + 0x10]
lea esi, [eax + 1]
test edx, edx
je 0x6620c119
mov ecx, dword [ebp + 0xc]
sub esi, ecx
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x6620c097
pop esi
pop ebx
pop ebp
ret
mov esi, dword [ebp + 0xc]
inc eax
push esi
push eax
call fcn.6620c2d0
cmp bl, 0xd8
jne 0x6620c119
mov edx, dword [ebp + 0x10]
xor eax, eax
test edx, edx
je 0x6620c119
cmp edx, 0x20
jb 0x6620c107
movdqa xmm1, xmmword [0x6621d410]
mov ecx, edx
push edi
and ecx, 0x1f
mov edi, edx
sub edi, ecx
lea ecx, [esi + 0x10]
lea ebx, [ebx]
movdqu xmm0, xmmword [ecx - 0x10]
add eax, 0x20
lea ecx, [ecx + 0x20]
pxor xmm0, xmm1
movdqu xmmword [ecx - 0x30], xmm0
movdqu xmm0, xmmword [ecx - 0x20]
pxor xmm0, xmm1
movdqu xmmword [ecx - 0x20], xmm0
cmp eax, edi
jb 0x6620c0e0
pop edi
cmp eax, edx
jae 0x6620c119
jmp 0x6620c110
xor byte [eax + esi], 0xf0
inc eax
cmp eax, edx
jb 0x6620c110
pop esi
pop ebx
pop ebp
ret
Function at 0x402340
Capabilities:
Access the windows event log

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41361d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x41d040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x30], ecx
push 0x4171b8
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x38], eax
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
push 0x28
push str.Description:_A_.NET_application_failed._n
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], eax
call fcn.00404d00
push 0xd
push str.Application:
lea ecx, [ebp - 0x2c]
call fcn.00404d00
mov ecx, esi
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4023d4
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, eax
call fcn.00404d00
push 1
push 0x4171b4
mov ecx, eax
call fcn.00404d00
push 6
push str.Path:
lea ecx, [ebp - 0x2c]
call fcn.00404d00
mov esi, eax
mov eax, dword [ebp - 0x30]
mov edx, eax
lea edi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x402413
sub edx, edi
mov ecx, esi
sar edx, 1
push edx
push eax
call fcn.00404d00
push 1
push 0x4171b4
mov ecx, eax
call fcn.00404d00
push 9
push str.Message:
lea ecx, [ebp - 0x2c]
call fcn.00404d00
cmp dword [0x41d548], 7
mov ecx, 0x41d534
push dword [0x41d544]
cmova ecx, dword [0x41d534]
push ecx
mov ecx, eax
call fcn.00404d00
push 1
push 0x4171b4
mov ecx, eax
call fcn.00404d00
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x38]
cmova eax, dword [ebp - 0x2c]
push 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 1
push 0
push 0x3ff
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x4024e7
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4024dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4024dd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004102a0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00410292
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x404ad0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413888
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x41d040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
push 0
push 0
mov eax, dword [eax + 4]
mov dword [ecx + eax], 0x416e8c
mov eax, dword [ecx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ecx - 4], eax
mov eax, dword [ecx]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov ebx, dword [eax + 4]
add ebx, ecx
mov ecx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
call fcn.004021b0
push 8
call fcn.004102ae
add esp, 4
mov esi, eax
push 1
mov dword [ebp - 4], 2
call fcn.0040fc14
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov ebx, dword [esi + 4]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x415204]
mov ecx, ebx
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 3
push eax
call fcn.004053d0
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x415204]
mov ecx, edi
call esi
movzx eax, ax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x415204]
mov ecx, ebx
call esi
mov edi, eax
test edi, edi
je 0x404c1e
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x415204]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp dword [ecx + 0x38], 0
mov word [ecx + 0x40], ax
jne 0x404c3c
mov eax, dword [ecx + 0xc]
push 0
or eax, 4
push eax
call fcn.004021b0
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x10]
lea edx, [esi + 0x10]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 4]
mov dword [edx + eax], 0x416e98
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], 0x416e94
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + esi - 4], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404e70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4138b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x41d040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea eax, [ecx + 4]
mov dword [ecx], 0x416ed8
lea ebx, [ecx + 0x24]
mov dword [ebp - 0x14], eax
lea edi, [ecx + 0x28]
mov dword [eax], 0
push 8
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.004102ae
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040fc14
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
mov dword [eax + 0x34], esi
lea esi, [eax + 4]
mov dword [eax + 0xc], esi
mov esi, eax
mov dword [eax + 0x10], edx
mov dword [eax + 0x1c], ecx
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406480
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413ae5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x41d040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x41deb4
mov dword [ebp - 0x10], 0x41deb4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push eax
call fcn.00405f50
lea ecx, [ebp - 0x1c]
lea esi, [eax + 1]
push esi
call fcn.004066e0
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
push eax
push ecx
push dword [ebp + 8]
mov edx, esi
mov esi, dword [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.00405f10
mov eax, dword fs:[0x2c]
add esp, 0x10
mov ebx, dword [eax]
mov edi, dword [ebx + 4]
test edi, edi
jne 0x406533
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 0xc
push eax
push 0xa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
jmp 0x406541
push esi
mov ecx, edi
call dword [0x415204]
call edi
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x41df30], 0
je 0x40658a
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edi, dword [0x41decc]
add esp, 4
cmp edi, eax
jne 0x40656f
cmp dword [ebx + 4], 0
je 0x40658a
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
mov ecx, edi
call fcn.00405ee0
push edi
push 0xa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 0x10
test esi, esi
je 0x4065c0
mov ecx, dword [ebp - 0x14]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x4065b6
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4065b6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.004102a0
add esp, 8
push 0x41deb4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cc60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
mov eax, esi
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 7
jbe 0x40cc7c
mov eax, dword [esi]
xor ecx, ecx
push ecx
push ecx
push edi
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
je 0x40ccb8
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410558
add esp, 4
push ebx
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x40cce9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x40cce0
test eax, eax
jle 0x40ccd1
movzx eax, ax
or eax, 0x80070000
push eax
push edi
push str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.004065e0
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ccf0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, esi
call fcn.00404f90
push ebx
call fcn.00410553
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410c91
Capabilities:
Parse pe header

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

Function at 0x413420
Capabilities:
Parse pe header

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