joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410910
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x422cfe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov eax, dword [0x42b48c]
push ebx
push esi
mov esi, ecx
xor eax, ebp
mov dword [esp + 0x220], eax
mov dword [esi], 0x4260e0
mov eax, dword [0x42c534]
push edi
mov ecx, 0x42c534
mov dword [esp + 0xc], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x10], eax
mov edx, dword [0x42c534]
xor ebx, ebx
mov ecx, 0x42c534
mov dword [esp + 0x234], ebx
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [0x42c534]
mov ecx, 0x42c534
mov byte [esp + 0x234], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x20], eax
mov edx, dword [0x42c534]
mov ecx, 0x42c534
mov byte [esp + 0x234], 2
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x24], eax
mov eax, dword [0x42c534]
mov ecx, 0x42c534
mov byte [esp + 0x234], 3
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x28], eax
mov edx, dword [0x42c534]
mov ecx, 0x42c534
mov byte [esp + 0x234], 4
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
mov eax, dword [0x42c534]
mov ecx, 0x42c534
mov byte [esp + 0x234], 5
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x3c], eax
mov edx, dword [0x42c534]
mov ecx, 0x42c534
mov byte [esp + 0x234], 6
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x40], eax
mov eax, dword [0x42c534]
mov ecx, 0x42c534
mov byte [esp + 0x234], 7
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x4c], eax
mov byte [esp + 0x234], 8
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x44], ebx
mov byte [esp + 0x118], bl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x118]
push 0x104
push ecx
mov word [esi + 0x18], 0x50
mov word [esi + 0x30], bx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
stosb byte es:[edi], al
call fcn.0040fc40
mov byte [esp + 0x18], bl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x18]
push 0x104
push edx
stosb byte es:[edi], al
call fcn.0040fd60
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x12c]
push ecx
lea eax, [esi + 0x10]
push str.Mozilla_4.0__compatible___s___s__Rising_
push eax
call fcn.00408960
mov ecx, dword [esp + 0x24c]
add esp, 0x20
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x224]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415d1a
mov esp, ebp
pop ebp
ret
Function at 0x412640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
mov eax, dword [0x42b48c]
xor eax, ebp
mov dword [esp + 0x11c], eax
xor eax, eax
push esi
mov esi, ecx
mov byte [esi], al
mov ecx, dword [0x4261ac]
mov edx, dword [0x4261b0]
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [str.SOFTWARERising_]
mov dword [esp + 0x14], eax
mov eax, dword [0x4261b4]
mov dword [esp + 0x18], ecx
mov cl, byte [0x4261b8]
push edi
mov dword [esp + 0x24], eax
mov byte [esp + 0x28], cl
mov dword [esp + 0x20], edx
xor eax, eax
mov ecx, 0x3d
lea edi, [esp + 0x29]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call edi
mov ecx, 0x105
sub ecx, eax
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
call edi
lea eax, [esp + eax + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
lea edx, [esp + 0x24]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41277c
mov edx, dword [esp + 0xc]
lea eax, [ebp + 8]
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.installpath
push edx
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412757
push 0x5c
push esi
call fcn.0041651b
add esp, 8
test eax, eax
je 0x412731
mov cl, byte [eax + 1]
test cl, cl
jne 0x412731
mov byte [eax], 0
mov eax, dword [esp + 0xc]
push eax
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, ebp
call fcn.00415d1a
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, ebp
call fcn.00415d1a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.00415d1a
mov esp, ebp
pop ebp
ret
Function at 0x413c30
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push edi
lea eax, [esp + 8]
push eax
push ebx
mov dword [esp + 0x10], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
ja 0x413c5c
pop edi
xor eax, eax
pop ebx
add esp, 8
ret 0xc
lea ecx, [edi + 1]
push esi
push ecx
call fcn.00415ce4
mov edx, dword [esp + 0x10]
add esp, 4
mov esi, eax
push esi
push edi
push edx
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x413c90
push esi
call fcn.00415d3e
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x424408
push esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x413c7c
mov eax, dword [esp + 0x18]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push str.02_d._02d._02d._02d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
call fcn.00415d3e
add esp, 0x1c
pop esi
pop edi
mov eax, 1
pop ebx
add esp, 8
ret 0xc

Function at 0x413d40
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
push edi
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov edi, dword [esp + 0x14]
jne 0x413db1
mov eax, dword [esp + 8]
push ebp
lea ecx, [esp + 0x1c]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push str.ProgramFilesDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
push ecx
mov ebp, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
pop ebp
je 0x413dd6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, 2
jbe 0x413de1
cmp esi, 0x7fffffff
mov byte [edi + 2], 0
ja 0x413dd6
push str.Program_Files
push esi
push edi
call fcn.004047d0
pop edi
mov eax, 1
pop esi
add esp, 8
ret
pop edi
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x413df0
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x422ef8
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
push edi
push str.CRsLoadCloud::DownLoadCldRsdDll...
push 0x80
call fcn.004062b0
mov edi, dword [esp + 0x8c]
add esp, 8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x413e37
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
call fcn.00410910
mov ebp, dword [esp + 0x80]
xor ebx, ebx
push ebx
push ebx
push edi
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x88], ebx
call fcn.00411730
mov esi, eax
cmp esi, 0xffffffff
jne 0x413ea5
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push edi
push ebp
lea ecx, [esp + 0x20]
call fcn.00411730
mov esi, eax
cmp esi, 0xffffffff
jne 0x413ea5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.CRsLoadCloud::DownLoadCldRsdDll..._faild_hre___d__lasterror___d
push 0x80
call fcn.004062b0
add esp, 0x10
inc ebx
cmp ebx, 3
jl 0x413e64
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x413eed
push str.CRsLoadCloud::DownLoadCldRsdDll..._success.
push 0x80
call fcn.004062b0
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x78], 0xffffffff
call fcn.00410420
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.CRsLoadCloud::DownLoadCldRsdDll..._faild_hre___d__lasterror___d
push 0x80
call fcn.004062b0
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x78], 0xffffffff
call fcn.00410420
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 8
Function at 0x414310
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push 1
xor esi, esi
push esi
push str.CLSIDCAA2D3B2_4BB5_4a45_A17A_122773379D99
push SysReAllocString
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x414379
mov edx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
push eax
push eax
push eax
push eax
push edx
mov dword [esp + 0x24], eax
call edi
test eax, eax
jne 0x414378
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x18], eax
mov esi, eax
jb 0x414378
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
push 0
push 0
push 0
push edx
call edi
pop edi
mov eax, dword [esp + 4]
test eax, eax
je 0x414388
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x414e00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x42b48c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, ebp
push esi
push edi
mov dword [esp + 0x26c], eax
mov esi, ecx
xor eax, eax
mov ecx, 0x26
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x9c
call ebx
test eax, eax
je 0x414e67
movzx ecx, word [esp + 0xa4]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
jmp 0x414eb1
xor eax, eax
lea edx, [esp + 0xb0]
mov ecx, 0x24
lea edi, [esp + 0xb4]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0xb4], 0x94
call ebx
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
xor eax, eax
push str.RtlGetVersion
mov ecx, 0x46
lea edi, [esp + 0x150]
rep stosd dword es:[edi], eax
push str.ntdll.dll
mov dword [esp + 0x150], 0x11c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x414f0b
lea ecx, [esp + 0x148]
push ecx
call eax
test eax, eax
jne 0x414f0b
mov edx, dword [esp + 0x14c]
mov eax, dword [esp + 0x150]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
mov ecx, 1
cmp eax, ecx
jne 0x414f1a
mov dword [esi + 0x14], ecx
cmp eax, 2
jne 0x414f28
cmp dword [esi + 0xc], 4
jne 0x414f28
mov dword [esi + 0x18], ecx
mov eax, dword [esi + 0xc]
cmp eax, 6
jne 0x414f59
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x414f3c
mov dword [esi + 0x1c], ecx
jmp 0x414f61
cmp eax, ecx
jne 0x414f45
mov dword [esi + 0x20], ecx
jmp 0x414f61
cmp eax, 2
jne 0x414f4f
mov dword [esi + 0x24], ecx
jmp 0x414f61
cmp eax, 3
jne 0x414f61
mov dword [esi + 0x28], ecx
jmp 0x414f61
cmp eax, 0xa
jne 0x414f61
mov dword [esi + 0x2c], ecx
push str.IsWow64Process
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
mov edi, eax
test edi, edi
je 0x414f87
add esi, 0x30
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415d1a
mov esp, ebp
pop ebp
ret
Function at 0x415000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x422fd1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov eax, dword [0x42b48c]
xor eax, esp
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], eax
call fcn.004145b0
mov eax, dword [0x42c534]
mov ecx, 0x42c534
mov dword [esp + 0x140], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov edx, dword [0x42c534]
mov ecx, 0x42c534
mov byte [esp + 0x140], 1
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xc]
push eax
lea ecx, [esp + 0x10]
push 0x4249f4
push ecx
mov byte [esp + 0x14c], 2
call fcn.00408960
mov edx, dword [esi + 0x10]
push edx
lea eax, [esp + 0x20]
push 0x4249f4
push eax
call fcn.00408960
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
add esp, 0x18
push esi
push edi
push 0x424a04
push 0x424a04
push 0x424a04
push 0x424a04
push str.IsWin10OS
lea ecx, [esp + 0x30]
call fcn.00414da0
mov ebp, eax
lea eax, [esi - 0x10]
mov byte [esp + 0x140], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4150f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x140], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415116
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x14]
mov dword [esp + 0x140], 0xffffffff
call fcn.00414670
mov ecx, dword [esp + 0x138]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x12c]
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.00415d1a
add esp, 0x138
ret

Function at 0x417244
Capabilities:
Terminate process

Disassembly:
push 8
push 0x426948
call fcn.00417ba0
push 8
call fcn.00417fd3
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42c59c], esi
jne 0x417278
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x42c598], esi
mov al, byte [ebp + 0x10]
mov byte [0x42c594], al
cmp dword [ebp + 0xc], edi
jne 0x4172c2
cmp dword [0x42df14], edi
je 0x4172b2
mov eax, dword [0x42df10]
sub eax, 4
mov dword [0x42df10], eax
cmp eax, dword [0x42df14]
jb 0x4172b2
mov eax, dword [eax]
cmp eax, edi
je 0x417293
call eax
jmp 0x417293
push 0x42b04c
mov eax, 0x42b044
call fcn.004171c2
pop ecx
push 0x42b058
mov eax, 0x42b050
call fcn.004171c2
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.004172f3
cmp dword [ebp + 0x10], edi
jne 0x417301
mov dword [0x42c59c], esi
push dword [ebp + 8]
call fcn.00417180
xor edi, edi
xor esi, esi
inc esi
call fcn.00417bdb
ret
Function at 0x417347
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00416c70
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4173e2
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x42c55c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4173e2
cmp eax, 1
je 0x417403
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4173e2
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4173af
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4173de
xor eax, eax
inc eax
jmp 0x417422
cmp edi, eax
jae 0x4173e6
xor eax, eax
jmp 0x417422
cmp eax, esi
jae 0x4173ed
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42c55c]
jmp 0x417406
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x417773
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x417793
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041d4f7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4177b6
test byte [esp + 8], 2
je 0x4177b6
call fcn.0041d4e5
mov dword [eax], 0xd
call fcn.0041d4ee
mov dword [eax], 5
jmp 0x41778f
xor eax, eax
ret
Function at 0x41795f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x426958
call fcn.00417ba0
mov edi, 0x94
mov eax, edi
call fcn.00416c70
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x42c55c], ecx
mov eax, dword [esi + 4]
mov dword [0x42c568], eax
mov edx, dword [esi + 8]
mov dword [0x42c56c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42c560], esi
cmp ecx, 2
je 0x4179bf
or esi, 0x8000
mov dword [0x42c560], esi
shl eax, 8
add eax, edx
mov dword [0x42c564], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4179fa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4179fa
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x417a12
cmp eax, 0x20b
je 0x4179ff
mov dword [ebp - 0x1c], esi
jmp 0x417a26
cmp dword [ecx + 0x84], 0xe
jbe 0x4179fa
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x417a20
cmp dword [ecx + 0x74], 0xe
jbe 0x4179fa
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00417e2f
pop ecx
test eax, eax
jne 0x417a3a
push 0x1c
call fcn.0041793b
pop ecx
call fcn.0041a32c
test eax, eax
jne 0x417a4b
push 0x10
call fcn.0041793b
pop ecx
call fcn.0041d104
mov dword [ebp - 4], esi
call fcn.0041e15b
test eax, eax
jge 0x417a64
push 0x1b
call fcn.00417916
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42df08], eax
call fcn.0041e039
mov dword [0x42c5ac], eax
call fcn.0041df97
test eax, eax
jge 0x417a8a
push 8
call fcn.00417916
pop ecx
call fcn.0041dd64
test eax, eax
jge 0x417a9b
push 9
call fcn.00417916
pop ecx
push 1
call fcn.004171da
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x417ab1
push eax
call fcn.00417916
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041dd07
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x417ad2
movzx eax, word [ebp - 0x40]
jmp 0x417ad5
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004088c0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x417af3
push edi
call fcn.00417307
call fcn.00417329
jmp 0x417b25
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00417bdb
ret
Function at 0x417bec
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x417c1a
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x417c21
cmp ebx, dword [eax + 4]
jae 0x417c21
xor eax, eax
jmp 0x417e11
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x417c32
xor eax, eax
inc eax
jmp 0x417e10
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x417c48
cmp ecx, edx
jae 0x417d8d
cmp dword [eax + 4], 0
je 0x417c51
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x417c39
cmp dword [ebp + 8], 0
je 0x417c73
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x417d8d
cmp eax, esi
jae 0x417d8d
mov eax, dword [0x42c5b8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x417c98
cmp dword [esi*4 + 0x42c5c0], edi
je 0x417d91
inc esi
cmp esi, eax
jl 0x417c86
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417e0d
cmp dword [ebp - 8], 0x1000000
jne 0x417e0d
test byte [ebp - 0xc], 0xcc
je 0x417d16
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x417e0d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x417e0d
cmp word [eax + 0x18], 0x10b
jne 0x417e0d
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x417e0d
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x417d16
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x417d16
test byte [ecx + 0x27], 0x80
jne 0x417d8d
push 1
push 0x42c600
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x417c2a
mov ecx, dword [0x42c5b8]
test ecx, ecx
mov edx, ecx
jle 0x417d4a
lea eax, [ecx*4 + 0x42c5bc]
cmp dword [eax], edi
je 0x417d4a
dec edx
sub eax, 4
test edx, edx
jg 0x417d3e
test edx, edx
jne 0x417d7b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x417d57
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x417d6f
lea eax, [edx*4 + 0x42c5c0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x417d5d
cmp ecx, 0x10
jge 0x417d7b
inc ecx
mov dword [0x42c5b8], ecx
push 0
push 0x42c600
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x417c2a
xor eax, eax
jmp 0x417e10
test esi, esi
jle 0x417c2a
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42c600
call ebx
test eax, eax
jne 0x417c2a
cmp dword [esi*4 + 0x42c5c0], edi
je 0x417de7
mov eax, dword [0x42c5b8]
lea esi, [eax - 1]
test esi, esi
jl 0x417dd5
cmp dword [esi*4 + 0x42c5c0], edi
je 0x417dd1
dec esi
jns 0x417dc5
test esi, esi
jge 0x417de5
cmp eax, 0x10
jge 0x417de0
inc eax
mov dword [0x42c5b8], eax
lea esi, [eax - 1]
jmp 0x417de7
je 0x417dff
xor ecx, ecx
test esi, esi
jl 0x417dff
lea eax, [ecx*4 + 0x42c5c0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x417ded
push 0
push 0x42c600
call ebx
jmp 0x417c2a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret