joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ddb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a04a7
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4c30e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea esi, [edi + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x44ddfa
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44de06
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x2c]
call fcn.004153c0
cmp dword [edi + 0x28], 0
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
jne 0x44de73
push 0x48
call fcn.0044ed09
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x44de67
push 0x48
push 0
push ebx
call fcn.00451e80
add esp, 0xc
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.0044c630
jmp 0x44de69
xor eax, eax
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], eax
mov ecx, ebx
mov dword [ebp - 0x14], 7
sete al
lea edx, [ecx + 2]
lea eax, [eax*2 + 1]
mov dword [edi + 0x1c], eax
xor eax, eax
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44dea0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.004153c0
push 3
push 0x4a93c4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0042b8ae
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44deef
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
cmp dword [edi + 0x28], 0
je 0x44df3e
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x44df3e
push 0x10
xor eax, eax
mov dword [ebp - 0x40], 0
push str._______log_start
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.004153c0
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x50]
push edx
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x50]
call fcn.0040e7e0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x44df74
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44df6a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44dfb1
push edx
push ecx
call fcn.0044ed39
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x44df93
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044f149
mov esp, ebp
pop ebp
ret 0x14
call fcn.0045bf48
int3
Function at 0x4505c0
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a06f8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4c30e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edx, 2
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [eax]
mov eax, ecx
add ecx, 0xa
shr eax, 6
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044f189
mov ecx, dword [ebp - 0x2c]
mov edi, eax
add ecx, ecx
push ecx
push 0
push edi
call fcn.00451e80
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
push edi
push 0x80000001
push dword [ebp + 0xc]
push esi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov ecx, edi
mov dword [ebp - 0x18], 0
mov esi, eax
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x450664
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.004153c0
push 2
push edi
mov dword [ebp - 4], 0
call fcn.0044ed39
mov ebx, dword [ebp - 0x14]
add esp, 8
mov edi, dword [ebp - 0x28]
test esi, esi
je 0x450766
cmp ebx, 8
lea eax, [ebp - 0x28]
cmovae eax, edi
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x30], edx
nop dword [eax]
cmp ebx, 8
lea ecx, [ebp - 0x28]
cmovae ecx, edi
lea ecx, [ecx + edx*2]
cmp eax, ecx
je 0x450734
cmp word [eax], 0xa
jne 0x45072c
cmp ebx, 8
lea ecx, [ebp - 0x28]
cmovae ecx, edi
sub eax, ecx
sar eax, 1
cmp edx, eax
jb 0x4507b4
mov ecx, edx
lea esi, [eax + eax]
sub ecx, eax
mov edx, 1
cmp ecx, edx
cmovb edx, ecx
cmp ebx, 8
mov ebx, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
cmovae ecx, edi
sub ebx, edx
mov dword [ebp - 0x18], ebx
add ecx, esi
sub ebx, eax
lea eax, [ebx*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.00451900
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
add esp, 0xc
cmp ebx, 8
cmovae eax, edi
add eax, esi
jmp 0x4506a6
add eax, 2
jmp 0x4506b0
mov esi, dword [ebp - 0x34]
mov ecx, dword [esi]
cmp edx, ecx
jbe 0x450741
xor esi, esi
jmp 0x450766
cmp ebx, 8
lea eax, [ebp - 0x28]
push edx
cmovae eax, edi
push eax
push ecx
push dword [ebp - 0x38]
call fcn.0045c98a
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov dword [esi], eax
mov esi, dword [ebp - 0x3c]
cmp ebx, 8
jb 0x450796
lea ebx, [ebx*2 + 2]
mov eax, edi
cmp ebx, 0x1000
jb 0x45078c
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4507b9
push ebx
push edi
call fcn.0044ed39
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044f149
mov esp, ebp
pop ebp
ret
call fcn.0042b790
call fcn.0045bf48
int3

Function at 0x48c66f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048be49
Function at 0x48c67a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048c084

Function at 0x48cbf4
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048c97b
Function at 0x401aa0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401adf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401adf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401adf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401adf
cmp dword [ecx + 0x74], 0xe
jbe 0x401adf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x406bd0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x406c1b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00406d6b
test al, al
jne 0x406c15
sub edx, 2
cmp edx, edi
jne 0x406bfb
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406c3d
lea eax, [edi + 2]
cmp edx, eax
je 0x406c3d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00406b1c
add esp, 0x10
jmp 0x406d37
push esi
lea ecx, [ebp - 0x255]
call fcn.00406d6b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406c80
push dword [ebp - 0x25c]
jmp 0x406c2d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x406cbd
cmp word [ebp - 0x226], 0
je 0x406cde
cmp word [ebp - 0x226], ax
jne 0x406cbd
cmp word [ebp - 0x224], 0
je 0x406cde
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00406b1c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406d2a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406c97
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x406d12
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x406d37
push 0x40694c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call 0x409870
add esp, 0x10
jmp 0x406d07
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040126a
leave
ret

Function at 0x4087e8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4101f4
push 0x4101ec
push str.FlsAlloc
push 0x1f
call fcn.00408723
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40881c
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e150]
call esi
jmp 0x408822
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x408866
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410204
push 0x4101fc
push str.FlsGetValue
push 0x21
call fcn.00408723
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40889d
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4088a5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41020c
push 0x410204
push str.FlsSetValue
push 0x22
call fcn.00408723
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4088df
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x40af0e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmp dword [ebp - 0x6fc], 1
jne 0x40afbf
and byte [ebp - 0x78c], 0
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
invalid

Function at 0x40d5a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d5cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d5cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x632e5039
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x63301993
call fcn.63301000
sub esp, 0x60
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x1c]
call dword [sym.imp.sc_base.dll_public:_void___thiscall_CSCString::constructor_void_]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
and dword [ebp - 4], 0
push 0x12
call esi
xor ebx, ebx
mov bx, ax
push 0x10
shr ebx, 0xf
and ebx, 1
call esi
push 0x11
shr eax, 0xf
and eax, 1
mov dword [ebp - 0x10], eax
call esi
xor esi, esi
shr eax, 0xf
and eax, 1
cmp ebx, esi
jne 0x632e5097
cmp dword [ebp - 0x10], esi
jne 0x632e5097
cmp eax, esi
jne 0x632e5097
xor eax, eax
jmp 0x632e509a
xor eax, eax
inc eax
mov ebx, dword [ebp + 8]
cmp ebx, 0x2d
jne 0x632e513d
cmp eax, esi
jne 0x632e5171
xor eax, eax
cmp dword [edi + 0x641], esi
sete al
cmp eax, esi
mov dword [edi + 0x641], eax
jne 0x632e511c
push edi
lea ecx, [ebp - 0x30]
call sub.MFC71U.DLL_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu
lea eax, [edi + 0x160]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call sub.MFC71U.DLL_CDC::SelectObject
mov ebx, eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
push ebx
lea ecx, [ebp - 0x30]
call sub.MFC71U.DLL_CDC::SelectObject
push dword [ebp - 0x6c]
push esi
push esi
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_CreateCaret]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_ShowCaret]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call sub.MFC71U.DLL_CByteArray::CByteArray
jmp 0x632e5123
mov ecx, edi
call sym.ed_st.dll_protected:_void___thiscall_SCEDITCTRL::SetCaretForm_void_
call dword [sym.imp.sc_mdi.dll_public:_static_class_CGIDWndMng____cdecl_CGIDWndMng::Get_void_]
cmp eax, esi
je 0x632e5180
push dword [edi + 0x641]
mov ecx, eax
call dword [sym.imp.sc_mdi.dll_public:_void___thiscall_CGIDWndMng::SetStatusBarInsertMode_int_]
jmp 0x632e5180
cmp ebx, 0x1b
jne 0x632e5160
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
mov ecx, edi
call sub.MFC71U.DLL_CPropertySection::GetSectionName
push dword [ebp + 8]
mov ecx, edi
push dword [ebp + 8]
call sub.MFC71U.DLL_CPropertySection::SetSectionName
jmp 0x632e5180
cmp ebx, 0xd
jne 0x632e5171
mov ecx, dword [edi + 0x2e0]
call dword [sym.imp.basiclib.dll_public:_void___thiscall_CHHCmdProc::BeginOfGroup_void_]
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.basiclib.dll_protected:_void___thiscall_CHHEditCtrlEx::OnKeyDown_unsigned_int__unsigned_int__unsigned_int_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call dword [sym.imp.sc_base.dll_public_virtual:_void___thiscall_CSCString::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x632e612b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
mov esi, ecx
call edi
xor ebx, ebx
mov bx, ax
push 0x11
shr ebx, 0xf
and ebx, 1
call edi
xor edi, edi
mov di, ax
shr edi, 0xf
and edi, 1
cmp dword [ebp + 8], 0xd
jne 0x632e6175
cmp dword [esi + 0x69d], 0
jne 0x632e6175
mov ecx, dword [esi + 0x2e0]
call dword [sym.imp.basiclib.dll_public:_void___thiscall_CHHCmdProc::EndOfGroup_void_]
push dword [esi + 0x20]
call sub.IMM32.dll_ImmGetContext
push eax
mov dword [ebp - 8], eax
call sub.IMM32.dll_ImmGetOpenStatus
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [esi + 0x20]
call sub.IMM32.dll_ImmReleaseContext
push 0
push 0x101
push 0x100
push dword [esi + 0x20]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x632e621f
push dword [ebp + 8]
mov ecx, esi
call sym.ed_st.dll_protected:_int___thiscall_SCEDITCTRL::IsVarNameKey_int_
test eax, eax
jne 0x632e61d2
cmp dword [ebp - 4], eax
je 0x632e621f
cmp dword [esi + 0x69d], eax
jne 0x632e621f
cmp dword [ebp + 8], 0xd
jne 0x632e621f
test ebx, ebx
jne 0x632e621f
test edi, edi
jne 0x632e621f
cmp dword [ebp - 4], edi
je 0x632e621f
cmp dword [ebp + 8], 0xd
jne 0x632e621f
push 0xffffffffffffffff
push edi
push 0x436
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
push ebx
push edi
mov ecx, esi
call sub.MFC71U.DLL_CRichEditCtrl::LineIndex
push edi
mov ecx, esi
mov ebx, eax
call sub.MFC71U.DLL_ATL::CStringT::Left
add ebx, eax
push ebx
push edi
mov ecx, esi
call sub.MFC71U.DLL_ATL::CStringT::Left
push eax
mov ecx, esi
call dword [sym.imp.basiclib.dll_protected:_void___thiscall_CHHEditCtrl::FormatTextLines_int__int__int_]
xor eax, eax
cmp dword [esi + 0x6a9], eax
mov dword [esi + 0x69d], eax
jle 0x632e623d
push 1
push eax
lea ecx, [esi + 0x6a1]
call fcn.632e4cad
mov ecx, esi
call sym.ed_st.dll_protected:_void___thiscall_SCEDITCTRL::SetCaretForm_void_
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x632eb55d
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x63301ec8
call fcn.63301000
sub esp, 0x61c
mov eax, dword [0x6331ab78]
mov ecx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
sub eax, esi
push edi
je 0x632eb714
dec eax
jne 0x632eb734
push ecx
mov edi, 0x6331b99c
push edi
call sub.MFC71U.DLL_AfxHtmlHelp
test eax, eax
je 0x632eb737
push 0x40
call sub.MFC71U.DLL_CWordArray::CWordArray
pop ecx
mov ecx, eax
mov dword [ebp - 0x624], ecx
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x632eb5c2
push esi
push edi
call sub.MFC71U.DLL_CDWordArray::CDWordArray
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or dword [ebp - 4], 0xffffffff
push ebx
push 4
pop eax
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x628], eax
lea eax, [ebp - 0x61c]
push eax
mov ebx, 0x20019
push ebx
push esi
push str.SOFTWAREMITSUBISHISWnDN_GPPW2App
push SysReAllocString
mov dword [ebp - 0x61c], esi
mov dword [ebp - 0x620], 0x4e4
call edi
test eax, eax
je 0x632eb623
lea eax, [ebp - 0x61c]
push eax
push ebx
push esi
push str.SOFTWAREMITSUBISHISWnDN_GPPW2StartupApp
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x632eb666
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x624]
push eax
push esi
push str.CodePage
push dword [ebp - 0x61c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x61c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x632eb666
mov dword [ebp - 0x620], 0x4e4
push 0x7f
pop ecx
xor eax, eax
mov word [ebp - 0x418], si
lea edi, [ebp - 0x416]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x218], si
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [0x6331b9a0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x7f
pop ecx
xor eax, eax
mov word [ebp - 0x618], si
lea edi, [ebp - 0x616]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea eax, [ebp - 0x618]
push eax
push esi
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.MSVCR71.dll__wsplitpath]
push dword [ebp - 0x620]
lea eax, [ebp - 0x618]
push eax
push 0x633063d8
lea eax, [ebp - 0x418]
push 0x100
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x28
lea eax, [ebp - 0x418]
push eax
call sub.MFC71U.DLL_AfxLoadLangResourceDLL
mov dword [0x6331b9b0], eax
pop ebx
jmp 0x632eb734
mov eax, dword [0x6331b9b0]
cmp eax, esi
je 0x632eb729
push eax
call sub.MFC71U.DLL_AfxFormatStrings
mov dword [0x6331b9b0], esi
push esi
push 0x6331b99c
call sub.MFC71U.DLL_AfxStringFromCLSID
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.63300f23
leave
ret 0xc
Function at 0x63301627
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x6331ab78]
xor eax, ebp
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.633015f7
mov eax, 0x632e0000
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 sub.MSVCR71.dll_memset
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 0x6330168b
cmp dword [ebp - 0x1c], 5
jb 0x633016a3
jmp 0x6330169f
cmp dword [ebp - 0x10], 1
jne 0x633016a3
cmp dword [ebp - 0x1c], 4
ja 0x6330169f
jne 0x633016a3
cmp dword [ebp - 0x18], 0
jbe 0x633016a3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x63307e6c
call fcn.63300e9c
test eax, eax
jge 0x633016c4
mov byte [0x6331b730], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.63300f23
add ebp, 0x78
leave
ret
Function at 0x403f97
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x403fde
cmp ebx, 0x20
je 0x403fde
cmp ebx, 0xffffffe0
je 0x403fde
jne 0x403fe7
add eax, 1
cmp esi, eax
je 0x403ff4
jne 0x403fc3
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x403ff8
jne 0x403fbf
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x404051
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x404057
add eax, 4
pop esi
dec esi
push esi
jne 0x404039
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8
Function at 0x435570
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4af9db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004a41ed
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4355f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a1f40
mov eax, dword [eax]
push 0x509210
push eax
call fcn.00494914
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004a4478
test bl, bl
je 0x4355f2
push 0x509210
lea ecx, [esp + 0xc]
call fcn.004a4808
push 0x50cd94
lea ecx, [esp + 0xc]
call fcn.004a4808
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x43562e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004a4478
jmp 0x4356f9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4356b2
lea edx, [esp + 0x7c]
push 0x50cd90
push edx
call fcn.00494914
add esp, 8
test eax, eax
je 0x4356b2
lea eax, [esp + 0x7c]
push 0x50cd8c
push eax
call fcn.00494914
add esp, 8
test eax, eax
je 0x4356b2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x435642
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004a4478
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x435ef0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x435f52
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc