joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466b30
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, dword [ebx + 4]
test eax, eax
jne 0x466b4f
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
pop ebx
add esp, 0x10
ret
push esi
push edi
push 1
lea esi, [esp + 0x10]
push esi
xor edx, edx
push edx
xor ecx, ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x466b6f
xor esi, esi
xor edi, edi
jmp 0x466b77
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp esi, dword [esp + 0x14]
jne 0x466b9e
cmp edi, dword [esp + 0x18]
jne 0x466b9e
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret

Function at 0x466bb0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov ecx, dword [ecx + 4]
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 8
ret

Function at 0x466f20
Capabilities:
Create directory

Disassembly:
sub esp, 0x204
mov eax, dword [0x4c26a0]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
push edi
mov edi, dword [esp + 0x214]
je 0x466f4e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x218]
cmp ebx, 4
je 0x466f64
cmp ebx, 1
je 0x466f64
cmp ebx, 2
jne 0x466f8e
push 0x200
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00466ca0
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x466f8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x21c]
push 0
xor edx, edx
push 0x80
cmp eax, 0x80000000
sete dl
push ebx
push 0
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
sub ecx, 0xffffffff
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 4], ecx
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x208]
pop esi
pop ebx
xor ecx, esp
call fcn.00475ec4
add esp, 0x204
ret 0xc
Function at 0x467120
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a51f2
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.004776c0
mov eax, dword [0x4c26a0]
xor eax, esp
mov dword [esp + 0x2018], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c26a0]
xor eax, esp
push eax
lea eax, [esp + 0x2030]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x2040]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ebx + 0x18], 0xf
mov dword [ebx + 0x14], edi
mov esi, ecx
mov dword [esp + 0x28], ebx
mov byte [ebx + 4], 0
mov eax, dword [esi + 4]
cmp eax, edi
mov dword [esp + 0x2038], edi
mov dword [esp + 0x1c], 1
mov byte [esp + 0x16], 0
jne 0x4671a5
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4671b9
push 1
lea ebp, [esp + 0x24]
push ebp
xor edx, edx
push edx
xor ecx, ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, esi
call fcn.00466b30
test eax, eax
jne 0x4672ba
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, edi
mov edx, dword [esi + 4]
push edi
lea eax, [esp + 0x1c]
push eax
push 1
lea ecx, [esp + 0x23]
push ecx
push edx
call ebp
mov al, byte [esp + 0x17]
cmp al, 0xd
je 0x4671ef
cmp al, 0xa
jne 0x4671ff
mov ecx, esi
call fcn.00466b30
test eax, eax
je 0x4671d0
jmp 0x4672ba
mov edx, dword [esi + 4]
cmp edx, edi
jne 0x467210
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x467227
push 1
or eax, 0xffffffff
lea edi, [esp + 0x24]
push edi
or ecx, eax
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor edi, edi
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea ecx, [esp + 0x22]
push ecx
push edx
call ebp
mov eax, dword [esi + 4]
test eax, eax
jne 0x46724c
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x467261
push 1
or ecx, 0xffffffff
lea ebp, [esp + 0x24]
push ebp
or edx, ecx
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov al, byte [esp + 0x16]
cmp al, 0xd
je 0x4672a9
lea esp, [esp]
cmp al, 0xa
je 0x4672a9
mov ecx, esi
call fcn.00466b30
test eax, eax
jne 0x4672a9
cmp edi, 0x1fff
jae 0x4672a9
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x1e]
push ecx
mov ecx, esi
call fcn.00466a40
mov al, byte [esp + 0x16]
mov byte [esp + edi + 0x2c], al
add edi, 1
cmp al, 0xd
jne 0x467270
lea edx, [esp + 0x2c]
push edx
mov ecx, ebx
mov byte [esp + edi + 0x30], 0
call fcn.0040b9f0
mov eax, ebx
mov ecx, dword [esp + 0x2030]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2018]
xor ecx, esp
call fcn.00475ec4
add esp, 0x2028
ret 4
Function at 0x4676b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a5268
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x4c26a0]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c26a0]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x22c]
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x14], ebx
push 0x200
lea eax, [esp + 0x1c]
push ebx
push eax
mov dword [esp + 0x230], 2
call fcn.00475190
mov ebp, 0x10
add esp, 0xc
cmp dword [edi + 0x18], ebp
jb 0x467727
mov edi, dword [edi + 4]
jmp 0x46772a
add edi, 4
cmp dword [esp + 0x280], ebp
mov edx, dword [esp + 0x26c]
jae 0x467741
lea edx, [esp + 0x26c]
cmp dword [esp + 0x264], ebp
mov ecx, dword [esp + 0x250]
jae 0x467758
lea ecx, [esp + 0x250]
cmp dword [esp + 0x248], ebp
mov eax, dword [esp + 0x234]
jae 0x46776f
lea eax, [esp + 0x234]
push edi
push 0x200
lea edi, [esp + 0x20]
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov edi, 0xf
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], edi
mov byte [esi + 4], bl
jne 0x467821
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x270]
push ecx
mov ecx, esi
call fcn.0040a730
cmp dword [esp + 0x248], ebp
jb 0x4677c4
mov edx, dword [esp + 0x234]
push edx
call fcn.00474c07
add esp, 4
cmp dword [esp + 0x264], ebp
mov dword [esp + 0x248], edi
mov dword [esp + 0x244], ebx
mov byte [esp + 0x234], bl
jb 0x4677f2
mov eax, dword [esp + 0x250]
push eax
call fcn.00474c07
add esp, 4
cmp dword [esp + 0x280], ebp
mov dword [esp + 0x264], edi
mov dword [esp + 0x260], ebx
mov byte [esp + 0x250], bl
jb 0x4678b5
mov ecx, dword [esp + 0x26c]
push ecx
jmp 0x4678ad
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x467828
sub eax, edx
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.0040aeb0
cmp dword [esp + 0x248], ebp
jb 0x467859
mov eax, dword [esp + 0x234]
push eax
call fcn.00474c07
add esp, 4
cmp dword [esp + 0x264], ebp
mov dword [esp + 0x248], edi
mov dword [esp + 0x244], ebx
mov byte [esp + 0x234], bl
jb 0x467887
mov ecx, dword [esp + 0x250]
push ecx
call fcn.00474c07
add esp, 4
cmp dword [esp + 0x280], ebp
mov dword [esp + 0x264], edi
mov dword [esp + 0x260], ebx
mov byte [esp + 0x250], bl
jb 0x4678b5
mov edx, dword [esp + 0x26c]
push edx
call fcn.00474c07
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.00475ec4
add esp, 0x214
ret 0x58
Function at 0x46b510
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x46b51f
mov eax, 1
pop edi
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push esi
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0x4aab50
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x46b5a2
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x46b5a2
push 0x20
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x46b5a2
push 0x28
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x46b5a2
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0x4aab50
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x46b5a2
mov eax, dword [edi]
test eax, eax
je 0x46b5ac
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [edi], esi
mov eax, esi
pop esi
pop ebx
pop edi
ret
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x46b5c0
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x1c
push ebp
xor ebp, ebp
cmp dword [esp + 0x28], ebp
push esi
mov esi, ecx
jle 0x46b74b
call fcn.0046b510
test eax, eax
je 0x46b74b
lea eax, [esi + 4]
push edi
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x34]
cmp edi, ebp
je 0x46b6f6
mov ecx, dword [esi]
lea eax, [esp + 0xc]
push eax
push ebp
push ebp
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x46b641
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], str.CryptCreateHash_error
call fcn.004753a9
push 0x4bb96c
lea eax, [esp + 0x20]
push eax
call fcn.00474edb
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0xc]
push ebp
push ecx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x46b67c
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], str.CryptHashData_error
call fcn.004753a9
push 0x4bb96c
lea ecx, [esp + 0x20]
push ecx
call fcn.00474edb
mov eax, dword [esp + 0xc]
mov ecx, dword [esi]
lea edx, [esp + 0x14]
push edx
push ebp
push eax
push 0x6801
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x46b6be
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], str.CryptDeriveKey_error
call fcn.004753a9
push 0x4bb96c
lea eax, [esp + 0x20]
push eax
call fcn.00474edb
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x46b6f2
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], str.CryptDestroyHash_error
call fcn.004753a9
push 0x4bb96c
lea eax, [esp + 0x20]
push eax
call fcn.00474edb
mov dword [esp + 0xc], ebp
push ebx
mov ebx, dword [esp + 0x30]
xor edi, edi
mov ebp, 0x3e8
mov eax, dword [esp + 0x34]
sub eax, edi
cmp eax, ebp
jbe 0x46b716
add edi, ebp
mov dword [esp + 0x14], ebp
xor esi, esi
jmp 0x46b71f
mov dword [esp + 0x14], eax
mov esi, 1
mov edx, dword [esp + 0x18]
push ebp
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0
push esi
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test esi, esi
jne 0x46b73e
add ebx, ebp
jmp 0x46b702
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 0x10
Function at 0x46dd80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a58f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x4c26a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
lea edx, [eax + ecx]
push edx
push eax
lea ecx, [esp + 0x14]
call fcn.0046d410
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esi + 4]
mov dword [esp + 0x28], 0
call fcn.0046dc70
mov ecx, eax
call fcn.0046d200
mov eax, dword [esp + 0xc]
test eax, eax
je 0x46ddf3
push eax
call fcn.00474c07
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 0xc
Function at 0x473a72
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4c26a0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004738d1
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.00475190
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 0x473ac1
cmp dword [ebp - 0x1c], 5
jb 0x473ad9
jmp 0x473ad5
cmp dword [ebp - 0x10], 1
jne 0x473ad9
cmp dword [ebp - 0x1c], 4
ja 0x473ad5
jne 0x473ad9
cmp dword [ebp - 0x18], 0
jbe 0x473ad9
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4aede4
call fcn.00420470
test eax, eax
jge 0x473afa
mov byte [0x4c3b24], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00475ec4
add ebp, 0x78
leave
ret

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

Disassembly:
cmp dword [0x4c436c], 0
push esi
jne 0x473c81
call fcn.00473b9f
test eax, eax
je 0x473cc4
mov eax, dword [0x4c436c]
cmp eax, 1
jne 0x473ca2
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x473cc4
pop esi
ret
push eax
call dword [0x4c4374]
test eax, eax
jne 0x473d0c
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x473cc8
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4c436c]
call dword [0x4c4374]
mov edi, eax
test edi, edi
je 0x473cef
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x473d0b
lea edi, [esi + 0xff0]
push esi
push dword [0x4c436c]
call dword [0x4c4370]
add esi, 0x10
cmp esi, edi
jb 0x473cf5
mov eax, esi
pop edi
pop esi
ret
jmp 0x473c6e

Function at 0x475ec4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c26a0]
jne 0x475ece
repz ret
jmp fcn.004800ec
Function at 0x4777d9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x477816
cmp dword [ebp + 0x14], edi
je 0x477816
cmp ecx, edi
jne 0x47781d
call fcn.0047a0b0
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00475a2c
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x477831
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x477852
cmp ebx, 0xffffffff
je 0x477841
push ebx
push edi
push ecx
call fcn.00475190
add esp, 0xc
cmp esi, edi
je 0x4777fe
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4777fe
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x47786e
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x477875
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x477966
test word [esi + 0xc], 0x10c
je 0x4778c9
mov eax, dword [esi + 4]
test eax, eax
je 0x4778c9
jl 0x4779c7
cmp ebx, eax
mov edi, ebx
jb 0x47789a
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x47796e
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0047520a
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x47795e
cmp ebx, dword [ebp - 0xc]
jb 0x477936
cmp dword [ebp - 0xc], 0
je 0x4778f3
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x4778e8
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4778ef
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4778fe
mov eax, closesocket
cmp ebx, eax
ja 0x4778fe
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x47799a
push eax
push dword [ebp - 8]
push esi
call fcn.00483c28
pop ecx
push eax
call fcn.004846dd
add esp, 0xc
test eax, eax
je 0x4779d9
cmp eax, 0xffffffff
je 0x4779c7
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x47795e
push esi
call fcn.00483ffc
cmp eax, 0xffffffff
pop ecx
je 0x4779cb
cmp dword [ebp - 4], 0
je 0x47799a
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x47787d
mov eax, dword [ebp + 0x14]
jmp 0x477818
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x477985
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00475190
add esp, 0xc
call fcn.0047a0b0
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x47780e
cmp dword [ebp + 0xc], 0xffffffff
je 0x4779b0
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00475190
add esp, 0xc
call fcn.0047a0b0
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x47780e
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x477818
or dword [esi + 0xc], 0x10
jmp 0x4779cb
Function at 0x47e4bd
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4c29e8]
je 0x47e4d8
inc edi
cmp edi, 0x17
jb 0x47e4c9
cmp edi, 0x17
jae 0x47e658
push ebp
push 3
call fcn.00494b79
cmp eax, 1
pop ecx
je 0x47e624
push 3
call fcn.00494b79
test eax, eax
pop ecx
jne 0x47e50c
cmp dword [0x4c2710], 1
je 0x47e624
cmp ebx, 0xfc
je 0x47e657
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4c4798
push ebp
call fcn.00474f25
add esp, 0xc
test eax, eax
je 0x47e542
push esi
push esi
push esi
push esi
push esi
call fcn.004758f8
add esp, 0x14
push 0x104
mov esi, 0x4c47b1
push esi
push 0
mov byte [0x4c48b5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47e586
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00474f25
add esp, 0xc
test eax, eax
je 0x47e586
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004758f8
add esp, 0x14
push esi
call fcn.0047a180
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x47e5cb
push esi
call fcn.0047a180
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4c4aac
push 0x4afe0c
sub ecx, eax
push ecx
push eax
call fcn.00476d45
add esp, 0x14
test eax, eax
je 0x47e5cb
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004758f8
add esp, 0x14
jmp 0x47e5cd
xor esi, esi
push 0x4afe08
push ebx
push ebp
call fcn.0048b96c
add esp, 0xc
test eax, eax
je 0x47e5ed
push esi
push esi
push esi
push esi
push esi
call fcn.004758f8
add esp, 0x14
push dword [edi*8 + 0x4c29ec]
push ebx
push ebp
call fcn.0048b96c
add esp, 0xc
test eax, eax
je 0x47e60f
push esi
push esi
push esi
push esi
push esi
call fcn.004758f8
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004949bc
add esp, 0xc
jmp 0x47e657
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x47e657
cmp ebp, 0xffffffff
je 0x47e657
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4c29ec]
push dword [esi]
call fcn.0047a180
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4949bc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0047f61d
xor ebx, ebx
cmp dword [0x4c5060], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x494a92
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x494b72
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b14ac
push edi
call esi
cmp eax, ebx
je 0x494b72
push eax
call fcn.0047f5af
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4c5060], eax
call esi
push eax
call fcn.0047f5af
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4c5064], eax
call esi
push eax
call fcn.0047f5af
mov dword [0x4c5068], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0047e128
test eax, eax
pop ecx
pop ecx
je 0x494a60
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004758f8
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x494a92
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0047f5af
cmp eax, ebx
pop ecx
mov dword [0x4c5070], eax
je 0x494a92
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0047f5af
pop ecx
mov dword [0x4c506c], eax
mov eax, dword [0x4c506c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x494b17
cmp dword [0x4c5070], ecx
je 0x494b17
push eax
call fcn.0047f626
push dword [0x4c5070]
mov esi, eax
call fcn.0047f626
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x494b17
cmp edi, ebx
je 0x494b17
call esi
cmp eax, ebx
je 0x494ae4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x494ae4
test byte [ebp - 0x18], 1
jne 0x494b17
lea eax, [ebp - 0x10]
push eax
call fcn.0047e1d7
test eax, eax
pop ecx
je 0x494aff
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004758f8
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x494b0e
or dword [ebp + 0x10], 0x200000
jmp 0x494b52
or dword [ebp + 0x10], 0x40000
jmp 0x494b52
mov eax, dword [0x4c5064]
cmp eax, dword [ebp - 8]
je 0x494b52
push eax
call fcn.0047f626
cmp eax, ebx
pop ecx
je 0x494b52
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x494b52
mov eax, dword [0x4c5068]
cmp eax, dword [ebp - 8]
je 0x494b52
push eax
call fcn.0047f626
cmp eax, ebx
pop ecx
je 0x494b52
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c5060]
call fcn.0047f626
cmp eax, ebx
pop ecx
je 0x494b72
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x494b74
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
test eax, 0x40112c00
add bh, dh
sbb eax, 0x121a0040
inc eax
add byte [0x53004012], bh
adc dword [eax - 0x23], eax
sub dword [ebx + 0x14760040], esi
xor al, 0
xchg ebp, eax
adc al, 0x40
ffreep st(1)
inc eax
add bl, dh
adc al, 0x40
pop ds
push ss
adc eax, 0x1b0000de
add dword [ebx + 0x1b], ecx
sbb ebx, dword [ebx]
add bl, byte [ebx]
sbb esi, dword [edx + 0x1b1b1b1b]
loop 0x401734
sbb eax, dword [esp + ecx*8]
sbb eax, dword [esi]
wait
pop es
sbb ebp, dword [esi]
sbb ebx, dword [ebx]
sbb ebx, dword [ebx]
sbb ebx, dword [ebx]
sbb esp, dword [esi + 0x1ba60a09]
or al, 0xd
push cs
sbb edi, dword [ebx + 0x1b2bb941]
mov ecx, 0x12111b2b
adc dword [edx], edx
adc ebx, dword [ebx]
adc al, 0x15
push ss
pop ss
aam 0x19
sbb dl, byte [eax - 0x6f6f6f70]
nop
ja 0x4016da
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x50]
mov edx, dword [eax - 0x5c]
rol byte [eax], 0x50
add ecx, 0x40
push 0x1640d2d3
enter 0x4fff, 0xffffffffffffff80
shr dword [ebx + 0x2acebb7], 0xe7
dec edx
loope 0x401737
or al, 0x85
shr byte [ebx - 0x36], 0x50
salc
push esp
rol byte [eax], cl
call dword [0xf3c164]
and ah, al
or byte [edx + 0x72], ch
call dword [sym.imp.MSVCRT.dll_exit]
nop