joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d21ab
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d21e3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004d01e7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d01bf
jmp 0x4d21ef
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d3b25
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d3b67
call fcn.004da841
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d3b67
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d3b5e
xor eax, eax
jmp 0x4d3b6f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d3b75
pop edi
pop esi
pop ebx
ret 4

Function at 0x4dad71
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4dad9f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4dadbd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004dacd7
jmp 0x4dadbd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4dadbd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004dacd7
test edi, edi
mov eax, edi
jne 0x4dada7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4ddb5e
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4ddb86
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4ddb97
push 2
call edi
test ax, ax
jge 0x4ddb97
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004d17e1
cmp dword [esi + 0x30], ebx
jne 0x4ddc71
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004d17e1
cmp eax, dword [esp + 0x34]
jne 0x4ddc71
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4ddc0d
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4ddc52
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4ddc71
cmp eax, 0x205
je 0x4ddc71
cmp eax, 0x201
je 0x4ddc71
cmp eax, 0x204
je 0x4ddc71
cmp eax, ebx
jne 0x4ddc38
cmp dword [esp + 0x1c], 0x1b
je 0x4ddc71
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x638374]
jbe 0x4ddc67
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4ddbca
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x2e004928
Capabilities:
Enumerate files on windows

Disassembly:
push 0x270
mov eax, 0x2e01ff2e
call fcn.2e00eaaf
mov dword [ebp - 0x260], ecx
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
mov dword [ebp - 0x25c], ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.2e00e5f0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x2e00497f
xor eax, eax
jmp 0x2e004a63
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0xffffffffffffffff
push 0x2e00133c
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.2e00eead
add esp, 0x10
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x2e004978
xor esi, esi
test byte [ebp - 0x254], 0x10
je 0x2e0049fc
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x27c]
call fcn.2e004779
or dword [ebp - 0x25c], 1
lea eax, [ebp - 0x27c]
push eax
mov dword [ebp - 4], ebx
call fcn.2e0077d9
mov byte [ebp - 0x255], 1
test al, al
jne 0x2e004a02
mov byte [ebp - 0x255], bl
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x25c], 1
je 0x2e004a24
and dword [ebp - 0x25c], 0xfffffffe
push ebx
push 1
lea ecx, [ebp - 0x27c]
call fcn.2e003b71
cmp byte [ebp - 0x255], bl
je 0x2e004a44
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push eax
call fcn.2e00485a
mov esi, eax
cmp esi, ebx
jne 0x2e004a5a
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x2e0049c0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
call fcn.2e00eb32
ret
Function at 0x2e007049
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor edi, edi
lea ecx, [ebp - 4]
mov dword [ebp - 4], edi
call fcn.2e007032
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x2e00708c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 4], edi
je 0x2e007088
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x2e0070f4
lea eax, [ebp - 0x10]
push eax
push 0x2e001774
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x2e007072
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x2e007072
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x2e0070d3
call esi
jmp 0x2e007078
push 0x80040001
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x2e0070cf
cmp dword [ebp - 4], edi
je 0x2e0070f2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x2e0080b4
Capabilities:
Write file on windows

Disassembly:
push 0x44
mov eax, 0x2e02106c
call fcn.2e00ea46
mov esi, ecx
call fcn.2e007839
mov edi, dword [ebp + 8]
test al, al
je 0x2e008131
test byte [ebp + 0xc], 2
je 0x2e008131
test edi, edi
jne 0x2e0080dc
xor eax, eax
jmp 0x2e0080e9
push 0x40000
push edi
call fcn.2e00f464
pop ecx
pop ecx
add eax, eax
cmp eax, 0x80000
jne 0x2e00811d
push 0x2e001630
lea ecx, [ebp - 0x28]
call fcn.2e004779
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x50]
call fcn.2e004479
push 0x2e0212c0
lea eax, [ebp - 0x50]
push eax
call fcn.2e00e596
and dword [ebp + 8], 0
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [esi + 0x29], 0
je 0x2e008159
test byte [ebp + 0xc], 1
je 0x2e008159
push edi
push 0x2e001838
call fcn.2e010958
call fcn.2e0107a3
add eax, 0x20
push eax
call fcn.2e010747
add esp, 0xc
call fcn.2e00eb1e
ret 8
Function at 0x2e00bd49
Capabilities:
Create thread

Disassembly:
push 0x90
mov eax, 0x2e020bc1
call fcn.2e00ea46
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
je 0x2e00bd8b
push 0x2e001a74
lea ecx, [ebp - 0x48]
call fcn.2e004779
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], edi
call fcn.2e004479
push 0x2e0212c0
lea eax, [ebp - 0x70]
push eax
call fcn.2e00e596
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc], eax
cmp eax, edi
jne 0x2e00bdd4
push 0x2e001a60
lea ecx, [ebp - 0x2c]
call fcn.2e004779
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.2e006bfb
push 0x2e021b48
lea eax, [ebp - 0x9c]
jmp 0x2e00bd85
mov al, byte [ebp + 8]
mov byte [esi + 0x10], al
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push 0x2e00bc65
push edi
push edi
mov dword [ebp - 0x10], edi
call fcn.2e010cb6
add esp, 0x18
push 0xffffffffffffffff
push dword [esi + 0xc]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], edi
call fcn.2e00eb1e
ret 4

Function at 0x2e00e5e2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2e024214]
jne 0x2e0129b0
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x2e025960], eax
mov dword [0x2e02595c], ecx
mov dword [0x2e025958], edx
mov dword [0x2e025954], ebx
mov dword [0x2e025950], esi
mov dword [0x2e02594c], edi
mov word [0x2e025978], ss
mov word [0x2e02596c], cs
mov word [0x2e025948], ds
mov word [0x2e025944], es
mov word [0x2e025940], fs
mov word [0x2e02593c], gs
pushfd
pop dword [0x2e025970]
mov eax, dword [ebp]
mov dword [0x2e025964], eax
mov eax, dword [ebp + 4]
mov dword [0x2e025968], eax
lea eax, [ebp + 8]
mov dword [0x2e025974], eax
mov eax, dword [ebp - 0x320]
mov dword [0x2e0258b0], 0x10001
mov eax, dword [0x2e025968]
mov dword [0x2e025864], eax
mov dword [0x2e025858], 0xc0000409
mov dword [0x2e02585c], 1
mov eax, dword [0x2e024214]
mov dword [ebp - 0x328], eax
mov eax, dword [0x2e024218]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x2e0258a8], eax
push 1
call fcn.2e013b5d
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x2e0023cc
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x2e0258a8], 0
jne 0x2e012a9c
push 1
call fcn.2e013b5d
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x2e019b76
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.2e0118d5
and dword [ebp - 4], 0
cmp dword [0x2e025ddc], 0
mov ebx, eax
jne 0x2e019c27
push 0x2e002574
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x2e019cd8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x2e002568
push edi
call esi
test eax, eax
je 0x2e019cd8
push eax
call fcn.2e011863
mov dword [esp], 0x2e002558
push edi
mov dword [0x2e025ddc], eax
call esi
push eax
call fcn.2e011863
mov dword [esp], 0x2e002544
push edi
mov dword [0x2e025de0], eax
call esi
push eax
call fcn.2e011863
mov dword [esp], 0x2e002528
push edi
mov dword [0x2e025de4], eax
call esi
push eax
call fcn.2e011863
pop ecx
mov dword [0x2e025dec], eax
test eax, eax
je 0x2e019c27
push 0x2e002510
push edi
call esi
push eax
call fcn.2e011863
pop ecx
mov dword [0x2e025de8], eax
mov eax, dword [0x2e025de8]
cmp eax, ebx
je 0x2e019c7f
cmp dword [0x2e025dec], ebx
je 0x2e019c7f
push eax
call fcn.2e0118de
push dword [0x2e025dec]
mov esi, eax
call fcn.2e0118de
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x2e019c7f
test edi, edi
je 0x2e019c7f
call esi
test eax, eax
je 0x2e019c76
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x2e019c76
test byte [ebp - 0xc], 1
jne 0x2e019c7f
or dword [ebp + 0x10], 0x200000
jmp 0x2e019cb8
mov eax, dword [0x2e025de0]
cmp eax, ebx
je 0x2e019cb8
push eax
call fcn.2e0118de
pop ecx
test eax, eax
je 0x2e019cb8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x2e019cb8
mov eax, dword [0x2e025de4]
cmp eax, ebx
je 0x2e019cb8
push eax
call fcn.2e0118de
pop ecx
test eax, eax
je 0x2e019cb8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x2e025ddc]
call fcn.2e0118de
pop ecx
test eax, eax
je 0x2e019cd8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x2e019cda
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, reloc.kernel32.dll_CreateProcessA
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4097c8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40987c
jmp 0x409871
cmp dword [esi + 0x10], 0x1000
jne 0x40985d
test byte [esi + 0x15], 1
jne 0x40985d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40981c
cmp eax, 2
je 0x40981c
cmp eax, 0x10
je 0x40981c
cmp eax, 0x20
jne 0x409831
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409831
mov bl, 1
xor ebp, ebp
jmp 0x409842
mov eax, dword [esi]
add eax, ebp
call fcn.004097c0
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409835
test bl, bl
je 0x40985d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40987c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4097f4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401040
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__getcwd]
push str.__1.jpg
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0x14
lea eax, [ebp - 0x108]
push 0
push 0
push eax
push str.http:__ys168.com_images_ys_welcome.jpg
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
push 0x402148
call fcn.00401010
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
call fcn.004010b4
mov esp, ebp
pop ebp
ret

Function at 0x4018b9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4018f8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4018f8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4018f8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4018f8
cmp dword [ecx + 0x74], 0xe
jbe 0x4018f8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407f40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47aedb
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.0046fbe5
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407fc2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046daf7
mov eax, dword [eax]
push 0x498c70
push eax
call fcn.00460804
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046fe70
test bl, bl
je 0x407fc2
push 0x498c70
lea ecx, [esp + 0xc]
call fcn.00470200
push 0x498c7c
lea ecx, [esp + 0xc]
call fcn.00470200
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 0x407ffe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046fe70
jmp 0x4080c9
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 0x408082
lea edx, [esp + 0x7c]
push 0x498c78
push edx
call fcn.00460804
add esp, 8
test eax, eax
je 0x408082
lea eax, [esp + 0x7c]
push 0x498c74
push eax
call fcn.00460804
add esp, 8
test eax, eax
je 0x408082
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 0x408012
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.0046fe70
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 0x4088d0
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 0x408932
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
Function at 0x408940
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47af5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a2578]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x408a78
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4089a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046fe70
xor eax, eax
jmp 0x408aef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046ffad
push esi
lea ecx, [esp + 0xc]
call fcn.0047023c
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x408acd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004088d0
test eax, eax
jne 0x408acd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.004088d0
test eax, eax
jne 0x408acd
lea eax, [esp + 0x14]
push 0x498c8c
push eax
call fcn.00461880
mov esi, eax
add esp, 8
test esi, esi
jne 0x408aac
lea ecx, [esp + 0x14]
push 0x498c88
push ecx
call fcn.00461800
mov esi, eax
add esp, 8
test esi, esi
jne 0x408aac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x408aaf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046ff5d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4089be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046fe70
xor eax, eax
jmp 0x408aef
mov byte [esi], 0
push 0x498c84
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0046fe70
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4