joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10056980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10091ef0
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x100ca00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
call fcn.10009270
mov ecx, eax
test ecx, ecx
jne 0x100569e4
push 0x80004005
call fcn.10008de0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x24], eax
mov eax, esi
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10068fb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
mov dword [ebp - 4], ecx
call esi
mov edi, eax
push 0x10
and edi, 0x8000
call esi
mov ebx, eax
push 0x12
and ebx, 0x8000
call esi
mov ecx, 0x8000
and ax, cx
movzx eax, ax
neg eax
sbb eax, eax
and eax, 0x12
neg edi
sbb edi, edi
and edi, 0x11
or eax, edi
neg ebx
sbb ebx, ebx
and ebx, 0x10
or eax, ebx
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebx + 0x148]
test ecx, ecx
je 0x10069021
push eax
push 1
push dword [ebp + 8]
call sym.mui.dll_public:_int___thiscall_MUI::MControl::OnKeyDown_unsigned_int__unsigned_int__unsigned_int_
test eax, eax
jne 0x1006908b
lea eax, [ebx + 0x1a0]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebx + 0x174]
xor esi, esi
sub edi, dword [ebx + 0x170]
sar edi, 2
test edi, edi
je 0x10069082
nop word [eax + eax]
mov eax, dword [ebx + 0x174]
mov ecx, dword [ebx + 0x170]
sub eax, ecx
sar eax, 2
cmp eax, esi
jbe 0x10069099
mov ecx, dword [ecx + esi*4]
test ecx, ecx
je 0x1006907d
push dword [ebp - 8]
push 1
push dword [ebp + 8]
call sym.mui.dll_public:_int___thiscall_MUI::MControl::OnKeyDown_unsigned_int__unsigned_int__unsigned_int_
test eax, eax
jne 0x10069082
inc esi
cmp esi, edi
jb 0x10069050
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.invalid_vector_T__subscript
call dword [0x100951ac]
int3

Function at 0x100690b0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
mov edi, ecx
call esi
push 0x10
call esi
push 0x12
call esi
lea esi, [edi + 0x1a0]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi + 0x174]
xor eax, eax
sub edx, dword [edi + 0x170]
sar edx, 2
test edx, edx
je 0x10069100
mov ecx, dword [edi + 0x174]
sub ecx, dword [edi + 0x170]
sar ecx, 2
cmp ecx, eax
jbe 0x1006910e
inc eax
cmp eax, edx
jb 0x100690f7
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
ret 8
push str.invalid_vector_T__subscript
call dword [0x100951ac]
int3
Function at 0x1006f9b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10093318
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100ca00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
movzx eax, word [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1006fa6a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
push esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1006fa6a
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x10]
push edi
push eax
call fcn.1008df54
add esp, 0xc
mov dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1006fa6a
mov ecx, dword [ebp + 8]
call fcn.10071d50
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1006fa6c
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1006fa8e
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
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
Function at 0x1007dcd0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10093f88
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100ca00c]
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 esi, ecx
cmp dword [esi + 0x1c], 0
jne 0x1007dd0a
xor eax, eax
jmp 0x1007ddba
cmp dword [esi + 0x14], 0
je 0x1007dd03
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
lea eax, [ebx + ebx]
call fcn.1008db70
mov edi, esp
test edi, edi
je 0x1007dd03
push ebx
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x14]
push eax
call sym.mui.dll_public:_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_MUI::MControlFont::GetTitle_void_
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.1002c2f0
test al, al
je 0x1007dd93
mov ecx, dword [esi + 0x14]
push edi
call sym.mui.dll_public:_void___thiscall_MUI::MControlFont::SetTitle_wchar_t_const__
mov eax, dword [esi + 0x14]
push 0
push 0
push 0x1a
mov ecx, dword [eax + 4]
push dword [eax + 0xc]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov esi, dword [esi + 0x14]
cmp dword [esi + 0x20], 0
je 0x1007dd93
mov ecx, dword [esi + 4]
movups xmm0, xmmword [esi + 0x10]
push esi
push 1
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x18]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1007ddb5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
lea esp, [ebp - 0x24]
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.1008c351
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10081150
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10094410
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x100ca00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x30]
mov dword [edi], vtable.MUI::LoadingWnd.0
test ecx, ecx
je 0x10081191
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x30], 0
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x100811a5
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x3c], 0
mov ecx, dword [edi + 0x50]
test ecx, ecx
je 0x100811b9
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x50], 0
lea esi, [edi + 0x70]
mov ebx, 0x13
mov ecx, dword [esi]
test ecx, ecx
je 0x100811d3
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x100811c1
push 0x64
push dword [edi + 8]
call dword [sym.imp.USER32.dll_KillTimer]
push dword [edi + 0x18]
call dword [sym.imp.gdiplus.dll_GdipDeleteStringFormat]
mov edx, dword [edi + 0x14]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1008120a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi], vtable.MUI::MWindow.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10087340
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], ecx
test eax, eax
je 0x100873c2
test ecx, ecx
je 0x10087365
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4
push eax
call dword [sym.imp.USER32.dll_GetParent]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
test ecx, 0x10000000
jne 0x10087385
mov byte [esi + 0x10], 1
jmp 0x10087398
test ecx, 0x21000000
sete al
lea eax, [eax*2 + 5]
mov byte [esi + 0x10], al
and ecx, 0x31000000
cmp ecx, 0x10000000
jne 0x100873c2
push 4
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, esi
call sym.mui.dll_protected:_void___thiscall_MUI::MShadow::Update_struct_HWND____
pop esi
pop ebp
ret 4

Function at 0x10089890
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x100898fb
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100898fb
push esi
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 8]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.1008a2f0
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi]
test eax, eax
jne 0x100898d5
xor ecx, ecx
jmp 0x100898e8
push dword [eax - 8]
push eax
call dword [0x10095440]
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x10089900
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x10089900
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
pop esi
mov word [eax + ecx*2], dx
pop edi
pop ebp
ret 4
push 0x80070057
call fcn.10008de0
int3
Function at 0x10089cf0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x10089df5
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
test eax, eax
je 0x10089df5
push edi
push 4
push dword [esi + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetWindow]
push dword [ebp + 8]
mov edi, eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [esi + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call ebx
test eax, eax
je 0x10089dca
nop dword [eax]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x10089dca
cmp dword [ebp - 0x1c], 0x10
jne 0x10089d98
mov eax, dword [ebp - 0x20]
cmp eax, dword [esi + 8]
jne 0x10089d98
mov eax, dword [ebp - 0x18]
push 1
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
jne 0x10089dbb
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x1c], 0x12
je 0x10089dca
push dword [esi + 8]
call ebx
test eax, eax
jne 0x10089d60
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x1c], 0x12
pop edi
jne 0x10089dea
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x418b90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x441288]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov ebx, edx
push edi
push 3
mov edi, ecx
mov dword [ebp - 0x448], eax
call esi
push 0
mov word [ebp - 0x434], ax
call esi
mov word [ebp - 0x432], ax
xor ecx, ecx
cmp ecx, 0x3ff
je 0x418bfa
mov al, byte [ecx + str.WTware_TFTP_v.6.2.36.]
mov byte [ebp + ecx - 0x430], al
inc ecx
cmp byte [ecx + str.WTware_TFTP_v.6.2.36.], 0
jne 0x418bd1
mov byte [ebp + ecx - 0x430], 0
jmp 0x418bfe
mov byte [ebp - 0x31], 0
lea ecx, [ebp - 0x430]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418c07
sub ecx, edx
movzx edx, bl
lea esi, [ecx + 4]
lea ecx, [ebp - 0x444]
call fcn.004015f0
xor ecx, ecx
cmp byte [ebp + ecx - 0x444], 0
je 0x418c60
cmp byte [ebp + ecx - 0x443], 0
je 0x418c5f
cmp byte [ebp + ecx - 0x442], 0
je 0x418c5a
cmp byte [ebp + ecx - 0x441], 0
je 0x418c55
add ecx, 4
cmp ecx, 0x10
jb 0x418c23
jmp 0x418c60
add ecx, 3
jmp 0x418c60
add ecx, 2
jmp 0x418c60
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x418c72
mov word [ebp + ecx - 0x444], 0x2e
mov edx, ebx
lea ecx, [ebp - 0x28]
shr edx, 8
and edx, 0xff
call fcn.004015f0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x444]
call fcn.004016c0
xor ecx, ecx
cmp byte [ebp + ecx - 0x444], 0
je 0x418cd2
cmp byte [ebp + ecx - 0x443], 0
je 0x418cd1
cmp byte [ebp + ecx - 0x442], 0
je 0x418ccc
cmp byte [ebp + ecx - 0x441], 0
je 0x418cc7
add ecx, 4
cmp ecx, 0x10
jb 0x418c95
jmp 0x418cd2
add ecx, 3
jmp 0x418cd2
add ecx, 2
jmp 0x418cd2
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x418ce4
mov word [ebp + ecx - 0x444], 0x2e
mov edx, ebx
lea ecx, [ebp - 0x28]
shr edx, 0x10
and edx, 0xff
call fcn.004015f0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x444]
call fcn.004016c0
xor ecx, ecx
jmp 0x418d10
cmp byte [ebp + ecx - 0x444], 0
je 0x418d4d
cmp byte [ebp + ecx - 0x443], 0
je 0x418d4c
cmp byte [ebp + ecx - 0x442], 0
je 0x418d47
cmp byte [ebp + ecx - 0x441], 0
je 0x418d42
add ecx, 4
cmp ecx, 0x10
jb 0x418d10
jmp 0x418d4d
add ecx, 3
jmp 0x418d4d
add ecx, 2
jmp 0x418d4d
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x418d5f
mov word [ebp + ecx - 0x444], 0x2e
shr ebx, 0x18
lea ecx, [ebp - 0x28]
mov edx, ebx
call fcn.004015f0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x444]
call fcn.004016c0
lea eax, [ebp - 0x444]
push eax
push str.__s__Sending_WTware_TFTP_version.
call fcn.00416930
add esp, 8
lea eax, [ebp - 0x434]
push 0x10
push dword [ebp - 0x448]
push 0
push esi
push eax
push edi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, esi
je 0x418dbf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.sendto___failed:__d
call fcn.004168e0
add esp, 8
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e246
mov esp, ebp
pop ebp
ret
Function at 0x4015b4
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4015c6
mov eax, dword [0x4e909f]
shl eax, 2
mov dword [0x4e90a3], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleW
mov edx, eax
call fcn.004d9398
pop edx
call fcn.004d92c0
call fcn.004d94f0
push 0
call fcn.004db140
pop ecx
push 0x4e9048
push 0
call sub.KERNEL32.DLL_GetModuleHandleW
mov dword [0x4e90a7], eax
push 0
jmp fcn.004e4df0

Function at 0x401ba0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff5bc
push ebx
push esi
push edi
mov eax, 0x4ea5dc
call fcn.004da554
mov word [ebp - 0x14], 0xc
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
push 0
push 0
push 2
call sub.MPR.DLL_WNetOpenEnumW
test eax, eax
jne 0x401cec
mov dword [ebp - 0x30], 0x400
mov edx, dword [ebp - 0x30]
shl edx, 5
mov dword [ebp - 0x2c], edx
push dword [ebp - 0x2c]
call fcn.004d0710
pop ecx
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x401cec
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x28]
call sub.MPR.DLL_WNetEnumResourceW
test eax, eax
jne 0x401cec
push dword [ebp - 0x28]
call sub.MPR.DLL_WNetCloseEnum
xor edx, edx
mov dword [ebp - 0x28], edx
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x30]
jae 0x401cec
mov edx, dword [ebp - 0x34]
shl edx, 5
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + edx + 0x14], 0
je 0x401cc0
mov eax, dword [ebp - 0x34]
shl eax, 5
mov edx, dword [ebp - 0x3c]
cmp dword [edx + eax + 8], 3
jne 0x401cc0
push 0x208
lea ecx, [ebp - 0xa44]
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
push str.Photo.scr
mov eax, dword [ebp - 0x34]
shl eax, 5
mov edx, dword [ebp - 0x3c]
push dword [edx + eax + 0x14]
push str._s_s
lea ecx, [ebp - 0x83c]
push ecx
call fcn.004dd2b4
add esp, 0x10
push 0x8001
call sub.KERNEL32.DLL_SetErrorMode
push 1
lea eax, [ebp - 0x83c]
push eax
lea edx, [ebp - 0xa44]
push edx
call fcn.004018d0
add esp, 0xc
cmp dword [ebp + 8], 4
jge 0x401cdd
mov ecx, dword [ebp - 0x34]
shl ecx, 5
add ecx, dword [ebp - 0x3c]
push ecx
mov eax, dword [ebp + 8]
inc eax
push eax
call fcn.00401ba0
add esp, 8
inc dword [ebp - 0x34]
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x30]
jb 0x401c45
cmp dword [ebp - 0x28], 0
je 0x401cfa
push dword [ebp - 0x28]
call sub.MPR.DLL_WNetCloseEnum
cmp dword [ebp - 0x3c], 0
je 0x401d09
push dword [ebp - 0x3c]
call fcn.004c4228
pop ecx
mov word [ebp - 0x14], 0
jmp 0x401d1c
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420024
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4200c2
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x420086
cmp byte [ebx + 0x10], 0
jne 0x420086
cmp byte [ebx + 0x3c], 0
jne 0x420086
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
je 0x4200a7
lea edx, [ebp - 4]
mov eax, dword [0x4f24c4]
call fcn.00461ab4
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4103ec]
call fcn.00447d00
call fcn.0045dcb4
jmp 0x4200a7
lea edx, [ebp - 8]
mov eax, dword [0x4f24c4]
call fcn.00461ab4
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4103ec]
call fcn.00447d00
call fcn.0045dcb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4200c9
lea eax, [ebp - 8]
mov edx, 2
call fcn.0045e4f0
ret

Function at 0x4209d0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x420a1e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0041ff70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x420a37
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x420a40
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041ff70
dec esi
jne 0x420a62
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4222d8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4f2c94
cmp dword [edi], 0
jne 0x422354
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4f2c90]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4eaef0
mov ecx, 2
call fcn.0045c178
mov edx, 0x4222b0
lea eax, [esi + 5]
call fcn.004222d0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004222d0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x422329
mov dword [0x4f2c90], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x425774
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4258ef
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0045e898
mov eax, dword [ebp - 4]
call fcn.004250d4
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4257c6
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0045f294
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00426368
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4258a5
xor eax, eax
push ebp
push 0x42589e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00425374
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00425924
test al, al
je 0x42587c
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.0045e5f8
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42587c
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0045eea0
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004252d4
test al, al
je 0x425876
mov eax, dword [ebp - 8]
call fcn.0045eea0
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0045eef0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00425774
dec ebx
cmp ebx, 0xffffffff
jne 0x425825
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4258a5
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00425374
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
call fcn.0045eea0
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00425360
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004252d4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4258f6
lea eax, [ebp - 0x3c]
call fcn.0045e490
lea eax, [ebp - 8]
mov edx, 2
call fcn.0045e4f0
ret

Function at 0x426244
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.004250ec
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0045eea0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004252d4
test al, al
jne 0x4262ac
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4f2964]
mov dl, 1
mov eax, dword [0x423ef8]
call fcn.00447f04
call fcn.0045dcb4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8