joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fa89
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x8c
mov eax, dword [0x449778]
xor eax, ebp
mov dword [ebp + 0x70], eax
push esi
mov esi, dword [ebp + 0x7c]
lea eax, [ebp + 0x18]
push eax
call fcn.0041feb7
test al, al
je 0x41fb49
push ebx
push edi
lea eax, [ebp + 0x18]
mov dword [ebp - 0x18], 0x11060000
xor edi, edi
mov dword [ebp + 4], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0xc], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 8], edi
xor ebx, ebx
mov dword [ebp], edi
inc ebx
mov dword [ebp - 0x10], 3
push eax
push ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
mov dword [ebp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x41fb47
push ebx
lea eax, [ebp + 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x41fb39
push edi
push dword [ebp + 0x14]
lea eax, [ebp + 0x5c]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x41fb39
cmp dword [esi + 0x14], 8
lea eax, [ebp + 0x5c]
mov dword [ebp + 8], 0xc
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edi
jb 0x41fb2e
mov esi, dword [esi]
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp + 0x14], edi
je 0x41fb47
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop esi
call fcn.00425744
add ebp, 0x74
leave
ret 4

Function at 0x41fd44
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x449778]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x449724], 0
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, 0x400
push edi
mov edi, dword [ebp + 0x14]
jne 0x41fd9f
push 0x64
lea eax, [ebp - 0x130]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x130]
mov word [0x455854], ax
xor eax, eax
mov word [0x455856], ax
mov dword [0x449724], 0x455854
push 0x32
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00416787
push edi
push esi
xor eax, eax
push 0x449714
mov word [esi], ax
lea eax, [ebp - 0x68]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [esi + edi*2 - 2], ax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00425744
leave
ret 0x10
Function at 0x4201ed
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
mov eax, 0x43ac42
call fcn.004257b5
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [eax + 0x14], 8
jb 0x420206
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push 1
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420305
mov eax, dword [ebp + 0x10]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x42022c
mov ecx, dword [eax]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4202f8
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x18]
shr eax, 1
cmp dword [ecx + 0x10], eax
jbe 0x420255
mov eax, dword [ecx + 0x10]
inc eax
mov ecx, 0x10000
cmp eax, ecx
jb 0x420261
mov eax, ecx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00401bbd
mov edi, dword [ebp - 0x28]
mov eax, edi
mov esi, dword [ebp - 0x2c]
sub eax, esi
sar eax, 1
add eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 8
jb 0x420292
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
push esi
lea ecx, [ebp - 0x20]
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4202e1
mov word [ebp - 0xe], ax
cmp edi, dword [ebp - 0x24]
je 0x4202be
mov word [edi], ax
add edi, 2
mov dword [ebp - 0x28], edi
jmp 0x4202ce
lea eax, [ebp - 0xe]
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.0041f6d2
mov esi, dword [ebp - 0x2c]
push esi
call fcn.0042acfe
pop ecx
mov ecx, dword [ebp + 0x14]
push eax
push esi
call fcn.00401afc
mov bl, 1
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4202f8
mov eax, dword [ebp - 0x24]
sub eax, esi
and eax, 0xfffffffe
push eax
push esi
call fcn.004012a7
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x420310
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
call fcn.004025c3
mov al, bl
call fcn.00425783
ret 0x14
Function at 0x423c29
Capabilities:
Hide graphical window

Disassembly:
and dword [0x45587c], 0
push 1
push dword [esp + 8]
mov byte [0x455871], 1
mov byte [0x455872], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.00401cc4
cmp dword [0x4496c0], 0
jne 0x423c69
cmp byte [0x45587b], 0
je 0x423c72
cmp dword [0x455874], 0
jne 0x423c85
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x423d74
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x439eb2
call fcn.004257e8
cmp byte [0x45537c], 0
mov esi, dword [ebp + 8]
je 0x423e5b
cmp dword [0x455390], 0
je 0x423e5b
xor edi, edi
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
push eax
push 0x455380
call fcn.00421cfb
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push str.SoftwareWinRAR_SFX
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x423e20
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x423df2
mov ecx, dword [esi]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
jb 0x423dfe
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 0x10]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push edi
push edx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x423e5b
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
cmp eax, 0x1000
jb 0x423e52
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004019a9
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push eax
push ecx
call fcn.00425736
pop ecx
pop ecx
call fcn.00425797
ret 4
Function at 0x4269d9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x426a18
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426a18
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426a18
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x426a18
cmp dword [ecx + 0x74], 0xe
jbe 0x426a18
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x438dc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x438ded
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x438ded
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401050
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov ecx, dword [0x42d068]
push ebx
mov ebx, dword [0x42d06c]
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
xor esi, esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x34], 0x9e3779b9
mov dword [ebp - 0x30], ecx
call fcn.00401040
mov edx, dword [0x42d070]
mov eax, dword [0x42d074]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4010b2
xor esi, esi
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov ecx, dword [0x84c854]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40110c
push esi
lea ecx, [ebp - 0x38]
push ecx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
xor edx, edx
xor eax, eax
lea ecx, [ebp - 0x3c]
push ecx
mov word [ebp - 0x1c], dx
mov word [ebp - 0x1a], ax
mov edx, dword [ebp - 0x1c]
push edx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov eax, dword [ebp - 4]
mov ecx, dword [0x84c854]
add eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x401126
mov dword [0x84c850], 0xedeb2e40
jmp 0x401142
cmp ecx, 0x3eb
jne 0x401142
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x84c204], esi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov edx, edi
shr edx, cl
add eax, edi
mov dword [ebp - 0x14], eax
mov dword [0x84c84c], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov ecx, dword [ebp - 0xc]
shl ecx, 4
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 8]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
nop
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
shr esi, cl
push edx
push eax
add esi, ebx
call fcn.00401020
cmp dword [0x84c854], 0xb03
mov dword [ebp - 4], eax
jne 0x4011cb
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
mov eax, dword [ebp - 4]
xor eax, esi
mov dword [ebp - 4], eax
sub edi, eax
mov eax, dword [ebp - 0x34]
sub dword [ebp - 8], eax
sub dword [ebp - 0x20], 1
jne 0x4010b0
cmp dword [0x84c854], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
jne 0x401213
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0xc]
pop edi
mov dword [esi + 4], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4015c0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x84c854], 0x400
push esi
push edi
jne 0x4015e4
lea eax, [ebp - 0x24]
call fcn.004016a0
lea esi, [ebp - 0x24]
call fcn.004016c0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [ebp - 4]
xor esi, esi
call edi
cmp esi, 0x2af054
jle 0x401602
cmp ebx, 0x787e04e5
jne 0x40160b
inc esi
cmp esi, 0x1d8d
jl 0x4015f0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea esp, [esp]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x40163d
inc esi
cmp esi, 0x4f6a4
jl 0x401620
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
pop ebx
push 0
call edi
cmp esi, 0x2b2589
jg 0x40165b
inc esi
cmp esi, 0x11915
jl 0x401646
mov eax, dword [0x42d2ac]
mov dword [0x84c854], eax
call fcn.00401370
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, 0x3078f
jmp 0x401680
cmp dword [0x84c854], 0x51f
jne 0x401690
push 0
call esi
sub edi, 1
jne 0x401680
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x407650
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ca68]
jne 0x40765a
repz ret
jmp fcn.0040aee6
Function at 0x40a95d
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.00403932
and dword [ebp - 4], 0
cmp dword [0x42ec44], 0
mov ebx, eax
jne 0x40aa0e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40aabf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40aabf
push eax
call fcn.004038c0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42ec44], eax
call esi
push eax
call fcn.004038c0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42ec48], eax
call esi
push eax
call fcn.004038c0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42ec4c], eax
call esi
push eax
call fcn.004038c0
pop ecx
mov dword [0x42ec54], eax
test eax, eax
je 0x40aa0e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004038c0
pop ecx
mov dword [0x42ec50], eax
mov eax, dword [0x42ec50]
cmp eax, ebx
je 0x40aa66
cmp dword [0x42ec54], ebx
je 0x40aa66
push eax
call fcn.0040393b
push dword [0x42ec54]
mov esi, eax
call fcn.0040393b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40aa66
test edi, edi
je 0x40aa66
call esi
test eax, eax
je 0x40aa5d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40aa5d
test byte [ebp - 0xc], 1
jne 0x40aa66
or dword [ebp + 0x10], 0x200000
jmp 0x40aa9f
mov eax, dword [0x42ec48]
cmp eax, ebx
je 0x40aa9f
push eax
call fcn.0040393b
pop ecx
test eax, eax
je 0x40aa9f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40aa9f
mov eax, dword [0x42ec4c]
cmp eax, ebx
je 0x40aa9f
push eax
call fcn.0040393b
pop ecx
test eax, eax
je 0x40aa9f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42ec44]
call fcn.0040393b
pop ecx
test eax, eax
je 0x40aabf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40aac1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..3ean
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x5dee1af8
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x431024
nop
nop
nop
nop
mov eax, section..7LWLf
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x4f403b6c
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4013ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x407054], 1
mov dword [0x407058], 1
mov dword [0x40705c], 1
mov dword [0x407048], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x401415
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x401438
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x40145a
cmp eax, 0x20b
je 0x40147f
jmp 0x4014aa
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x40146c
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x401497
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, 0
leave
ret

Function at 0x401a28
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.00402a68
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.00402a68
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x402578
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x402597
mov eax, 0
jmp 0x4025db
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x4025ba
mov eax, 0
jmp 0x4025db
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x4025d6
mov eax, 0
jmp 0x4025db
mov eax, 1
leave
ret
Function at 0x4025dd
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x40263c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x402634
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x402634
mov eax, dword [ebp - 4]
jmp 0x402650
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x402611
mov eax, 0
leave
ret

Function at 0x402ae4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [0x407040]
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp], str.KERNEL32.DLL
mov esi, dword [esp + 0x60]
call sub.KERNEL32.dll_GetModuleHandleW
push ecx
mov ebx, eax
mov dword [esp + 4], str.VirtualAlloc
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
push edi
push edi
mov edi, eax
mov dword [esp], ebx
mov dword [esp + 4], str.CreateThread
call sub.KERNEL32.dll_GetProcAddress
push ebp
push ebp
mov ebp, eax
mov dword [esp], ebx
mov dword [esp + 4], str.WaitForSingleObject
call sub.KERNEL32.dll_GetProcAddress
push edx
push edx
mov dword [esp], ebx
mov dword [esp + 4], str.QueueUserAPC
mov dword [esp + 0x24], eax
call sub.KERNEL32.dll_GetProcAddress
push ecx
push ecx
mov dword [esp], ebx
mov dword [esp + 4], str.CloseHandle
mov dword [esp + 0x2c], eax
call sub.KERNEL32.dll_GetProcAddress
push ebx
push ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], eax
mov dword [esp], 0
call edi
sub esp, 0x10
mov edi, eax
mov ebx, eax
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x38]
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x38], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x402c38
mov dword [esp + 4], 0
mov dword [esp], 0
call ebp
sub esp, 0x18
test eax, eax
je 0x402c1c
mov dword [esp + 8], 0
mov edx, dword [esp + 0x2c]
mov esi, eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call edx
sub esp, 0xc
test eax, eax
je 0x402c12
mov dword [esp + 4], 0xffffffff
mov eax, dword [esp + 0x24]
mov dword [esp], esi
call eax
push edx
push edx
mov dword [esp], esi
mov eax, dword [esp + 0x28]
call eax
push eax
mov eax, dword [esp + 0x3c]
sub eax, dword [0x407040]
je 0x402c2d
call fcn.00401770
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402cc8
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
lea esi, [esp + 0x20]
mov dword [esp + 0xc], 0
mov edi, dword [esp + 0x50]
mov dword [esp + 0x10], esi
mov eax, dword [0x407040]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0x20], 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
sub esp, 0x14
cmp eax, 0x6f
jne 0x402db5
mov eax, dword [esp + 0x20]
mov dword [esp], 0x40
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
push ecx
push ecx
test eax, eax
je 0x402db5
mov dword [esp + 0x10], esi
mov esi, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
sub esp, 0x14
lea ebp, [esp + 0x26]
cmp dword [esi + 0x34], 6
jne 0x402da4
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x26], eax
mov ax, word [esi + 0x30]
mov dword [esp + 8], 3
mov dword [esp + 4], ebp
mov dword [esp], edi
mov word [esp + 0x2a], ax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x402da4
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
push edx
jmp 0x402db7
mov esi, dword [esi + 8]
test esi, esi
jne 0x402d68
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
xor eax, eax
mov edx, dword [esp + 0x2c]
sub edx, dword [0x407040]
je 0x402dc8
call fcn.00401770
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402e64
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebx
sub esp, 0x38
mov ebx, dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x407040]
mov dword [esp + 0x2c], eax
xor eax, eax
lea eax, [esp + 0x1c]
mov dword [esp], eax
call ebx
push eax
mov dword [esp], 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push edx
lea eax, [esp + 0x24]
mov dword [esp], eax
call ebx
xor eax, eax
push ecx
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x1c], edx
jne 0x402eb2
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x20], eax
sete al
mov ecx, dword [esp + 0x2c]
sub ecx, dword [0x407040]
je 0x402ec3
call fcn.00401770
add esp, 0x38
pop ebx
ret

Function at 0x402ec8
Capabilities:
Enumerate processes

Disassembly:
push edi
push esi
push ebx
sub esp, 0x140
mov dword [esp + 4], 0
mov edi, dword [esp + 0x150]
mov eax, dword [0x407040]
mov dword [esp + 0x13c], eax
xor eax, eax
mov dword [esp], 2
mov dword [esp + 0x14], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push ecx
mov ebx, eax
push ecx
lea esi, [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], esi
call sub.KERNEL32.dll_Process32First
push edx
push edx
test eax, eax
jne 0x402f20
xor eax, eax
jmp 0x402f4a
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.KERNEL32.dll_Process32Next
push edx
push edx
test eax, eax
je 0x402f1c
lea eax, [esp + 0x38]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll__stricmp
test eax, eax
jne 0x402f20
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x13c]
sub edx, dword [0x407040]
je 0x402f5e
call fcn.00401770
add esp, 0x140
pop ebx
pop esi
pop edi
ret
Function at 0x402f68
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x4c
mov eax, dword [0x407040]
mov dword [esp + 0x3c], eax
xor eax, eax
lea eax, [esp + 0x18]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push eax
cmp dword [esp + 0x2c], 1
setbe al
mov edx, dword [esp + 0x3c]
sub edx, dword [0x407040]
je 0x402f9d
call fcn.00401770
add esp, 0x4c
ret

Function at 0x40301c
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x6c
mov eax, dword [0x407040]
mov dword [esp + 0x5c], eax
xor eax, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x40
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
push eax
mov eax, 0x7fffffff
cmp eax, dword [esp + 0x20]
mov eax, 0
sbb eax, dword [esp + 0x24]
setae al
mov edx, dword [esp + 0x5c]
sub edx, dword [0x407040]
je 0x403066
call fcn.00401770
add esp, 0x6c
ret
Function at 0x408940
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop edi
inc ebx
call fcn.0040896d
xor dword [esi], edi
inc esi
cmp esi, edx
jne fcn.00408940
inc eax
sub eax, 1
ret