joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454996
Capabilities:
Query environment variable

Disassembly:
jmp 0x4d6e7d
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4d6e91
xor edi, edi
jmp 0x4d6ed5
push ebx
push esi
call fcn.004d6d76
push 0x40
mov ebx, eax
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
sub ebx, esi
and ebx, 0xfffffffe
push 2
push ebx
call fcn.00455d0f
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4d6ec2
push ebx
push esi
push edi
call fcn.00455e6d
add esp, 0xc
push 2
push 0
call fcn.004558e1
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x4559a4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x4ff3a0
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x52f5f4], 1
jge 0x4ff40f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x4ff3e5
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x4ff3e5
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x4ff3c2
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x4ff3fb
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x4ff402
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x4ff4ff
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x4ff4d0
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x4ff4c5
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x4ff4b9
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x4ff4c0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x4ff4ff
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x4ff4fa
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x4ff4e3
mov eax, dword [ebx + 8]
jmp 0x4ff4ff
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4ff4f1
xor eax, eax
jmp 0x4ff4ff
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x4ff42f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x401960
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x402470
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 8]
mov dword [esp + 0x18], 0
push eax
call dword [sym.imp.OUtil.dll_public:_static_class_CString___cdecl_CWVFile::GetAppFolder_void_]
add esp, 4
mov ecx, dword [esp + 8]
push str.Orange.ex_
push ecx
lea edx, [esp + 0x14]
push str._s_s
push edx
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esp + 0x1c]
add esp, 0x10
push 0
push 1
push 3
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x401a96
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push 0x404254
push ecx
lea edx, [esp + 0x14]
push str._s_s
push edx
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 8]
push eax
push str._sOrange.tmp
push ecx
call sub.MFC42.DLL_CString::Format_1
mov edx, dword [esp + 0x14]
mov edi, dword [sym.public:_int___thiscall_CWinApp::ProcessShellCommand_class_CCommandLineInfo__]
add esp, 0xc
push edx
call edi
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
push eax
push ecx
call esi
test eax, eax
je 0x401a78
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
push edx
push eax
call esi
test eax, eax
je 0x401a6c
mov ecx, dword [esp + 8]
push ecx
call edi
jmp 0x401a78
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edx
push eax
call esi
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call fcn.00401fce
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call fcn.00401fce
pop edi
pop esi
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.00401fce
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.00401fce
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x408a51
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x408a60
pop dword [ebp - 0x20]
mov eax, 0x88d54a4d
add eax, 0x776b4013
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x3511a765
add dword [ebp - 0x30], 0x19409de6
mov dword [ebp - 0x2c], 0x36990104
sub dword [ebp - 0x2c], 0x465b4bf
mov dword [ebp - 0x28], 0x3ac9a101
sub dword [ebp - 0x28], 0xee7d5cd3
mov dword [ebp - 0x24], 0xbbf289f8
add dword [ebp - 0x24], 0x440d7608
lea eax, [ebp - 0x30]
push eax
mov eax, 0x255173d2
sub eax, 0x2510a37e
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xe9230e95
sub dword [ebp - 0x30], 0x74b0a53f
mov dword [ebp - 0x2c], 0x938c6f48
add dword [ebp - 0x2c], 0xaddff22d
mov dword [ebp - 0x28], 0x9a32df9f
add dword [ebp - 0x28], 0xc93c8ccd
mov dword [ebp - 0x24], 0x666c7cd6
sub dword [ebp - 0x24], 0x666c7cd6
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3bb2f
push 0
call eax
mov ecx, 0xea468abf
sub ecx, 0xea463a02
mov ebx, eax
mov edx, 0xdf338928
add edx, 0x210e26d8
add edx, dword [ebp - 0x20]
mov edi, 0x153e6b32
sub dword [ebp - 0x1c], edx
mov esi, dword [edx]
sub dword [ebp - 0x18], edx
add esi, edi
sub dword [ebp - 0x1c], 0x33091373
mov dword [ebx], esi
xor dword [ebp - 0x1c], eax
add ebx, 0xf97aa1aa
add ebx, 0x6855e5a
add edx, 0x63ecbc0a
sub edx, 0x63ecbc06
loop 0x408b77
add eax, 0x135c7
xor ebx, ebx
add ebx, eax
add eax, 0x1ec9b299
sub eax, 0x1ec9b294
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x10001030
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], 0
jmp 0x1000106f
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0xc], ecx
jge 0x10001120
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x100010d4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jle 0x100010d2
push 4
push 0x1000
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0xc]
push ecx
nop
nop
nop
nop
nop
nop
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.10006960
add esp, 0xc
jmp 0x1000105d
push 4
push 0x1000
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 0xc]
push eax
nop
nop
nop
nop
nop
nop
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.100063e0
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
jmp 0x1000105d
mov esp, ebp
pop ebp
ret
Function at 0x10001130
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1001b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movzx edx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
jmp 0x10001170
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x28
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x14], edx
jge 0x100012b0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x24]
and ecx, 0x20000000
je 0x10001199
mov dword [ebp - 0x1c], 1
jmp 0x100011a0
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x24]
and ecx, 0x40000000
je 0x100011bd
mov dword [ebp - 0x20], 1
jmp 0x100011c4
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x24]
and ecx, 0x80000000
je 0x100011e1
mov dword [ebp - 0x24], 1
jmp 0x100011e8
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x24]
and ecx, 0x2000000
je 0x1000121a
push 0x4000
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
push edx
nop
nop
nop
nop
nop
nop
jmp 0x1000115e
mov eax, dword [ebp - 0x28]
shl eax, 4
mov ecx, dword [ebp - 0x2c]
lea edx, [eax + ecx*8 + 0x1001b880]
mov eax, dword [ebp - 0x30]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x24]
and eax, 0x4000000
je 0x1000124c
mov ecx, dword [ebp - 0x18]
or ecx, 0x200
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1000128c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x24]
and edx, 0x40
je 0x10001273
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
jmp 0x1000128c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x24]
and ecx, 0x80
je 0x1000128c
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jbe 0x100012ab
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
push eax
nop
nop
nop
nop
nop
nop
jmp 0x1000115e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000532d
mov esp, ebp
pop ebp
ret
Function at 0x10001bd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
movzx eax, byte [ebp + 0x10]
cdq
mov ecx, 0xfe
idiv ecx
add edx, 8
mov byte [ebp - 1], dl
mov dword [ebp - 8], 0
jmp 0x10001bfa
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x10001c2f
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
xor eax, ecx
mov ecx, dword [ebp + 8]
mov byte [ecx], al
movzx edx, byte [ebp - 1]
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
add ecx, edx
mov edx, dword [ebp + 8]
mov byte [edx], cl
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
jmp 0x10001bf1
push 0
nop
nop
nop
nop
nop
nop
mov esp, ebp
pop ebp
ret

Function at 0x10009664
Capabilities:
Parse pe header

Disassembly:
push 0
nop
nop
nop
nop
nop
nop
test eax, eax
je 0x100096a4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100096a4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100096a4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100096a4
cmp dword [ecx + 0x74], 0xe
jbe 0x100096a4
cmp dword [ecx + 0xe8], 0
je 0x100096a4
mov al, 1
ret
xor al, al
ret

Function at 0x10011a80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10011aad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10011aad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x6dd3e880
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x6de41080]
push esi
push 0x6dd31640
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x6dd3ea09
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push 0x6dd31630
push esi
call ebx
mov edi, eax
test edi, edi
je 0x6dd3e8e1
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x6dd3e8e1
mov eax, dword [ebp - 0x108]
test eax, eax
jne 0x6dd3e9cc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x10c]
push ecx
push 0x6dd31614
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x6dd3e987
lea edx, [ebp - 0x108]
push edx
mov edx, dword [ebp - 0x10c]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0
push 0x6dd31600
push edx
mov dword [ebp - 0x108], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6dd3e97a
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x6dd3e97a
push 0x6dd315f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x6dd3e97a
push 0x6dd315e4
push eax
call ebx
test eax, eax
je 0x6dd3e97a
mov ecx, dword [ebp + 8]
push ecx
call eax
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
call fcn.6dd58dd9
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
cmp esi, 0x78
je 0x6dd3e9df
cmp esi, 0xdc
jb 0x6dd3e99f
cmp esi, 0x140
jb 0x6dd3e9df
push 0xdc
push esi
push 0x6dd31500
lea eax, [ebp - 0x104]
push 0x100
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x14
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.6dd58dd9
mov esp, ebp
pop ebp
ret 4
push 0x34e4
call fcn.6dd45c10
add esp, 4
test eax, eax
je 0x6dd3e9cc
push esi
mov ecx, eax
call fcn.6dd3e000
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
call fcn.6dd58dd9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
call fcn.6dd58dd9
mov esp, ebp
pop ebp
ret 4
Function at 0x6dd43570
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x6de41080]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push eax
xor edi, edi
lea eax, [ebp - 0x824]
push eax
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 0x828], edx
mov dword [ebp - 0x830], edi
mov dword [ebx], edi
mov dword [ebp - 0x3f0], edi
xor esi, esi
call sub.GDI32.dll_GdiEntry1
cmp dword [ebp - 0x3f0], edi
je 0x6dd436a0
push 0x6c4
call fcn.6dd47440
mov esi, eax
add esp, 4
cmp esi, edi
je 0x6dd436a0
mov edx, dword [ebp - 0x82c]
mov ecx, dword [ebp - 0x3f0]
push edx
lea eax, [esi + 0xc]
mov dword [esi], ecx
push eax
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call sub.GDI32.dll_GdiEntry13
mov ecx, dword [ebp - 0x828]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x14]
cmp eax, 2
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [ecx], edi
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xc0], edi
jne 0x6dd43685
push 0x6dd321c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 0x828]
mov dword [edx], eax
call fcn.6dd48ec0
cmp eax, edi
mov dword [esi + 0x2c], eax
jne 0x6dd43675
mov dword [ebx], edi
jmp 0x6dd436a4
mov eax, dword [ebp - 0x828]
mov ecx, dword [eax]
mov dword [esi + 0x94], ecx
jmp 0x6dd436a0
cmp eax, 3
jne 0x6dd436a0
call fcn.6dd48ec0
cmp eax, edi
mov dword [esi + 0x2c], eax
jne 0x6dd4369a
mov dword [ebx], edi
jmp 0x6dd436a4
mov edx, dword [ebp + 0x1c]
mov dword [esi + 0x6c], edx
cmp dword [ebx], edi
jne 0x6dd436d6
cmp esi, edi
je 0x6dd436b1
push esi
call fcn.6dd47460
add esp, 4
mov eax, dword [ebp - 0x3f0]
cmp eax, edi
je 0x6dd43752
push eax
call sub.d3d8thk.dll_OsThunkDdDeleteDirectDrawObject
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.6dd58dd9
mov esp, ebp
pop ebp
ret 0x18
lea eax, [ebp - 0x830]
push eax
push 0x6dd31614
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x6dd4374c
lea ecx, [ebp - 0x82c]
push ecx
lea edx, [ebp - 0x828]
push edx
lea eax, [ebp - 0x834]
push eax
push edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x80], edi
mov ecx, dword [ebp - 0x830]
push 0x6dd321b0
push ecx
mov dword [ebp - 0x82c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6dd4373f
mov edx, dword [ebp - 0x828]
mov dword [esi + 0x80], edx
mov eax, dword [ebp - 0x830]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [0x6de43cc8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.6dd58dd9
mov esp, ebp
pop ebp
ret 0x18
Function at 0x6dd47480
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6de41080]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push 0x104
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x11c], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
lea edx, [ebp - 0x118]
push edx
call ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 0x80
push eax
push 0
push 1
push ecx
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x6dd4755c
push 0x6dd32364
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x120], eax
je 0x6dd4755c
push 0x6dd3234c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x6dd4754f
push 1
push 0x1c
lea ecx, [ebp - 0x118]
push ecx
push 0
call eax
test eax, eax
jl 0x6dd4754f
push edi
lea edx, [ebp - 0x118]
push edx
call ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 0x80
push eax
push 0
push 1
push ecx
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x6dd47574
lea ecx, [ebp - 0x118]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.6dd58dd9
mov esp, ebp
pop ebp
ret
Function at 0x6dd47590
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push edi
push 0
push 0x6dd32370
push 3
mov dword [eax], 0
push 0x80000000
mov dword [ecx], 0
call fcn.6dd47480
mov edi, eax
add esp, 0x10
cmp edi, 0xffffffff
je 0x6dd476f1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [ebp - 4]
push edx
push 4
lea eax, [ebp - 8]
push eax
push edi
call esi
cmp dword [ebp - 4], 4
jb 0x6dd476e9
mov ecx, dword [ebp - 8]
push ebx
push ecx
call fcn.6dd47440
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [ebp - 0xc], ebx
je 0x6dd476e8
mov eax, dword [ebp - 8]
push 0
lea edx, [ebp - 4]
push edx
push eax
push ebx
push edi
call esi
mov edx, dword [ebp - 8]
cmp dword [ebp - 4], edx
jb 0x6dd476df
mov eax, 0xaaaaaaab
mul edx
shr edx, 4
xor ecx, ecx
test edx, edx
jbe 0x6dd47676
mov esi, dword [ebp + 8]
lea eax, [ebx + 8]
jmp 0x6dd47640
mov ebx, dword [esi + 0x408]
cmp dword [eax - 8], ebx
jne 0x6dd4766b
mov ebx, dword [eax - 4]
cmp ebx, dword [esi + 0x40c]
jne 0x6dd4766b
mov ebx, dword [eax]
cmp ebx, dword [esi + 0x410]
jne 0x6dd4766b
mov ebx, dword [eax + 4]
cmp ebx, dword [esi + 0x414]
je 0x6dd47673
inc ecx
add eax, 0x18
cmp ecx, edx
jb 0x6dd47640
mov ebx, dword [ebp - 0xc]
cmp ecx, edx
jae 0x6dd476df
lea ecx, [ecx + ecx*2]
mov edx, dword [ebx + ecx*8 + 0x10]
push 0
lea esi, [ebx + ecx*8]
push 0
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esi + 0x10]
jne 0x6dd476df
mov eax, dword [esi + 0x14]
push eax
call fcn.6dd47440
mov ecx, dword [ebp + 0x10]
add esp, 4
test eax, eax
mov dword [ecx], eax
je 0x6dd476df
mov ecx, dword [esi + 0x14]
push 0
lea edx, [ebp - 4]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esi + 0x14]
cmp dword [ebp - 4], esi
jae 0x6dd476da
mov esi, dword [ebp + 0x10]
mov edx, dword [esi]
push edx
call fcn.6dd47460
add esp, 4
mov dword [esi], 0
jmp 0x6dd476df
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
push ebx
call fcn.6dd47460
add esp, 4
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov esp, ebp
pop ebp
ret