joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
sub esp, 0x204
push ebp
push esi
push edi
mov edi, dword [esp + 0x214]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4010d4
lea eax, [esp + 0x110]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
call ebp
mov esi, eax
test esi, esi
je 0x401059
lea ecx, [esp + 0x110]
push ecx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x204
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x14]
mov ebx, eax
push edi
push edx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, 2
cmp ebx, esi
jle 0x4010b9
mov bl, byte [esi + edi]
cmp bl, 0x5c
jne 0x4010ac
lea eax, [esp + 0x14]
mov byte [esp + esi + 0x14], 0
push eax
call ebp
test eax, eax
jne 0x4010a2
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x4010ac
lea edx, [esp + 0x114]
push edx
call ebp
mov eax, dword [esp + 0x10]
mov byte [esp + esi + 0x14], bl
inc esi
cmp esi, eax
jl 0x40107c
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
call ebp
mov esi, eax
lea eax, [esp + 0x114]
push eax
call ebp
pop ebx
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x204
ret

Function at 0x401140
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push eax
push 5
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x401159
xor eax, eax
ret
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push edx
push eax
call fcn.004010e0
add esp, 8
ret

Function at 0x401ec0
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x401ed4
xor eax, eax
pop esi
ret
push 0
push esi
call sub.MPEGSYS.dll_Ordinal_46
cmp eax, 0xffffffff
jne 0x401ee5
xor eax, eax
pop esi
ret
cmp eax, 2
jne 0x401eee
xor eax, eax
pop esi
ret
xor ecx, ecx
cmp eax, 3
setne cl
mov eax, ecx
pop esi
ret
Function at 0x402bd0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x50
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x414fa8]
push 1
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov eax, dword [0x414ca8]
mov esi, dword [sym.imp.USER32.dll_DestroyMenu]
cmp eax, ebx
je 0x402c12
push eax
call esi
mov dword [0x414ca8], ebx
mov eax, dword [0x414cb4]
cmp eax, ebx
je 0x402c24
push eax
call esi
mov dword [0x414cb4], ebx
mov edx, dword [0x4179a4]
lea ecx, [esp + 0xc]
push 0x4f
push ecx
push 0x35
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
mov ecx, dword [0x414fb8]
lea eax, [esp + 0xc]
push eax
push 3
push 0x401
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
push 1
push 0x41510c
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [0x417744]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x417744]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x414ca0]
mov dword [0x417744], ebx
cmp eax, ebx
je 0x402cb6
push ebx
push 0x44
call sub.SVDVIDEO.dll_Ordinal_75
test eax, eax
je 0x402c9e
push ebx
push 8
call sub.SVDVIDEO.dll_Ordinal_75
push ebx
call sub.SVDVIDEO.dll_Ordinal_82
mov dword [0x414cb8], ebx
mov dword [0x414ca0], ebx
mov dword [0x414fc4], ebx
mov ecx, dword [0x414fa8]
push 0xc354
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
cmp dword [0x417634], ebx
je 0x402ce7
mov edx, dword [0x414fa8]
push ebx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push 1
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop edi
pop esi
pop ebx
add esp, 0x50
ret

Function at 0x405270
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push 0
push 0x4052a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4056e0
Capabilities:
Create thread

Disassembly:
sub esp, 0x23c
push esi
push edi
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x4179a4]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push 0x31
push eax
push 0x2b
push ecx
call esi
mov edi, dword [esp + 0x24c]
mov edx, dword [esp + 0x248]
push edi
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x414fb8]
add esp, 0x10
lea edx, [esp + 0x44]
push edx
push 3
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x405850
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x417744], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x417744]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [0x417744]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
mov dword [0x417744], 0
test eax, eax
je 0x4057f6
push edi
push 0x417640
push 0x417530
call fcn.00405dc0
mov eax, dword [0x41510c]
add esp, 0xc
test eax, eax
push 0x31
jne 0x4057d1
mov eax, dword [0x4179a4]
lea edx, [esp + 0x14]
push edx
push 0x2f
push eax
jmp 0x4057df
mov edx, dword [0x4179a4]
lea ecx, [esp + 0x14]
push ecx
push 0x33
push edx
call esi
mov ecx, dword [0x414fb8]
lea eax, [esp + 0x10]
push eax
push 3
push 0x401
push ecx
jmp 0x40581a
mov eax, dword [0x4179a4]
lea edx, [esp + 0x10]
push 0x31
push edx
push 0x2d
push eax
call esi
mov edx, dword [0x414fb8]
lea ecx, [esp + 0x10]
push ecx
push 3
push 0x401
push edx
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
call esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x414c98]
push 0
push 0
push 0x402
push eax
call esi
pop edi
pop esi
add esp, 0x23c
ret
Function at 0x405dc0
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x414c98]
push esi
push edi
push 0
push 0x64
push 0x402
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
push ecx
push esi
push edi
call sub.Mplex.dll_Ordinal_1_2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call edi
push esi
call edi
pop edi
pop esi
ret

Function at 0x407520
Capabilities:
Get file size

Disassembly:
mov ecx, dword [0x4179a8]
sub esp, 0x84
lea eax, [esp + 4]
push 0x80
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x407559
mov cl, 0x5c
cmp byte [esp + eax + 4], cl
je 0x407559
dec eax
test eax, eax
jg 0x40754e
mov edx, 0x80
push ebx
push ebp
sub edx, eax
push esi
lea ecx, [esp + eax + 0x11]
mov eax, dword [0x4179a4]
push edx
push ecx
push 0x39
push eax
mov byte [ecx], 0
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x407655
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4075c4
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
mov ecx, esi
push edi
mov edx, ecx
xor eax, eax
mov edi, ebx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov edi, ebx
call dword [sym.imp.KERNEL32.dll__lread]
add esi, ebx
cmp ebx, esi
mov dword [esp + 0x10], esi
jae 0x40763d
cmp byte [edi], 0
je 0x40763d
push edi
call fcn.00407430
mov esi, eax
push esi
call fcn.00407490
push esi
mov edi, eax
call fcn.00407460
mov ax, word [esi]
push eax
call fcn.00407400
mov edx, eax
add esp, 0x10
test edx, edx
je 0x407633
add esi, 3
push 0x1e
push esi
call fcn.00407430
add esp, 4
push eax
push edx
call fcn.004074d0
add esp, 0xc
test edi, edi
je 0x40763d
cmp edi, dword [esp + 0x10]
jb 0x4075ee
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
Function at 0x407660
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x184
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x8d]
mov byte [esp + 0x8c], 0
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0xd]
mov ebp, dword [esp + 0x194]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x8c]
push 0x104
push eax
mov dword [0x4179a8], ebp
call fcn.004081e0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetACP]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [esp + 0x90]
push str.ResDllD2Mpg_d.dll
push ecx
call edi
lea edx, [esp + eax + 0x94]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x4179a4], eax
jne 0x40770b
mov ecx, dword [0x4179a8]
mov dword [0x4179a4], ecx
call fcn.00405230
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str.sthdvd.ini
push 1
push str.SMOOTHZOOM
push 0x412384
mov dword [0x4177ac], eax
mov dword [0x415120], 2
call esi
push str.sthdvd.ini
push 2
push str.VDOPROCESS
push 0x412384
mov dword [0x41234c], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.sthdvd.ini
push 0x104
push 0x414fd0
push 0x4150dc
push str.OUTPUT
push 0x412384
mov dword [0x415120], eax
call esi
push 0x414fd0
call edi
test eax, eax
jne 0x4077a4
push 0x414fd0
push eax
call fcn.00401140
add esp, 8
push str.My_VIDEO
push 0x414fd0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x414fd0
call fcn.00401000
add esp, 4
push str.sthdvd.ini
push 0x100
push 0x414cc0
push 0x4150dc
push str.OPENPATH
push 0x412384
call esi
call sub.SVDVIDEO.dll_Ordinal_101
call fcn.00407520
mov edi, dword [sym.imp.USER32.dll_CreatePopupMenu]
call edi
mov dword [0x4177a0], eax
call edi
mov dword [0x4177a4], eax
call edi
push 1
push 0x56
mov dword [0x4177a8], eax
call sub.SVDVIDEO.dll_Ordinal_75
push 0
push 0x2e
call sub.SVDVIDEO.dll_Ordinal_75
push 1
push 0x62
call sub.SVDVIDEO.dll_Ordinal_75
push 1
push 0x8c
call sub.SVDVIDEO.dll_Ordinal_75
push 0
push 0x71
call sub.SVDVIDEO.dll_Ordinal_75
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x411208
lea edx, [esp + 0x10]
push 0x80
push edx
push 0x4150dc
push 0x412354
push str.OnRun
call esi
lea eax, [esp + 0xc]
push 0x412350
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0
push 0x4078d0
test eax, eax
push 0
jne 0x407874
mov ecx, dword [0x4179a4]
push 0x65
push ecx
jmp 0x407877
push 0x73
push ebp
call dword [sym.imp.USER32.dll_DialogBoxParamA]
call sub.SVDVIDEO.dll_Ordinal_102
mov edx, dword [0x4177a0]
mov esi, dword [sym.imp.USER32.dll_DestroyMenu]
push edx
call esi
mov eax, dword [0x4177a4]
push eax
call esi
mov ecx, dword [0x4177a8]
push ecx
call esi
call fcn.00408150
mov eax, dword [0x4179a4]
mov ecx, dword [0x4179a8]
pop edi
pop esi
cmp eax, ecx
pop ebp
je 0x4078c0
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
add esp, 0x184
ret 0x10
Function at 0x40abf1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4124c8
cmp edx, dword [eax]
je 0x40ac13
add eax, 8
inc ecx
cmp eax, 0x412558
jl 0x40ac04
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4124c8]
jne 0x40ad41
mov eax, dword [0x4177c0]
cmp eax, 1
je 0x40ad1b
test eax, eax
jne 0x40ac44
cmp dword [0x412404], 1
je 0x40ad1b
cmp edx, 0xfc
je 0x40ad41
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ac7b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040b3e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040ba10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40acbe
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040ba10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f6c4
push edi
call fcn.0040d5d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040b3e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040b3f0
lea eax, [ebp - 0xa0]
push 0x40f6a4
push eax
call fcn.0040b3f0
push dword [esi + 0x4124cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b3f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040d53d
add esp, 0x2c
pop edi
jmp 0x40ad41
lea eax, [ebp + 8]
lea esi, [esi + 0x4124cc]
push 0
push eax
push dword [esi]
call fcn.0040ba10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40c150
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b74b
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.00460176
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c1d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045e08d
mov eax, dword [eax]
push 0x4991c0
push eax
call fcn.00450ef4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00460401
test bl, bl
je 0x40c1d2
push 0x4991c0
lea ecx, [esp + 0xc]
call fcn.00460791
push 0x49cd3c
lea ecx, [esp + 0xc]
call fcn.00460791
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 0x40c20e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00460401
jmp 0x40c2d9
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 0x40c292
lea edx, [esp + 0x7c]
push 0x49cd38
push edx
call fcn.00450ef4
add esp, 8
test eax, eax
je 0x40c292
lea eax, [esp + 0x7c]
push 0x49cd34
push eax
call fcn.00450ef4
add esp, 8
test eax, eax
je 0x40c292
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 0x40c222
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.00460401
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 0x40cad0
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 0x40cb32
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 0x40cb40
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b7cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a368c]
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 0x40cc78
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40cba6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00460401
xor eax, eax
jmp 0x40ccef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046053e
push esi
lea ecx, [esp + 0xc]
call fcn.004607cd
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 0x40cccd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040cad0
test eax, eax
jne 0x40cccd
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.0040cad0
test eax, eax
jne 0x40cccd
lea eax, [esp + 0x14]
push 0x49cd50
push eax
call fcn.00451f30
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ccac
lea ecx, [esp + 0x14]
push 0x49cd4c
push ecx
call fcn.00451eb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ccac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40ccaf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004604ee
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40cbbe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00460401
xor eax, eax
jmp 0x40ccef
mov byte [esi], 0
push 0x49cd48
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.00460401
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

Function at 0x412fe6
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3ac]
test eax, eax
jne 0x41300e
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3ac], eax
pop esi
add esp, 0x190
ret
Function at 0x41d1c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x41d22e
cmp si, 0x69
ja 0x41d22e
add esi, 0xffd0
cmp si, 0x11
je 0x41d1fe
push 0x11
call edi
test ax, ax
jge 0x41d1fe
or esi, 0x2000
cmp si, 0x10
je 0x41d213
push 0x10
call edi
test ax, ax
jge 0x41d213
or esi, 0x4000
cmp si, 0x12
je 0x41d228
push 0x12
call edi
test ax, ax
jge 0x41d228
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41d23b
mov esi, 0xbd
jmp 0x41d1ef
cmp si, 0x6e
jne 0x41d248
mov esi, 0xbe
jmp 0x41d1ef
cmp si, 0x6f
jne 0x41d1e9
mov esi, 0xbf
jmp 0x41d1ef

Function at 0x41e8e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4b3cf8]
xor edx, edx
cmp eax, edx
jne 0x41e906
xor eax, eax
mov byte [eax + 0x4b3bf8], al
inc eax
cmp eax, 0x100
jl 0x41e8ee
mov dword [0x4b3cf8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4b3bf8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41e997
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41e96a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41e938
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41ea10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41ea63
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41ea4a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4254a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x425638
cmp ebp, ebx
jle 0x425638
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x4254fe
dec eax
or eax, 0xfffffff8
inc eax
je 0x425505
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x425514
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42551b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00460142
add esp, 4
cmp eax, ebx
je 0x42553c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00460142
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x42562e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x425615
mov al, byte [edx]
cmp al, 0xc0
jbe 0x425601
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x4255f6
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x425604
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x425604
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x4255a0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x425591
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret