joyce8/EMBER2024-capa huggingface dataset:
Function at 0xdae000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xdae131
push esi
call fcn.00db1145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00da0080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xdae131
push 0
push ebp
call fcn.00da03a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00da0260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xdae08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00da02f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xdae121
push 0xdc6918
push edi
call fcn.00daf3f0
push eax
push ebx
push esi
call fcn.00dadf60
push 0xdc68f8
push edi
call fcn.00daf3f0
push eax
push ebx
push esi
call fcn.00dadf60
push 0xdc68d8
push edi
call fcn.00daf3f0
push eax
push ebx
push esi
call fcn.00dadf60
push 0xdc68c0
push edi
call fcn.00daf3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00dadf60
push 0xdc68a0
push edi
call fcn.00daf3f0
push eax
push ebx
push esi
call fcn.00dadf60
push 0xdc6888
push edi
call fcn.00daf3f0
push eax
push ebx
push esi
call fcn.00dadf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xdaf1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00daf140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00daf140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00daf140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00daf140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xdafbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xdafc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xdc187c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xdafc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xdafc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x405d96
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dcd
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405da7
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dfe
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de0
pop edi
not eax
pop esi
ret 0xc

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x40915c
nop
nop
mov ecx, 0xf153a5d
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
mov ecx, 0x7860389
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x10001c20
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
test esi, esi
jle 0x10001c40
mov dl, byte [ecx + eax]
xor dl, 0xfe
sub dl, 0x66
mov byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x10001c2f
pop esi
ret
Function at 0x411028
Capabilities:
Terminate process

Disassembly:
jmp 0x41307f
push 0x14
push 0x4190f0
call fcn.00411109
push 1
call fcn.0041132f
pop ecx
test al, al
je 0x412f97
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00411366
mov byte [ebp - 0x24], al
mov eax, dword [0x41a790]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x412f97
test eax, eax
jne 0x412eb5
mov dword [0x41a790], ecx
push 0x417618
push 0x41730c
call fcn.004110a5
pop ecx
pop ecx
test eax, eax
je 0x412e98
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x412f87
push 0x417208
push section..rdata
call fcn.004113fc
pop ecx
pop ecx
mov dword [0x41a790], 2
jmp 0x412eba
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004111ea
pop ecx
call fcn.00411069
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x412eeb
push esi
call fcn.0041117c
pop ecx
test al, al
je 0x412eeb
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [section..00cfg]
call esi
call fcn.00411046
mov esi, eax
cmp dword [esi], edi
je 0x412f09
push esi
call fcn.0041117c
pop ecx
test al, al
je 0x412f09
push dword [esi]
call fcn.00411145
pop ecx
call fcn.00411320
mov edi, eax
call fcn.0041132a
mov esi, dword [eax]
call fcn.00411091
push edi
push esi
push dword [eax]
call fcn.0041135c
add esp, 0xc
mov esi, eax
call fcn.00411389
test al, al
je 0x412f9e
test bl, bl
jne 0x412f3c
call fcn.0041145b
push 0
push 1
call fcn.004111fe
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x412f87
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.0041124e
push esi
call fcn.00411280
push dword [ebp - 0x20]
call fcn.004113f7
int3
call fcn.00411451
jmp 0x412e2b

Function at 0x411389
Capabilities:
Parse pe header

Disassembly:
jmp 0x41442e
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41446e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41446e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41446e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41446e
cmp dword [ecx + 0x74], 0xe
jbe 0x41446e
cmp dword [ecx + 0xe8], 0
je 0x41446e
mov al, 1
ret
xor al, al
ret
Function at 0x401130
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x42e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x202
mov word [ebp - 0x29c], ax
lea ecx, [ebp - 0x298]
push ecx
movzx edx, word [ebp - 0x29c]
push edx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x2a0], eax
cmp dword [ebp - 0x2a0], 0
je 0x40118e
mov eax, dword [ebp - 0x2a0]
push eax
push 0x42af30
call fcn.00409264
add esp, 8
xor eax, eax
jmp 0x40129d
movzx ecx, word [ebp - 0x298]
and ecx, 0xff
movzx edx, cl
cmp edx, 2
jne 0x4011ba
movzx eax, word [ebp - 0x298]
shr eax, 8
and eax, 0xff
movzx ecx, al
cmp ecx, 2
je 0x4011d4
push 0x42af54
call fcn.00409264
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x40129d
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea edx, [ebp - 0x107]
push edx
call fcn.0040fa30
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.0040fa30
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
call fcn.00401430
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x42af84
lea edx, [ebp - 0x108]
push edx
call fcn.00401ca0
add esp, 8
test eax, eax
jne 0x401294
push 0x42af8c
lea eax, [ebp - 0x108]
push eax
call fcn.00401ca0
add esp, 8
test eax, eax
jne 0x401294
push 0x42af94
lea ecx, [ebp - 0x108]
push ecx
call fcn.00401ca0
add esp, 8
test eax, eax
jne 0x401294
push 0x42af9c
lea edx, [ebp - 0x108]
push edx
call fcn.00401ca0
add esp, 8
test eax, eax
jne 0x401294
push 0x42afa4
lea eax, [ebp - 0x108]
push eax
call fcn.00401ca0
add esp, 8
test eax, eax
je 0x401298
xor eax, eax
jmp 0x40129d
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409240
mov esp, ebp
pop ebp
ret
Function at 0x4012b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x42e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x202
mov word [ebp - 0x29c], ax
lea ecx, [ebp - 0x298]
push ecx
movzx edx, word [ebp - 0x29c]
push edx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x2a0], eax
cmp dword [ebp - 0x2a0], 0
je 0x40130e
mov eax, dword [ebp - 0x2a0]
push eax
push str.WSAStartup_failed_with_error:__d_n
call fcn.00409264
add esp, 8
xor eax, eax
jmp 0x40141d
movzx ecx, word [ebp - 0x298]
and ecx, 0xff
movzx edx, cl
cmp edx, 2
jne 0x40133a
movzx eax, word [ebp - 0x298]
shr eax, 8
and eax, 0xff
movzx ecx, al
cmp ecx, 2
je 0x401354
push str.Could_not_find_a_usable_version_of_Winsock.dll_n
call fcn.00409264
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x40141d
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea edx, [ebp - 0x107]
push edx
call fcn.0040fa30
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.0040fa30
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
call fcn.004018f0
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x42b000
lea edx, [ebp - 0x108]
push edx
call fcn.00401ca0
add esp, 8
test eax, eax
jne 0x401414
push 0x42b008
lea eax, [ebp - 0x108]
push eax
call fcn.00401ca0
add esp, 8
test eax, eax
jne 0x401414
push 0x42b010
lea ecx, [ebp - 0x108]
push ecx
call fcn.00401ca0
add esp, 8
test eax, eax
jne 0x401414
push 0x42b018
lea edx, [ebp - 0x108]
push edx
call fcn.00401ca0
add esp, 8
test eax, eax
jne 0x401414
push 0x42b020
lea eax, [ebp - 0x108]
push eax
call fcn.00401ca0
add esp, 8
test eax, eax
je 0x401418
xor eax, eax
jmp 0x40141d
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409240
mov esp, ebp
pop ebp
ret
Function at 0x401cc0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421248
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42e008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x42b0f8
lea ecx, [ebp - 0x28]
call fcn.004029d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401ee0
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401d37
mov byte [ebp - 0x2b], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401f00
mov al, byte [ebp - 0x2b]
jmp 0x401d71
call fcn.00403c30
movzx eax, al
test eax, eax
je 0x401d5b
mov byte [ebp - 0x2a], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401f00
mov al, byte [ebp - 0x2a]
jmp 0x401d71
mov byte [ebp - 0x29], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401f00
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409240
mov esp, ebp
pop ebp
ret

Function at 0x403700
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x42e008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0040fa30
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.0040fa30
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00403880
add esp, 8
xor edx, edx
mov word [eax + 2], dx
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
mov dx, word [ecx + 2]
mov word [ebp - 0x216], dx
add dword [ebp - 0x214], 2
cmp word [ebp - 0x216], 0
jne 0x403783
mov edi, dword [ebp - 0x214]
mov eax, dword [str.syj.exe]
mov dword [edi], eax
mov ecx, dword [0x42b198]
mov dword [edi + 4], ecx
mov edx, dword [0x42b19c]
mov dword [edi + 8], edx
mov eax, dword [0x42b1a0]
mov dword [edi + 0xc], eax
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0xffffffff
jne 0x4037fe
xor eax, eax
jmp 0x40386a
push 0
lea edx, [ebp - 0x220]
push edx
push 0xf4a00
push 0x42f3f8
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x40383e
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40386a
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x42b1a4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409240
mov esp, ebp
pop ebp
ret
Function at 0x4070c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x42e008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edx, ecx
lea esi, [ecx + 1]
jmp 0x4070e0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4070e0
sub ecx, esi
mov dword [ebp - 0x7c], 0
push ecx
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x90], 0x67452301
mov dword [ebp - 0x8c], 0xefcdab89
mov dword [ebp - 0x88], 0x98badcfe
mov dword [ebp - 0x84], 0x10325476
call fcn.004067f0
add esp, 4
lea edx, [ebp - 0x90]
lea ecx, [ebp - 0x14]
call fcn.004068c0
xor esi, esi
lea edi, [ebp - 0x37]
mov bl, byte [ebp + esi - 0x14]
movzx eax, bl
push eax
lea eax, [edi - 1]
push str._02x
push eax
call fcn.004096c7
shl bl, 4
movzx eax, bl
push eax
push str._02x
push edi
call fcn.004096c7
inc esi
add esp, 0x18
add edi, 2
cmp esi, 0x10
jl 0x407141
push 0x20
lea eax, [ebp - 0x38]
push eax
push 0x524ef0
call fcn.0040a960
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 0x524ef0
pop edi
pop esi
pop ebx
call fcn.00409240
mov esp, ebp
pop ebp
ret
Function at 0x408c80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42e008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x42bf04
push ecx
lea eax, [ebp - 0x14]
mov edi, edx
push eax
xor esi, esi
call fcn.0041e854
mov eax, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
je 0x408d2c
push esi
push 0x64
push eax
call fcn.0041e928
add esp, 0xc
cmp eax, 0xffffffff
je 0x408d0f
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push 1
push 0xa
push eax
call fcn.0041ed4b
add esp, 0x10
cmp eax, 1
jne 0x408d0f
lea eax, [ebp - 0x10]
push eax
call fcn.00416d55
push 0
push 0x73
push dword [ebp - 0x14]
mov esi, eax
call fcn.0041e928
add esp, 0x10
cmp eax, 0xffffffff
je 0x408d0f
push dword [ebp - 0x14]
push 1
push 0x4f
push edi
call fcn.0041ed4b
xor ecx, ecx
add esp, 0x10
cmp eax, 1
cmovne esi, ecx
push dword [ebp - 0x14]
call fcn.00416431
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409240
mov esp, ebp
pop ebp
ret
push str.fopen_error
call fcn.00409264
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.00409240
mov esp, ebp
pop ebp
ret

Function at 0x408f50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x42e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x1c], eax
mov bl, 1
mov eax, dword [ebp + 0xc]
push 0x42bf28
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x18], ecx
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call fcn.0041e854
add esp, 0xc
test eax, eax
je 0x408fa9
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409240
mov esp, ebp
pop ebp
ret 0xc
push esi
push edi
push dword [ebp - 8]
call fcn.0041f187
push 2
push 0
push dword [ebp - 8]
mov esi, eax
call fcn.0041e928
push dword [ebp - 8]
call fcn.0041f187
push 0
push esi
push dword [ebp - 8]
mov edi, eax
call fcn.0041e928
push edi
call fcn.00409237
push dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 1
push edi
push eax
call fcn.0041ed4b
lea eax, [edi + edi*2]
push eax
mov dword [ebp - 0x10], eax
call fcn.00409237
mov esi, eax
mov eax, dword [ebp - 0x18]
sub edi, eax
push edi
mov edi, dword [ebp - 0x14]
add eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.004195c0
add esp, 0x48
test eax, eax
je 0x40901a
xor bl, bl
jmp 0x409047
push 0x42bf2c
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
call fcn.0041e854
add esp, 0xc
test eax, eax
je 0x409036
xor bl, bl
jmp 0x409047
push dword [ebp - 0xc]
push 1
push dword [ebp - 0x10]
push esi
call fcn.0041eb04
add esp, 0x10
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x409057
push eax
call fcn.00416431
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x409067
push eax
call fcn.00416431
add esp, 4
test edi, edi
je 0x409074
push edi
call fcn.00409767
add esp, 4
test esi, esi
je 0x409081
push esi
call fcn.00409767
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409240
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414e4e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42e008]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040eb80
mov dword [ebp - 0x14], eax
cmp dword [0x524e9c], esi
jne 0x414f41
push 0x800
push esi
push 0x426ce0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x414ece
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x415021
push esi
push esi
push 0x426ce0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x415021
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x415021
push eax
call ebx
push 0x426d04
push edi
mov dword [0x524e9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x426d14
push edi
mov dword [0x524ea0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x524ea4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x524eac], eax
test eax, eax
je 0x414f3e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x524ea8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x414f66
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x414f59
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x414f7b
push 4
pop eax
jmp 0x415023
cmp dword [ebp - 0x14], esi
je 0x414f7b
push dword [0x524e9c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x414f60
mov eax, dword [0x524ea8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x414fd9
cmp dword [0x524eac], edi
je 0x414fd9
push eax
call ebx
push dword [0x524eac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x414fd9
test eax, eax
je 0x414fd9
call ecx
test eax, eax
je 0x414fce
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 0x414fce
test byte [ebp - 8], 1
jne 0x414fd9
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x415009
mov eax, dword [0x524ea0]
cmp eax, edi
je 0x415006
push eax
call ebx
test eax, eax
je 0x415006
call eax
mov esi, eax
test esi, esi
je 0x415006
mov eax, dword [0x524ea4]
cmp eax, edi
je 0x415006
push eax
call ebx
test eax, eax
je 0x415006
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x524e9c]
call ebx
test eax, eax
je 0x415021
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x415023
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409240
mov esp, ebp
pop ebp
ret
Function at 0x100035b0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x100035cd
mov dword [eax], 0
test edi, edi
je 0x100036d9
cmp ebp, 0xffffffff
je 0x100036e3
mov esi, dword [esp + 0x28]
test esi, esi
je 0x100036e3
cmp dword [esp + 0x20], 0
je 0x1000362b
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push 0
push 0x200
push eax
push ecx
call fcn.1009f830
or eax, edx
jne 0x10003610
test edi, 0x1ff
je 0x1000362b
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
push edx
push edi
push esi
push ebx
push ebp
push eax
call fcn.100038a0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push 0
push 0
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1000364e
call fcn.10002c20
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x28]
push eax
push edi
push esi
push ebp
mov dword [esp + 0x38], 0
call ebx
test eax, eax
jne 0x100036cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x10003696
cmp eax, 0x3e6
je 0x10003696
test eax, eax
jle 0x100036e8
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
mov esi, dword [esp + 0x18]
call fcn.10003850
test eax, eax
jl 0x100036e8
cmp eax, 1
je 0x100036e8
mov eax, dword [esi]
push 0
lea edx, [esp + 0x28]
push edx
push edi
push eax
push ebp
call ebx
test eax, eax
je 0x10003641
mov ecx, dword [esi]
mov edx, dword [esp + 0x28]
push edi
push ecx
push edx
call fcn.10059a80
add esp, 0xc
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x100036d9
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
mov eax, 0x80070057
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18