Function at 0x4124d0
Capabilities:
Access the windows event log
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4228e4
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x42c050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, edx
xor esi, esi
push 0x18
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x74], cl
mov dword [ebp - 0x7c], esi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, esi
je 0x412bbf
mov dword [eax], eax
mov dword [ebp - 0x80], eax
mov dword [eax + 4], eax
mov dword [ebp - 4], esi
mov edi, 0xf
mov dword [ebp - 0x6c], 0x601
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], esi
mov byte [ebp - 0x64], 0
mov byte [ebp - 4], 1
test byte [0x430f5c], 1
jne 0x412576
or dword [0x430f5c], 1
mov byte [ebp - 4], 2
call fcn.00414d40
push 0x423530
call fcn.0041d6db
add esp, 4
mov byte [ebp - 4], 1
test byte [0x430f18], 1
jne 0x4125a0
or dword [0x430f18], 1
mov byte [ebp - 4], 3
call fcn.00402740
push 0x423420
call fcn.0041d6db
add esp, 4
mov byte [ebp - 4], 1
cmp byte [ebp + 0xc], 0
je 0x412604
mov eax, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4125b5
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [ebp - 0x2c]
call fcn.00401c70
push 0x430f1c
mov edi, esi
mov byte [ebp - 4], 4
call fcn.00403940
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0x10
mov esi, eax
jb 0x4125f3
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
test esi, esi
js 0x412adf
cmp esi, 3
jge 0x412adf
mov eax, 0x430f44
call fcn.004169a0
push 0x430f44
call fcn.00416e70
mov eax, ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412630
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [ebp - 0x2c]
call fcn.00401c70
mov eax, esi
push eax
mov ecx, 0x430f44
mov byte [ebp - 4], 5
call fcn.00416bc0
test al, al
sete byte [ebp - 0x65]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0x10
jb 0x412673
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [ebp - 0x65], 0
je 0x4126cd
mov eax, ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412690
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [ebp - 0x2c]
call fcn.00401c70
mov edx, esi
push edx
mov ecx, 0x430f44
mov byte [ebp - 4], 6
call fcn.00416d20
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0x10
jb 0x4126cd
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
test byte [0x430ea8], 1
jne 0x4126ef
or dword [0x430ea8], 1
call fcn.00411560
push 0x423380
call fcn.0041d6db
add esp, 4
mov ecx, dword [0x430eb0]
push 0xffffffffffffffff
push ecx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [0x430ef4], bl
je 0x41270a
mov bl, 1
mov edx, dword [0x430eb0]
mov edi, dword [0x430ef8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
je 0x412ad8
test edi, edi
je 0x412ad8
xor ebx, ebx
or eax, 0xffffffff
lea ecx, [ebp - 0x64]
cmp byte [ebp - 0x74], bl
je 0x412741
push 0x4306a0
jmp 0x412746
push 0x430684
call fcn.00401b90
mov esi, dword [ebp - 0x84]
push 0
push esi
call dword [sym.imp.MSVCR100.dll__waccess_s]
add esp, 8
test eax, eax
je 0x41276d
mov dword [ebp - 0x6c], 0x101
jmp 0x412adf
mov eax, esi
lea ecx, [ebp - 0x48]
call fcn.00404e10
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.004030a0
test al, al
sete bl
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 8
jb 0x4127a3
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
test bl, bl
je 0x4127b3
mov dword [ebp - 0x6c], 0x1007
jmp 0x412adf
cmp byte [ebp + 0xc], 0
je 0x41280b
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x2c]
call fcn.00401660
mov eax, esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.00404e10
lea edx, [ebp - 0x2c]
push edx
mov dl, byte [ebp - 0x74]
lea eax, [ebp - 0x48]
push eax
push 0x430f1c
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 9
call fcn.00402990
mov ebx, eax
lea esi, [ebp - 0x48]
mov dword [ebp - 0x6c], ebx
call fcn.004016d0
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00405c80
test ebx, ebx
jmp 0x412850
mov eax, esi
lea ecx, [ebp - 0x48]
call fcn.00404e10
cmp byte [ebp - 0x74], 0
mov byte [ebp - 4], 0xa
je 0x41282d
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x80]
call fcn.00403530
jmp 0x41283d
lea ebx, [ebp - 0x80]
lea edx, [ebp - 0x48]
mov ecx, 0x430f1c
call fcn.004037f0
lea esi, [ebp - 0x48]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 1
call fcn.004016d0
cmp dword [ebp - 0x6c], 0
jne 0x412adf
mov eax, dword [ebp - 0x80]
mov esi, dword [eax]
cmp esi, eax
je 0x4128dc
nop
cmp byte [0x430f98], 0
jne 0x412884
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov ebx, dword [esi + 8]
call fcn.004136b0
test al, al
je 0x412884
mov dword [ebp - 0x6c], 0x102
jmp 0x4128b1
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov ecx, dword [esi + 8]
mov edx, dword [edi]
mov ebx, dword [ebp - 0x70]
push eax
mov eax, dword [edx + 0x10]
push ecx
push ebx
mov ecx, edi
call eax
mov dword [ebp - 0x6c], eax
cmp eax, 0x108
je 0x4128ba
cmp eax, 0x404
je 0x4128e5
test eax, eax
je 0x4128dc
mov esi, dword [esi]
cmp esi, dword [ebp - 0x80]
jne 0x412860
jmp 0x4128dc
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push ebx
mov ecx, edi
call eax
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov esi, dword [esi + 8]
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x10]
push esi
push ebx
mov ecx, edi
call eax
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0x404
jne 0x412941
call fcn.00412370
test al, al
je 0x412941
mov eax, dword [ebp - 0x80]
mov esi, dword [eax]
cmp esi, eax
je 0x412941
cmp byte [0x430f98], 0
jne 0x41291b
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov ebx, dword [esi + 8]
call fcn.004136b0
test al, al
je 0x41291b
mov dword [ebp - 0x6c], 0x102
jmp 0x41293a
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov ecx, dword [esi + 8]
mov edx, dword [edi]
mov ebx, dword [ebp - 0x70]
push eax
mov eax, dword [edx + 0x10]
push ecx
push ebx
mov ecx, edi
call eax
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x41294a
mov esi, dword [esi]
cmp esi, dword [ebp - 0x80]
jne 0x4128f7
cmp dword [ebp - 0x6c], 0
jne 0x4129aa
mov ebx, dword [ebp - 0x70]
cmp byte [ebp + 0xc], 0
je 0x412acf
mov eax, ebx
lea ecx, [ebp - 0x48]
call fcn.00401660
mov dl, byte [ebp - 0x74]
push 0x430f1c
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call fcn.004031e0
test al, al
sete byte [ebp - 0x65]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 0x10
jb 0x41298f
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [ebp - 0x65], 0
je 0x412acf
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push ebx
mov ecx, edi
mov dword [ebp - 0x6c], 0x601
call eax
cmp byte [ebp + 0xc], 0
je 0x412adf
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4129d0
mov ebx, dword [ebp - 0x70]
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [ebp - 0x2c]
call fcn.00401c70
mov byte [ebp - 4], 0xc
call fcn.0040a660
mov ecx, dword [ebp - 0x74]
push ecx
mov ecx, esi
lea edi, [ebp - 0x48]
call fcn.00404790
cmp dword [eax + 0x14], 8
jb 0x412a07
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll__wremove]
add esp, 4
cmp dword [ebp - 0x34], 8
jb 0x412a24
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor esi, esi
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], ax
jb 0x412a4d
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412a60
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [ebp - 0x2c]
call fcn.00401c70
push 0x430f1c
mov edi, esi
mov byte [ebp - 4], 0xd
call fcn.00403940
cmp eax, 1
sete byte [ebp - 0x65]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0x10
jb 0x412aa3
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [ebp - 0x65], 0
je 0x412adf
mov eax, ebx
lea ecx, [ebp - 0x48]
call fcn.00401660
lea eax, [ebp - 0x48]
push eax
mov eax, 0x430f1c
mov byte [ebp - 4], 0xe
call fcn.004034c0
lea esi, [ebp - 0x48]
call fcn.00405c80
jmp 0x412adf
mov dword [ebp - 0x6c], 0
jmp 0x412adf
mov dword [ebp - 0x6c], 0x300
test byte [0x430ea8], 1
jne 0x412b01
or dword [0x430ea8], 1
call fcn.00411560
push 0x423380
call fcn.0041d6db
add esp, 4
cmp byte [0x430eb8], 0
je 0x412b2c
mov ecx, dword [ebp - 0x6c]
push ecx
push 0x3011
push str.JHISVC
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__d____s__FN:__08x_RET:_0x_08x_n
call fcn.00401000
add esp, 0x14
cmp dword [ebp - 0x6c], 0
je 0x412b66
push 0x425d34
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x412b66
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_VariantCopy
push 0
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
cmp dword [ebp - 0x50], 0x10
jb 0x412b79
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ebx, [ebp - 0x80]
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
call fcn.0040f4b0
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov eax, dword [ebp - 0x6c]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d5b4
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x6c], esi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x42733c
lea edx, [ebp - 0x90]
push edx
mov dword [ebp - 0x90], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3