joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d6f0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
rdtsc
push 0
mov esi, eax
mov edi, edx
call dword [sym.imp.KERNEL32.dll_Sleep]
rdtsc
sub eax, esi
sbb edx, edi
pop edi
mov dword [ebp - 4], edx
pop esi
jne 0x40d720
cmp eax, 0x5dc
ja 0x40d720
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x40dbb0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x450070], 0
push esi
mov esi, 0x1c
jne 0x40dc31
push 0
push 1
push 0
push 1
push 0x450070
call fcn.0041b9a0
mov esi, eax
add esp, 0x14
test esi, esi
js 0x40dc31
call fcn.0040d690
mov esi, eax
test esi, esi
js 0x40dc19
push 0x425a6c
push 8
push 0
push 4
call fcn.0040d730
mov esi, eax
add esp, 0x10
test esi, esi
js 0x40dc19
push 4
call fcn.0040ee40
mov esi, eax
add esp, 4
test esi, esi
js 0x40dc19
mov byte [0x450064], 1
xor eax, eax
pop esi
ret
push dword [0x450070]
call fcn.0041bac0
add esp, 4
mov dword [0x450070], 0
mov eax, esi
pop esi
ret

Function at 0x40e290
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 3
je 0x40e2a1
xor eax, eax
pop ebp
ret
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
neg eax
sbb eax, eax
and eax, 0xffffff35
add eax, 0xcb
pop ebp
ret

Function at 0x40e2c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x3d
push dword [ebp + 8]
call sym.exceptionsR3.exe_nocrt_strchr
add esp, 8
test eax, eax
jne 0x40e312
push str.D:_tinderbox_testsuite_srcVBoxRuntime_r3winenv_win.cpp
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00405f90
add esp, 0xc
test eax, eax
js 0x40e312
push ebx
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push dword [ebp - 4]
test eax, eax
setne bl
call fcn.0040a190
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40e320
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040e330
Function at 0x40f1b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
or eax, 0x8001
push eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push str.SetDllDirectoryW
push dword [0x45029c]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x40f20d
push 0x425db8
mov ecx, ebx
call dword [section..rdata]
call ebx
test eax, eax
je 0x40f208
mov dword [0x44d168], 2
jmp 0x40f20d
mov edi, 0xffffff1d
and esi, 4
cmp dword [0x45017c], 0x6c
jg 0x40f21d
test esi, esi
je 0x40f271
push str.SetDefaultDllDirectories
push dword [0x45029c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x40f271
neg esi
mov ecx, ebx
sbb esi, esi
and esi, 0xfffffe00
add esi, 0xa00
push esi
call dword [section..rdata]
call ebx
test eax, eax
je 0x40f268
and esi, 0x200
neg esi
sbb esi, esi
add esi, 4
mov dword [0x44d168], esi
jmp 0x40f271
test edi, edi
js 0x40f271
mov edi, 0xffffff1c
push str.GetCurrentThreadStackLimits
push dword [0x45029c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetUnhandledExceptionFilter
push dword [0x45029c]
mov dword [0x45036c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UnhandledExceptionFilter
push dword [0x45029c]
mov dword [0x4502d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [0x4502d0]
mov dword [0x4502d4], eax
test esi, esi
je 0x40f2e9
cmp dword [0x450370], 0
jne 0x40f2e9
push 0x40f850
mov ecx, esi
call dword [section..rdata]
call esi
mov ecx, eax
sub ecx, 0x40f850
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [0x450370], ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x410780
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 8]
push str.D:_tinderbox_testsuite_srcVBoxRuntime_r3winpathint_win.cpp
push eax
push 0
push edi
push 0xffffffffffffffff
push esi
mov dword [edi], 0
mov dword [ebp - 4], 0
call fcn.00405eb0
mov ebx, eax
add esp, 0x18
test ebx, ebx
js 0x4108ee
mov ecx, dword [ebp - 4]
cmp ecx, 0xf3
ja 0x410867
mov dl, byte [esi]
movsx ebx, dl
lea eax, [ebx - 0x61]
cmp eax, 0x1a
jb 0x4107e1
lea eax, [ebx - 0x41]
cmp eax, 0x1a
jae 0x410810
cmp byte [esi + 1], 0x3a
jne 0x410810
mov al, byte [esi + 2]
cmp al, 0x5c
je 0x4108d5
cmp al, 0x2f
je 0x4108d5
push edi
call fcn.004106f0
add esp, 4
test al, al
je 0x410867
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dl, 0x5c
je 0x41082e
cmp dl, 0x2f
je 0x41082e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, dword [ebp - 4]
cmp eax, 0xf2
jmp 0x410865
mov al, byte [esi + 1]
cmp al, 0x5c
je 0x410839
cmp al, 0x2f
jne 0x41085f
mov al, byte [esi + 2]
cmp al, 0x5c
je 0x41085f
cmp al, 0x2f
je 0x41085f
test al, al
je 0x41085f
cmp al, 0x3f
jne 0x410857
mov al, byte [esi + 3]
cmp al, 0x5c
je 0x410857
cmp al, 0x2f
jne 0x4108d5
cmp ecx, 0xf0
jmp 0x410865
cmp ecx, 0xf1
jbe 0x4108d5
push dword [edi]
call fcn.0040a190
xor eax, eax
mov dword [edi], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00410500
mov ebx, eax
add esp, 0x10
test ebx, ebx
js 0x4108ee
cmp dword [ebp - 8], 0
jne 0x4108de
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x5c
jne 0x4108de
cmp word [eax + 2], 0x3f
jne 0x4108de
cmp word [eax + 4], 0x3f
jne 0x4108de
cmp word [eax + 6], 0x5c
jne 0x4108de
mov ecx, 0x5c
mov word [eax + 2], cx
movzx eax, word [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
shr eax, 1
cmp word [ecx + eax*2], 0
jne 0x4108de
mov dword [edi], ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004104e0
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4112e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4018
call fcn.004014d0
mov eax, dword [0x44d024]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4018], eax
jbe 0x4113af
lea eax, [ebp - 0x4014]
push eax
push 0x1004
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x411392
push 0
lea eax, [ebp - 0x200c]
push eax
push 0x1004
lea eax, [ebp - 0x4014]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x411392
cmp word [ebp - 0x200a], 0x3a
jne 0x411362
movzx ecx, word [ebp - 0x200c]
lea eax, [ecx - 0x61]
cmp eax, 0x1a
jae 0x411362
lea eax, [ecx - 0x20]
mov word [ebp - 0x200c], ax
push str.D:_tinderbox_testsuite_srcVBoxRuntime_r3winpath_win.cpp
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x4018]
push eax
lea eax, [ebp - 0x200c]
push 0xffffffffffffffff
push eax
call fcn.0040ed70
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401220
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c9b0
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401220
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffffd7
xor ecx, ebp
call fcn.00401220
mov esp, ebp
pop ebp
ret

Function at 0x411490
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push 0
push dword [ebp + 8]
push eax
call fcn.00410780
add esp, 0xc
test eax, eax
js 0x411560
push esi
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00410780
mov esi, eax
add esp, 0xc
test esi, esi
js 0x411552
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x41151e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4114f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c9b0
add esp, 4
mov esi, eax
jmp 0x41151a
and edi, 0xf000
and esi, 0x10
cmp edi, 0x4000
jne 0x411513
neg esi
sbb esi, esi
and esi, 0x7e
add esi, 0xffffff82
jmp 0x41151a
neg esi
sbb esi, esi
and esi, 0xffffff81
test esi, esi
js 0x411546
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x411535
xor esi, esi
jmp 0x411546
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c9b0
add esp, 4
mov esi, eax
push dword [ebp - 8]
call fcn.00410770
add esp, 4
pop edi
push dword [ebp - 4]
call fcn.00410770
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x419b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x44d024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x88]
push 0
push ecx
push dword [ebp + 0xc]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x2010
push 0
push 0
push 0xa
push dword [ebp + 0x10]
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00421ac0
add esp, 0x1c
lea ecx, [ebp - 0x88]
push 0
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x88]
push eax
push 2
push 0x425880
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401220
mov esp, ebp
pop ebp
ret

Function at 0x419c40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x44d024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x2080
push 8
push 8
push 0x10
push eax
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00421ac0
add esp, 0x1c
lea ecx, [ebp - 0x88]
push 0
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401220
mov esp, ebp
pop ebp
ret

Function at 0x419cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x44d024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x1000]
cmp eax, 0x2000
jb 0x419cf4
xor eax, eax
cmp byte [esi], al
je 0x419ce7
lea ebx, [ebx]
inc eax
cmp byte [esi + eax], 0
jne 0x419ce0
push 0
lea ecx, [ebp - 0x88]
push ecx
push eax
push esi
jmp 0x419d63
push 0
lea eax, [ebp - 0x88]
push eax
push 0xb
push str._pszString
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x2080
push 8
push 8
push 0x10
push esi
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00421ac0
add esp, 0x1c
lea ecx, [ebp - 0x88]
push 0
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x88]
push eax
push 1
push 0x4257c0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401220
mov esp, ebp
pop ebp
ret
Function at 0x419d90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x44d024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x2000
push 0
push 0
push 0xa
push dword [ebp + 8]
lea eax, [ebp - 0xac]
push 0xa8
push eax
call fcn.00421ac0
push 0x2008
push 0
push 0
mov word [ebp + eax - 0xac], 0x2820
lea esi, [eax + 2]
push 0x10
push dword [ebp + 8]
mov eax, 0xa8
sub eax, esi
push eax
lea eax, [ebp - 0xac]
add eax, esi
push eax
call fcn.00421ac0
add esp, 0x38
lea ecx, [ebp - 0xb0]
add eax, esi
push 0
mov byte [ebp + eax - 0xac], 0x29
inc eax
push ecx
push eax
lea eax, [ebp - 0xac]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401220
mov esp, ebp
pop ebp
ret

Function at 0x419e40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x44d024]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x2008
push 0
push 0
push 0x10
push dword [ebp + 8]
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00421ac0
add esp, 0x1c
lea ecx, [ebp - 0x88]
push 0
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401220
mov esp, ebp
pop ebp
ret

Function at 0x41a480
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 3
jne 0x41a593
shr eax, 8
cmp al, 0x32
jae 0x41a593
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x41a4b3
mov eax, dword [ecx + 0x3c]
add eax, ecx
jmp 0x41a4b5
mov eax, ecx
cmp dword [eax], 0x4550
jne 0x41a597
push esi
movzx esi, word [eax + 0x14]
add esi, eax
movzx eax, word [eax + 6]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x41a592
push ebx
add esi, 0x20
push edi
lea esp, [esp]
mov ebx, dword [esi]
mov eax, dword [esi + 8]
cmp ebx, eax
jbe 0x41a583
mov edi, dword [esi + 4]
sub ebx, eax
add edi, eax
add edi, ecx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
jns 0x41a50b
push ebx
push 0
push edi
call sym.exceptionsR3.exe_nocrt_memset
add esp, 0xc
jmp 0x41a580
mov eax, edi
and ecx, 0x20000000
and eax, 0xfffff000
mov dword [ebp - 0xc], eax
mov eax, edi
and eax, 0xfff
add eax, 0xfff
add eax, ebx
and eax, 0xfffff000
neg ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
sbb ecx, ecx
push eax
and ecx, 0x3c
lea eax, [ebp - 8]
add ecx, 4
push ecx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], ecx
push eax
push 0xffffffffffffffff
mov dword [ebp - 4], ecx
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
js 0x41a57f
push ebx
push 0
push edi
call sym.exceptionsR3.exe_nocrt_memset
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
jmp 0x41a580
int3
mov ecx, dword [ebp + 8]
add esi, 0x28
sub dword [ebp - 0x10], 1
jne 0x41a4e0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
int3
Function at 0x409e46
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x409e55
pop dword [ebp - 0x50]
mov eax, 0x111557c9
sub eax, 0x10d4b974
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x379d0
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x4aaa
xor edx, edx
add edx, eax
mov edi, 0x43e000
add edi, dword [ebp - 0x50]
mov esi, 0x62858a8
add esi, 0x66eb301b
xor dword [ebp - 8], eax
mov ebx, dword [edi]
add dword [ebp - 0x20], 0x3eb196f9
xor ebx, esi
mov dword [edx], ebx
xor dword [ebp - 0x24], 0xbba523e2
add edx, 4
add edi, 0xbbdb24df
add edi, 0x4424db25
loop 0x409ea5
add eax, 0xcf343aa3
add eax, 0x30cce2d8
xor ebx, ebx
add ebx, eax
add eax, 0x1f5e0acf
sub eax, 0x1f5e0aca
mov ecx, 0x34abcef5
add ecx, 0xcb94310b
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x40c900
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x24
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0xc], eax
push str.MOZ_ENABLE_HANDLE_VERIFIER
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x40c93a
call fcn.0040ca10
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040a740
add esp, 0x24
pop esi
pop edi
pop ebp
ret
movaps xmm0, xmmword [str.kernel32]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x64002e
mov dword [ebp - 0x14], 0x6c006c
mov word [ebp - 0x10], 0
cmp dword [0x4383a0], 0
jne 0x40c971
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov dword [0x4383a0], eax
lea esi, [ebp - 0x2c]
mov dword [esi], 0
lea edi, [ebp - 0x28]
mov dword [edi], 0x4383ec
mov dword [edi + 4], 0x43836c
mov dword [edi + 8], 0x4318ad
mov dword [edi + 0xc], 0x42dda0
mov byte [edi + 0x10], 0
push esi
push edi
push 0x42de00
push 0x4383f0
call dword [sym.imp.kernel32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x40c924
cmp dword [ebp - 0x2c], 0
je 0x40c924
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x4383f4
mov dword [ebp - 0x24], 0x43836c
mov dword [ebp - 0x20], 0x43189d
mov dword [ebp - 0x1c], 0x42ddc0
mov byte [ebp - 0x18], 0
push esi
push edi
push 0x42de00
push 0x4383f8
call dword [sym.imp.kernel32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x40c924
cmp dword [ebp - 0x2c], 0
jne 0x40c929
jmp 0x40c924
Function at 0x401e85
Capabilities:
Access the windows event log

Disassembly:
push 0x24
mov eax, 0x40f99d
call fcn.0040bc20
mov esi, edx
mov edi, ecx
push 0x4130f4
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov ebx, eax
mov dword [ebp - 0x2c], ecx
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x2c]
push str.Description:_A_.NET_application_failed._n
call fcn.0040346b
push 0x4130f0
push esi
push str.Application:
lea ecx, [ebp - 0x2c]
call fcn.0040346b
mov ecx, eax
call fcn.0040346b
mov ecx, eax
call fcn.0040346b
mov esi, 0x4130f0
lea ecx, [ebp - 0x2c]
push esi
push edi
push str.Path:
call fcn.0040346b
mov ecx, eax
call fcn.0040346b
mov ecx, eax
call fcn.0040346b
push str.Message:
lea ecx, [ebp - 0x2c]
call fcn.0040346b
cmp dword [0x4184d8], 8
mov ecx, 0x4184c4
push esi
cmovae ecx, dword [0x4184c4]
push dword [0x4184d4]
push ecx
mov ecx, eax
call fcn.00403874
mov ecx, eax
call fcn.0040346b
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
push ecx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push ecx
push 1
push ecx
push 0x3ff
push ecx
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x401fac
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401fa3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401fa3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040b690
pop ecx
pop ecx
call fcn.0040bbde
ret
Function at 0x404912
Capabilities:
Print debug messages

Disassembly:
push 0x10
mov eax, 0x40fd22
call fcn.0040bbed
mov eax, 0x418e5c
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
lea eax, [ebp + 0xc]
push eax
push ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push ebx
push ebx
call fcn.004045f8
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf]
mov esi, eax
lea ecx, [ebp - 0x1c]
or eax, 0xffffffff
test esi, esi
cmovs esi, eax
add esp, 0x18
inc esi
push esi
call fcn.00404a5b
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
mov edx, esi
push eax
push dword [ebp + 8]
call fcn.00404631
mov eax, dword fs:[0x2c]
mov edi, dword [eax]
mov esi, dword [edi + 4]
test esi, esi
jne 0x404998
mov ecx, dword [ebp - 0x1c]
call fcn.00401e2d
jmp 0x4049a6
push dword [ebp - 0x1c]
mov ecx, esi
call dword [0x4111f4]
call esi
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x418e78], 0
je 0x4049dd
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
pop ecx
cmp dword [0x418e74], eax
jne 0x4049d1
cmp dword [edi + 4], ebx
je 0x4049dd
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.004045fe
lea ecx, [ebp - 0x1c]
call fcn.00404a39
push 0x418e5c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0040bbca
ret
Function at 0x408c60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, edx
xor edx, edx
push edi
mov edi, ecx
mov eax, esi
mov dword [esi + 0x10], edx
cmp dword [esi + 0x14], 8
jb 0x408c79
mov eax, dword [esi]
push edx
push edx
xor ecx, ecx
push edi
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x408cc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x408cbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
push ecx
push edi
push str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.00404912
add esp, 0xc
xor al, al
jmp 0x408d22
push ebx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b948
pop ecx
push dword [ebp - 4]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x408d10
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
push ecx
push edi
push str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.00404912
add esp, 0xc
xor al, al
jmp 0x408d21
push ebx
mov ecx, esi
call fcn.004037fe
push ebx
call fcn.0040b943
pop ecx
mov al, 1
pop ebx
pop edi
pop esi
leave
ret
Function at 0x401a30
Capabilities:
Enumerate process modules

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x3e8
push 0x406548
call sub.PSAPI.DLL_EnumProcesses
mov ecx, dword [esp]
shr ecx, 2
xor eax, eax
test ecx, ecx
jle 0x401a60
cmp dword [eax*4 + 0x406548], esi
je 0x401a64
add eax, 1
cmp eax, ecx
jl 0x401a50
xor al, al
pop ecx
ret
xor ecx, ecx
cmp ecx, esi
sbb eax, eax
neg eax
pop ecx
ret
Function at 0x402ec9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x406018]
jne 0x402ed3
repz ret
jmp fcn.004032c4