joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4581c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7024
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4fb128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x45828a
lea ecx, [esi + 0x54]
mov dword [esi + 4], 0x4cc1d0
mov dword [esi + 0x48], 0x4c8ec0
mov dword [esi + 0x50], 0x4cc1e4
mov dword [ecx], 0x4cc1f0
mov dword [esi + 0x3c], vtable.log4cxx::helpers::Object.0
mov eax, dword [esi + 0x48]
mov dword [esi + 0x44], vtable.log4cxx::spi::OptionHandler.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 0x48], vtable.log4cxx::spi::OptionHandler.1.0
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 4]
mov dword [esi + eax + 0x44], 0
mov eax, dword [esi + 0x50]
mov dword [esi + 0x4c], vtable.log4cxx::rolling::RollingPolicy.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 0x50], vtable.log4cxx::rolling::RollingPolicy.1.0
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 8]
mov dword [eax + esi + 0x50], vtable.log4cxx::rolling::RollingPolicy.2.0
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 4]
mov dword [esi + eax + 0x4c], 0
push 0
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], 7
call fcn.004224c0
mov eax, dword [esi + 4]
mov dword [esi], vtable.log4cxx::rolling::RollingPolicyBase.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.log4cxx::rolling::RollingPolicyBase.2.0
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov dword [eax + esi + 4], vtable.log4cxx::rolling::RollingPolicyBase.3.0
mov eax, dword [esi + 4]
mov eax, dword [eax + 0xc]
mov dword [eax + esi + 4], vtable.log4cxx::rolling::RollingPolicyBase.0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x38]
mov dword [ecx + esi], eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 8]
lea eax, [ecx - 0x40]
mov dword [ecx + esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
xor eax, eax
mov dword [esi + 0x34], 7
mov dword [esi + 0x30], 0
mov word [esi + 0x20], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x467e30
Capabilities:
Inspect section memory permissions

Disassembly:
pop ecx
add eax, esi
cmp dword [eax], ebx
je 0x467e8a
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
dec ebp
or byte [ebx], bh
retf 0x3f73
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x467e6f
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x467e77
cmp edx, ebx
jne 0x467fc5
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x467e46
add eax, dword [eax + 4]
jmp 0x467e33
mov dword [ebp + 0xc], ebx
jmp 0x467e95
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x467ead
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x467ecb
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
add byte [ebp + 0xf8c784], cl
add byte [eax], al
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
sal bh, cl
mov ch, 0x54
invalid
invalid
push dword [ebx]
ror byte [ecx - 0x3e7443bb], cl
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x467f29
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
or byte [eax], al
add byte [eax], al
inc eax
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je method.log4cxx::helpers::SimpleDateFormatImpl::YearToken.virtual_12
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x467f19
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x467f23
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x467f05
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x467e8f
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x467f76
dec eax
je 0x467f6d
sub eax, 3
je 0x467f64
mov dword [ebp - 4], 0x40
jmp 0x467f93
mov dword [ebp - 4], 4
jmp 0x467f79
mov dword [ebp - 4], 0x20
jmp 0x467f79
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
invalid
Function at 0x469b20
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba98e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4fb128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [ebp + 0x14], 0
mov dword [ebp - 0x10], 0
je 0x469b92
lea ecx, [esi + 0x54]
mov dword [esi + 4], 0x4cdd94
mov dword [ecx], 0x4c6d50
mov dword [esi + 0x50], vtable.log4cxx::helpers::Object.0
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call fcn.004224c0
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 3
push 0
mov ecx, esi
call fcn.00468fe0
mov eax, dword [esi + 4]
push dword [ebp + 8]
mov dword [esi], vtable.log4cxx::rolling::GZCompressAction.0
mov eax, dword [eax + 4]
mov dword [ebp - 4], 2
mov dword [eax + esi + 4], vtable.log4cxx::rolling::GZCompressAction.1.0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x4c]
mov dword [ecx + esi], eax
lea ecx, [esi + 0x18]
call fcn.0042b3f0
push dword [ebp + 0xc]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.0042b3f0
mov al, byte [ebp + 0x10]
mov byte [esi + 0x48], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x469ff0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba98e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4fb128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [ebp + 0x14], 0
mov dword [ebp - 0x10], 0
je 0x46a062
lea ecx, [esi + 0x54]
mov dword [esi + 4], 0x4cdd94
mov dword [ecx], 0x4c6d50
mov dword [esi + 0x50], vtable.log4cxx::helpers::Object.0
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call fcn.004224c0
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 3
push 0
mov ecx, esi
call fcn.00468fe0
mov eax, dword [esi + 4]
push dword [ebp + 8]
mov dword [esi], vtable.log4cxx::rolling::ZipCompressAction.0
mov eax, dword [eax + 4]
mov dword [ebp - 4], 2
mov dword [eax + esi + 4], vtable.log4cxx::rolling::ZipCompressAction.1.0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x4c]
mov dword [ecx + esi], eax
lea ecx, [esi + 0x18]
call fcn.0042b3f0
push dword [ebp + 0xc]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.0042b3f0
mov al, byte [ebp + 0x10]
mov byte [esi + 0x48], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4836a1
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4fb128]
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.00477fbf
mov dword [ebp - 0x14], eax
cmp dword [0x501a30], edi
jne 0x483792
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x48371f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x483872
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x483872
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x483872
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x501a30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x501a34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x501a38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x501a40], eax
test eax, eax
je 0x48378f
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x501a3c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4837b7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4837aa
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4837cc
push 4
pop eax
jmp 0x483874
cmp dword [ebp - 0x14], edi
je 0x4837cc
push dword [0x501a30]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4837b1
mov eax, dword [0x501a3c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x48382a
cmp dword [0x501a40], esi
je 0x48382a
push eax
call ebx
push dword [0x501a40]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x48382a
test eax, eax
je 0x48382a
call ecx
test eax, eax
je 0x48381f
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 0x48381f
test byte [ebp - 8], 1
jne 0x48382a
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x48385a
mov eax, dword [0x501a34]
cmp eax, esi
je 0x483857
push eax
call ebx
test eax, eax
je 0x483857
call eax
mov edi, eax
test edi, edi
je 0x483857
mov eax, dword [0x501a38]
cmp eax, esi
je 0x483857
push eax
call ebx
test eax, eax
je 0x483857
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x501a30]
call ebx
test eax, eax
je 0x483872
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x483874
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047232c
leave
ret
Function at 0x4864e1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0047cb31
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x486519
xor eax, eax
jmp 0x486545
cmp esi, dword [ebp - 4]
je 0x486542
cmp dword [ebp + 0xc], 0
je 0x486542
push dword [edi + 0x9c]
call fcn.004860ef
push dword [edi + 0x9c]
mov esi, eax
call fcn.0047836c
pop ecx
pop ecx
cmp esi, eax
je 0x486515
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x48ac60
Capabilities:
Allocate thread local storage
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x501b58]
mov ecx, eax
inc eax
mov dword [0x501b58], eax
test ecx, ecx
jne 0x48ad2a
lea eax, [ebp - 0x19c]
push eax
call fcn.004948a0
add esp, 4
test eax, eax
jne 0x48ad40
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x502028], eax
call fcn.0048b410
test eax, eax
jne 0x48ad45
push eax
push eax
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.0048b210
test eax, eax
je 0x48acdd
mov eax, 0x4e22
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret
push str.apr_initialize
push dword [ebp - 0x198]
call fcn.0048b500
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x48ad45
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x48ad3a
shr eax, 8
test al, al
jne 0x48ad3a
push dword [ebp - 0x198]
call fcn.004125c0
push dword [ebp - 0x198]
call fcn.004947a0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0x11
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret

Function at 0x48ba10
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
push 8
push esi
call fcn.0048b000
mov edi, dword [ebp + 8]
mov dword [edi], eax
test eax, eax
jne 0x48ba34
pop edi
mov eax, 0xc
pop esi
pop ebp
ret 0xc
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [edi]
mov dword [ecx + 4], eax
cmp eax, 0xffffffff
je 0x48ba4e
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x48ba46
call esi
pop edi
add eax, 0xafc80
pop esi
pop ebp
ret 0xc

Function at 0x48ba70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
je 0x48ba8e
xor eax, eax
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x48ba88
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xafc80
pop ebp
ret 8
Function at 0x48bab0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x48bacc
xor eax, eax
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x48bac6
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xafc80
pop ebp
ret 8

Function at 0x48e7a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.004739d0
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x4004]
push 0x2000
push eax
call fcn.00490350
add esp, 0xc
test eax, eax
jne 0x48e80c
push eax
lea eax, [ebp - 0x4004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x48e80a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x48e80a
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xafc80
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 0xc

Function at 0x48fea0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.004739d0
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x4004]
push 0x2000
push eax
call fcn.00490350
add esp, 0xc
test eax, eax
jne 0x48ff0b
lea eax, [ebp - 0x4004]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x48fef6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x48fee4
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xafc80
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 8

Function at 0x48ff20
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8004
call fcn.004739d0
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x8004]
push 0x2000
push eax
call fcn.00490350
add esp, 0xc
test eax, eax
jne 0x48ffb0
push esi
lea eax, [ebp - 0x4004]
push 0x2000
push eax
call fcn.00490350
add esp, 0xc
test eax, eax
jne 0x48ffb0
push 3
lea eax, [ebp - 0x4004]
push eax
lea eax, [ebp - 0x8004]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x48ff9d
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x48ff8a
call esi
add eax, 0xafc80
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047232c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x490460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
cmp byte [esi + 0x2c], al
je 0x4904b9
cmp dword [esi + 0x48], 1
mov dword [ebp + 8], eax
jne 0x4904b9
push edi
mov edi, dword [esi + 0x3c]
test edi, edi
je 0x4904b8
push ebx
mov ebx, dword [esi + 0x38]
or ecx, 0xffffffff
cmp edi, ecx
push 0
mov eax, edi
cmova eax, ecx
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4904be
mov eax, dword [ebp + 8]
add dword [esi + 0x50], eax
adc dword [esi + 0x54], 0
add ebx, eax
sub edi, eax
jne 0x490483
xor eax, eax
mov dword [esi + 0x3c], eax
pop ebx
pop edi
pop esi
pop ebp
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x4904d1
call edi
add eax, 0xafc80
mov ecx, dword [ebp + 8]
add dword [esi + 0x50], ecx
adc dword [esi + 0x54], 0
test eax, eax
jne 0x4904b7
pop ebx
pop edi
mov dword [esi + 0x3c], eax
pop esi
pop ebp
ret 4
Function at 0x4909f0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0x10], 0
jne 0x490a7b
cmp byte [esi + 8], al
je 0x490a7b
push eax
lea eax, [ebp + 8]
push eax
push 0
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x490a5d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x490a3c
mov ecx, dword [ebp + 0x14]
pop edi
mov dword [ecx], eax
pop esi
pop ebp
ret
call esi
add eax, 0xafc80
mov ecx, 0x1117e
cmp eax, 0xafced
cmove eax, ecx
mov ecx, dword [ebp + 0x14]
pop edi
mov dword [ecx], 0
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
test eax, eax
jne 0x490a76
mov eax, dword [ebp + 0x14]
pop edi
mov dword [eax], 0
mov eax, 0xb
pop esi
pop ebp
ret
cmp edi, eax
cmova edi, eax
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x490aa1
cmp byte [esi + 8], 0
jne 0x490aa1
mov eax, dword [esi + 0x50]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
mov cl, 0x20
call fcn.00497550
mov ecx, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
push ebx
push dword [esi + 0xc]
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x490ac1
xor eax, eax
jmp 0x490ba7
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x490ba7
call ebx
add eax, 0xafc80
cmp eax, 0xb0065
jne 0x490b83
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
test ecx, ecx
jl 0x490b03
jg 0x490af3
test eax, eax
je 0x490b03
push 0
push 0x3e8
push ecx
push eax
call fcn.00474320
jmp 0x490b10
and eax, ecx
cmp eax, 0xffffffff
jne 0x490b0e
or eax, eax
jmp 0x490b10
xor eax, eax
push eax
mov eax, dword [esi + 0xc]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
cmp edi, 0x80
je 0x490ae3
test edi, edi
je 0x490b34
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 1
lea eax, [ebp + 0x10]
push eax
push dword [esi + 0xc]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x490b4e
xor eax, eax
jmp 0x490ba7
call ebx
test eax, eax
je 0x490ba7
call ebx
add eax, 0xafc80
cmp eax, 0xb0064
je 0x490b69
cmp eax, 0xb0063
jne 0x490b83
cmp edi, 0x102
jne 0x490b83
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
pop ebx
pop edi
mov eax, 0x11177
mov dword [edx], ecx
pop esi
pop ebp
ret
cmp eax, 0xafced
jne 0x490b9c
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
pop ebx
pop edi
mov eax, 0x1117e
mov dword [edx], ecx
pop esi
pop ebp
ret
cmp eax, 0xafca6
je 0x490b8a
test eax, eax
jne 0x490bc3
cmp dword [ebp + 0x10], 0
je 0x490b8a
cmp dword [esi + 0xc], 0
je 0x490bc3
cmp byte [esi + 8], 0
jne 0x490bc3
mov ecx, dword [ebp + 0x10]
add dword [esi + 0x50], ecx
adc dword [esi + 0x54], 0
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
pop ebx
pop edi
mov dword [edx], ecx
pop esi
pop ebp
ret
Function at 0x490ce0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0xc]
push 0x2f
push esi
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x10c], 0x100
call fcn.0048a380
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x490d4a
push 0x5c
push esi
call fcn.0048a380
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x490d5d
mov ecx, ebx
sub ecx, esi
push ecx
push esi
push edi
call fcn.0048aaa0
mov edi, eax
lea esi, [ebx + 1]
jmp 0x490d5f
xor edi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x108]
push eax
push edi
push esi
push edi
call ebx
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x490dfd
push eax
push dword [ebp - 0x11c]
call fcn.0048b000
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x10c], 0x100
mov dword [ecx], eax
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x104]
push ecx
lea ecx, [ebp - 0x108]
push ecx
push eax
push esi
push edi
call ebx
cmp dword [ebp - 0x108], 0
je 0x490dfd
test eax, eax
je 0x490dfd
mov eax, dword [ebp - 0x114]
mov dword [eax], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x490de8
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
add eax, 0xafc80
pop ebx
call fcn.0047232c
mov esp, ebp
pop ebp
ret 0x10