joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c710
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x45c759
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x45cbd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a4680
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0045c780
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0045c800
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045c800
lea ecx, [esi + 0xc]
call fcn.00493abd
lea ecx, [esi + 0x10]
call fcn.00493abd
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0045dd90
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0045dd90
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0045dd90
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00493b32
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00493b32
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45df80
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x45dfe6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x45dfe6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x45dfc7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x465ee0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x51235c]
xor edx, edx
cmp eax, edx
jne 0x465f06
xor eax, eax
mov byte [eax + 0x51225c], al
inc eax
cmp eax, 0x100
jl 0x465eee
mov dword [0x51235c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x51225c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x465f97
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 0x465f6a
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 0x465f38
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x465fa0
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 0x465ff3
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 0x465fda
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 0x46c970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a4a7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0046d290
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4ce8a4
call fcn.00493873
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x46ca03
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00493873
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x46c9fc
push 0
mov ecx, eax
call fcn.00463b10
mov dword [esi + 0xc], eax
jmp 0x46ca05
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x46ca05
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x495fec
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x496024
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.00493fd9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00493fb1
jmp 0x496030
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4976e6
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 0x497728
call fcn.0049d4d0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x497728
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49771f
xor eax, eax
jmp 0x497730
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00497736
pop edi
pop esi
pop ebx
ret 4

Function at 0x49da00
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 0x49da2e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49da4c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049d966
jmp 0x49da4c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49da4c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049d966
test edi, edi
mov eax, edi
jne 0x49da36
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401098
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
push 0xa
push dword [ebp + 8]
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x4010b8
jmp 0x4010d8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
mov dword [0x406320], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4010d5
jmp 0x4010d8
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x4010e0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
pushal
mov esi, dword [ebp + 0xc]
lea ebx, [ebp - 0x400]
push esi
push ebx
call sub.kernel32.dll_lstrcpyA
xor ecx, ecx
jmp 0x4010ff
inc ecx
cmp byte [ecx + ebx], 0x5c
jne 0x4010fe
mov byte [ecx + ebx], 0
lea esi, [ecx + esi + 1]
mov edi, 0x40476a
push str.HKEY_CLASSES_ROOT
push ebx
call edi
or eax, eax
jne 0x401125
mov eax, 0x80000000
jmp 0x401186
push str.HKEY_CURRENT_CONFIG
push ebx
call edi
or eax, eax
jne 0x401138
mov eax, 0x80000005
jmp 0x401186
push str.HKEY_CURRENT_USER
push ebx
call edi
or eax, eax
jne 0x40114b
mov eax, 0x80000001
jmp 0x401186
push str.HKEY_LOCAL_MACHINE
push ebx
call edi
or eax, eax
jne 0x40115e
mov eax, 0x80000002
jmp 0x401186
push str.HKEY_USERS
push ebx
call edi
or eax, eax
jne 0x401171
mov eax, 0x80000003
jmp 0x401186
push str.HKEY_DYN_DATA
push ebx
call edi
or eax, eax
jne 0x401184
mov eax, 0x80000006
jmp 0x401186
jmp 0x4011b1
mov byte [ebx], 0
push dword [ebp + 0x10]
push esi
push eax
push ebx
call fcn.00404910
test dword [ebp + 0x14], 1
je 0x4011a3
push ebx
call fcn.0040122d
cmp byte [ebx], 0
je 0x4011b1
push ebx
push dword [ebp + 8]
call sub.kernel32.dll_SetEnvironmentVariableA
popal
leave
ret 0x10
Function at 0x401260
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [ebp - 8], eax
mov ebx, eax
push dword [ebp + 0xc]
push ebx
call sub.user32.dll_LoadBitmapA
test eax, eax
je 0x401428
mov dword [ebp - 0xc], eax
push dword [ebp + 0x10]
push ebx
call sub.user32.dll_LoadBitmapA
or eax, eax
jne 0x401299
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
push dword [ebp + 0x14]
push ebx
call sub.user32.dll_LoadBitmapA
or eax, eax
jne 0x4012ac
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push dword [ebp + 0x18]
push dword [ebp + 8]
call sub.user32.dll_GetDlgItem
test eax, eax
je 0x401428
mov esi, eax
push ebx
lea ebx, [ebp - 0x3c]
push ebx
push esi
call sub.user32.dll_GetWindowRect
lea edi, [ebp - 0x2c]
push edi
push dword [ebp + 8]
call sub.user32.dll_GetWindowRect
mov eax, dword [ebx]
sub eax, dword [edi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
sub eax, dword [edi + 4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.00401430
pop ebx
push 0
push esi
call sub.user32.dll_ShowWindow
jmp 0x401317
lea esi, [ebp - 0x6c]
mov dword [esi], 0x30
mov dword [esi + 4], 0x2000
mov dword [esi + 8], 0x401500
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0x14
mov dword [esi + 0x14], ebx
mov dword [esi + 0x20], 0x10
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0x401306
mov dword [esi + 0x18], 0
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [esi + 0x1c], eax
mov dword [esi + 0x2c], 0
push esi
call sub.user32.dll_RegisterClassExA
push 0
push ebx
push dword [ebp + 0x18]
push dword [ebp + 8]
push 0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push 0x50000000
push 0
push 0x401306
push 0x20
call sub.user32.dll_CreateWindowExA
mov ebx, eax
push dword [ebp - 0xc]
push 0
push ebx
call sub.user32.dll_SetWindowLongA
push dword [ebp - 0x10]
push 4
push ebx
call sub.user32.dll_SetWindowLongA
push dword [ebp - 0x14]
push 8
push ebx
call sub.user32.dll_SetWindowLongA
push 0
push dword [ebp - 8]
push dword [ebp + 0x18]
push ebx
push 0
push 0
push 0
push 0
push 0x5000000e
push 0
push str.STATIC
push 0
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
push 0
push 0x172
push eax
call sub.user32.dll_SendMessageA
push edi
push dword [ebp - 4]
call sub.user32.dll_GetWindowRect
push dword [ebp - 4]
push 0xc
push ebx
call sub.user32.dll_SetWindowLongA
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 4]
mov eax, dword [edi + 8]
sub eax, dword [edi]
push 2
push ecx
push eax
push 0
push 0
push 0
push ebx
call sub.user32.dll_SetWindowPos
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x40170b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push 0x40174c
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
leave
ret 4
Function at 0x401b43
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push esi
push edi
push ebx
push ecx
push edx
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push 0x4060e2
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
xor edi, edi
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_LoadLibraryA
or eax, eax
je 0x401c12
mov dword [0x40633e], eax
mov esi, str.BASSMOD_Init
mov ebx, 0x40632a
jmp 0x401bd1
push esi
push dword [0x40633e]
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x401bba
mov dword [ebx], eax
add ebx, 4
jmp 0x401bb2
inc esi
cmp byte [esi], 0
jne 0x401bb1
inc esi
jmp 0x401bd1
push dword [0x40633e]
call sub.kernel32.dll_FreeLibrary
mov dword [0x40633e], 0
jmp 0x401c12
cmp byte [esi], 0
jne 0x401b9a
push 0
push 0xac44
push 0xffffffffffffffff
call dword [0x40632a]
cmp eax, 1
jne 0x401c12
call dword [0x40632e]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add eax, 4
push 6
push ecx
push 0
push eax
push 1
call dword [0x406332]
cmp eax, 1
jne 0x401c12
call dword [0x406336]
inc edi
mov eax, edi
pop edx
pop ecx
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x401c40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 8]
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
popal
leave
ret 4

Function at 0x401d07
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, 0x4067ac
push dword [ebp + 8]
push esi
call sub.kernel32.dll_lstrcpyA
push str..BAK
push esi
call sub.kernel32.dll_lstrcatA
push esi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x401d3e
push 0
push esi
push dword [ebp + 8]
call sub.kernel32.dll_CopyFileA
mov al, 0
jmp 0x401d40
mov al, 1
mov byte [0x406bc4], al
popal
leave
ret 4

Function at 0x401d4a
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, 0x4067ac
cmp dword [ebp + 8], 0
jne 0x401d80
cmp byte [0x406bc4], 0
jne 0x401d6f
push 0
push 0x4063ac
push esi
call sub.kernel32.dll_CopyFileA
cmp byte [0x406bc4], 0
jne 0x401de7
push esi
call sub.kernel32.dll_DeleteFileA
jmp 0x401de7
push 0x6b
push dword [0x406346]
call sub.user32.dll_IsDlgButtonChecked
cmp byte [0x406feb], 1
jne 0x401dab
cmp byte [0x406fec], 1
jne 0x401da6
mov eax, 1
jmp 0x401dab
mov eax, 0
cmp eax, 1
jne 0x401de5
push 0x400
push 0x407410
push 0xd
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x407410
call fcn.00401cc6
push esi
call fcn.00401cc6
push dword [0x406bac]
push esi
call sub.kernel32.dll_SetFileAttributesA
jmp 0x401de7
jmp 0x401d6f
popal
leave
ret 4
Function at 0x401dec
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push esi
lea esi, [ebp - 0x400]
push dword [ebp + 8]
push esi
call sub.kernel32.dll_lstrcpyA
push str..tmp
push esi
call sub.kernel32.dll_lstrcatA
push esi
call sub.kernel32.dll_DeleteFileA
push esi
push dword [ebp + 8]
call sub.kernel32.dll_MoveFileA
cmp eax, 1
jne 0x401e39
push 1
push dword [ebp + 8]
push esi
call sub.kernel32.dll_CopyFileA
cmp eax, 1
jne 0x401e39
mov eax, 1
pop esi
leave
ret 4
Function at 0x402155
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, dword [0x406bb0]
or esi, esi
je 0x4021ad
push dword [0x406bb8]
call sub.kernel32.dll_UnmapViewOfFile
push dword [0x406bbc]
call sub.kernel32.dll_CloseHandle
push 0
push 0
push dword [0x406bc0]
push esi
call sub.kernel32.dll_SetFilePointer
push esi
call sub.kernel32.dll_SetEndOfFile
push esi
call sub.kernel32.dll_CloseHandle
push dword [ebp + 8]
call fcn.00401d4a
push dword [0x406bac]
push 0x4063ac
call sub.kernel32.dll_SetFileAttributesA
popal
leave
ret 4

Function at 0x4021dc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
pushal
mov byte [ebp - 0x401], 0
push 1
push 8
call fcn.00401057
or eax, eax
je 0x402239
mov esi, eax
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str._bassmod.dll
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
mov ecx, dword [esi + 1]
lea eax, [esi + 5]
push ecx
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.004047f4
mov byte [ebp - 0x401], 1
popal
movzx eax, byte [ebp - 0x401]
leave
ret
Function at 0x402d4e
Capabilities:
Get common file path
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba0
push esi
push edi
push ebx
push 0x70
push dword [0x406346]
call sub.user32.dll_GetDlgItem
or eax, eax
je 0x402ee4
mov dword [ebp - 0x404], eax
push 0
push dword [ebp - 0x404]
call sub.user32.dll_ShowWindow
mov esi, 0x4073ee
push 9
push dword [0x40634a]
call fcn.004021b2
mov dword [esi + 4], eax
push eax
call sub.kernel32.dll_lstrlenA
or eax, eax
je 0x402ee4
push dword [0x406346]
pop dword [esi]
lea ebx, [ebp - 0x414]
push ebx
push dword [ebp - 0x404]
call sub.user32.dll_GetWindowRect
lea edi, [ebp - 0x424]
push edi
push dword [0x406346]
call sub.user32.dll_GetWindowRect
mov eax, dword [ebx]
sub eax, dword [edi]
mov dword [esi + 8], eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 4]
sub eax, dword [edi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
lea ecx, [esi + 0xc]
push ecx
push eax
push dword [0x406346]
call fcn.00401430
push 1
push 0xb
call fcn.00401057
or eax, eax
je 0x402e0e
mov eax, dword [eax + 1]
jmp 0x402e13
mov eax, 0xff
mov byte [esi + 0x1c], al
push 1
push 0x12
call fcn.00401057
or eax, eax
je 0x402e26
mov eax, dword [eax + 1]
mov dword [esi + 0x1d], eax
lea ebx, [ebp - 0x460]
push 0x3c
push ebx
call sub.kernel32.dll_RtlZeroMemory
mov dword [ebx], 7
mov byte [ebx + 0x17], 1
mov byte [ebx + 0x1a], 4
push 0x40620e
lea eax, [ebx + 0x1c]
push eax
call sub.kernel32.dll_lstrcpyA
push 1
push 0x13
call fcn.00401057
or eax, eax
je 0x402ed5
mov edi, eax
push dword [edi + 0x11]
pop dword [esi + 0x18]
push dword [edi + 5]
pop dword [ebx]
test dword [edi + 9], 1
je 0x402e7d
mov dword [ebx + 0x10], 0x2bc
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
lea edx, [edi + 0x15]
push edx
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
lea edx, [edi + 0x95]
push edx
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
lea edx, [edi + 0x9b]
mov ecx, dword [edi + 0xd]
lea eax, [ebp - 0x400]
push eax
push ecx
push edx
call fcn.00402ee9
lea edx, [edi + 0x15]
push edx
lea eax, [ebx + 0x1c]
push eax
call sub.kernel32.dll_lstrcpyA
push ebx
call sub.gdi32.dll_CreateFontIndirectA
mov dword [esi + 0x14], eax
push esi
call fcn.0040170b
pop ebx
pop edi
pop esi
leave
ret
Function at 0x403730
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
push esi
push edi
push ebx
push 0x400
push 0x40ec10
push 4
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x40ec10
call fcn.00401cc6
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str._regpatch.reg
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
mov esi, dword [ebp + 8]
mov eax, dword [esi + 1]
add eax, 0x100000
mov dword [ebp - 0x40c], eax
push 4
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x404], eax
lea eax, [esi + 9]
push dword [ebp - 0x404]
push eax
call fcn.004039ba
mov ecx, dword [ebp - 0x404]
test dword [esi + 5], 1
je 0x403803
mov eax, dword [esi + 1]
add eax, 0x100000
mov dword [ebp - 0x410], eax
push 4
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x408], eax
push dword [ebp - 0x410]
push dword [ebp - 0x408]
push dword [ebp - 0x404]
call fcn.0040391d
mov ecx, dword [ebp - 0x408]
push eax
push ecx
lea eax, [ebp - 0x400]
push eax
call fcn.004047f4
test eax, eax
je 0x40385c
mov edi, 0x4063ac
push str._s__
push edi
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x400]
push eax
push edi
call sub.kernel32.dll_lstrcatA
push 0x4062a5
push edi
call sub.kernel32.dll_lstrcatA
push 5
push 0
push edi
push str.regedit.exe
push 0x4062a7
push dword [0x406346]
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
ja 0x40387f
push 0x400
push 0x40f010
push 0x27
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x40f010
call fcn.00401cc6
jmp 0x4038a0
push 0x400
push 0x40f410
push 0x28
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x40f410
call fcn.00401cc6
push 0x1f4
call sub.kernel32.dll_Sleep
push 0x4000
push dword [ebp - 0x40c]
push dword [ebp - 0x404]
call sub.kernel32.dll_VirtualFree
test dword [esi + 5], 1
je 0x4038df
push 0x4000
push dword [ebp - 0x410]
push dword [ebp - 0x408]
call sub.kernel32.dll_VirtualFree
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_DeleteFileA
push 0x400
push 0x40f810
push 0xc
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x40f810
call fcn.00401cc6
push 0x4060ef
call fcn.00401cc6
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x40391d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
push edi
mov eax, dword [ebp + 0x10]
add eax, 0x100000
mov dword [ebp - 8], eax
push 4
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push esi
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov esi, dword [ebp - 4]
or eax, eax
je 0x40399c
push dword [ebp + 8]
push esi
call sub.kernel32.dll_lstrcmpA
or eax, eax
je 0x40399c
mov bl, 0
jmp 0x403994
lodsb al, byte [esi]
cmp word [esi], 0x5b0a
jne 0x403976
mov bl, 1
cmp al, 0x5c
jne 0x40398a
or bl, bl
jne 0x40398a
cmp byte [esi], 0x5c
je 0x40398a
cmp byte [esi - 2], 0x5c
je 0x40398a
stosb byte es:[edi], al
stosb byte es:[edi], al
cmp word [esi], 0xd5d
jne 0x403994
mov bl, 0
cmp byte [esi], 0
jne 0x40396c
mov byte [edi], 0
push 0x4000
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_VirtualFree
push dword [ebp + 0xc]
call sub.kernel32.dll_lstrlenA
pop edi
pop esi
leave
ret 0xc
Function at 0x404093
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
push edi
push ebx
cmp byte [0x4063a2], 1
jne 0x4040bf
push 5
push dword [0x40635e]
call sub.user32.dll_ShowWindow
push 0
push dword [0x406362]
call sub.user32.dll_ShowWindow
push 0
push 0
push 0x184
push dword [0x40635e]
call sub.user32.dll_SendMessageA
push 0x400
push 0x412018
push 0
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x412018
call fcn.00401cc6
push 0x4060ef
call fcn.00401cc6
call fcn.004011b6
xor ebx, ebx
jmp 0x40413b
cmp byte [esi], 3
jne 0x404116
push esi
call fcn.0040329e
jmp 0x40413b
cmp byte [esi], 4
jne 0x404123
push esi
call fcn.00403564
jmp 0x40413b
cmp byte [esi], 0x11
jne 0x404130
push esi
call fcn.00403cb0
jmp 0x40413b
cmp byte [esi], 5
jne 0x40413b
push esi
call fcn.00403730
inc ebx
push ebx
call fcn.00401098
mov esi, eax
or esi, esi
jne 0x404109
push 0x400
push 0x412418
push 1
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x412418
call fcn.00401cc6
push dword [0x4063a7]
call fcn.0040419f
push 0x6c
push dword [0x406346]
call sub.user32.dll_GetDlgItem
push 0
push eax
call sub.user32.dll_EnableWindow
push 1
push 0
push 0
push dword [0x406346]
call sub.user32.dll_RedrawWindow
pop ebx
pop edi
pop esi
leave
ret