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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x484db8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
je 0x428536
push 0
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x408]
cmp ecx, 2
jb 0x42851d
movzx eax, byte [ebp - 0x404]
cmp eax, 0xffffffff
jne 0x42851d
movzx eax, byte [ebp - 0x403]
cmp eax, 0xfffffffe
jne 0x42851d
inc bl
jmp 0x428536
xor eax, eax
test ecx, ecx
je 0x428536
test bl, bl
jne 0x428536
cmp byte [ebp + eax - 0x404], bl
sete bl
inc eax
cmp eax, ecx
jb 0x428523
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043e056
leave
ret 4

Function at 0x428e1b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x484db8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x428f21
cmp byte [ebp + 0xc], 0
jne 0x428ecf
lea eax, [edi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x428f21
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x428f12
call fcn.0043ea60
lea edi, [eax + 1]
pop ecx
cmp edi, 0x3fffffff
jle 0x428e9e
xor eax, eax
jmp 0x428eb2
lea eax, [edi + edi]
call fcn.004413c0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.004254d6
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0042b14f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x428f23
lea eax, [edi + 3]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x428f21
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x428f11
mov ecx, 0xfeff
mov eax, esi
cmp word [esi], cx
jne 0x428eb2
lea eax, [esi + 2]
jmp 0x428eb2
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e056
leave
ret 0xc
Function at 0x42db4e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [ebp + 8], 0
je 0x42db6c
mov ecx, esi
call fcn.0042d99c
pop esi
pop ebp
ret 4

Function at 0x42e4a7
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x484db8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
lea edi, [eax + 4]
mov dword [ebp - 0x9c], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
cmp byte [eax + 0x13], 0
je 0x42e630
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x42e62f
cmp dword [0x4866bc], esi
je 0x42e62f
mov eax, dword [0x4866c4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4866bc], esi
test al, 1
jne 0x42e515
or eax, 1
mov dword [0x4866c4], eax
call ebx
mov dword [0x4866c0], eax
call ebx
mov ecx, eax
sub ecx, dword [0x4866c0]
cmp byte [0x48454b], 0
mov dword [0x4866c0], eax
jne 0x42e536
cmp ecx, 0x64
jb 0x42e62e
push 0xa
pop eax
push 0x14
pop ecx
cmp esi, 0x100000
cmovg eax, ecx
imul esi, esi, 0xa
movzx eax, ax
mov cl, al
mov dword [ebp - 0xa0], eax
push 0
lea eax, [ebp - 0x95]
sar esi, cl
push eax
lea ecx, [ebp - 0x34]
mov byte [0x48454b], 0
mov dword [ebp - 0x34], 0x47602c
mov dword [ebp - 0xc], 0x46c7e0
call fcn.004033a0
lea eax, [ebp - 0x64]
push 0x758
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
mov ecx, eax
call fcn.0040a353
lea ebx, [eax + 4]
cmp dword [ebx + 0x14], 8
jb 0x42e59d
mov ebx, dword [ebx]
push 0x14
xor eax, eax
pop ecx
cmp word [ebp - 0xa0], cx
mov ecx, edi
setne al
add eax, 0x652
push eax
lea eax, [ebp - 0x94]
push eax
mov eax, dword [edi]
call dword [eax + 0x2c]
mov ecx, eax
call fcn.0040a353
lea ecx, [eax + 4]
cmp dword [ecx + 0x14], 8
jb 0x42e5d2
mov ecx, dword [ecx]
push 0xa
mov eax, esi
pop esi
xor edx, edx
div esi
push ebx
push ecx
push edx
push eax
lea eax, [ebp - 0x34]
push str._01d._01d__s_s
push eax
call fcn.0040acff
add esp, 0x18
lea ecx, [ebp - 0x94]
call fcn.00401500
lea ecx, [ebp - 0x64]
call fcn.00401500
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x9c]
push 0x134
push dword [eax + 0x26c]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
lea ecx, [ebp - 0x34]
call fcn.00401500
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.0043e056
leave
ret 8

Function at 0x42ee89
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42eea4
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x430ddc
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4663f7
call fcn.0043f429
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
push 0
inc ebx
cmp eax, 0xffffffff
lea ecx, [ebp - 0x94]
push ecx
cmove eax, ebx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x430e54
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47602c
mov dword [ebp - 0x18], 0x46c7e0
call fcn.004064e5
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00412858
push 0x47b370
lea eax, [ebp - 0x90]
push eax
call fcn.0043e065
mov eax, dword [ebp - 0x94]
call fcn.0043f3d8
ret 8

Function at 0x430e62
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4663f7
call fcn.0043f429
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 4
pop ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
lea ecx, [ebp - 0x94]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x430edb
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47602c
mov dword [ebp - 0x18], 0x46c7e0
call fcn.004064e5
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00412858
push 0x47b370
lea eax, [ebp - 0x90]
push eax
call fcn.0043e065
mov eax, dword [ebp - 0x94]
call fcn.0043f3d8
ret 8

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

Disassembly:
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x4318ad
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret
Function at 0x431a81
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x148
mov eax, 0x4665de
call fcn.0043f429
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov dword [ebp - 0x154], ebx
mov byte [ebp - 0x114], bl
call fcn.0043e0c0
add esp, 0xc
mov dword [ebp - 0x14c], ebx
lea eax, [ebp - 0x14c]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x431b70
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
mov ecx, str.ProgramFilesDir
push ebx
mov eax, str.CommonFilesDir
cmp edi, 1
cmovne eax, ecx
push eax
push dword [ebp - 0x14c]
mov dword [ebp - 0x150], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
lea eax, [ebp - 0x145]
push eax
lea eax, [ebp - 0x114]
mov edi, 0x47602c
mov ebx, 0x46c7e0
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x11c], ebx
call fcn.00411d21
push 0x46a798
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 1
call fcn.00408b13
lea ecx, [ebp - 0x144]
call fcn.00431e27
lea eax, [ebp - 0x144]
jmp 0x431bb5
push 0
lea eax, [ebp - 0x145]
push eax
lea eax, [ebp - 0x114]
mov edi, 0x47602c
mov ebx, 0x46c7e0
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x11c], ebx
call fcn.00411d21
push 0x46a798
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 2
call fcn.00408b13
push 0
push eax
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 0x28], ebx
call fcn.004064e5
lea ecx, [ebp - 0x144]
call fcn.00401500
lea ecx, [ebp - 0x14c]
call fcn.0042b252
mov eax, esi
call fcn.0043f3d8
ret
Function at 0x43265f
Capabilities:
Get common file path

Disassembly:
push 0x78
mov eax, 0x466751
call fcn.0043f429
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x71]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x70], 0x47602c
mov dword [ebp - 0x48], 0x46c7e0
call fcn.004033a0
mov edi, 0x104
lea eax, [ebp - 0x80]
push edi
lea ecx, [ebp - 0x70]
push eax
mov dword [ebp - 4], ebx
call fcn.0040768d
cmp dword [ebp + 0xc], 1
jne 0x432717
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.00407632
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.00406b57
inc bl
je 0x4326f0
lea ecx, [ebp - 0x2c]
call fcn.00408a9f
push 0x478ac4
lea eax, [ebp - 0x2c]
push eax
call fcn.0043e065
push 0
lea eax, [ebp - 0x71]
push eax
push str.sysnative
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47602c
mov dword [ebp - 0x18], 0x46c7e0
call fcn.004065d0
mov byte [ebp - 4], 2
jmp 0x432770
cmp dword [ebp + 0xc], 2
jne 0x43278a
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.00407632
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.00406b57
inc bl
jne 0x4326da
push 0
lea eax, [ebp - 0x71]
push eax
push str.syswow64
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47602c
mov dword [ebp - 0x18], 0x46c7e0
call fcn.004065d0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.00432a47
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401500
jmp 0x4327bc
mov ecx, dword [eax]
mov byte [ebp - 4], 5
mov byte [eax + 4], 1
call fcn.00407632
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.00406b57
inc bl
jne 0x4326da
push 0x46a798
lea ecx, [ebp - 0x70]
call fcn.00425122
push 0
push eax
mov ecx, esi
mov dword [esi], 0x47602c
mov dword [esi + 0x28], 0x46c7e0
call fcn.004064e5
lea ecx, [ebp - 0x70]
call fcn.00401500
mov eax, esi
call fcn.0043f3d8
ret
Function at 0x432ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x432b35
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x432b2e
mov ecx, dword [edi]
test ecx, ecx
je 0x432b29
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x432b1f
cmp edx, 2
jbe 0x432b11
cmp edx, 7
jne 0x432b1f
test cl, 1
jne 0x432b1f
shr ecx, 1
cmp ecx, 1
jb 0x432b1f
cmp word [esi + ecx*2 - 2], bx
jne 0x432b1f
cmp ecx, 1
jbe 0x432b2e
cmp word [esi + ecx*2 - 4], bx
jmp 0x432b1d
test cl, 1
jne 0x432b1f
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x432b2e
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x432b2e
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0x80004005
call fcn.004064cd
int3
Function at 0x4333d4
Capabilities:
Check if file exists

Disassembly:
push 0xc8
mov eax, 0x466892
call fcn.0043f429
xor ebx, ebx
test byte [ebp + 0x38], 0x10
mov dword [ebp - 4], ebx
je 0x433432
lea ecx, [ebp + 8]
call fcn.0041f87c
test al, al
je 0x433432
push dword [ebp + 0x38]
lea eax, [ebp + 8]
sub esp, 0x30
mov ecx, esp
push ebx
push eax
mov dword [ecx], 0x47602c
mov dword [ecx + 0x28], 0x46c7e0
call fcn.004064e5
call fcn.004335b7
add esp, 0x34
mov bl, al
lea ecx, [ebp + 8]
call fcn.00401500
mov al, bl
jmp 0x4335b1
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], 0x47602c
mov dword [ecx + 0x28], 0x46c7e0
call fcn.004064e5
call fcn.00433f18
add esp, 0x30
cmp eax, 0xffffffff
je 0x433473
test byte [ebp + 0x38], 4
je 0x433465
test al, 0x10
je 0x43346f
test byte [ebp + 0x38], 8
je 0x433423
test al, 0x10
je 0x433423
mov bl, 1
jmp 0x433423
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x4335a7
cmp esi, 3
je 0x4335a7
cmp esi, 5
jne 0x43355b
lea ecx, [ebp - 0xcc]
call fcn.004328a2
or dword [ebp - 0xd0], 0xffffffff
lea eax, [ebp - 0xcc]
push eax
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
mov dword [ecx], 0x47602c
mov dword [ecx + 0x28], 0x46c7e0
call fcn.004064e5
call fcn.00433e64
mov esi, eax
add esp, 0x34
cmp esi, 0xffffffff
je 0x433532
lea ecx, [ebp - 0xd0]
call fcn.0041e76a
test byte [ebp + 0x38], 4
mov dword [ebp - 0xd0], esi
je 0x4334fe
test byte [ebp - 0xcc], 0x10
je 0x43350d
test byte [ebp + 0x38], 8
je 0x43350f
test byte [ebp - 0xcc], 0x10
je 0x43350f
mov bl, 1
lea ecx, [ebp - 0xd0]
call fcn.0041e76a
lea ecx, [ebp - 0x70]
call fcn.00401500
lea ecx, [ebp - 0xa0]
call fcn.00401500
jmp 0x433423
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xd0]
mov esi, eax
call fcn.0041e76a
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.00401500
lea ecx, [ebp - 0xa0]
call fcn.00401500
test byte [ebp + 0x38], 0x20
je 0x433423
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47602c
mov dword [ebp - 0x18], 0x46c7e0
call fcn.004064e5
push 1
push esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.004128bc
push 0x47b370
lea eax, [ebp - 0x90]
push eax
call fcn.0043e065
lea ecx, [ebp + 8]
call fcn.00401500
xor al, al
call fcn.0043f3d8
ret
Function at 0x4348d5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x484db8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4712c4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43490b
push 0x4712e0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43490b
call eax
jmp 0x4349c0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str..DefaultControl_PaneldesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 0xa
call esi
test eax, eax
jne 0x434955
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x475ec0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4349a1
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push str..DEFAULTControl_PanelInternational
push SysReAllocStringLen
mov dword [ebp - 0x18], ebx
call esi
mov esi, eax
test esi, esi
jne 0x43498e
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push str.Locale
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.0042b252
test esi, esi
je 0x4349a1
mov esi, 0x409
jmp 0x4349b3
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00441bac
add esp, 0xc
movzx esi, ax
lea ecx, [ebp - 0x14]
call fcn.0042b252
mov ax, si
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e056
leave
ret
Function at 0x434dbc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x484db8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [eax], ebx
lea eax, [ebp - 0x118]
push eax
mov dword [esi], ebx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 1
jne 0x434e4e
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x434e41
cmp eax, 0xa
je 0x434e20
cmp eax, 0x5a
jne 0x434e13
mov bl, 1
mov dword [esi], 0x80
mov al, bl
jmp 0x434f06
call fcn.004353c1
test al, al
mov al, 1
je 0x434e36
mov dword [esi], 0x80
jmp 0x434f06
mov dword [esi], 0x40
jmp 0x434f06
mov dword [esi], 0x10
mov al, 1
jmp 0x434f06
cmp dword [ebp - 0x108], 2
jne 0x434f04
mov eax, dword [ebp - 0x114]
sub eax, 4
je 0x434ef9
dec eax
je 0x434ec4
dec eax
je 0x434e8b
sub eax, 4
jne 0x434e83
cmp dword [ebp - 0x110], ebx
jne 0x434f04
mov bl, 1
mov dword [esi], 0x10000000
jmp 0x434e19
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x434e9d
mov dword [esi], 0x1000000
jmp 0x434e47
cmp eax, 1
jne 0x434eaa
mov dword [esi], 0x2000000
jmp 0x434e47
cmp eax, 2
jne 0x434eb7
mov dword [esi], 0x4000000
jmp 0x434e47
cmp eax, 3
jne 0x434f04
mov dword [esi], 0x8000000
jmp 0x434e47
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x434ed9
mov dword [esi], 0x100000
jmp 0x434e47
cmp eax, 1
jne 0x434ee9
mov dword [esi], 0x400000
jmp 0x434e47
cmp eax, 2
jne 0x434f04
mov dword [esi], 0x800000
jmp 0x434e47
mov dword [esi], 0x10000
jmp 0x434e47
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e056
leave
ret

Function at 0x43589c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x38
mov eax, 0x465076
call fcn.0043f429
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push dword [eax]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push ecx
and esi, 0xf
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4358c8
mov al, 1
jmp 0x4358e4
xor ecx, ecx
movzx edx, word [eax]
add eax, 2
test dx, dx
je 0x4358dc
cmp ecx, esi
je 0x4358ea
lea eax, [eax + edx*2]
inc ecx
cmp ecx, 0x10
jl 0x4358ca
xor al, al
call fcn.0043f3d8
ret
push 1
lea ecx, [ebp - 0x41]
push ecx
push edx
push eax
lea ecx, [ebp - 0x40]
call fcn.004067f6
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00406bc5
lea ecx, [ebp - 0x40]
call fcn.00401500
jmp 0x4358c4
Function at 0x435c5b
Capabilities:
Enumerate process modules

Disassembly:
push 0x4a0
mov eax, 0x466e44
call fcn.0043f429
mov eax, dword [ebp + 8]
mov dword [ebp - 0x488], eax
lea eax, [ebp - 0x484]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
call sub.PSAPI.DLL_EnumProcesses
push str.NtQueryInformationProcess
push str.Ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x435db3
xor edi, edi
cmp dword [ebp - 0x484], edi
jbe 0x435db3
push dword [ebp + edi*4 - 0x410]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x480], esi
and dword [ebp - 4], 0
test esi, esi
je 0x435d97
push 0x18
lea eax, [ebp - 0x4a4]
push 0
push eax
call fcn.0043e0c0
add esp, 0xc
lea eax, [ebp - 0x48c]
push eax
push 0x18
lea eax, [ebp - 0x4a4]
push eax
push 0
push esi
call ebx
test eax, eax
js 0x435d97
cmp dword [ebp - 0x494], 0
je 0x435d97
lea ecx, [ebp - 0x444]
call fcn.00432911
mov eax, dword [ebp - 0x490]
push 0x475ec0
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x444], eax
call fcn.004050d0
mov eax, dword [ebp - 0x494]
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x478]
call fcn.004328e2
mov ecx, dword [ebp - 0x488]
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x4ac]
push eax
mov byte [ebp - 4], 2
call fcn.00435357
lea ecx, [ebp - 0x474]
call fcn.00401500
lea ecx, [ebp - 0x440]
call fcn.00401500
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x480]
call fcn.00403220
inc edi
cmp edi, dword [ebp - 0x484]
jb 0x435cba
call fcn.0043f3d8
ret

Function at 0x435db9
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x484db8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.004353b3
test al, al
je 0x435e28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x18]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x435e28
push esi
lea eax, [ebp - 0x20]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x20]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push esi
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0043e056
leave
ret

Function at 0x43996c
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret