joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440130
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.tJrdyPER
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x440152
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x440159
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x440148
mov eax, 1
add ebx, ebx
jne 0x44016b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x440160
jne 0x44017c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x440160
xor ecx, ecx
sub eax, 3
jb 0x440190
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x440202
mov ebp, eax
add ebx, ebx
jne 0x44019b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4401a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4401cc
inc ecx
add ebx, ebx
jne 0x4401b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4401ad
jne 0x4401c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4401ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4401ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4401dd
jmp 0x44014e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4401ec
add edi, ecx
jmp 0x44014e
pop esi
lea edi, [esi + 0x3e000]
mov eax, dword [edi]
or eax, eax
je 0x440254
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4020c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x402b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x440209
mov ecx, edi
jns 0x440238
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x402bc]
or eax, eax
je 0x44024e
mov dword [ebx], eax
add ebx, 4
jmp 0x440226
call dword [esi + 0x402b8]
mov ebp, dword [esi + 0x402c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x440288
sub esp, 0xffffff80
jmp section.NDltoTPW

Function at 0x401c2e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and byte [ebp - 0x100], 0
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
lea eax, [ebp - 0x100]
push 0x404008
push eax
call fcn.00401ca0
mov ecx, 0x401bdc
mov eax, 0x4017fd
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00401d18
push 0x100
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.004020d0
add esp, 0x24
call fcn.00401846
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push 0x400
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.00420250
add esp, 0xc
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
push str._DataManager_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x400]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret

Function at 0x401050
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444c2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00404460
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.00404460
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00404460
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x3bc8
call fcn.00404380
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x3bdc
call fcn.004362f2
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x3bf0
call fcn.004362f2
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c04
call fcn.004362f2
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c18
call fcn.004362f2
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c2c
call fcn.004362f2
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c40
call fcn.004362f2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x4476a0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x4560], 1
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1a90], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xd80], 1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x3aa4], 1
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x3ab8], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2598], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x48], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 0xd84], 0x2c
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x44], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x3c], 1
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x40], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x3aac], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x38], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x2c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2594], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x49e8], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x49ec], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40287e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x18]
add eax, 0x259c
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x301c
push ecx
push str.m_szLangRegKey___s__m_szLangRegValue___s
call fcn.00401000
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
push 0x20019
push 0
mov eax, dword [ebp - 0x18]
add eax, 0x301c
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402924
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push 0
mov eax, dword [ebp - 0x18]
add eax, 0x259c
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40291a
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x269c
push eax
call fcn.004207d0
add esp, 8
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x402926
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x402e95
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444d87
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov dword [ebp - 0x120], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x110], 0xff
lea eax, [ebp - 0x114]
push eax
push 0x20019
push 0
lea ecx, [ebp + 8]
call fcn.004044d0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402f76
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x10c]
push edx
push 0
push 0
lea ecx, [ebp + 0xc]
call fcn.004044d0
push eax
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402f69
lea ecx, [ebp - 0x10c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004371a9
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x118], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00437020
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00437020
mov eax, dword [ebp - 0x118]
jmp 0x402fa1
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x11c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00437020
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00437020
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403fec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444ec6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x610
mov dword [ebp - 0x61c], ecx
mov dword [ebp - 0x410], 0x200
lea ecx, [ebp - 0x614]
call fcn.00404460
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x61c]
add eax, 0x299c
push eax
mov ecx, dword [ebp - 0x61c]
add ecx, 0x2a9c
push ecx
push 0x454d00
lea edx, [ebp - 0x40c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x618]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x40c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404137
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0x610]
push eax
push 0
push 0
push 0x454d1c
mov ecx, dword [ebp - 0x618]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4040d6
lea edx, [ebp - 0x610]
push edx
mov ecx, dword [ebp - 0x61c]
add ecx, 0x1c
call fcn.004371a9
mov eax, dword [ebp - 0x61c]
mov ecx, dword [eax + 0x1c]
push ecx
push str.m_szHTMLUserGuidePath___s
call fcn.00401000
add esp, 8
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0x610]
push eax
push 0
push 0
push 0x454d48
mov ecx, dword [ebp - 0x618]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40412a
lea edx, [ebp - 0x610]
push edx
mov ecx, dword [ebp - 0x61c]
add ecx, 0x18
call fcn.004371a9
mov eax, dword [ebp - 0x61c]
mov ecx, dword [eax + 0x18]
push ecx
push 0x454d58
call fcn.00401000
add esp, 8
mov edx, dword [ebp - 0x618]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x614]
call fcn.00437020
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x404157
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444edc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x610
mov dword [ebp - 0x61c], ecx
mov dword [ebp - 0x410], 0x200
lea ecx, [ebp - 0x614]
call fcn.00404460
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.SOFTWARE_s_sInstalled_
lea edx, [ebp - 0x40c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x618]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x40c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404291
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0x610]
push eax
push 0
push 0
push str.UserGuideDir
mov ecx, dword [ebp - 0x618]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404230
lea edx, [ebp - 0x610]
push edx
mov ecx, dword [ebp - 0x61c]
add ecx, 0x1c
call fcn.004371a9
mov eax, dword [ebp - 0x61c]
mov ecx, dword [eax + 0x1c]
push ecx
push str._t___s
call fcn.00401000
add esp, 8
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0x610]
push eax
push 0
push 0
push str.UserGuideFile
mov ecx, dword [ebp - 0x618]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404284
lea edx, [ebp - 0x610]
push edx
mov ecx, dword [ebp - 0x61c]
add ecx, 0x18
call fcn.004371a9
mov eax, dword [ebp - 0x61c]
mov ecx, dword [eax + 0x18]
push ecx
push str.m_szHTMLUserGuideIndexFile___s
call fcn.00401000
add esp, 8
mov edx, dword [ebp - 0x618]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x614]
call fcn.00437020
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x40bd68
Capabilities:
Create process on windows
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x574
push edi
mov dword [ebp - 0x574], ecx
mov dword [ebp - 0x464], 0
mov dword [ebp - 0x15c], 0
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x158]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x118], 0
xor eax, eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x15c], 0x44
mov dword [ebp - 0x570], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x468], 0
push 0x462184
push str._sJobErr.exe
lea ecx, [ebp - 0x35c]
push ecx
call fcn.00420bf4
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x40be33
push 0x104
lea edx, [ebp - 0x56c]
push edx
push 0x4477c8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x40be24
lea eax, [ebp - 0x56c]
mov dword [ebp - 0x570], eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4477c8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
cmp dword [ebp + 0xc], 0
je 0x40be6c
push 0x104
lea edx, [ebp - 0x108]
push edx
push str.MsgTextID
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x40be5d
lea eax, [ebp - 0x108]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.MsgTextID
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
cmp dword [ebp + 0x10], 0
je 0x40bea8
push 0x104
lea edx, [ebp - 0x460]
push edx
push str.MsgButtonTextID
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x40be99
lea eax, [ebp - 0x460]
mov dword [ebp - 0x468], eax
mov ecx, dword [ebp + 0x10]
push ecx
push str.MsgButtonTextID
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x15c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x35c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x464], eax
cmp dword [ebp + 8], 0
je 0x40beef
mov edx, dword [ebp - 0x570]
push edx
push 0x4477c8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
cmp dword [ebp + 0xc], 0
je 0x40bf04
mov eax, dword [ebp - 4]
push eax
push str.MsgTextID
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
cmp dword [ebp + 0x10], 0
je 0x40bf1c
mov ecx, dword [ebp - 0x468]
push ecx
push str.MsgButtonTextID
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov eax, dword [ebp - 0x464]
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40bff5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push str.CommonSM_received_WM_USER_THREAD_FINISHED_from_IOManager
call fcn.00401000
add esp, 4
mov eax, dword [ebp - 4]
mov dword [eax + 0x8504c], 1
push 0
push 0x12
push 0
push 0
call fcn.004185be
push str.All_HTML_help_is_closed
call fcn.00401000
add esp, 4
mov ecx, dword [ebp - 4]
call fcn.0040c8d8
push str.Send_End_Messages
call fcn.00401000
add esp, 4
mov ecx, dword [ebp - 4]
call fcn.0040e8c7
push str.Hide_Panel
call fcn.00401000
add esp, 4
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x85020], 0
je 0x40c076
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x85020]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push str.Close_bitmap_Image
call fcn.00401000
add esp, 4
mov ecx, dword [ebp - 4]
add ecx, 0xc0
call dword [sym.imp.spiomgr.dll_public:_void___thiscall_IOEventManager::DeleteAll_void_]
push str.IOEveMgr_is_deleted
call fcn.00401000
add esp, 4
call fcn.004096ae
test eax, eax
je 0x40c0b0
mov ecx, dword [ebp - 4]
call fcn.0040e48a
cmp dword [0x4613fc], 0
je 0x40c0dd
call dword [0x45e8c0]
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x85040], 0
je 0x40c0db
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x85040]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40c0e2
call sub.SMBalloon.dll_DestroyPanel
mov ecx, dword [ebp - 4]
call fcn.0040e187
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
call dword [edx + 0x58]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40d0ac
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40d0da
xor eax, eax
jmp 0x40d120
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x9c], ecx
cmp dword [ebp - 0x9c], 1
je 0x40d0fa
cmp dword [ebp - 0x9c], 2
je 0x40d0fe
jmp 0x40d11e
xor eax, eax
jmp 0x40d120
cmp dword [ebp - 0x90], 4
jne 0x40d10e
mov eax, 1
jmp 0x40d120
cmp dword [ebp - 0x90], 5
jb 0x40d11e
mov eax, 1
jmp 0x40d120
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40d14a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x55c
push esi
push edi
mov dword [ebp - 0x55c], ecx
mov dword [ebp - 0x358], 0
mov ecx, 0xc
mov esi, 0x4567dc
lea edi, [ebp - 0x354]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x34
xor eax, eax
lea edi, [ebp - 0x324]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x54], 0
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x54], 0x44
push str.IN_CMainFrame::ShowTonerOrderWebSite__
call fcn.00401000
add esp, 4
lea ecx, [ebp - 0x354]
push ecx
mov ecx, dword [ebp - 0x55c]
call fcn.0040d28a
lea edx, [ebp - 0x254]
push edx
mov ecx, dword [ebp - 0x55c]
add ecx, 0xa50
call fcn.00408a7d
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x354]
push ecx
push 0x456834
lea edx, [ebp - 0x558]
push edx
call fcn.00420bf4
add esp, 0x10
lea eax, [ebp - 0x558]
push eax
push str.WebSite_URL_is__s
call fcn.00401000
add esp, 8
call fcn.004096ae
test eax, eax
je 0x40d23e
push 2
lea ecx, [ebp - 0x558]
push ecx
mov ecx, dword [ebp - 0x55c]
call fcn.0040e3b5
jmp 0x40d284
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x558]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 0
jne 0x40d284
lea edx, [ebp - 0x558]
push edx
push 0x456850
call fcn.00401000
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d28a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44544d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x30], ecx
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.http_shellopencommand
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40d3dd
mov dword [ebp - 0x1c], 0xff
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push 0x45e90c
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20]
call fcn.00404460
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.004371a9
lea ecx, [ebp - 0x20]
call fcn.00435f42
lea ecx, [ebp - 0x20]
call fcn.00435ef6
lea ecx, [ebp - 0x20]
call fcn.00404600
test eax, eax
jle 0x40d3ce
push 0x45688c
lea ecx, [ebp - 0x20]
call fcn.00435b0a
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x28], 0
jl 0x40d370
mov ecx, dword [ebp - 0x28]
add ecx, 1
push ecx
push 0x456890
lea ecx, [ebp - 0x20]
call fcn.00435b18
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
add edx, 1
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00435a92
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x38]
push edx
lea ecx, [ebp - 0x20]
call fcn.00437159
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00437020
lea ecx, [ebp - 0x20]
call fcn.004044d0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004207d0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
push str.IE_is__s
call fcn.00401000
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00437020
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40e187
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x718
mov dword [ebp - 0x718], ecx
push 0xff
lea eax, [ebp - 0x514]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
lea ecx, [ebp - 0x714]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x514]
push eax
call fcn.004214c7
add esp, 0x14
push 0x4602ed
push 0x456c40
lea ecx, [ebp - 0x414]
push ecx
call fcn.00420bf4
add esp, 0xc
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x414]
push eax
push str._s_is_deleted
call fcn.00401000
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x40e28b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
push edi
mov dword [ebp - 0x29c], ecx
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x54], 0
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x54], 0x44
push 0x461504
mov ecx, dword [ebp - 0x29c]
mov edx, dword [ecx + 0x8505c]
push edx
push 0x461804
push 0x461a04
push 0x462abc
push 0x462184
push str._sOrderSupLauncher.exe__s__s__s__s__s
lea eax, [ebp - 0x254]
push eax
call fcn.00420bf4
add esp, 0x20
mov ecx, dword [ebp - 0x29c]
add ecx, 0x85058
call fcn.004044d0
push eax
lea ecx, [ebp - 0x298]
push ecx
mov ecx, 0x45ea40
call fcn.00412289
test eax, eax
je 0x40e354
lea edx, [ebp - 0x298]
push edx
lea eax, [ebp - 0x254]
push eax
push str._s__s
lea ecx, [ebp - 0x254]
push ecx
call fcn.00420bf4
add esp, 0x10
lea edx, [ebp - 0x254]
push edx
push str.Launch_path____s_
call fcn.00401000
add esp, 8
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x254]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
jne 0x40e3ab
push str.ShowXeroxOrderSupplies___is_failed
call fcn.00401000
add esp, 4
xor eax, eax
jmp 0x40e3b0
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret