joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406580
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x18
mov eax, dword [0x47b748]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
lea eax, [esp + 0xc]
push eax
push 8
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0
mov byte [esp + 0x1e], 0
mov byte [esp + 0x1f], 0
mov byte [esp + 0x20], 0
mov byte [esp + 0x21], 5
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x406686
push 0x400
call fcn.00416dc0
mov esi, eax
add esp, 4
test esi, esi
je 0x406697
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x400
push esi
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40668a
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40668a
push edi
xor ebx, ebx
xor edi, edi
cmp dword [esi], ebx
jbe 0x406678
push ebp
lea ebp, [esi + 4]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x406672
add edi, 1
add ebp, 8
cmp edi, dword [esi]
jb 0x406646
mov edx, dword [esp + 0x10]
pop ebp
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
jmp 0x40668a
mov ebx, 1
pop ebp
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
jmp 0x40668a
mov esi, dword [esp + 0x10]
test esi, esi
je 0x406697
push esi
call fcn.00416dc5
add esp, 4
mov ecx, dword [esp + 0x1c]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00431e76
add esp, 0x18
ret
Function at 0x4066b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push edi
call fcn.0041b415
mov edi, dword [eax + 0xc]
push 0x46ad38
push 0x83
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x4066ea
mov ecx, dword [esp + 0x10]
push eax
push eax
push 0x46b10c
call fcn.0041df65
pop edi
xor eax, eax
pop ebx
pop ecx
ret 4
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40670a
pop esi
pop edi
pop ebx
pop ecx
ret 4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push ebx
push eax
call fcn.0043a1d0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0xc]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x40676b
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov edx, dword [esp + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
jmp 0x40676d
xor esi, esi
push edi
mov dword [0x480be0], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop esi
pop edi
mov eax, 1
pop ebx
pop ecx
ret 4

Function at 0x4067a0
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
sub esp, 8
mov eax, dword [0x47b748]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
call fcn.0041b415
mov eax, dword [eax + 0xc]
push 0x46b058
push 0x85
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4067f6
push eax
push eax
push 0x46b10c
mov ecx, ebx
call fcn.0041df65
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00431e76
add esp, 8
ret
push ebp
call fcn.0041b415
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x10], eax
call fcn.0041b415
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push esi
push 0
push 4
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
mov ebx, eax
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
mov eax, dword [esp + 0x10]
push esi
push eax
push ebp
call fcn.0043a1d0
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00431e76
add esp, 8
ret
Function at 0x4068f0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4612b0
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x47b748]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
mov eax, dword [0x47b748]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x228], 3
mov ebx, dword [esp + 0x238]
mov ecx, dword [esp + 0x23c]
mov ebp, dword [esp + 0x234]
mov esi, dword [esp + 0x230]
push ebx
push 0x104
lea eax, [esp + 0x1c]
push eax
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call fcn.004087a0
lea eax, [esi - 0x10]
mov byte [esp + 0x228], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40699d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x228], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4069c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x228], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4069e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x228], 0xffffffff
mov eax, dword [esp + 0x23c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00431e76
add esp, 0x21c
ret 0x10

Function at 0x407fb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407fc9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408004
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x408000
lea ebx, [ebx]
cmp esi, eax
jae 0x408004
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407ff0
cmp esi, eax
jb 0x40800a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40ca80
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x461153
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x47b748]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b748]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
xor ebx, ebx
push 0x228
lea eax, [esp + 0x24]
push ebx
mov dword [esp + 0x25c], ebx
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0x22c
call fcn.004362d0
add esp, 0xc
call fcn.00421e9f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40cafd
push 0x80004005
call fcn.00408890
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push ebx
push 2
mov byte [esp + 0x25c], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x40cb7b
lea eax, [esi - 0x10]
mov byte [esp + 0x254], bl
lea ecx, [eax + 0xc]
or edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x254], 0xffffffff
mov eax, dword [esp + 0x25c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40cca6
push 0x46d41c
push str..exe
lea ecx, [esp + 0x264]
push ecx
call fcn.0040ed70
push 0x46d41c
push str..EXE
lea edx, [esp + 0x264]
push edx
call fcn.0040ed70
lea eax, [esp + 0x1c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
mov ebp, dword [esp + 0x25c]
je 0x40cc51
lea ecx, [esp + 0x1c]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x40cc51
lea eax, [esp + 0x40]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40cbe0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x1c]
call fcn.004082a0
push 0x46d41c
push str..exe
lea eax, [esp + 0x1c]
push eax
call fcn.0040ed70
push 0x46d41c
push str..EXE
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040ed70
mov esi, dword [esp + 0x14]
push ebp
push esi
call fcn.00434bfe
add esp, 8
test eax, eax
je 0x40cc49
lea edx, [esp + 0x1c]
push edx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40cbd2
jmp 0x40cc51
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov byte [esp + 0x254], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x254], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cca2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.00431e76
add esp, 0x244
ret 4
Function at 0x412b80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x45fa0b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x47b748]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044e09b
push 4
mov dword [esp + 0x20], 0
call fcn.00416d95
mov edi, eax
add esp, 4
test edi, edi
je 0x412c00
call fcn.0044d84b
mov dword [edi], eax
call fcn.0044d721
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0044be86
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x412bf5
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0044bea7
jmp 0x412c02
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x416670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push edi
call fcn.0041b415
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x14]
push 0x46ad40
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4166ab
mov ecx, dword [esp + 0x10]
push eax
push eax
push 0x46b10c
call fcn.0041df65
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4166cb
pop ebx
pop edi
pop esi
pop ecx
ret 0xc
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.0043a1d0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0xc]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x41672c
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x20], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
jmp 0x41672e
xor esi, esi
mov ecx, dword [esp + 0x1c]
push edi
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret 0xc

Function at 0x417f4e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x417f94
call fcn.0041b415
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x417f94
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x417fd7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x417fc0
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x417fc0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x417fd4
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x421c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x421c43
call fcn.0041b415
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x421c43
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x421c5e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004217ba
test ebx, ebx
mov esi, eax
je 0x421c5c
test edi, edi
je 0x421c5c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x422d0f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x422d3d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x422d5b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00422c79
jmp 0x422d5b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x422d5b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00422c79
test edi, edi
mov eax, edi
jne 0x422d45
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x47f92c]
test ecx, ecx
je 0x422e1e
jmp 0x422d0e
ret 8

Function at 0x431e76
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47b748]
jne 0x431e80
repz ret
jmp fcn.00439fcf
Function at 0x4460b6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004399b6
xor ebx, ebx
cmp dword [0x48079c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x44618b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4460f6
xor eax, eax
jmp 0x44624f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4460ef
push eax
call fcn.00439953
mov dword [esp], 0x468850
push edi
mov dword [0x48079c], eax
call esi
push eax
call fcn.00439953
mov dword [esp], 0x46883c
push edi
mov dword [0x4807a0], eax
call esi
push eax
call fcn.00439953
mov dword [0x4807a4], eax
lea eax, [ebp - 8]
push eax
call fcn.00435f93
test eax, eax
pop ecx
pop ecx
je 0x446159
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043375b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x44618b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00439953
cmp eax, ebx
pop ecx
mov dword [0x4807ac], eax
je 0x44618b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00439953
pop ecx
mov dword [0x4807a8], eax
mov eax, dword [0x4807a8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x446204
cmp dword [0x4807ac], esi
je 0x446204
push eax
call fcn.004399bf
pop ecx
call eax
cmp eax, ebx
je 0x4461d1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4807ac]
call fcn.004399bf
pop ecx
call eax
test eax, eax
je 0x4461d1
test byte [ebp - 0x18], 1
jne 0x446204
lea eax, [ebp - 0xc]
push eax
call fcn.00435fca
test eax, eax
pop ecx
je 0x4461ec
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043375b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4461fb
or dword [ebp + 0x10], 0x200000
jmp 0x446235
or dword [ebp + 0x10], 0x40000
jmp 0x446235
mov eax, dword [0x4807a0]
cmp eax, esi
je 0x446235
push eax
call fcn.004399bf
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x446235
mov eax, dword [0x4807a4]
cmp eax, esi
je 0x446235
push dword [ebp - 4]
push eax
call fcn.004399bf
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x48079c]
call fcn.004399bf
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45cf78
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x47b748]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0045cf0d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004362d0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x45cfc7
cmp dword [ebp - 0x1c], 5
jb 0x45cfdf
jmp 0x45cfdb
cmp dword [ebp - 0x10], 1
jne 0x45cfdf
cmp dword [ebp - 0x1c], 4
ja 0x45cfdb
jne 0x45cfdf
cmp dword [ebp - 0x18], 0
jbe 0x45cfdf
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x46a10c
call fcn.0045cdfe
test eax, eax
jge 0x45d000
mov byte [0x480bd0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00431e76
add ebp, 0x78
leave
ret

Function at 0x6596ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x661388
cmp edx, dword [eax]
je 0x65970f
add eax, 8
inc ecx
cmp eax, 0x661418
jl 0x659700
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x661388]
jne 0x65983d
mov eax, dword [0xa5bee8]
cmp eax, 1
je 0x659817
test eax, eax
jne 0x659740
cmp dword [0x6612b4], 1
je 0x659817
cmp edx, 0xfc
je 0x65983d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x659777
lea eax, [ebp - 0x1a4]
push 0x65e970
push eax
call fcn.0065a0d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0065a560
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x6597ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.0065a560
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65e96c
push edi
call fcn.0065c430
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65e950
push eax
call fcn.0065a0d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0065a0e0
lea eax, [ebp - 0xa0]
push 0x65e94c
push eax
call fcn.0065a0e0
push dword [esi + 0x66138c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0065a0e0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65e924
push eax
call fcn.0065c3a4
add esp, 0x2c
pop edi
jmp 0x65983d
lea eax, [ebp + 8]
lea esi, [esi + 0x66138c]
push 0
push eax
push dword [esi]
call fcn.0065a560
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret