joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41320e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0xa3f658]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x413254
cmp word [ebx], dx
jne 0x413254
or byte [eax + edi + 0x28], 4
jmp 0x413259
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4133bc
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41339c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41329a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4132d0
cmp eax, edx
jae 0x4132de
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x413275
jmp 0x4133bc
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413397
cmp dword [ebp - 0x18], 0
je 0x413397
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0xa3f658]
test byte [eax + edi + 0x28], 0x48
je 0x41336d
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x413331
mov word [esi], cx
jmp 0x413368
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0xa3f658]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0xa3f658]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0xa3f658]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4133bc
pop eax
cmp word [ebp - 4], ax
jne 0x41337d
cmp esi, ebx
jne 0x41337d
mov word [esi], ax
jmp 0x4133b9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00413c47
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4133bc
push 0xd
pop eax
jmp 0x413378
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0xa3f658]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4133b6
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4133bc
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4010b0
Capabilities:
Create process on windows
Create process suspended
Enumerate processes
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2a8
mov eax, dword [0x430710]
xor eax, esp
mov dword [esp + 0x2a4], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2b4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x1c]
push ecx
push 0xf01ff
xor esi, esi
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push 1
push 1
push esi
push 0x2000000
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0xc
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push esi
push 2
mov dword [esp + 0x30], 0xc
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 0x88]
push eax
push edi
mov dword [esp + 0x90], 0x22c
call sub.KERNEL32.dll_Process32FirstW
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x401170
push str.explorer.exe
lea ecx, [esp + 0xb0]
push ecx
call ebx
test eax, eax
je 0x401274
lea edx, [esp + 0x88]
push edx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401170
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
lea ecx, [esp + 0x24]
push ecx
push 0xf01ff
push ebx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x20]
push edx
push 1
push 1
push esi
push 0x2000000
push eax
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov ecx, dword [esp + 0x20]
push esi
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
push ebx
call edi
push 0x44
lea eax, [esp + 0x48]
push esi
push eax
call fcn.004092b0
add esp, 0xc
xor eax, eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, 1
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x18]
push esi
mov dword [esp + 0x7c], eax
mov word [esp + 0x80], ax
mov eax, dword [esp + 0x20]
push eax
push 0x430
push esi
push esi
lea ecx, [esp + 0x44]
push ecx
push ebp
push esi
push edx
mov dword [esp + 0x70], 0x44
mov dword [esp + 0x78], 0x4262d4
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ecx, dword [esp + 0x2b4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040932a
add esp, 0x2a8
ret 4
mov eax, dword [esp + 0x90]
push eax
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
jmp 0x40119d
Function at 0x402270
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push edi
push 0
push 0x80
push 4
push 0
push 3
push 0x10000000
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4022f8
push ebx
push ebp
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ebp, [ebx + 1]
push ebp
call fcn.00408f66
mov esi, eax
add esp, 4
test esi, esi
je 0x4022f5
push ebp
push 0
push esi
call fcn.004092b0
add esp, 0xc
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
push ebx
push esi
call fcn.00401a80
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 4

Function at 0x4023c0
Capabilities:
Terminate thread

Disassembly:
push esi
push str.CApplicationService::ApplicationServiceMainFunction
push 0x426444
call fcn.00407ef0
call fcn.00401290
push str.CApplicationService::ServiceMainFunction111
push 0x426444
mov esi, eax
call fcn.00407ef0
add esp, 0x10
mov ecx, esi
call fcn.00402300
mov ecx, dword [esi + 4]
lea eax, [esi + 8]
push eax
push ecx
mov dword [esi + 0xc], 1
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x40241c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x28], 0
pop esi
ret

Function at 0x4036e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push 0x426510
mov esi, ecx
call ebx
test eax, eax
mov dword [esi], eax
jne 0x4036fa
pop esi
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi]
push str.IsWow64Process
push eax
call edi
mov ecx, dword [esi]
push str.Wow64DisableWow64FsRedirection
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi]
push str.Wow64RevertWow64FsRedirection
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi]
push str.GetSystemWow64DirectoryW
push eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
test eax, eax
mov dword [esi + 4], eax
jne 0x403752
pop edi
pop esi
pop ebx
ret
push str.Wow64RevertWow64FsRedirection
push eax
call edi
mov ecx, dword [esi + 4]
push str.Wow64RevertWow64FsRedirection
push ecx
mov dword [esi + 0x20], eax
call edi
pop edi
mov dword [esi + 0x1c], eax
pop esi
mov eax, 1
pop ebx
ret
Function at 0x405230
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x405250
pop edi
add esp, 0x1c
ret 4
mov eax, dword [esp + 0x24]
push esi
push 0x10020
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x405279
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret 4
push ebx
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
xor eax, eax
test ebx, ebx
pop ebx
pop esi
setne al
pop edi
add esp, 0x1c
ret 4

Function at 0x4052b0
Capabilities:
Start service

Disassembly:
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x405315
cmp dword [edi + 0x1c], 8
jb 0x4052db
mov edi, dword [edi + 8]
jmp 0x4052de
add edi, 8
push 0xf003f
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x405315
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x405312
push str.CRunServiceOperate::StartService
push 0x426444
call fcn.00407ef0
add esp, 8
push edi
call ebx
push esi
call ebx
push str.CRunServiceOperate::DoStartService
push 0x426444
call fcn.00407ef0
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4064a0
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x63c
mov eax, dword [0x430710]
xor eax, esp
mov dword [esp + 0x638], eax
push esi
xor eax, eax
push edi
mov edi, dword [esp + 0x648]
xor esi, esi
push 0x206
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
lea eax, [esp + 0x2e]
push esi
push eax
mov word [esp + 0x20], si
mov word [esp + 0x34], si
call fcn.004092b0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 3
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0040a138
push 0x206
lea ecx, [esp + 0x44a]
push esi
push ecx
mov word [esp + 0x450], si
call fcn.004092b0
push 0x206
lea edx, [esp + 0x24e]
push esi
push edx
mov word [esp + 0x254], si
call fcn.004092b0
add esp, 0x24
push 0x104
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push 0x104
lea ecx, [esp + 0x450]
push ecx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4065a6
mov eax, dword [esp + 8]
push eax
push str._08X
push edi
call fcn.00409989
add esp, 0xc
jmp 0x4065bf
mov eax, 0x42637c
mov edx, edi
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x4065b0
mov ecx, dword [esp + 0x640]
pop edi
pop esi
xor ecx, esp
call fcn.0040932a
add esp, 0x63c
ret 4

Function at 0x407700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407719
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407754
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x407750
lea ebx, [ebx]
cmp esi, eax
jae 0x407754
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407740
cmp esi, eax
jb 0x40775a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x407c70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x828
mov eax, dword [0x430710]
xor eax, esp
mov dword [esp + 0x824], eax
push esi
mov esi, dword [esp + 0x830]
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004092b0
xor eax, eax
push esi
lea ecx, [esp + 0x68]
push 0x426444
push ecx
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.00409989
add esp, 0x18
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [esp + 0x78]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407d02
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov ecx, dword [esp + 0x828]
pop esi
xor ecx, esp
call fcn.0040932a
add esp, 0x828
ret
Function at 0x407d20
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
sub esp, 0x620
mov eax, dword [0x430710]
xor eax, esp
mov dword [esp + 0x61c], eax
push ebx
mov ebx, dword [esp + 0x628]
push esi
push edi
mov edi, dword [esp + 0x634]
xor esi, esi
push 0x206
lea eax, [esp + 0x426]
push esi
push eax
mov dword [esp + 0x18], ebx
mov word [esp + 0x42c], si
call fcn.004092b0
push 0x206
lea ecx, [esp + 0x22a]
push esi
push ecx
mov word [esp + 0x230], si
call fcn.004092b0
lea edx, [esp + 0x438]
add esp, 0x18
mov eax, ebx
sub edx, ebx
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x407d90
lea edx, [esp + 0x218]
mov eax, edi
sub edx, edi
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x407db0
lea edx, [esp + 0x420]
push edx
call fcn.0040a8b7
lea eax, [esp + 0x21c]
push eax
call fcn.0040a8b7
add esp, 8
lea edx, [esp + 0x218]
lea ecx, [esp + 0x420]
lea ebx, [ebx]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x407e16
cmp ax, si
je 0x407e12
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x407e16
add ecx, 4
add edx, 4
cmp ax, si
jne 0x407df0
xor eax, eax
jmp 0x407e1b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x407ed5
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0x206
lea ecx, [esp + 0x1a]
push 0
push ecx
mov word [esp + 0x20], 0
call fcn.004092b0
add esp, 0xc
test esi, esi
jne 0x407e64
push edi
lea edx, [esp + 0x18]
push str._s.bak
push edx
call fcn.00409989
add esp, 0xc
jmp 0x407e78
push esi
push edi
lea eax, [esp + 0x1c]
push str._s.bak_d
push eax
call fcn.00409989
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407e8e
lea edx, [esp + 0x14]
push edx
call ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0040a920
add esp, 8
lea ecx, [esp + 0x14]
push ecx
call ebx
mov edx, dword [esp + 0x10]
push 0
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
push 5
push 0
jne 0x407ecd
lea eax, [esp + 0x1c]
push eax
call ebp
cmp esi, 0xa
jge 0x407ed4
add esi, 1
jmp 0x407e30
lea ecx, [esp + 0x1c]
push ecx
call ebp
pop ebp
mov ecx, dword [esp + 0x628]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040932a
add esp, 0x620
ret
Function at 0x407ef0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
sub esp, 0xc14
mov eax, dword [0x430710]
xor eax, esp
mov dword [esp + 0xc10], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x21e]
push ebx
push eax
mov word [esp + 0x224], bx
call fcn.004092b0
add esp, 0xc
xor eax, eax
jmp 0x407f30
movzx ecx, word [eax + str.C:log_]
mov word [esp + eax + 0x218], cx
add eax, 2
cmp cx, bx
jne 0x407f30
push 0x3e6
lea ecx, [esp + 0x836]
push ebx
push ecx
mov word [esp + 0x83c], bx
call fcn.004092b0
lea edx, [esp + 0x224]
push edx
lea eax, [esp + 0x430]
push 0x426444
push eax
call fcn.00409989
push 0x206
lea ecx, [esp + 0x646]
push ebx
push ecx
mov word [esp + 0x64c], bx
call fcn.004092b0
push 0x206
lea edx, [esp + 0x3a]
push ebx
push edx
mov word [esp + 0x40], bx
call fcn.004092b0
add esp, 0x30
push 0x104
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call fcn.00409047
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 8
lea edx, [esp + 0x420]
push edx
mov word [eax], bx
call esi
test eax, eax
je 0x40812a
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407ff1
sub eax, edx
sar eax, 1
lea eax, [esp + eax*2 + 0x12]
lea edx, [esp + 0x628]
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x408010
push edi
lea eax, [esp + 0x62c]
push eax
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x42c]
push str._s_s.txt
push edx
call fcn.00409989
mov ecx, dword [esp + 0xc34]
lea eax, [esp + 0xc38]
push eax
push ecx
lea edx, [esp + 0x84c]
push 0x1f3
push edx
call fcn.0040adc8
add esp, 0x20
lea eax, [esp + 0x424]
push eax
mov word [esp + 0xc1e], bx
xor edi, edi
call esi
test eax, eax
je 0x408084
mov edi, 1
lea ecx, [esp + 0x424]
push 0x428440
push ecx
call fcn.0040ace3
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x408129
cmp edi, ebx
jne 0x4080c1
push esi
push 2
lea edx, [esp + 0x18]
push 1
push edx
mov dword [esp + 0x20], 0xfeff
call fcn.0040ab9b
add esp, 0x10
lea eax, [esp + 0x834]
lea edx, [eax + 2]
jmp 0x4080d0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4080d0
sub eax, edx
sar eax, 1
push esi
add eax, eax
push eax
lea ecx, [esp + 0x83c]
push 1
push ecx
call fcn.0040ab9b
push esi
push 2
lea edx, [esp + 0x24]
push 1
push edx
mov dword [esp + 0x2c], 0xd
call fcn.0040ab9b
push esi
push 2
lea eax, [esp + 0x34]
push 1
push eax
mov dword [esp + 0x3c], 0xa
call fcn.0040ab9b
push esi
call fcn.0040a9c0
add esp, 0x34
pop edi
mov ecx, dword [esp + 0xc18]
pop esi
pop ebx
xor ecx, esp
call fcn.0040932a
add esp, 0xc14
ret
Function at 0x408150
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0x128
mov eax, dword [0x430710]
xor eax, esp
mov dword [esp + 0x124], eax
push esi
push 0x114
xor esi, esi
lea eax, [esp + 0x18]
push esi
push eax
call fcn.004092b0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x408206
cmp dword [esp + 0x18], 5
jbe 0x408206
lea edx, [esp + 4]
push edx
push 0x20019
push esi
mov eax, 4
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push 0x80000002
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408206
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
push str.EnableLUA
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4081fb
xor ecx, ecx
cmp dword [esp + 8], esi
setne cl
mov esi, ecx
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x128]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040932a
add esp, 0x128
ret

Function at 0x408220
Capabilities:
Create process on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
lea edx, [eax + 2]
jmp 0x408230
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408230
sub eax, edx
sar eax, 1
je 0x408263
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x408263
push esi
call fcn.00407c70
add esp, 4
pop esi
pop ecx
ret

Function at 0x408420
Capabilities:
Hash data with md5

Disassembly:
mov eax, ecx
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x408d40
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov byte [esi + 0x68], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 8]
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
jb 0x408d88
mov eax, dword [eax + 4]
push ecx
push eax
mov ecx, esi
call fcn.00408b50
mov eax, esi
pop esi
ret 4
push ecx
add eax, 4
push eax
mov ecx, esi
call fcn.00408b50
mov eax, esi
pop esi
ret 4

Function at 0x40932a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430710]
jne 0x409334
repz ret
jmp fcn.0040cb22
Function at 0x40ffce
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x430f28]
je 0x40ffe9
inc edi
cmp edi, 0x17
jb 0x40ffda
cmp edi, 0x17
jae 0x410169
push ebp
push 3
call fcn.00416cee
cmp eax, 1
pop ecx
je 0x410135
push 3
call fcn.00416cee
test eax, eax
pop ecx
jne 0x41001d
cmp dword [0x430740], 1
je 0x410135
cmp ebx, 0xfc
je 0x410168
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4322b8
push ebp
call fcn.0040c7b5
add esp, 0xc
test eax, eax
je 0x410053
push esi
push esi
push esi
push esi
push esi
call fcn.00409410
add esp, 0x14
push 0x104
mov esi, 0x4322d1
push esi
push 0
mov byte [0x4323d5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x410097
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040c7b5
add esp, 0xc
test eax, eax
je 0x410097
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00409410
add esp, 0x14
push esi
call fcn.0040bcc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4100dc
push esi
call fcn.0040bcc0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4325cc
push 0x429484
sub ecx, eax
push ecx
push eax
call fcn.00413b26
add esp, 0x14
test eax, eax
je 0x4100dc
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00409410
add esp, 0x14
jmp 0x4100de
xor esi, esi
push 0x429480
push ebx
push ebp
call fcn.00413a6f
add esp, 0xc
test eax, eax
je 0x4100fe
push esi
push esi
push esi
push esi
push esi
call fcn.00409410
add esp, 0x14
push dword [edi*8 + 0x430f2c]
push ebx
push ebp
call fcn.00413a6f
add esp, 0xc
test eax, eax
je 0x410120
push esi
push esi
push esi
push esi
push esi
call fcn.00409410
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00416b31
add esp, 0xc
jmp 0x410168
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x410168
cmp ebp, 0xffffffff
je 0x410168
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x430f2c]
push dword [esi]
call fcn.0040bcc0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret