joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40102c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
push esi
mov esi, 0x104
lea eax, [ebp - 0x208]
push esi
push eax
push 0x1a
xor bl, bl
call fcn.00401750
add esp, 0xc
test al, al
je 0x4010af
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push str._sdm.ini
push eax
call fcn.0040330c
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x30c]
push esi
push eax
push 0x40ed08
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x4010af
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
je 0x4010af
inc bl
mov al, bl
pop esi
pop ebx
leave
ret 0xc

Function at 0x4010b7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40111f
lea eax, [ebp - 0x104]
push eax
call fcn.004034e0
cmp byte [ebp + eax - 0x105], 0x5c
pop ecx
je 0x401100
lea eax, [ebp - 0x104]
push 0x40c050
push eax
call fcn.00403400
pop ecx
pop ecx
lea eax, [ebp - 0x208]
push eax
push 0
lea eax, [ebp - 0x104]
push 0x40c04c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x401123
xor al, al
jmp 0x401145
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.0040335e
push dword [ebp + 8]
call fcn.004034e0
add esp, 0x10
test eax, eax
setne al
leave
ret 8

Function at 0x401149
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40116b
xor al, al
jmp 0x4011ba
push ebx
push 1
pop ebx
push dword [ebp + 0x18]
mov dword [ebp + 8], ebx
push 0
push dword [ebp + 0x14]
call fcn.00403560
add esp, 0xc
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 8]
push dword [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4011ac
push dword [ebp + 0x14]
call fcn.004034e0
test eax, eax
pop ecx
ja 0x4011ae
xor bl, bl
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ebp
ret 0x14
Function at 0x4011be
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp + 8]
xor ebx, ebx
push eax
push ebx
push 2
push ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4011ea
xor al, al
jmp 0x40121d
push dword [ebp + 0x14]
mov byte [ebp + 0xf], 1
call fcn.004034e0
pop ecx
push eax
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x401211
mov byte [ebp + 0xf], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp + 0xf]
pop ebx
leave
ret 0x10

Function at 0x4016c2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push dword [esp + 0x1c]
mov edi, eax
mov ebx, dword [esp + 0x18]
xor esi, esi
shr eax, 4
and edi, 0xf
inc eax
movzx eax, ax
push eax
push 6
push esi
mov word [ebx], si
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
cmp eax, esi
je 0x401709
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x401709
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40170d
xor eax, eax
jmp 0x40174a
test edi, edi
jbe 0x40171b
movzx eax, word [esi]
dec edi
lea esi, [esi + eax*2 + 2]
jne 0x401711
mov eax, dword [esp + 0x18]
lea edi, [eax - 1]
movzx eax, word [esi]
cmp edi, eax
jge 0x40172b
mov eax, edi
push eax
lea eax, [esi + 2]
push eax
push ebx
call fcn.00403b29
movzx eax, word [esi]
add esp, 0xc
cmp edi, eax
jge 0x401742
mov eax, edi
and word [ebx + eax*2], 0
movzx eax, word [esi]
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x401750
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
lea eax, [ebp + 8]
push ebx
push eax
xor ebx, ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4017c8
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4017d7
lea eax, [ebp - 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.004034e0
cmp eax, dword [ebp + 0x10]
pop ecx
jg 0x4017d7
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
call fcn.004033f0
pop ecx
mov bl, 1
pop ecx
jmp 0x4017d7
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
call fcn.00403560
add esp, 0xc
mov al, bl
pop ebx
leave
ret
Function at 0x40194c
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x4019f3
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.004033f0
lea eax, [ebp - 0x104]
push eax
call fcn.00401e58
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4019d4
and byte [esi], 0
lea eax, [ebp - 0x104]
push eax
call edi
test eax, eax
jne 0x4019b3
push eax
lea eax, [ebp - 0x104]
push eax
call ebx
test eax, eax
je 0x4019ef
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.004033f0
inc esi
push 0x5c
push esi
call fcn.00401e1a
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x401995
lea eax, [ebp - 0x104]
push eax
call edi
test eax, eax
jne 0x4019f3
push eax
lea eax, [ebp - 0x104]
push eax
call ebx
test eax, eax
jne 0x4019f3
xor al, al
jmp 0x4019f5
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401d0b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401d2e
xor al, al
jmp 0x401d45
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.0040335e
add esp, 0xc
mov al, 1
leave
ret 8

Function at 0x402204
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push edi
push 1
pop edi
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 8]
push 0x402195
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x402260
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x100]
push str.Error_starting_thread:__d
push eax
call fcn.0040330c
add esp, 0xc
lea eax, [ebp - 0x100]
push 0x30
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor edi, edi
mov eax, edi
pop edi
leave
ret

Function at 0x402265
Capabilities:
Move file

Disassembly:
mov eax, 0x409774
call fcn.00403e4c
sub esp, 0x104
push esi
push 0xffffffffffffffeb
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, eax
test esi, esi
je 0x4022e8
lea ecx, [ebp + 8]
call fcn.00401000
and dword [ebp - 4], 0
lea eax, [ebp - 0x110]
push 0x104
push eax
lea ecx, [ebp + 8]
call fcn.004010b7
test al, al
je 0x4022dc
lea eax, [ebp - 0x110]
add esi, 0x20c0c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x4022dc
lea eax, [ebp - 0x110]
lea ecx, [ebp + 8]
push eax
push str.xfile
push str.Startup
call fcn.0040102c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401025
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4022f5
Capabilities:
Get disk size
Persist via run registry key

Disassembly:
mov eax, 0x409788
call fcn.00403e4c
sub esp, 0x260
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 0xd], bl
call fcn.00401000
mov esi, 0x104
lea eax, [ebp - 0x26c]
push esi
push eax
mov dword [ebp - 4], ebx
call fcn.004031ee
pop ecx
lea eax, [ebp - 0x26c]
pop ecx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x402437
lea ecx, [ebp - 0x64]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x402437
mov eax, dword [ebp - 0x44]
push esi
shl eax, 4
add eax, dword [ebp - 0x40]
lea edi, [eax + eax*2]
lea eax, [ebp - 0x168]
push eax
push 0x2b
call fcn.00401750
add esp, 0xc
test al, al
jne 0x4023e0
lea eax, [ebp - 0x168]
push esi
push eax
push str.Common_Programs
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
lea ecx, [ebp - 0x14]
call fcn.00401149
test al, al
jne 0x4023e0
lea eax, [ebp - 0x168]
push esi
push eax
push str.CommonFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
lea ecx, [ebp - 0x14]
call fcn.00401149
test al, al
jne 0x4023e0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401025
xor al, al
jmp 0x402446
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ecx, dword [ebp - 0x1c]
xor eax, eax
cmp ecx, eax
jb 0x402411
ja 0x40240b
mov eax, dword [ebp - 0x20]
cmp eax, edi
jbe 0x402411
mov byte [ebp - 0xd], 1
jmp 0x40242e
push ebx
push ebx
push ebx
lea eax, [ebp - 0x168]
push dword [ebp + 8]
push eax
call fcn.004037c2
mov eax, dword [ebp + 0xc]
add esp, 0x14
sub edi, dword [ebp - 0x20]
mov dword [eax], edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401025
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4024a7
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push esi
push edi
xor esi, esi
push 0x10
lea eax, [ebp - 0x10]
push esi
mov edi, ecx
push eax
call fcn.00403560
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00403560
add esp, 0x18
lea eax, [edi + 0x108]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x258]
push str._s__s
push eax
call fcn.0040330c
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x20
push 1
push esi
lea eax, [ebp - 0x258]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40254e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push eax
push str.Unable_to_launch._Error_code:__d
mov dword [ecx], eax
lea eax, [ebp - 0x154]
push eax
call fcn.0040330c
add esp, 0xc
lea eax, [ebp - 0x154]
push 0x30
push esi
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x402564
cmp dword [ebp + 0xc], esi
push 1
pop eax
je 0x402564
push dword [ebp + 8]
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.00402617
pop edi
pop esi
leave
ret 8

Function at 0x40256a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
xor ebx, ebx
push 0x3c
lea eax, [ebp - 0x3c]
push ebx
mov esi, ecx
push eax
call fcn.00403560
lea eax, [esi + 4]
add esp, 0xc
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x108]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x4025f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push eax
push str.Last_error:__d
mov dword [ecx], eax
lea eax, [ebp - 0x13c]
push eax
call fcn.0040330c
add esp, 0xc
lea eax, [ebp - 0x13c]
push 0x30
push ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x402611
cmp dword [ebp + 0xc], ebx
je 0x40260e
push dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.00402617
jmp 0x402611
push 1
pop eax
pop esi
pop ebx
leave
ret 8
Function at 0x402e2d
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
mov eax, dword [ebp + 0xc]
push ebx
imul eax, eax, 0x20c
mov ebx, ecx
push esi
push edi
xor esi, esi
lea edi, [eax + ebx]
push esi
push esi
mov eax, dword [edi + 0x208]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
call fcn.004037c2
lea eax, [ebp - 0x110]
add edi, 4
push eax
lea eax, [ebp - 0x414]
push eax
push esi
push esi
push edi
call fcn.004037c2
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x314]
push eax
call fcn.00404017
add esp, 0x3c
lea eax, [ebp - 0x314]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x402ed2
mov eax, 0x3ed
jmp 0x402f47
mov eax, dword [ebp + 0xc]
push esi
inc eax
push esi
imul eax, eax, 0x20c
push dword [eax + ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edi, edi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
mov ecx, 0x104
sub eax, edi
cmp eax, ecx
jle 0x402f03
mov eax, ecx
jmp 0x402f07
cmp eax, esi
je 0x402f39
lea ecx, [ebp - 4]
push esi
push ecx
push eax
lea eax, [ebp - 0x518]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0x518]
push dword [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp - 4]
jmp 0x402ef1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x3ea
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x403222
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
push ebx
push esi
lea eax, [ebp - 0x88]
push edi
push eax
call fcn.004032ce
lea eax, [ebp - 0x88]
push eax
call fcn.004034e0
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop ecx
mov dword [ebp - 4], eax
xor ebx, ebx
push 2
neg eax
push ebx
push eax
push dword [esi]
call edi
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x488]
push dword [ebp - 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
xor ecx, ecx
mov byte [ebp + eax - 0x488], bl
mov dl, byte [ebp - 0x488]
cmp dl, byte [ebp - 0x88]
jne 0x4032a5
cmp ecx, eax
jae 0x4032a7
mov dl, byte [ebp + ecx - 0x487]
inc ecx
cmp dl, byte [ebp + ecx - 0x88]
je 0x403290
cmp ecx, eax
push 1
push ebx
je 0x4032be
or eax, 0xffffffff
sub eax, dword [ebp - 4]
push eax
push dword [esi]
call edi
cmp eax, 0xffffffff
je 0x4032c5
jmp 0x40325f
push ebx
push dword [esi]
call edi
jmp 0x4032c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x406e73
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40c8a8
cmp edx, dword [eax]
je 0x406e95
add eax, 8
inc ecx
cmp eax, 0x40c938
jl 0x406e86
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40c8a8]
jne 0x406fc3
mov eax, dword [0x40ed18]
cmp eax, 1
je 0x406f9d
test eax, eax
jne 0x406ec6
cmp dword [0x40c464], 1
je 0x406f9d
cmp edx, 0xfc
je 0x406fc3
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406efd
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004033f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004034e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406f40
lea eax, [ebp - 0x1a4]
push eax
call fcn.004034e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a674
push edi
call fcn.00405200
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004033f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403400
lea eax, [ebp - 0xa0]
push 0x40a654
push eax
call fcn.00403400
push dword [esi + 0x40c8ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403400
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409184
add esp, 0x2c
pop edi
jmp 0x406fc3
lea eax, [ebp + 8]
lea esi, [esi + 0x40c8ac]
push 0
push eax
push dword [esi]
call fcn.004034e0
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 0x404990
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1d60
call fcn.00410510
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x47f138]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x47f13c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.00404980
mov ecx, dword [0x47f140]
mov edx, dword [0x47f144]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x404a00
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x497254]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x404a2c
mov dword [0x497250], 0xedeb2e40
jmp 0x404a47
cmp eax, 0x3eb
jne 0x404a47
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x496ce0], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x497254], 0x9e6
mov dword [0x49724c], 0xf4ea3dee
jne 0x404a82
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x497254], 0x213
jne 0x404b20
push 0
lea eax, [ebp - 0x960]
push eax
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0x1560]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x1160]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x1d60]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
lea edx, [ebp - 0x30]
push edx
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea ecx, [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub edi, dword [ebp - 4]
cmp dword [0x497254], 0xc
jne 0x404b3e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov eax, dword [ebp - 8]
mov edx, edi
shr edx, 5
lea ecx, [eax + edi]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
xor eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x404a00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404b90
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Read pipe
Set environment variable
Set thread local storage value
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.00410510
mov eax, dword [0x497254]
mov ecx, dword [0x496ce4]
shr eax, 3
test eax, eax
jbe 0x404ca8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x497254], 0x959
jne 0x404c8e
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x1008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1808]
push eax
push 0
call edi
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404990
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404bd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408b8c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47e540]
jne 0x408b96
repz ret
jmp fcn.0040c8db

Function at 0x40b883
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.00409ac6
and dword [ebp - 4], 0
cmp dword [0x4842f4], 0
mov ebx, eax
jne 0x40b934
push 0x4024bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b9e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024b0
push edi
call esi
test eax, eax
je 0x40b9e5
push eax
call fcn.00409a54
mov dword [esp], 0x4024a0
push edi
mov dword [0x4842f4], eax
call esi
push eax
call fcn.00409a54
mov dword [esp], 0x40248c
push edi
mov dword [0x4842f8], eax
call esi
push eax
call fcn.00409a54
mov dword [esp], 0x402470
push edi
mov dword [0x4842fc], eax
call esi
push eax
call fcn.00409a54
pop ecx
mov dword [0x484304], eax
test eax, eax
je 0x40b934
push 0x402458
push edi
call esi
push eax
call fcn.00409a54
pop ecx
mov dword [0x484300], eax
mov eax, dword [0x484300]
cmp eax, ebx
je 0x40b98c
cmp dword [0x484304], ebx
je 0x40b98c
push eax
call fcn.00409acf
push dword [0x484304]
mov esi, eax
call fcn.00409acf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b98c
test edi, edi
je 0x40b98c
call esi
test eax, eax
je 0x40b983
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b983
test byte [ebp - 0xc], 1
jne 0x40b98c
or dword [ebp + 0x10], 0x200000
jmp 0x40b9c5
mov eax, dword [0x4842f8]
cmp eax, ebx
je 0x40b9c5
push eax
call fcn.00409acf
pop ecx
test eax, eax
je 0x40b9c5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b9c5
mov eax, dword [0x4842fc]
cmp eax, ebx
je 0x40b9c5
push eax
call fcn.00409acf
pop ecx
test eax, eax
je 0x40b9c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4842f4]
call fcn.00409acf
pop ecx
test eax, eax
je 0x40b9e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b9e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret