joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412000
Capabilities:
Allocate thread local storage

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x412071
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, eax
call edi
mov dword [eax], esi
add esi, 0xfffffffd
cmp esi, 0x4d
ja case.0x412032.4
movzx eax, byte [esi + 0x41208c]
jmp dword [eax*4 + 0x412078]
call edi
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
ret
call edi
pop edi
pop esi
mov dword [eax], 0x11
or eax, 0xffffffff
ret
call edi
pop edi
pop esi
mov dword [eax], 0xd
or eax, 0xffffffff
ret
call edi
mov dword [eax], 2
pop edi
or eax, 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4121f0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4596f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x46d060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
push 1
movq qword [ebp - 0x18], xmm0
call fcn.004113a0
mov dword [ebp - 4], 0
or word [ebp - 0x14], 2
mov ecx, dword [0x46e11c]
test ecx, ecx
je 0x412268
push esi
call fcn.00411900
test edi, edi
jne 0x412264
mov ecx, dword [0x46e11c]
push esi
call fcn.004117a0
xor esi, esi
jmp 0x41226b
or esi, 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00411540
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456d98
mov esp, ebp
pop ebp
ret
Function at 0x412dc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459766
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x46d060]
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 ebx, ecx
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebx + 0xc]
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
push eax
mov dword [ebp - 0x18], eax
call esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
cmp dword [ebx + 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jne 0x412ecd
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x46e418]
cmp eax, dword [ecx + 4]
jle 0x412e8d
push 0x46e418
call fcn.00457ce7
add esp, 4
cmp dword [0x46e418], 0xffffffff
jne 0x412e8d
sub esp, 8
mov byte [ebp - 4], 1
mov ecx, 0x46e41c
call fcn.00412370
push 0x459c70
mov dword [0x46e438], 0x46e41c
mov dword [0x46e43c], 1
call fcn.00457265
push 0x46e418
mov byte [ebp - 4], 0
call fcn.00457ca8
add esp, 8
mov edi, dword [0x46e438]
push edi
call esi
mov eax, dword [0x46e43c]
mov esi, eax
inc eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [0x46e43c], eax
call edi
lea ecx, [ebx + 0x28]
mov dword [ebx + 4], esi
mov edx, 0x412ce0
call fcn.004120e0
test eax, eax
je 0x412ecd
mov eax, dword [ebp - 0x18]
push eax
call edi
xor eax, eax
jmp 0x412f65
lea eax, [ebx + 0xc]
mov dword [ebp - 4], 0xffffffff
push eax
call edi
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x412f65
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x412f03
call esi
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
xor eax, eax
jmp 0x412f65
push 0x46dd5d
push 0xc
call fcn.00457b2d
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x412f35
call fcn.00413350
mov dword [esi], ebx
mov dword [esi + 4], eax
mov dword [esi + 8], 0
jmp 0x412f37
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x412f52
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0xc
xor eax, eax
jmp 0x412f65
mov ecx, dword [ebx + 0x28]
mov edx, esi
call fcn.004121f0
xor ecx, ecx
test eax, eax
cmovne esi, ecx
mov eax, esi
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.00456d98
mov esp, ebp
pop ebp
ret
Function at 0x413080
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4597c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x46d060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
push 1
movq qword [ebp - 0x18], xmm0
call fcn.004113a0
mov dword [ebp - 4], 0
or word [ebp - 0x14], 2
mov ecx, dword [0x46e11c]
test ecx, ecx
je 0x413100
push esi
call fcn.00411900
test edi, edi
jne 0x4130f4
mov ecx, dword [0x46e11c]
push esi
call fcn.004117a0
lea ecx, [ebp - 0x18]
call fcn.00411540
xor eax, eax
jmp 0x41310b
lea ecx, [ebp - 0x18]
call fcn.00411540
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456d98
mov esp, ebp
pop ebp
ret
Function at 0x413350
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459832
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46d060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x46e101], 0
jne 0x41341e
mov ecx, dword [0x46e138]
mov esi, dword [0x46e134]
test ecx, ecx
je 0x4133af
xor eax, eax
cmp dword [ecx + 4], 2
setl al
cmp eax, 1
je 0x4133af
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x46e101], 0
jne 0x4133ff
call fcn.00413220
mov edx, fcn.00413320
mov ecx, 0x46e1e8
call fcn.004120e0
test eax, eax
je 0x4133f8
mov ecx, dword [0x46e138]
test ecx, ecx
je 0x4133e6
xor eax, eax
cmp dword [ecx + 4], 2
setl al
cmp eax, 1
je 0x4133e6
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov byte [0x46e101], 1
mov ecx, dword [0x46e138]
test ecx, ecx
je 0x41341e
xor eax, eax
cmp dword [ecx + 4], 2
setl al
cmp eax, 1
je 0x41341e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [0x46e1e8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4134cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x413460
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x4134cb
push 0x46dd5d
push 0x150
call fcn.00457b2d
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x41348b
mov ecx, eax
call fcn.00413600
mov esi, eax
jmp 0x41348d
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x4134b6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x46e1e8]
mov edx, esi
call fcn.00413080
test eax, eax
jne 0x4133e6
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413600
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x46e1e0]
push esi
mov esi, ecx
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0x114], 0
mov byte [esi + 0x118], 1
mov dword [esi + 0x11c], 0
mov dword [esi + 0x120], 0
mov dword [esi + 0x124], 0
mov dword [esi + 0x128], 0
mov word [esi + 0x12c], 0x100
mov dword [esi + 0x130], 0
mov dword [esi + 0x134], eax
mov dword [esi + 0x138], 0
call fcn.00413220
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x46e1fc]
inc eax
mov dword [0x46e1fc], eax
cmp eax, 1
jne 0x4136b5
mov dword [0x46e128], 0x414fb0
mov dword [0x46e120], 0x415060
mov dword [0x46e124], 0x4134e0
push str.ACE_LOG_TIMESTAMP
mov byte [esi + 0x13c], 0
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x413744
mov edx, str.TIME
push ebx
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x4136f6
test bl, bl
je 0x4136f2
mov bl, byte [eax + 1]
cmp bl, byte [edx + 1]
jne 0x4136f6
add eax, 2
add edx, 2
test bl, bl
jne 0x4136d6
xor eax, eax
jmp 0x4136fb
sbb eax, eax
or eax, 1
pop ebx
test eax, eax
jne 0x41370c
mov dword [esi + 0x138], 1
jmp 0x413744
mov eax, str.DATE
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x413731
test dl, dl
je 0x41372d
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x413731
add ecx, 2
add eax, 2
test dl, dl
jne 0x413711
xor eax, eax
jmp 0x413736
sbb eax, eax
or eax, 1
test eax, eax
jne 0x413744
mov dword [esi + 0x138], 2
push 0x46dd5d
push 0x1001
call fcn.00457b8d
add esp, 8
mov dword [esi + 0x114], eax
test eax, eax
jne 0x41376c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
ret
Function at 0x415100
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x46d060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, edx
push edi
mov dword [ebp - 0xc], ecx
xor edi, edi
mov dword [ebp - 0x10], 0
push 0
push 0
push 0
lea edx, [ebp - 8]
mov dword [ebp - 8], 0
push edx
mov edx, dword [ebp - 0xc]
lea ecx, [ebx + edi*8]
mov eax, 2
sub eax, edi
push eax
push ecx
push edx
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x4151ac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call eax
mov dword [eax], esi
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call esi
cmp dword [eax], 0x2747
jne 0x4151bc
cmp dword [ebp - 8], 0
jne 0x4151bc
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
lea edx, [ebx + edi*8]
call fcn.004159c0
add esp, 4
cmp eax, 0xffffffff
jne 0x4151af
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call eax
mov dword [eax], esi
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
jmp 0x4151bc
mov eax, dword [ebp - 8]
test eax, eax
je 0x41524b
cmp eax, 0xffffffff
jne 0x4151ea
call esi
cmp dword [eax], 0x2733
je 0x4151d0
call esi
cmp dword [eax], 0x2747
jne 0x415237
push ecx
mov ecx, dword [ebp - 0xc]
push 1
push 0
call fcn.00415260
add esp, 0xc
cmp eax, 0xffffffff
je 0x415237
mov edx, dword [ebp - 0x10]
jmp 0x415211
mov edx, dword [ebp - 0x10]
add edx, eax
mov dword [ebp - 0x10], edx
cmp edi, 2
jge 0x415206
mov ecx, dword [ebx + edi*8]
cmp eax, ecx
jl 0x415206
inc edi
sub eax, ecx
cmp edi, 2
jl 0x4151f7
test eax, eax
je 0x415211
add dword [ebx + edi*8 + 4], eax
sub dword [ebx + edi*8], eax
cmp edi, 2
jl 0x415127
mov eax, accept
cmp edx, eax
pop edi
cmova edx, eax
pop esi
mov eax, edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00456d98
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00456d98
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00456d98
mov esp, ebp
pop ebp
ret
Function at 0x415260
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00457b00
mov eax, dword [0x46d060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x100c
lea eax, [ebp - 0x1010]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x100c], 0xffffffff
add esp, 0xc
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x1008], eax
cmp esi, 0xffffffff
je 0x41530c
lea eax, [ebp - 0x1008]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x415306
mov ecx, dword [ebp - 0x1008]
test ecx, ecx
je 0x4152de
nop dword [eax + eax]
cmp dword [ebp + eax*4 - 0x1004], esi
je 0x4152de
inc eax
cmp eax, ecx
jb 0x4152d0
cmp eax, ecx
jne 0x4152f7
cmp ecx, 0x400
jae 0x4152f7
mov dword [ebp + eax*4 - 0x1004], esi
inc dword [ebp - 0x1008]
mov eax, dword [ebp - 0x1010]
inc eax
mov dword [ebp - 0x1010], eax
jmp 0x41530c
mov eax, dword [ebp - 0x1010]
cmp dword [ebp + 0xc], 0
je 0x415321
xor edx, edx
lea ecx, [ebp - 0x1008]
test eax, eax
cmovle ecx, edx
jmp 0x415323
xor ecx, ecx
cmp dword [ebp + 8], 0
je 0x415338
xor esi, esi
lea edx, [ebp - 0x1008]
test eax, eax
cmovle edx, esi
jmp 0x41533a
xor edx, edx
push 0
push 0
push ecx
push edx
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x41536f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00456d98
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x415382
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x89
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00456d98
mov esp, ebp
pop ebp
ret
Function at 0x4159c0
Capabilities:
Send data
Send data on socket

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 0x4598e7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x46d060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x40], ecx
mov edi, dword [ebx + 8]
xorps xmm0, xmm0
push ecx
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
movlpd qword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x28], xmm0
call fcn.00415b70
mov esi, dword [ebp - 0x20]
xor edx, edx
test edi, edi
jle 0x415ac5
mov eax, dword [ebp - 0x38]
lea ecx, [esi + 4]
sub eax, esi
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
nop dword [eax + eax]
mov eax, dword [esi + ecx]
lea ecx, [ecx + 8]
mov edi, dword [ebp - 0x2c]
mov dword [ecx - 8], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + edx*8]
mov dword [ecx - 0xc], eax
mov eax, dword [ebp - 0x38]
add edi, dword [eax + edx*8]
mov dword [ebp - 0x2c], edi
adc dword [ebp - 0x34], 0
inc edx
mov edi, dword [ebx + 8]
cmp edx, edi
jl 0x415a50
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x20]
mov ecx, edx
shrd eax, ecx, 1
shr ecx, 1
sub dword [ebp - 0x2c], eax
sbb edx, ecx
mov dword [ebp - 0x34], edx
lea edx, [edi - 1]
test edx, edx
js 0x415ad6
nop word [eax + eax]
test ecx, ecx
jne 0x415aa8
test eax, eax
je 0x415ad6
mov esi, dword [esi + edx*8]
xor edi, edi
cmp edi, ecx
ja 0x415ad0
jb 0x415ab7
cmp esi, eax
ja 0x415ad0
sub eax, esi
mov esi, dword [ebp - 0x20]
sbb ecx, edi
sub edx, 1
jns 0x415aa0
jmp 0x415ad6
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
jmp 0x415a83
mov edi, dword [ebp - 0x20]
sub dword [edi + edx*8], eax
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea edi, [edx + 1]
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x40]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x415b28
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0x2747
jne 0x415b23
cmp dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
je 0x415a80
or esi, 0xffffffff
jmp 0x415b2b
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x415b42
mov ecx, dword [ebp - 0x1c]
push eax
mov edx, dword [ecx]
call dword [edx + 0x10]
mov eax, esi
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.00456d98
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4162b0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push str.Dbghelp
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi], eax
test eax, eax
jne 0x4162c8
xor al, al
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SymGetModuleBase64
push eax
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x41636a
push str.SymFunctionTableAccess64
push dword [esi]
call edi
mov dword [esi + 8], eax
test eax, eax
je 0x41636a
push str.SymFromAddr
push dword [esi]
call edi
mov dword [esi + 0xc], eax
test eax, eax
je 0x41636a
push str.SymGetLineFromAddr64
push dword [esi]
call edi
mov dword [esi + 0x10], eax
test eax, eax
je 0x41636a
push str.SymSetOptions
push dword [esi]
call edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x41636a
push str.SymGetOptions
push dword [esi]
call edi
mov dword [esi + 0x18], eax
test eax, eax
je 0x41636a
push str.SymInitialize
push dword [esi]
call edi
mov dword [esi + 0x1c], eax
test eax, eax
je 0x41636a
push str.StackWalk64
push dword [esi]
call edi
mov dword [esi + 0x20], eax
test eax, eax
je 0x41636a
push str.SymCleanup
push dword [esi]
call edi
mov dword [esi + 0x24], eax
test eax, eax
je 0x41636a
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x4167d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x46d060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x46e1d4]
mov dword [ebp - 0x218], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41681d
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00456d98
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416826
push ebx
sub ecx, edx
test esi, esi
push edi
mov edi, dword [0x46e1ec]
cmovne edi, esi
xor eax, eax
lea ebx, [ecx + 1]
nop dword [eax]
nop word [eax + eax]
mov cl, byte [eax + str.SYSTEMCurrentControlSetServicesEventLogApplication_]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x109], cl
test cl, cl
jne 0x416850
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416870
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push eax
lea eax, [ebp - 0x108]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x108]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x210]
push 4
push eax
push 4
push 0
push str.TypesSupported
push dword [ebp - 0x214]
mov dword [ebp - 0x210], 7
call esi
push ebx
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push str.EventMessageFile
push dword [ebp - 0x214]
call esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov ecx, dword [ebp - 0x218]
pop edi
pop ebx
pop esi
mov dword [ecx + 4], eax
neg eax
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
neg eax
dec eax
call fcn.00456d98
mov esp, ebp
pop ebp
ret 4
Function at 0x416970
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00457b00
mov eax, dword [0x46d060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x2010], ecx
mov esi, 0x1001
mov edi, dword [ebx + 0x18]
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4169a0
sub edx, ecx
lea eax, [edx + 1]
cmp eax, 0x1001
jae 0x4169c4
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4169b8
sub ecx, edx
lea esi, [ecx + 1]
xor edx, edx
xor eax, eax
xor ecx, ecx
test esi, esi
je 0x416a03
nop
mov dl, byte [ecx + edi]
cmp dl, 0xa
jne 0x4169ea
mov byte [ebp + eax - 0x2008], 0xd
inc eax
mov byte [ebp + eax - 0x2008], dl
jmp 0x4169f1
mov byte [ebp + eax - 0x2008], dl
inc ecx
lea edx, [eax + 1]
mov eax, edx
cmp ecx, esi
jb 0x4169d0
cmp edx, 0x2003
jae 0x416a7e
mov eax, dword [ebx + 4]
pop edi
dec eax
mov byte [ebp + edx - 0x2008], 0
pop esi
pop ebx
cmp eax, 0x3f
ja case.0x416a1e.3
movzx eax, byte [eax + 0x416a90]
jmp dword [eax*4 + 0x416a84]
mov eax, 4
jmp 0x416a38
mov eax, 2
jmp 0x416a38
mov eax, 1
push 0
lea ecx, [ebp - 0x2008]
mov dword [ebp - 0x200c], ecx
lea ecx, [ebp - 0x200c]
push ecx
push 0
push 1
push 0
push 0
push 0
push eax
mov eax, dword [ebp - 0x2010]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
dec eax
call fcn.00456d98
mov esp, ebp
pop ebp
ret 4
call fcn.00456f35
nop
and eax, 0x2c00416a
push 65
add byte [ebx], dh
push 0x41
add byte [eax], al
add byte [edx], al
add byte [edx], al
add al, byte [edx]
add byte [edx], al
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add dword [edx], eax
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add dword [edx], eax
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add byte [ebp - 117], dl
in al, dx
push 0xffffffffffffffff
push 0x458b17
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x46d060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x416b08
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [esi + 0x10], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
test byte [esi + 0x1c], 1
mov dword [esi], vtable.ACE_Message_Block.0
jne 0x416b2f
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x416b2f
push ecx
call fcn.00417920
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret