joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005ad60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x101258d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1005ad90
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1005adc0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1005adc0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1005aebe
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1005ade9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1005ae1d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1005ae7c
sub eax, 1
je 0x1005ae7c
sub eax, 2
jne 0x1005aebe
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.100204c0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1005ae9d
lfence
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1005aebe
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1005aebe
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
Function at 0x4057ac
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402dc0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x405847
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x409398]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x405847
cmp eax, 1
je 0x405868
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x405847
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405814
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405843
xor eax, eax
inc eax
jmp 0x405887
cmp edi, eax
jae 0x40584b
xor eax, eax
jmp 0x405887
cmp eax, esi
jae 0x405852
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x409398]
jmp 0x40586b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x100265b7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10026654
push ebx
push esi
call fcn.10026580
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100264c9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10026601
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10026653
push edi
push eax
call fcn.10024b09
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10026621
call fcn.10024acf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10026652
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100264c9
add esp, 0x20
test eax, eax
jne 0x10026640
push edi
call fcn.10024acf
jmp 0x10026648
push ebx
call fcn.10024acf
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10026852
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002f7b0
push 0x1002f7a8
push str.FlsAlloc
push 0x1e
call fcn.10026770
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10026886
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002d15c]
call esi
jmp 0x1002688c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100268d0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002f7c0
push 0x1002f7b8
push str.FlsGetValue
push 0x20
call fcn.10026770
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10026907
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002d15c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x405a12
pop dword [ebp - 0x40]
mov eax, 0x62103c6c
sub eax, 0x61cfe25a
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xb8b9c9fb
add dword [ebp - 0x50], 0x95987b50
mov dword [ebp - 0x4c], 0xbb10a32d
sub dword [ebp - 0x4c], 0x88dd56e8
mov dword [ebp - 0x48], 0xd94320d
add dword [ebp - 0x48], 0x3eb81221
mov dword [ebp - 0x44], 0xbf0443b3
add dword [ebp - 0x44], 0x40fbbc4d
lea eax, [ebp - 0x50]
push eax
mov eax, 0x79adf72f
sub eax, 0x796d762b
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xc5c5f20a
sub dword [ebp - 0x50], 0x515388b4
mov dword [ebp - 0x4c], 0xf3f3933e
add dword [ebp - 0x4c], 0x4d78ce37
mov dword [ebp - 0x48], 0x97794934
add dword [ebp - 0x48], 0xcbf62338
mov dword [ebp - 0x44], 0x3242430b
add dword [ebp - 0x44], 0xcdbdbcf5
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xbe0a521b
add eax, 0x42362ee5
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x351f8
push 0
call eax
mov ecx, 0x4092
xor edx, edx
add edx, eax
mov ebx, 0x7e545678
sub ebx, 0x7e0d7278
add ebx, dword [ebp - 0x40]
mov esi, 0x2d01963e
add esi, 0x47596865
add dword [ebp - 0x18], eax
mov edi, dword [ebx]
add dword [ebp - 0x20], 0x7c900e05
xor edi, esi
sub dword [ebp - 0x10], ebx
mov dword [edx], edi
xor dword [ebp - 0x34], edi
add edx, 4
add ebx, 0xb2bab1b0
sub ebx, 0xb2bab1ac
loop 0x405b30
add eax, 0x8cbc8305
add eax, 0x73447216
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x405cce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x1000ec86
Capabilities:
Hash data using djb2

Disassembly:
movzx eax, word [ecx]
mov edx, 0x1505
push esi
xor esi, esi
jmp 0x1000eca0
imul edx, edx, 0x21
movzx eax, ax
xor edx, eax
inc esi
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x1000ec93
imul eax, edx, 0x41c64e6d
imul ecx, edx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x1000f8cb
Capabilities:
Hash data using djb2

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x1000f8d7
or eax, 0xffffffff
pop esi
ret
movzx eax, word [esi]
push ebx
push edi
mov edi, 0x1505
xor ebx, ebx
jmp 0x1000f8ff
movzx ecx, ax
add eax, 0xffffffbf
cmp ax, 0x19
lea edx, [ecx + 0x20]
cmova edx, ecx
imul edi, edi, 0x21
xor edi, edx
inc ebx
movzx eax, word [esi + ebx*2]
test ax, ax
jne 0x1000f8e5
imul eax, edi, 0x41c64e6d
imul ecx, edi, 0x10dcd
pop edi
pop ebx
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x1001603e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1001604d
pop dword [ebp - 0x18]
mov eax, 0x1001604d
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x29e1f2ee
add dword [ebp - 0x28], 0x2470525d
mov dword [ebp - 0x24], 0x1ad90484
sub dword [ebp - 0x24], 0xe8a5b83f
mov dword [ebp - 0x20], 0x35c2db04
sub dword [ebp - 0x20], 0xe97696d6
mov dword [ebp - 0x1c], 0xaa382fd9
add dword [ebp - 0x1c], 0x55c7d027
lea eax, [ebp - 0x28]
push eax
mov eax, 0xa7062340
sub eax, 0x9703b244
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x26b7c1c4
sub dword [ebp - 0x28], 0xb245586e
mov dword [ebp - 0x24], 0xa4e56fc
sub dword [ebp - 0x24], 0xc8e1f587
mov dword [ebp - 0x20], 0x4f1e663f
sub dword [ebp - 0x20], 0xebaef9d3
mov dword [ebp - 0x1c], 0x677e4b5a
add dword [ebp - 0x1c], 0x9881b4a6
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3fb65
push 0
call eax
mov ecx, 0xb931b3f2
add ecx, 0x46ce9d65
xor ebx, ebx
add ebx, eax
mov edx, 0x10041c00
add edx, dword [ebp - 0x18]
mov edi, 0x232219f1
xor dword [ebp - 8], 0xae8eb3c4
mov esi, dword [edx]
sub dword [ebp - 8], eax
add esi, edi
add dword [ebp - 8], esi
mov dword [ebx], esi
sub dword [ebp - 0xc], 0xf5b5df13
add ebx, 0x36fe6654
sub ebx, 0x36fe6650
add edx, 0x8f2521c1
sub edx, 0x8f2521bd
loop 0x1001615b
add eax, 0x1382f
mov ebx, eax
add eax, 0x85ac28a8
sub eax, 0x85ac28a3
mov ecx, 0x5e810c4a
add ecx, 0xb17ef3b6
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x402070
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
mov eax, dword [0x4ae1d8]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
sar eax, 1
mov dword [esp + 8], eax
and eax, 0x1ff
push edi
push eax
call esi
mov edi, 0x8001
test di, ax
mov eax, dword [esp + 0xc]
setne bl
sar eax, 9
mov dword [esp + 0xc], eax
test al, 4
je 0x4020b7
push 0x10
call esi
test di, ax
setne al
and bl, al
mov eax, dword [esp + 0xc]
test al, 8
je 0x4020cd
push 0x11
call esi
and ax, di
neg ax
sbb al, al
and bl, al
mov eax, dword [esp + 0xc]
test al, 0x10
je 0x4020e4
push 0x12
call esi
and ax, di
neg ax
pop edi
sbb al, al
pop esi
and al, bl
pop ebx
pop ecx
ret
pop edi
pop esi
mov al, bl
pop ebx
pop ecx
ret

Function at 0x403c44
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x403c95
cmp byte [esi + 0x3e], bl
je 0x403c95
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
cmp di, ax
je 0x403cc4
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, ebx
je 0x403c9c
sub eax, 1
je 0x403c9f
dec eax
sub eax, 1
jne 0x403cc4
mov byte [esi + 0x3e], bl
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
mov byte [esi + 0x3e], bl
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403cbc
push dword [esi + 0x4c]
push edi
push 1
push eax
call sym.GUIToGo.exe_fwrite
add esp, 0x10
cmp edi, eax
jne 0x403cc4
cmp byte [esi + 0x3e], bl
sete al
jmp 0x403c97
xor al, al
jmp 0x403c97

Function at 0x407c31
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x10]
mov edx, dword [eax]
mov eax, dword [edi + 0x20]
mov esi, dword [eax]
sub esi, edx
sar esi, 1
je 0x407c52
xor eax, eax
push edx
mov word [edx + esi*2], ax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [edi + 0x30]
add dword [eax], esi
neg esi
mov eax, dword [edi + 0x20]
add esi, esi
pop edi
add dword [eax], esi
xor eax, eax
pop esi
ret
Function at 0x407e60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x21c]
mov dword [ebp - 0xc], ecx
push eax
xor esi, esi
call fcn.00407e3e
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x407f37
lea eax, [edi + 8]
cmp edi, eax
sbb ecx, ecx
and ecx, eax
je 0x407f2a
cmp ecx, 0x400
ja 0x407ecc
mov eax, ecx
call fcn.00442af0
mov ebx, esp
test ebx, ebx
je 0x407f2a
mov dword [ebx], 0xcccc
jmp 0x407edf
push ecx
call fcn.0044acd4
mov ebx, eax
pop ecx
test ebx, ebx
je 0x407f2a
mov dword [ebx], 0xdddd
add ebx, 8
test ebx, ebx
je 0x407f2a
push ebx
push edi
push esi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x407f22
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], esi
push eax
push 0x48f048
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
push ebx
call fcn.00406c60
jmp 0x407f7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.Fail_to_get_ver_info_for_
jmp 0x407f42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.Fail_to_get_ver_info_size_for_
push eax
mov ecx, 0x4be510
call fcn.00404b93
lea edx, [ebp - 0x21c]
mov ecx, eax
call fcn.00404b93
mov edx, 0x490684
mov ecx, eax
call fcn.00404b93
mov ecx, eax
call fcn.0040340d
push 0x29
pop edx
mov ecx, eax
call fcn.00404d07
push eax
call fcn.00404e2c
pop ecx
mov eax, esi
lea esp, [ebp - 0x228]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408150
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x420
push esi
push edi
xor eax, eax
push str.SYSTEMCurrentControlSetServicesEventLogApplication_
mov word [esp + 0x21c], ax
lea eax, [esp + 0x1c]
push 0x101
push eax
call fcn.0044acdf
push 0xc9
push dword [esp + 0x43c]
lea eax, [esp + 0x2c]
push 0x101
push eax
call fcn.0044d0d7
add esp, 0x1c
mov dword [esp + 8], 0
lea eax, [esp + 8]
push eax
push 0x20019
push 0
lea eax, [esp + 0x24]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4081c5
mov edi, dword [esp + 8]
jmp 0x40826f
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 0
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408298
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x21c]
push 0x104
push eax
push dword [0x4a7960]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408223
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [esp + 0x220]
push eax
push 1
push 0
push str.EventMessageFile
push edi
call esi
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 7
push eax
push 4
push 0
push str.TypesSupported
push edi
call esi
push dword [esp + 0x42c]
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test edi, edi
je 0x40828b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0x420
ret 4
push str.Dolphin
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
pop edi
pop esi
add esp, 0x420
ret 4

Function at 0x409336
Capabilities:
Print debug messages

Disassembly:
push esi
push edx
push 0
push ecx
push 0x400
mov esi, 0x4a8760
push esi
call fcn.00401dd0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret

Function at 0x409357
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
jmp fcn.00409336

Function at 0x40b9d3
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push esi
push 0x40
lea eax, [esp + 0xc]
mov esi, ecx
push 0
push eax
call sym.GUIToGo.exe_memset
add esp, 0xc
mov dword [esp + 8], 0x40
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [esp + 0x38], 0x10000000
jb 0x40ba1f
push 0x23
mov edx, esi
pop ecx
call fcn.0040b6fa
xor eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0040946b
int3
Function at 0x4199d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0xa
push 0x64
push ebp
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x419b33
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x419b33
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x419b33
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x47f500
push 0xc
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0
call fcn.00442707
mov esi, eax
add esp, 8
test esi, esi
je 0x419a7f
mov ecx, dword [0x4be8a0]
mov dword [esi + 8], 0
mov dword [esi], vtable.ATL::CComObject_class_CDolphinSmalltalk_.1.0
mov dword [esi + 4], vtable.ATL::CComObject_class_CDolphinSmalltalk_.0
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
mov dword [esi + 8], eax
mov eax, dword [esi]
push 0x4925b0
push esi
call dword [eax]
mov ebx, eax
jmp 0x419abc
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0x8007000e
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov esi, dword [esp + 0x14]
push esi
push 0x8007000e
push 0x401
call fcn.004093a5
add esp, 0xc
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
js 0x419b38
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call esi
push 0x208
lea eax, [esp + 0x24]
push 0
push eax
call sym.GUIToGo.exe_memset
add esp, 0xc
lea eax, [esp + 0x20]
push 0x104
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push 0
push dword [esp + 0x1c]
push dword [esp + 0x24]
mov ecx, dword [eax]
push edx
push ebp
push eax
call dword [ecx + 0xc]
mov ebx, eax
test ebx, ebx
js 0x419b3e
push edi
call esi
mov eax, dword [esp + 0x10]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 0x80004005
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x419b45
push edi
call esi
pop edi
mov eax, ebx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret