joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1001a028]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1001a7a4], 0x1000
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
jne 0x10004762
movups xmm0, xmmword [0x10032fb8]
movups xmmword [eax], xmm0
mov eax, 0x9000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008251
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push ecx
call sym.Key.dll_Cas4ReadWorkKey
movzx eax, ax
mov ecx, 0x9000
add esp, 0xc
cmp ax, cx
jne 0x10004840
mov eax, dword [ebp - 0x14]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push 1
push 0x100327e0
mov dword [ebp - 8], eax
call fcn.10002100
push 2
push 0x100327e0
mov esi, eax
call fcn.10002100
push 3
push 0x100327e0
mov edi, eax
call fcn.10002100
add esp, 0x18
xor bl, bl
movzx ecx, bl
mov dl, byte [ecx + edi]
xor dl, byte [ecx + esi]
cmp dl, 0xff
jne 0x100047d7
inc bl
cmp bl, 0x10
jb 0x100047c0
jmp 0x100047dc
cmp bl, 0x10
jb 0x10004838
xor dl, dl
mov edi, eax
movzx eax, dl
mov cl, byte [eax + edi]
xor cl, byte [eax + esi]
cmp cl, 0xaa
jne 0x100047f7
inc dl
cmp dl, 0x10
jb 0x100047e0
jmp 0x100047fc
cmp dl, 0x10
jb 0x10004838
lea edx, [ebp - 0x14]
mov edi, 0x10
mov eax, edx
mov ecx, edx
sub esi, eax
mov eax, dword [ebp - 0x1c]
sub eax, ecx
nop
mov cl, byte [esi + edx]
lea edx, [edx + 1]
xor cl, byte [edx - 1]
mov byte [eax + edx - 1], cl
sub edi, 1
jne 0x10004810
pop edi
pop esi
mov eax, 0x9000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008251
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xe029
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008251
mov esp, ebp
pop ebp
ret
Function at 0x10044c10
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10044d1c
test eax, eax
je 0x10044d1c
push esi
push edi
mov ecx, 0x10
mov esi, 0x1005fff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x10044d03
lea edi, [eax + 4]
jmp 0x10044c67
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x10044c7c
mov dword [ebp - 4], 2
jmp 0x10044c9d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x10044c93
mov dword [ebp - 4], 1
jmp 0x10044c9d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x10044d13
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x10044cd6
mov byte [ecx], 0x3d
jmp 0x10044ce2
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x10044ced
mov byte [ecx], 0x3d
jmp 0x10044cf3
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x10044c64
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4011cc
Capabilities:
Delete directory
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
jmp 0x401225
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0x143
jge 0x401239
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x40121c
cmp dword [ebp - 4], 0
jbe 0x401288
push 0
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x4010a8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x2c], 0
push 0
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x40126b
jmp 0x401273
push 0
call fcn.004010f0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
pop dword [0x41cc58]
mov dword [ebp + 8], 0x27
mov eax, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4015b6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
push 0
push 0
call fcn.004011cc
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x40161a
push 0
call fcn.004017ae
add esp, 4
push 0
call fcn.004012b7
jmp 0x401628
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, 0
push 0
push 0
call sub.WinSCard.dll_SCardForgetReaderW
push 0
push 0
call fcn.00401714
fstp st(0)
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jbe 0x401658
push 0
call fcn.004016cc
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4038bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41c100
cmp edx, dword [eax]
je 0x4038df
add eax, 8
inc ecx
cmp eax, 0x41c190
jl 0x4038d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41c100]
jne 0x403a0d
mov eax, dword [0x41cc6c]
cmp eax, 1
je 0x4039e7
test eax, eax
jne 0x403910
cmp dword [0x41bd7c], 1
je 0x4039e7
cmp edx, 0xfc
je 0x403a0d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403947
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404680
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403b50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40398a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403b50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408dbc
push edi
call fcn.00406020
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404680
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404690
lea eax, [ebp - 0xa0]
push 0x408d9c
push eax
call fcn.00404690
push dword [esi + 0x41c104]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404690
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405f96
add esp, 0x2c
pop edi
jmp 0x403a0d
lea eax, [ebp + 8]
lea esi, [esi + 0x41c104]
push 0
push eax
push dword [esi]
call fcn.00403b50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..retplne
mov ebx, 0x40de38
nop
mov ecx, 0x1806540d
nop
nop
nop
nop
nop
test eax, eax
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x47c65482
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x409113
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x409122
pop dword [ebp - 0x30]
mov eax, 0x80725d8f
sub eax, 0x8031cc6d
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3e84a
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0xde608e7b
add ecx, 0x219fd1fa
xor esi, esi
add esi, eax
mov edx, 0x9e8e2468
sub edx, 0x9e4c7a68
add edx, dword [ebp - 0x30]
mov ebx, 0xfa0e15f1
xor dword [ebp - 0x20], 0x52d3bf38
mov edi, dword [edx]
sub dword [ebp - 0x18], 0xc9f340ac
xor edi, ebx
add dword [ebp - 0x2c], 0xc3cafea0
mov dword [esi], edi
add dword [ebp - 0xc], 0xd21f72a7
add esi, 0xd019e35c
add esi, 0x2fe61ca8
add edx, 4
loop 0x409178
add eax, 0xf6f30234
sub eax, 0xf6f18d8d
mov ebx, eax
add eax, 0x831d5497
sub eax, 0x831d5492
mov ecx, 0xa1769f0
add ecx, 0xf6289610
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x27f7059
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
mov ecx, 0x17e21ad7
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4078f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x4078ff
pop dword [ebp - 0x28]
mov eax, 0x47b11b51
sub eax, 0x4770a252
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x9a5fd658
sub dword [ebp - 0x38], 0x4c0d910d
mov dword [ebp - 0x34], 0xa7ca121b
add dword [ebp - 0x34], 0x8a693a2a
mov dword [ebp - 0x30], 0x448d6caa
add dword [ebp - 0x30], 0x7bed784
mov dword [ebp - 0x2c], 0x925cbb18
add dword [ebp - 0x2c], 0x6da344e8
lea eax, [ebp - 0x38]
push eax
mov eax, 0xe2691127
sub eax, 0xe226e0b3
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xeff29076
add dword [ebp - 0x38], 0x847fd8e0
mov dword [ebp - 0x34], 0x73207a4f
add dword [ebp - 0x34], 0xce4be726
mov dword [ebp - 0x30], 0x615b40b8
add dword [ebp - 0x30], 0x2142bb4
mov dword [ebp - 0x2c], 0xcc7d8bd2
add dword [ebp - 0x2c], 0x3382742e
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x4310a
push 0
call eax
mov ecx, 0x9bef6269
add ecx, 0x6410fb1c
xor esi, esi
add esi, eax
mov edx, 0x434400
add edx, dword [ebp - 0x28]
mov ebx, 0xf9eb9e9a
sub dword [ebp - 0x20], 0xc4c988dc
mov edi, dword [edx]
mov dword [ebp - 0x24], 0xa5b4ada5
add edi, ebx
xor dword [ebp - 0x24], ecx
mov dword [esi], edi
xor dword [ebp - 0x1c], 0xa2b8b60b
add esi, 0x826a0728
add esi, 0x7d95f8dc
add edx, 0xec357fd
sub edx, 0xec357f9
loop 0x407a12
add eax, 0x4f6893d6
sub eax, 0x4f672aef
mov ebx, eax
add eax, 0xbe581013
add eax, 0x41a7eff2
mov ecx, 0xb60e5e69
sub ecx, 0xb5ce5e69
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x402300
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 0x413ccd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x41d014]
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 0x417214
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.00405490
push 0xd
push str.Application:
lea ecx, [ebp - 0x2c]
call fcn.00405490
mov ecx, esi
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x402394
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, eax
call fcn.00405490
push 1
push 0x417210
mov ecx, eax
call fcn.00405490
push 6
push str.Path:
lea ecx, [ebp - 0x2c]
call fcn.00405490
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 0x4023d3
sub edx, edi
mov ecx, esi
sar edx, 1
push edx
push eax
call fcn.00405490
push 1
push 0x417210
mov ecx, eax
call fcn.00405490
push 9
push str.Message:
lea ecx, [ebp - 0x2c]
call fcn.00405490
cmp dword [0x41d4d8], 8
mov ecx, 0x41d4c4
push dword [0x41d4d4]
cmovae ecx, dword [0x41d4c4]
push ecx
mov ecx, eax
call fcn.00405490
push 1
push 0x417210
mov ecx, eax
call fcn.00405490
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x38]
cmovae 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, 8
jb 0x4024a7
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40249d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40249d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00410933
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.00410925
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4052d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413f78
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x41d014]
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], 0x416eec
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.00402170
push 8
call fcn.00410941
add esp, 4
mov esi, eax
push 1
mov dword [ebp - 4], 2
call fcn.00410254
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 [0x41520c]
mov ecx, ebx
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 3
push eax
call fcn.00405b20
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x41520c]
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 [0x41520c]
mov ecx, ebx
call esi
mov edi, eax
test edi, edi
je 0x40541e
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x41520c]
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 0x40543c
mov eax, dword [ecx + 0xc]
push 0
or eax, 4
push eax
call fcn.00402170
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], 0x416ef8
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], 0x416ef4
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 0x405670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413fa0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x41d014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], 0x416f38
call fcn.00410941
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00410254
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 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 0x406a30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4141b5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x41d014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00406510
lea ecx, [ebp - 0x1c]
lea esi, [eax + 1]
push esi
call fcn.00406cd0
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x1c]
mov edx, esi
push eax
push ecx
push dword [ebp + 8]
push ecx
mov ecx, edi
call fcn.004064d0
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x10], 0x41e04c
xor esi, esi
mov eax, 1
mov ebx, 0x41e04c
xchg dword [ebx], eax
test eax, eax
setne al
test al, al
je 0x406ad3
mov eax, esi
inc esi
test eax, 0x3ff
jne 0x406ac3
call sub.KERNEL32.dll_SwitchToThread
mov eax, 1
xchg dword [ebx], eax
test eax, eax
setne al
test al, al
jne 0x406ab4
mov byte [ebp - 4], 1
mov eax, dword fs:[0x2c]
mov ebx, dword [eax]
mov esi, dword [ebx + 4]
test esi, esi
jne 0x406b15
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push edi
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 0x406b23
push edi
mov ecx, esi
call dword [0x41520c]
call esi
add esp, 4
cmp dword [0x41e050], 0
je 0x406b65
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov esi, dword [0x41e054]
add esp, 4
cmp esi, eax
jne 0x406b4a
cmp dword [ebx + 4], 0
je 0x406b65
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.004064a0
push esi
push 0xa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 0x10
nop
mov dword [0x41e04c], 0
test edi, edi
je 0x406ba6
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x406b9c
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406b9c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.00410933
add esp, 8
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 0x40d230
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], 8
jb 0x40d24c
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 0x40d288
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410bf8
add esp, 4
push ebx
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x40d2b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x40d2b0
test eax, eax
jle 0x40d2a1
movzx eax, ax
or eax, 0x80070000
push eax
push edi
push str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.00406bc0
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 0x40d2c0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, esi
call fcn.00405740
push ebx
call fcn.00410bf3
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411337
Capabilities:
Parse pe header

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

Function at 0x413ad0
Capabilities:
Parse pe header

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