joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10070f7c
Capabilities:
Get thread local storage value

Disassembly:
push 4
mov eax, 0x100da5f0
call fcn.100157c2
mov ebx, ecx
mov eax, dword [ebx + 0xc]
push dword [eax + 0x70]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1007103b
push 0
pop edi
and eax, 3
je 0x10070fc4
cmp eax, 1
jne 0x10070fcd
and esi, 0xfffffffe
mov esi, dword [esi + 0x10]
add esi, 8
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10070fc4
mov al, byte [eax + 0x44]
test al, al
jne 0x1007103b
mov ecx, esi
call fcn.10068350
jmp 0x10071002
and esi, 0xfffffffd
lea ecx, [esi + 4]
mov eax, dword [ecx]
mov dword [ebp - 0x10], ecx
call dword [eax + 0x10]
mov esi, dword [esi + 0x20]
mov eax, dword [esi + 0x2c]
add esi, 0x10
test eax, eax
je 0x10070ff3
mov al, byte [eax + 0x44]
test al, al
je 0x10070ff3
mov esi, edi
jmp 0x10070ffa
mov ecx, esi
call fcn.10068350
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x14]
test esi, esi
je 0x1007103b
cmp dword [esi + 0x14], ebx
je 0x10071035
push 0x3c
call fcn.10018a71
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x10071028
push esi
push ebx
mov ecx, eax
call fcn.10018a71
mov edi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.10068350
jmp 0x10071037
mov edi, esi
mov eax, edi
jmp 0x1007103d
xor eax, eax
call fcn.100157f5
ret

Function at 0x10073f6d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 4
mov eax, 0x100db7e8
call fcn.100157c2
mov edi, ecx
mov dword [ebp - 0x10], edi
or dword [edi + 4], 0xfffffff
lea ecx, [edi + 0x3c]
xor esi, esi
mov dword [edi + 8], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 0x80000000
mov dword [edi + 0x18], esi
mov dword [edi + 0x38], esi
call sym.MSVCR120.dll_public:_void___thiscall_Concurrency::event::constructor_void_
mov dword [ebp - 4], esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x64]
mov dword [edi + 0x64], eax
xor eax, eax
mov dword [edi + 0x6c], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x84], eax
mov dword [edi + 0x88], eax
call fcn.10018a71
mov dword [edi + 0xc], eax
mov eax, dword [eax + 0x34]
mov dword [edi], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
test eax, eax
je 0x10073fe8
cmp eax, 2
je 0x10073fe8
xor edx, edx
add eax, 4
inc edx
lock xadd dword [eax], edx
mov ecx, edi
call fcn.10074d68
lea ecx, [edi + 0x3c]
call sym.MSVCR120.dll_public:_void___thiscall_Concurrency::event::set_void_
cmp byte [ebp + 0xc], 0
je 0x10074029
mov edx, dword [edi + 0x64]
mov ecx, edi
add edx, 0x68
mov esi, dword [edx]
mov eax, esi
mov dword [edi + 0x68], esi
lock cmpxchg dword [edx], ecx
jmp 0x10074023
mov dword [edi + 0x68], eax
mov esi, eax
mov ecx, dword [edi + 0x64]
mov edx, edi
add ecx, 0x68
lock cmpxchg dword [ecx], edx
cmp eax, esi
je 0x10074031
jmp 0x10074012
or dword [edi + 0x78], 1
and dword [edi + 0x68], 0
call fcn.1001ffa7
mov esi, eax
cmp dword [esi + 0x20], 0
jne 0x10074045
mov ecx, esi
call fcn.10065b8a
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x40]
and dword [edi + 4], 0xfffffff
mov dword [edi + 0x80], eax
mov eax, edi
call fcn.100157f5
ret 8
Function at 0x10075d62
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100de7b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100e3510]
test dword [ebp + 8], eax
je 0x10075dfc
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x808]
call fcn.10018a71
xor eax, eax
mov word [ebp - 8], ax
mov eax, dword [0x100dfd60]
pop ecx
test eax, eax
je 0x10075def
push esi
push edi
lea ecx, [ebp - 0x808]
push ecx
push eax
call sym.MSVCR120.dll_fwprintf
mov edi, dword [0x100e3524]
mov esi, dword [0x100e3520]
pop ecx
pop ecx
push 0
push 0x32
push edi
push esi
call fcn.10032225
add esi, 1
mov dword [0x100e3520], esi
adc edi, 0
or eax, edx
mov dword [0x100e3524], edi
pop edi
pop esi
jne 0x10075dfc
push dword [0x100dfd60]
call sym.MSVCR120.dll_fflush
pop ecx
jmp 0x10075dfc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010cbc
mov esp, ebp
pop ebp
ret
Function at 0x401040
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44328a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push 0
mov dword [esp + 8], esi
call fcn.0042c6de
mov dword [esp + 0x1c], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [esp + 0x1c], 6
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4010de
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], str.bad_locale_name
call fcn.0042cb67
push 0x455e00
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], vtable.std::runtime_error.0
call fcn.0042f49a
push eax
push esi
call fcn.0042c31e
mov ecx, dword [esp + 0x1c]
add esp, 8
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x404ed0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x443168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov eax, dword [edi + 4]
mov dword [esp + 0x10], eax
mov ax, word [edi + 0xc]
mov word [esp + 0x18], ax
mov eax, dword [edi + 0x10]
mov dword [esp + 0xc], vtable.CNode.0
mov dword [esp + 0x14], vtable.COpcode.0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], 0
mov eax, dword [edi + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
lea ebx, [edi + 0x18]
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 1
call fcn.00413510
mov dword [esp + 0x38], 2
cmp esi, edi
je 0x404f80
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov ax, word [esi + 0xc]
mov word [edi + 0xc], ax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [esi + 0x18]
push eax
mov ecx, ebx
call fcn.00413510
lea eax, [esp + 0xc]
cmp eax, esi
je 0x404fb3
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
mov ax, word [esp + 0x18]
mov word [esi + 0xc], ax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x14], eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esi + 0x18]
call fcn.00413510
lea ecx, [esp + 0xc]
call fcn.004133a0
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x411660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4435a8
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
mov ebx, ecx
push esi
cmp dword [ebx + 0x40], 0
push edi
je 0x4117b5
cmp byte [ebx + 0x45], 0
je 0x4117b5
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4116b9
xor al, al
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x3c], 0
lea ebp, [ebx + 0x48]
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
push ebp
call dword [edx + 0x20]
sub eax, 0
je 0x411731
dec eax
je 0x411735
sub eax, 2
je 0x41178b
xor bl, bl
jmp 0x41178d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x41176c
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.0042e434
add esp, 0x10
cmp esi, eax
jne 0x41172d
cmp byte [ebx + 0x45], 0
je 0x41178b
test esi, esi
jne 0x4116f3
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00411250
jmp 0x4116f3
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x4117a0
push dword [esp + 0x18]
call fcn.0042d556
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x34]
pop edi
mov al, 1
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414160
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4478f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
push 0xffffffffffffffff
mov dword [esp + 0x14], 1
push 0
lea eax, [esp + 0x20]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push eax
mov byte [esi], 0
call fcn.00403f00
lea ecx, [esi + 0x18]
push 0xffffffffffffffff
mov byte [esp + 0x14], 2
push 0
lea eax, [esp + 0x38]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00403f00
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x48]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x58]
mov dword [esi + 0x40], eax
jb 0x414201
push dword [esp + 0x18]
call fcn.0042d556
add esp, 4
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
jb 0x414229
push dword [esp + 0x30]
call fcn.0042d556
add esp, 4
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x44

Function at 0x414240
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4478c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, ecx
push 0xffffffffffffffff
push 0
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
push esi
mov dword [esp + 0x14], edi
mov byte [edi], 0
call fcn.00403f00
lea ecx, [edi + 0x18]
push 0xffffffffffffffff
mov dword [esp + 0x18], 0
push 0
lea eax, [esi + 0x18]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00403f00
mov eax, dword [esi + 0x30]
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [edi + 0x40], eax
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x42a8f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x444038
push eax
mov dword fs:[0], esp
mov edx, dword [esp + 0x10]
push ebx
mov ax, word [edx]
push esi
push edi
mov ebx, ecx
push 0xffffffffffffffff
lea edi, [ebx + 4]
mov word [ebx], ax
lea esi, [edx + 4]
push 0
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
push esi
mov ecx, edi
mov dword [esp + 0x28], edi
mov byte [edi], 0
call fcn.00403f00
lea ecx, [edi + 0x18]
push 0xffffffffffffffff
mov dword [esp + 0x18], 0
push 0
lea eax, [esi + 0x18]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00403f00
mov eax, dword [esi + 0x30]
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [edi + 0x40], eax
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8

Function at 0x42bd90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4479f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 0x18], 1
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov edi, dword [esi + 0x10]
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 1
cmp edi, eax
ja 0x42be0c
cmp dword [esi + 0x14], eax
je 0x42be0c
push 1
push eax
call fcn.004039b0
test al, al
je 0x42be08
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], edi
jb 0x42be02
mov eax, dword [esi]
jmp 0x42be04
mov eax, esi
mov byte [eax + edi], 0
mov eax, dword [esp + 0x30]
xor edi, edi
test eax, eax
je 0x42be67
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
mov al, byte [eax + edi]
cmp al, 0xa
je 0x42be52
cmp al, 0xd
je 0x42be49
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
mov ecx, esi
movzx eax, byte [eax + edi]
push eax
push 1
call fcn.00411250
jmp 0x42be60
push 2
push 0x454864
jmp 0x42be59
push 2
push 0x454860
mov ecx, esi
call fcn.0040eb80
inc edi
cmp edi, dword [esp + 0x30]
jb 0x42be12
cmp dword [esp + 0x34], 0x10
jb 0x42be7a
push dword [esp + 0x20]
call fcn.0042d556
add esp, 4
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x43c01f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45b6ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00439436
mov dword [ebp - 0x14], eax
cmp dword [0x45de48], edi
jne 0x43c110
push 0x800
push edi
push 0x44bf04
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x43c09d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x43c1f0
push 0x44bf04
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x43c1f0
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43c1f0
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x45de48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x45de4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x45de50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45de58], eax
test eax, eax
je 0x43c10d
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45de54], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x43c135
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43c128
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x43c14a
push 4
pop eax
jmp 0x43c1f2
cmp dword [ebp - 0x14], edi
je 0x43c14a
push dword [0x45de48]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x43c12f
mov eax, dword [0x45de54]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x43c1a8
cmp dword [0x45de58], esi
je 0x43c1a8
push eax
call ebx
push dword [0x45de58]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x43c1a8
test eax, eax
je 0x43c1a8
call ecx
test eax, eax
je 0x43c19d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x43c19d
test byte [ebp - 8], 1
jne 0x43c1a8
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x43c1d8
mov eax, dword [0x45de4c]
cmp eax, esi
je 0x43c1d5
push eax
call ebx
test eax, eax
je 0x43c1d5
call eax
mov edi, eax
test edi, edi
je 0x43c1d5
mov eax, dword [0x45de50]
cmp eax, esi
je 0x43c1d5
push eax
call ebx
test eax, eax
je 0x43c1d5
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x45de48]
call ebx
test eax, eax
je 0x43c1f0
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x43c1f2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f48b
leave
ret
Function at 0x40d8b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40d8bf
pop dword [ebp - 0x20]
mov eax, 0x144914e9
sub eax, 0x14083c2a
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x90698aba
sub dword [ebp - 0x30], 0x4217456f
mov dword [ebp - 0x2c], 0x63c42861
add dword [ebp - 0x2c], 0xce6f23e4
mov dword [ebp - 0x28], 0xaa8d07e7
sub dword [ebp - 0x28], 0x5e40c3b9
mov dword [ebp - 0x24], 0xf41ffe61
add dword [ebp - 0x24], 0xbe0019f
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x52cbcc30
add dword [ebp - 0x30], 0x21a69d26
mov dword [ebp - 0x2c], 0x19ebc8c0
sub dword [ebp - 0x2c], 0xd87f674b
mov dword [ebp - 0x28], 0x22f91bdd
add dword [ebp - 0x28], 0x4076508f
mov dword [ebp - 0x24], 0x47841140
add dword [ebp - 0x24], 0xb87beec0
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xf5988686
add eax, 0xaa8b9b6
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3aab5
push 0
call eax
mov ecx, 0xd045c814
sub ecx, 0xd0458088
xor edx, edx
add edx, eax
mov esi, 0xd303aeaa
sub esi, 0xd2c1eeaa
add esi, dword [ebp - 0x20]
mov ebx, 0xb7a94047
sub ebx, 0xae267ee1
sub dword [ebp - 0xc], eax
mov edi, dword [esi]
add dword [ebp - 8], 0x6346c972
xor edi, ebx
sub dword [ebp - 0xc], edi
mov dword [edx], edi
add dword [ebp - 0x10], 0xaaed214e
add edx, 4
add esi, 4
loop 0x40d9de
add eax, 0x360f9cb5
add eax, 0xc9f1744e
mov ebx, eax
add eax, 0x9d5430fb
add eax, 0x62abcf0a
mov ecx, 0x835ca4fb
sub ecx, 0x831ca4fb
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x410b90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
mov esi, ecx
call main
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x410bac
mov dword [eax], ecx
jmp 0x410bae
mov eax, ecx
push ecx
push ecx
push esi
push 0x410c20
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
leave
ret
Function at 0x4010a0
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push 0
push 3
push 0
push 7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4010d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
movzx eax, al
xor eax, 0xffffffff
shr eax, 4
and eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x401b00
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x4f0
push esi
push 0x4147e0
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0x4147e0
push str._s_error_accessing_log_file.
mov esi, eax
lea eax, [esp + 0x14]
push 0x4e7
push eax
call fcn.004061a8
mov ecx, dword [esp + 0x508]
add esp, 0x10
test esi, esi
mov byte [esp + 0x4f3], 0
mov dword [esp + 4], ecx
je 0x401b6a
push 0
lea edx, [esp + 8]
push edx
push 0
push 2
push 0
push 0
push 0
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
add esp, 0x4f0
ret
Function at 0x402780
Capabilities:
Read .ini file

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esi + 1]
push eax
call fcn.00405b95
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40279c
test esi, esi
jne 0x4027a1
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ebx
push edi
push ecx
mov ecx, dword [esp + 0x18]
push esi
push ebp
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x24]
push edx
push ebp
mov ebx, eax
call fcn.004024c0
mov edi, eax
add esp, 8
test edi, edi
je 0x402812
mov ebx, dword [esp + 0x20]
push esi
push edi
push ebx
call fcn.00406ba0
mov eax, edi
add esp, 0xc
mov byte [ebx + esi - 1], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4027f0
sub eax, edx
cmp esi, eax
jbe 0x40280f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402802
sub eax, edx
mov ebx, eax
jmp 0x402812
lea ebx, [esi - 1]
push edi
call fcn.00405ba7
push ebp
call fcn.00405ba7
add esp, 8
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
Function at 0x402830
Capabilities:
Get user security identifier
Manipulate user privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x430
push esi
push edi
xor eax, eax
mov byte [esp + 0x38], 0
mov ecx, 0x3f
lea edi, [esp + 0x39]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x100
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov ecx, 0xa
mov esi, 0x4113bc
lea edi, [esp + 0x138]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x76
lea edi, [esp + 0x160]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0xc], eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x340]
push eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x48]
push edx
push eax
push 0
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x4028e4
push str.Error:_LookupAccountName____failed._n
call fcn.004020a0
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
push ecx
push 0x810
lea edx, [esp + 0x24]
push edx
push 0
call sub.ADVAPI32.dll_LsaOpenPolicy
push eax
call sub.ADVAPI32.dll_LsaNtStatusToWinError
test eax, eax
je 0x402919
push str.Error:_LsaOpenPolicy____failed._n
call fcn.004020a0
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov word [esp + 0xc], ax
add eax, 2
push 1
lea edx, [esp + 0x10]
lea ecx, [esp + 0x13c]
mov word [esp + 0x12], ax
push edx
lea eax, [esp + 0x40]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
push eax
push ecx
call sub.ADVAPI32.dll_LsaAddAccountRights
push eax
call sub.ADVAPI32.dll_LsaNtStatusToWinError
mov edx, dword [esp + 8]
push edx
call sub.ADVAPI32.dll_LsaClose
push eax
call sub.ADVAPI32.dll_LsaNtStatusToWinError
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402980
Capabilities:
Access the windows event log

Disassembly:
mov eax, dword [0x4139e4]
sub esp, 0x4f0
test eax, eax
jne 0x402a00
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4147e0
push 0
mov dword [0x4139e0], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
mov eax, dword [0x4139e0]
push eax
push 0x4147e0
lea ecx, [esp + 0x14]
push str._s_error:__d
push ecx
call fcn.00405e3a
mov eax, dword [esp + 0x508]
add esp, 0x10
test esi, esi
lea edx, [esp + 0xc]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
je 0x4029ff
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 2
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
add esp, 0x4f0
ret