joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a35c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a3635
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404d60
lea eax, [ebp - 0x106]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x106]
call fcn.0040a568
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.004a3578
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a363c
lea eax, [ebp - 0x10c]
call fcn.00404d60
ret

Function at 0x4a4050
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x4a4095
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x4a4095
lea eax, [ebp - 8]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x4a4126
mov eax, 0x400
call fcn.00402b18
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push 0x400
push esi
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x4a411f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x4ebfe4
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x4a4116
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x4a4112
mov byte [ebp - 1], 1
jmp 0x4a4116
inc edi
dec ebx
jne 0x4a40fa
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00402b48
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a5cc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, eax
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
je 0x4a5d4c
push ecx
push edx
push edi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x4a5d4c
push ebx
push edi
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
je 0x4a5d4c
push esi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
push esi
call sub.kernel32.dll_FreeResource
cmp dword [ebp - 8], 0
je 0x4a5d4c
push ebx
push edi
call sub.kernel32.dll_SizeofResource
test eax, eax
je 0x4a5d4c
xor edx, edx
push ebp
push 0x4a5d42
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, eax
test ecx, ecx
jns 0x4a5d29
call fcn.00403e70
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.0041efe4
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a5d4c
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4c7668
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
xor eax, eax
push ebp
push 0x4c7799
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push pe_nt_image_headers32
push 2
push 0
push 3
push 0x40000000
mov eax, dword [0x4fad80]
call fcn.00405230
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4c772b
mov dl, 1
mov eax, dword [0x41a504]
call fcn.00403f04
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c771b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
mov ecx, 0x4c77a4
mov edx, 0x4c77a8
mov eax, dword [0x4fa668]
call fcn.004a5cc0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7722
mov eax, dword [ebp - 8]
call fcn.00403f34
ret
push 1
push dword [0x4fad80]
push 0x4c77bc
lea edx, [ebp - 0x18]
mov eax, dword [0x4f8e10]
mov eax, dword [eax]
call fcn.0047b038
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov dl, 0x22
call fcn.004095bc
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004050f0
mov eax, dword [ebp - 0x10]
call fcn.00405230
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [0x4f8e10]
mov eax, dword [eax]
call fcn.0047aa64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c77a0
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404d84
ret

Function at 0x4ccfa4
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
mov dword [ebp - 4], 7
push 0
lea eax, [ebp - 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
test eax, eax
je 0x4ccfc5
mov bl, 1
jmp 0x4ccfd9
push 0
push 1
push 0x4ccfe0
call sub.wininet.dll_InternetCheckConnectionA
test eax, eax
je 0x4ccfd9
mov bl, 1
mov eax, ebx
pop ebx
pop ecx
pop ebp
ret
Function at 0x10001090
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x10019040]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x410], eax
mov edi, ecx
mov eax, dword [edi]
push 5
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
xor esi, esi
mov edi, edi
mov ecx, dword [edi]
push 2
push 1
add ecx, 4
push ecx
call ebx
cmp eax, 5
jne 0x100010e2
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x7d0
jl 0x100010c0
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
xor esi, esi
lea ebx, [ebx]
mov edx, dword [edi]
push 0xa
push 0xf
add edx, 4
push edx
call ebx
cmp eax, 2
jne 0x1000112d
push esi
lea eax, [esp + 0x14]
push str._SignalServerAndRelease_Waiting_for_Server_to__2___d___n
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xc8
jl 0x100010f0
mov al, byte [esp + 0x418]
test al, al
je 0x1000114f
mov edx, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push edx
call esi
mov eax, dword [edi]
push 0xa
add eax, 4
push eax
call esi
mov ecx, dword [esp + 0x410]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
call fcn.10003deb
add esp, 0x404
ret 4

Function at 0x10002c00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [0x100217f0], 0x500
cmp dword [0x100217e8], 0
jne 0x10002c3d
mov dword [0x100217ec], 0
push 0x40
push 0x3000
mov eax, dword [0x100217f0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x100217e8], eax
mov dword [0x100217f4], 5
push 0x10021164
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x20
call fcn.10003df9
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10002c72
mov ecx, dword [ebp - 0x14]
call fcn.100011b0
mov dword [ebp - 0x18], eax
jmp 0x10002c79
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [0x10021160], edx
push str.___FusionUser_InstallDetours_for_Winlogon____n
call fcn.10003620
add esp, 4
push str.secur32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
push str.LsaLogonUser
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0x100019f0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x100217c8
call fcn.10003930
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x10003370
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov dword [0x10021160], 0
mov dword [0x100217f0], 0
push 0
push 0
push 0
push 0x10002ce0
push 0x800
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x10003620
Capabilities:
Print debug messages
Write file on windows

Disassembly:
sub esp, 0x80c
mov eax, dword [0x10019040]
mov dword [esp + 0x808], eax
mov eax, dword [esp + 0x810]
test eax, eax
je 0x100036e6
push esi
push edi
lea ecx, [esp + 0x81c]
push ecx
push eax
lea edx, [esp + 0x14]
push 0x800
push edx
call fcn.10004006
lea edi, [esp + 0x1c]
add esp, 0x10
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10003663
mov ax, word [0x10014864]
lea ecx, [esp + 0xc]
push ecx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push str.C:EATempFusionUserLog.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100036e4
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100036c0
sub eax, edx
push 0
lea edx, [esp + 0xc]
push edx
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [esp + 0x808]
call fcn.10003deb
add esp, 0x80c
ret

Function at 0x10003930
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x1000393f
xor al, al
pop esi
pop ecx
ret
push edi
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x1000394e
pop edi
xor al, al
pop esi
pop ecx
ret
push ebx
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x1000395e
pop ebx
pop edi
xor al, al
pop esi
pop ecx
ret
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
cmp eax, 1
je 0x100039c7
cmp byte [esi], 0xe9
je 0x100039c7
cmp dword [ebx], 0
jne 0x10003957
push ebp
push esi
call fcn.10003700
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov ebx, eax
lea eax, [esp + 0x1c]
push eax
push 0x40
push 0xc
push esi
mov dword [esp + 0x20], 0x40
mov dword [esp + 0x2c], 0
call ebp
mov ecx, dword [esp + 0x18]
lea eax, [esi + 1]
sub edi, eax
mov byte [esi], 0xe9
sub edi, 4
mov dword [eax], edi
lea edx, [esp + 0x10]
push edx
mov dword [ecx], ebx
mov ecx, dword [esp + 0x20]
push ecx
push 0xc
push eax
call ebp
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
pop ecx
ret
Function at 0x10003b70
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x68
mov eax, dword [0x10019040]
mov ecx, dword [esp + 0x6c]
push ebx
push esi
mov esi, dword [esp + 0x7c]
push esi
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x7c]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_CallNextHookEx]
test esi, esi
mov ebx, eax
je 0x10003c32
cmp dword [esi + 8], 6
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowTextA]
jne 0x10003be2
mov edx, dword [esi + 4]
mov eax, dword [esi + 0xc]
push edx
push 6
push eax
push str.Message_from__p___d_wparam_d
call fcn.10003620
mov edx, dword [esi + 0xc]
add esp, 0x10
push 0x64
lea ecx, [esp + 0x10]
push ecx
push edx
call edi
lea eax, [esp + 0xc]
push eax
push str.____Title:__hs
call fcn.10003620
add esp, 8
cmp dword [esi + 8], 7
jne 0x10003c1e
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
push ecx
push 7
push edx
push str.Focus_from__p___d_wparam_d
call fcn.10003620
mov ecx, dword [esi + 0xc]
add esp, 0x10
push 0x64
lea eax, [esp + 0x10]
push eax
push ecx
call edi
lea edx, [esp + 0xc]
push edx
push str.____Title:__hs
call fcn.10003620
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x64]
call fcn.10003deb
add esp, 0x68
ret 0xc
mov ecx, dword [esp + 0x6c]
pop esi
mov eax, ebx
pop ebx
call fcn.10003deb
add esp, 0x68
ret 0xc
Function at 0x10004299
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10004389
mov eax, 0x94
call fcn.10004060
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100043fe
mov ecx, dword [esi + 0x10]
mov dword [0x10021870], ecx
mov eax, dword [esi + 4]
mov dword [0x1002187c], eax
mov edx, dword [esi + 8]
mov dword [0x10021880], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10021874], esi
je 0x10004304
or esi, 0x8000
mov dword [0x10021874], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10021878], eax
call fcn.100061e6
test eax, eax
pop ecx
je 0x100043fe
call fcn.100058e8
test eax, eax
jne 0x10004331
call fcn.10006237
jmp 0x100043fe
call fcn.10006144
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10023074], eax
call fcn.10006022
mov dword [0x10021808], eax
call fcn.10005b03
test eax, eax
jl 0x10004382
call fcn.10005f80
test eax, eax
jl 0x1000437d
call fcn.10005d4d
test eax, eax
jl 0x1000437d
push 0
call fcn.1000554f
test eax, eax
pop ecx
jne 0x1000437d
inc dword [0x10021804]
jmp 0x1000440f
call fcn.10005d01
call fcn.100056c5
jmp 0x10004327
test eax, eax
jne 0x100043b9
cmp dword [0x10021804], eax
jle 0x100043fe
dec dword [0x10021804]
cmp dword [0x100218ac], eax
jne 0x100043a8
call fcn.1000569e
call fcn.10005d01
call fcn.100056c5
call fcn.10006237
jmp 0x1000440f
cmp eax, 2
jne 0x10004402
push 0x8c
push 1
call fcn.10005a48
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100043fe
push esi
push dword [0x10019078]
call dword [0x100218bc]
test eax, eax
push esi
je 0x100043f8
call fcn.100056e2
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000440f
call fcn.100059d7
pop ecx
xor eax, eax
jmp 0x10004412
cmp eax, 3
jne 0x1000440f
push 0
call fcn.100058ad
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x100055b9
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10014cd8
call fcn.1000470c
push 8
call fcn.10006a36
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x100218b0], esi
jne 0x100055ed
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x100218ac], esi
mov al, byte [ebp + 0x10]
mov byte [0x100218a8], al
cmp dword [ebp + 0xc], edi
jne 0x10005637
cmp dword [0x10023068], edi
je 0x10005627
mov eax, dword [0x10023064]
sub eax, 4
mov dword [0x10023064], eax
cmp eax, dword [0x10023068]
jb 0x10005627
mov eax, dword [eax]
cmp eax, edi
je 0x10005608
call eax
jmp 0x10005608
push 0x10019028
mov eax, 0x10019020
call fcn.10005519
pop ecx
push 0x10019030
mov eax, 0x1001902c
call fcn.10005519
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10005668
cmp dword [ebp + 0x10], edi
jne 0x10005676
mov dword [0x100218b0], esi
push dword [ebp + 8]
call fcn.100054d7
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x10005675
push 8
call fcn.10006969
pop ecx
ret
call fcn.10004747
ret

Function at 0x10006467
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x10019040]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10019130]
je 0x1000649c
inc eax
cmp eax, 0x13
jb 0x1000648d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10019130]
jne 0x100065c2
mov eax, dword [0x10021810]
cmp eax, 1
je 0x1000659a
cmp eax, edx
jne 0x100064cc
cmp dword [0x10021814], 1
je 0x1000659a
cmp ecx, 0xfc
je 0x100065c2
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10006502
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10006740
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10006840
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10006536
mov eax, edi
push eax
call fcn.10006840
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10014a74
push edi
call fcn.10003e50
add esp, 0x10
push edi
call fcn.10006840
push dword [esi + 0x10019134]
mov ebx, eax
call fcn.10006840
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10004060
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10006740
push edi
push ebx
call fcn.10006750
push 0x10014a70
push ebx
call fcn.10006750
push dword [esi + 0x10019134]
push ebx
call fcn.10006750
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10006641
add esp, 0x2c
jmp 0x100065c2
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x10019134]
push dword [esi]
call fcn.10006840
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.10003deb
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x10006641
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100219d8], ebx
push esi
push edi
jne 0x100066c1
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100066fc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x100219d8], eax
je 0x100066fc
push 0x10015184
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x100219dc], eax
call esi
cmp dword [0x10021870], 2
mov dword [0x100219e0], eax
jne 0x100066c1
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x100219e8], eax
je 0x100066c1
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x100219e4], eax
mov eax, dword [0x100219e4]
test eax, eax
je 0x10006706
call eax
test eax, eax
je 0x100066ed
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100219e8]
test eax, eax
je 0x100066ed
test byte [ebp - 8], 1
jne 0x10006706
cmp dword [0x1002187c], 4
jb 0x10006700
or byte [ebp + 0x12], 0x20
jmp 0x10006725
xor eax, eax
jmp 0x10006735
or byte [ebp + 0x12], 4
jmp 0x10006725
mov eax, dword [0x100219dc]
test eax, eax
je 0x10006725
call eax
mov ebx, eax
test ebx, ebx
je 0x10006725
mov eax, dword [0x100219e0]
test eax, eax
je 0x10006725
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100219d8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10007b48
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x10019040]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x10007b79
xor eax, eax
jmp 0x10007d02
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10022f60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x10007bb5
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.10009ebe
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10007c90
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x10007cce
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x10007c19
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10007c0a
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x10007bea
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10007c59
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x10007c62
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x10007bdb
jmp 0x10007c64
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x10007cfd
cmp dword [ebp - 0x6c], edi
je 0x10007cce
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x10007cc3
call fcn.100096ad
mov dword [eax], 9
call fcn.100096b6
mov dword [eax], esi
jmp 0x10007cf8
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10007cb8
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x10007c64
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x10007c64
push dword [ebp - 0x6c]
call fcn.100096bf
pop ecx
jmp 0x10007cf8
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x10007ce6
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x10007ce6
xor eax, eax
jmp 0x10007d00
call fcn.100096ad
mov dword [eax], 0x1c
call fcn.100096b6
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x10007d00
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.10003deb
add ebp, 0x3a0
leave
ret
Function at 0x1000d6de
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10004060
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000d779
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x10021870]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x1000d779
cmp eax, 1
je 0x1000d79a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000d779
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x1000d746
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x1000d775
xor eax, eax
inc eax
jmp 0x1000d7b9
cmp edi, eax
jae 0x1000d77d
xor eax, eax
jmp 0x1000d7b9
cmp eax, esi
jae 0x1000d784
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10021870]
jmp 0x1000d79d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret