joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b280
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push edi
push eax
call fcn.00474ddc
mov edi, eax
xor ebx, ebx
add esp, 4
cmp edi, ebx
jne 0x46b2a1
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x40
lea ecx, [ebp - 0x54]
push ebx
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x58], 0x44
call fcn.00474b70
mov edx, dword [ebp + 0xc]
add esp, 0xc
xor eax, eax
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push edx
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x58]
push edx
push ebx
push eax
push 0x8000600
push 1
push ebx
push ebx
push edi
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
test esi, esi
jne 0x46b350
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
jne 0x46b34c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 5
jg 0x46b34c
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
push 0
push ecx
push 0x8000600
push 1
push 0
push 0
push edi
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
test esi, esi
je 0x46b300
jmp 0x46b350
test esi, esi
je 0x46b374
cmp dword [ebp + 0x10], 0
je 0x46b362
mov eax, dword [ebp - 0x14]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebx
mov edx, dword [ebp - 0x14]
push edx
call ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x46b382
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push edi
call fcn.0046f0ab
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b9d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push esi
cdq
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov dword [ebp - 4], edx
push esi
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x46ba37
mov ecx, dword [esi]
lea edx, [ebp - 0xc]
xchg dword [edx], ecx
mov eax, dword [ebp - 0xc]
cmp eax, 0x8b55ff8b
jne 0x46ba2a
mov ecx, 0x9090c033
mov edx, esi
xchg dword [edx], ecx
mov eax, 0x900004c2
lea ecx, [esi + 4]
xchg dword [ecx], eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 4]
push edx
push eax
push 4
push esi
call edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46bac0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x46bace
xor al, al
pop ebp
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x46baca
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x46baca
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x46baf1
mov edx, dword [eax + 8]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46bafd
mov eax, dword [eax + 0x50]
mov dword [ecx], eax
mov al, 1
pop ebp
ret
Function at 0x46d060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x4a9420], 1
je 0x46d075
xor eax, eax
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 1
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
call fcn.0046ccd0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46d0c0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
push eax
push eax
mov eax, dword [ebp - 4]
push str.FullDump
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x46d0ce
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x46d700
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4a4100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00474b70
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x214], 0x105
call fcn.0046cdd0
add esp, 0x14
test eax, eax
jne 0x46d767
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f01c
mov esp, ebp
pop ebp
ret
push str.BugReportConfig.ini
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46d7b3
push eax
push 0x80
push 2
push eax
push 3
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x46d756
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46d7c0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x210]
push ecx
mov ecx, esi
call fcn.00402640
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0046f01c
mov esp, ebp
pop ebp
ret
Function at 0x46e250
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x46e26f
mov edx, dword [ebx + 0x10]
cmp edx, 0x40
jb 0x46e26f
mov eax, 0x5a4d
mov dword [ebx + 0x1c], ecx
cmp word [ecx], ax
je 0x46e273
xor al, al
pop ebx
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
push esi
mov dword [ebx + 0x20], eax
cmp eax, ecx
jb 0x46e3e4
add ecx, edx
lea esi, [eax + 0x108]
cmp esi, ecx
ja 0x46e3e4
lea ecx, [eax + 4]
mov dword [ebx + 0x24], ecx
cmp dword [eax], 0x4550
jne 0x46e3e4
movzx ecx, word [ecx]
mov esi, 0x8664
cmp cx, si
je 0x46e2c7
mov esi, 0x200
cmp cx, si
je 0x46e2c7
mov esi, 0x284
cmp cx, si
jne 0x46e2cb
mov byte [ebx + 5], 1
mov byte [ebx + 4], 1
movzx ecx, word [eax + 0x14]
cmp ecx, edx
ja 0x46e3e4
cmp byte [ebx + 5], 0
push edi
je 0x46e2f7
lea esi, [eax + 0x18]
lea edi, [ebx + 0x23c]
mov ecx, 0x3c
rep movsd dword es:[edi], dword [esi]
jmp 0x46e39a
mov ecx, dword [eax + 0x18]
mov dword [ebx + 0x23c], ecx
mov ecx, dword [eax + 0x1c]
mov dword [ebx + 0x240], ecx
mov ecx, dword [eax + 0x20]
mov dword [ebx + 0x244], ecx
mov ecx, dword [eax + 0x24]
mov dword [ebx + 0x248], ecx
mov ecx, dword [eax + 0x28]
mov dword [ebx + 0x24c], ecx
mov ecx, dword [eax + 0x2c]
mov dword [ebx + 0x250], ecx
lea esi, [eax + 0x38]
lea edi, [ebx + 0x25c]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x70]
lea edi, [ebx + 0x2a4]
mov ecx, 0x22
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x34]
mov dword [ebx + 0x254], ecx
xor ecx, ecx
mov dword [ebx + 0x258], ecx
mov esi, dword [eax + 0x60]
mov dword [ebx + 0x284], esi
mov dword [ebx + 0x288], ecx
mov esi, dword [eax + 0x64]
mov dword [ebx + 0x28c], esi
mov dword [ebx + 0x290], ecx
mov esi, dword [eax + 0x68]
mov dword [ebx + 0x294], esi
mov dword [ebx + 0x298], ecx
mov esi, dword [eax + 0x6c]
mov dword [ebx + 0x29c], esi
mov dword [ebx + 0x2a0], ecx
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
mov dword [ebx + 0x28], ecx
movzx eax, word [eax + 6]
lea esi, [eax + eax*4]
add esi, esi
add esi, esi
add esi, esi
pop edi
cmp esi, edx
ja 0x46e3e4
push esi
call fcn.0046a020
add esp, 4
mov dword [ebx + 0x238], eax
test eax, eax
je 0x46e3e4
mov edx, dword [ebx + 0x28]
push esi
push edx
push eax
call fcn.00474720
add esp, 0xc
mov ecx, ebx
call fcn.0046e0f0
pop esi
mov al, 1
pop ebx
ret
pop esi
xor al, al
pop ebx
ret
Function at 0x46eb20
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 4]
xor ebx, ebx
push ebx
push ebx
call edx
mov eax, dword [ebp + 8]
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x46ebb7
lea ecx, [ebp - 8]
push ecx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x46ebb0
cmp dword [ebp - 4], ebx
jg 0x46ebb0
mov edx, dword [ebp - 8]
push ebx
push ebx
push ebx
push 2
push ebx
push edi
mov dword [esi + 8], edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
call edi
test ebx, ebx
je 0x46ebb7
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov dword [esi + 4], eax
call edi
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x46ec20
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487060
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4a4100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov eax, dword [ebx]
mov edx, dword [eax + 4]
xor esi, esi
push esi
push esi
call edx
mov eax, dword [ebp + 8]
push esi
push esi
push 3
push esi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x46ed1c
lea ecx, [ebp - 0x1c]
push ecx
push edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x46ed15
cmp dword [ebp - 0x18], esi
jg 0x46ed15
mov edx, dword [ebp - 0x1c]
push edx
mov dword [ebp - 4], esi
call fcn.0046a020
mov esi, eax
add esp, 4
test esi, esi
je 0x46ed15
mov ecx, dword [ebp - 0x1c]
push 0
lea eax, [ebp - 0x14]
push eax
push ecx
push esi
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46ecf3
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
jne 0x46ecf3
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edi
mov dword [ebx + 4], esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0046f324
add esp, 4
jmp 0x46ed1c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46ed90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx + 4], 0
push ebx
lea ebx, [ecx + 4]
push esi
push edi
je 0x46ee28
mov eax, dword [ecx + 0xc]
lea edi, [ecx + 0xc]
mov esi, ebx
mov dword [ebp - 0xc], esi
mov byte [ebp - 0x10], 1
cmp eax, 0xffffffff
je 0x46ee4e
test eax, eax
je 0x46ee4e
cmp byte [ebp + 8], 0
mov dword [ebp - 4], edi
mov byte [ebp - 8], 1
je 0x46ee18
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x46eddd
mov esi, dword [ecx + 8]
mov ecx, dword [ecx + 8]
cmp esi, ecx
jbe 0x46ede6
mov esi, ecx
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebx]
mov edx, dword [edi]
push 0
lea eax, [ebp + 8]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46ee33
cmp dword [ebp + 8], esi
jne 0x46ee33
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea ecx, [ebp - 8]
call fcn.0046eaf0
lea ecx, [ebp - 0x10]
call fcn.0046e220
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 8]
call fcn.0046eaf0
lea ecx, [ebp - 0x10]
call fcn.0046e220
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esi], 0
je 0x46ee64
mov ecx, dword [esi]
push ecx
call fcn.0046f324
add esp, 4
mov dword [esi], 0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46f01c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a4100]
jne 0x46f026
repz ret
jmp fcn.00475945
Function at 0x47f9de
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00476ef6
and dword [ebp - 4], 0
cmp dword [0x4aaa38], 0
mov ebx, eax
jne 0x47fa8f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47fb40
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x47fb40
push eax
call fcn.00476e84
mov dword [esp], 0x491118
push edi
mov dword [0x4aaa38], eax
call esi
push eax
call fcn.00476e84
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4aaa3c], eax
call esi
push eax
call fcn.00476e84
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4aaa40], eax
call esi
push eax
call fcn.00476e84
pop ecx
mov dword [0x4aaa48], eax
test eax, eax
je 0x47fa8f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00476e84
pop ecx
mov dword [0x4aaa44], eax
mov eax, dword [0x4aaa44]
cmp eax, ebx
je 0x47fae7
cmp dword [0x4aaa48], ebx
je 0x47fae7
push eax
call fcn.00476eff
push dword [0x4aaa48]
mov esi, eax
call fcn.00476eff
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x47fae7
test edi, edi
je 0x47fae7
call esi
test eax, eax
je 0x47fade
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47fade
test byte [ebp - 0xc], 1
jne 0x47fae7
or dword [ebp + 0x10], 0x200000
jmp 0x47fb20
mov eax, dword [0x4aaa3c]
cmp eax, ebx
je 0x47fb20
push eax
call fcn.00476eff
pop ecx
test eax, eax
je 0x47fb20
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x47fb20
mov eax, dword [0x4aaa40]
cmp eax, ebx
je 0x47fb20
push eax
call fcn.00476eff
pop ecx
test eax, eax
je 0x47fb20
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4aaa38]
call fcn.00476eff
pop ecx
test eax, eax
je 0x47fb40
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47fb42
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408360
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
mov eax, dword [0x414004]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x110]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov edi, ecx
xor eax, eax
jmp 0x408390
mov byte [esp + eax + 0x14], al
inc eax
cmp eax, 0x100
jl 0x408390
xor ecx, ecx
xor eax, eax
xor esi, esi
movsx ebx, byte [edi + eax]
mov dl, byte [esp + esi + 0x14]
movsx ebp, dl
add ebx, ecx
add ebp, ebx
and ebp, 0xff
inc eax
mov ecx, ebp
cmp eax, dword [esp + 0x11c]
jb 0x4083c5
xor eax, eax
mov bl, byte [esp + ecx + 0x14]
mov byte [esp + esi + 0x14], bl
inc esi
cmp esi, 0x100
mov byte [esp + ecx + 0x14], dl
jl 0x4083a2
mov ebp, dword [esp + 0x124]
mov edi, dword [esp + 0x10]
xor esi, esi
xor ecx, ecx
test ebp, ebp
jbe 0x408432
lea ecx, [ecx]
inc ecx
and ecx, 0xff
mov al, byte [esp + ecx + 0x14]
movsx edx, al
add edx, esi
and edx, 0xff
mov esi, edx
movzx edx, byte [esp + esi + 0x14]
mov byte [esp + ecx + 0x14], dl
mov byte [esp + esi + 0x14], al
movsx edx, byte [esp + ecx + 0x14]
movsx eax, al
add edx, eax
and edx, 0xff
movzx edx, byte [esp + edx + 0x14]
xor byte [edi], dl
inc edi
sub ebp, 1
jne 0x4083f0
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040851b
add esp, 0x108
ret
Function at 0x40686a
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov eax, 0x6b
mov word [ebp - 0x24], ax
mov ecx, 0x65
mov word [ebp - 0x22], cx
mov edx, 0x72
mov word [ebp - 0x20], dx
mov eax, 0x6e
mov word [ebp - 0x1e], ax
mov ecx, 0x65
mov word [ebp - 0x1c], cx
mov edx, 0x6c
mov word [ebp - 0x1a], dx
mov eax, 0x33
mov word [ebp - 0x18], ax
mov ecx, 0x32
mov word [ebp - 0x16], cx
mov edx, 0x2e
mov word [ebp - 0x14], dx
mov eax, 0x64
mov word [ebp - 0x12], ax
mov ecx, 0x6c
mov word [ebp - 0x10], cx
mov edx, 0x6c
mov word [ebp - 0xe], dx
xor eax, eax
mov word [ebp - 0xc], ax
mov dword [ebp - 4], 0
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x40691e
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.004067fa
add esp, 8
cmp eax, 0
mov eax, dword [ebx + 0x10]
mov ebx, dword [ebx]
jne 0x4068f7
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40692a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push ebp
push edi
mov edi, ecx
mov ebp, edx
test edi, edi
je 0x406945
test ebp, ebp
je 0x406945
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jne 0x40694d
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov ebx, dword [eax + 0x14]
add ecx, edi
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [eax + 0x1c]
mov ecx, ebp
sub ecx, dword [eax + 0x10]
add esi, edi
add edx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
cmp ecx, ebx
ja 0x40698d
mov eax, dword [esi + ecx*4]
pop esi
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + 0x18]
xor esi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x4069e9
mov ecx, ebx
movzx ebx, word [edx + esi*2]
cmp ebx, ecx
ja 0x4069e4
mov eax, dword [esp + 0x14]
mov ecx, ebp
mov eax, dword [eax + esi*4]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4069cf
test dl, dl
je 0x4069cb
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4069cf
add ecx, 2
add eax, 2
test dl, dl
jne 0x4069af
xor eax, eax
jmp 0x4069d4
sbb eax, eax
or eax, 1
test eax, eax
je 0x4069f3
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x40699c
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
pop esi
mov eax, dword [eax + ebx*4]
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
Function at 0x406a0a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push ebx
push edi
mov edi, edx
mov ebx, ecx
call fcn.0040686a
test eax, eax
jne 0x406a22
pop edi
pop ebx
add esp, 0x10
ret
push esi
lea edx, [esp + 0xc]
mov ecx, eax
mov dword [esp + 0xc], 0x74726956
mov dword [esp + 0x10], 0x416c6175
mov dword [esp + 0x14], 0x636f6c6c
mov byte [esp + 0x18], 0
call fcn.0040692a
mov esi, eax
test esi, esi
jne 0x406a58
pop esi
pop edi
pop ebx
add esp, 0x10
ret
push 0x40
push 0x3000
push edi
push ebx
call esi
test eax, eax
jne 0x406a72
push 0x40
push 0x3000
push edi
push eax
call esi
pop esi
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x406b6a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x44
push esi
push edi
mov dword [esp + 0x1c], edx
mov edi, ecx
call fcn.0040686a
mov esi, eax
test esi, esi
jne 0x406b88
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x64616f4c
mov dword [esp + 0x3c], 0x7262694c
mov dword [esp + 0x40], 0x41797261
mov byte [esp + 0x44], 0
call fcn.0040692a
mov dword [esp + 0x18], eax
test eax, eax
je 0x406b80
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x65657246
mov dword [esp + 0x3c], 0x7262694c
mov dword [esp + 0x40], 0x797261
call fcn.0040692a
mov dword [esp + 0x34], eax
test eax, eax
je 0x406b80
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x50746547
mov dword [esp + 0x3c], 0x41636f72
mov dword [esp + 0x40], 0x65726464
mov word [esp + 0x44], 0x7373
mov byte [esp + 0x46], 0
call fcn.0040692a
mov dword [esp + 0x28], eax
test eax, eax
je 0x406b80
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x4d746547
mov dword [esp + 0x3c], 0x6c75646f
mov dword [esp + 0x40], 0x6e614865
mov dword [esp + 0x44], 0x41656c64
mov byte [esp + 0x48], 0
call fcn.0040692a
mov dword [esp + 0x30], eax
test eax, eax
je 0x406b80
mov eax, dword [edi + 0x3c]
push ebx
cmp dword [eax + edi + 0x84], 0
push ebp
je 0x406d4f
mov ecx, dword [eax + edi + 0x80]
add ecx, edi
xor esi, esi
lea ebx, [ecx + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], esi
cmp dword [ebx], esi
je 0x406d4f
mov eax, ebx
mov ebp, ecx
mov eax, dword [eax]
add eax, edi
push eax
mov dword [esp + 0x2c], eax
call dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x406cb2
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
add eax, edi
mov dword [esp + 0x14], 0
cmp dword [eax], 0
je 0x406d33
mov dword [esp + 0x18], 0
nop
mov eax, dword [eax]
test eax, eax
jns 0x406cd5
movzx esi, ax
jmp 0x406cda
lea esi, [edi + 2]
add esi, eax
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x406cf9
push dword [esp + 0x58]
and eax, 0x80000000
push eax
push esi
push dword [esp + 0x34]
call ecx
mov ecx, eax
test ecx, ecx
jne 0x406d08
push esi
push dword [esp + 0x30]
call dword [esp + 0x38]
mov ecx, eax
test ecx, ecx
je 0x406d5c
mov eax, dword [ebp + 0x10]
add eax, dword [esp + 0x18]
mov dword [eax + edi], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x14], ecx
shl ecx, 2
add eax, ecx
add eax, edi
mov dword [esp + 0x18], ecx
cmp dword [eax], 0
jne 0x406cca
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
inc esi
mov dword [esp + 0x10], esi
lea eax, [esi + esi*4]
lea ebp, [ecx + eax*4]
cmp dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
jne 0x406c8f
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x44
ret
cmp dword [ebx], 0
je 0x406d85
mov esi, dword [esp + 0x10]
xor ebp, ebp
lea ecx, [ecx]
cmp ebp, esi
ja 0x406d85
mov eax, dword [ebx]
add eax, edi
push eax
call dword [esp + 0x3c]
push eax
call dword [esp + 0x40]
add ebx, 0x14
inc ebp
cmp dword [ebx], 0
jne 0x406d6a
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret