joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441e54
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x441e6b
add esp, 0xfffffff0
call fcn.004031f0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004127d8
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40c6c4]
call fcn.00402ed4
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x40c6c4]
call fcn.00402ed4
mov dword [ebx + 0x90], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x44], 0x80000018
mov dword [ebx + 0x60], 0x1f4
mov byte [ebx + 0x64], 1
xor eax, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x85], 1
mov dl, 1
mov eax, dword [0x414564]
call fcn.0041bafc
mov esi, eax
mov dword [ebx + 0x80], esi
push 0x441fdc
mov eax, dword [0x45e6d4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041bea0
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x4438e8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45e6d4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040a280
test eax, eax
je 0x441f5b
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004084c8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040a2a8
test eax, eax
je 0x441f6f
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x74]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403cd0
mov eax, dword [0x45e5b0]
cmp byte [eax], 0
jne 0x441fa0
mov eax, ebx
call fcn.004420c8
mov byte [ebx + 0x41], 1
mov byte [ebx + 0x42], 1
mov byte [ebx + 0x43], 1
mov byte [ebx + 0x86], 1
xor eax, eax
mov dword [ebx + 0x88], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x441fd2
call fcn.00403248
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x442324
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45f7a8]
cmp dword [eax + 0x24], 0
je 0x4423b4
cmp dword [ebx + 0x7c], 0
jne 0x4423b1
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4422b8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x4423b1
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x442380
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4423b1
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x78]
call fcn.0040dce8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44238c
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x442d04
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x442d39
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403b88
jmp 0x442d43
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.00403b3c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x443c18
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x443c50
mov eax, esi
call fcn.0042d4d0
test al, al
je 0x443c50
mov eax, dword [ebx + 0x6c]
call fcn.0042d0a8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x443c50
push 0
mov eax, dword [ebx + 0x6c]
call fcn.0042d0a8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4489c4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x448b1e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x448afe
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00403c48
lea eax, [ebp - 0x118]
mov edx, 0x448b34
call fcn.00403d28
mov eax, dword [ebp - 0x118]
call fcn.00403ee4
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x448a70
lea eax, [ebp - 0x111]
call fcn.00408460
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00403b88
jmp 0x448a77
mov eax, esi
call fcn.00403aa4
cmp bl, 0x61
jae 0x448a98
lea edx, [ebp - 0x118]
mov eax, dword [esi]
call fcn.0040a154
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00403b3c
jmp 0x448ab2
lea edx, [ebp - 0x118]
mov eax, dword [esi]
call fcn.0040a0c8
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00403b3c
lea eax, [ebp - 0x118]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x11c], 0xb
lea edx, [ebp - 0x120]
xor ecx, ecx
mov eax, 0x448b40
call fcn.00408bbc
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00403b3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x448b05
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403ee4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x44bdc1
test al, 0x10
jne 0x44bdc5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x44ddd0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ed4
xor eax, eax
push ebp
push 0x44de34
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.0044de40
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.00408674
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44de3b
lea eax, [ebp - 4]
call fcn.00403aa4
ret

Function at 0x44e374
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403ed4
xor eax, eax
push ebp
push 0x44e466
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov ax, word [esi + 8]
mov word [ebx + 8], ax
mov ax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.0044db74
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
mov ax, word [esi + 0x20]
mov word [ebx + 0x22], ax
mov ax, word [esi + 0x22]
mov word [ebx + 0x24], ax
mov ax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004082a8
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0044e8e4
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00408184
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0044e958
xor eax, eax
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x40], 0
mov byte [ebx + 0x42], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e46d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403ac8
ret
Function at 0x44e474
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403ed4
xor eax, eax
push ebp
push 0x44e576
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.0044db74
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
cmp dword [ebp - 4], 0
je 0x44e53c
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004082a8
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0044e8e4
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00408184
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0044e958
jmp 0x44e54e
xor edx, edx
mov eax, ebx
call fcn.0044e8e4
xor edx, edx
mov eax, ebx
call fcn.0044e958
xor eax, eax
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x40], 0
mov byte [ebx + 0x42], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e57d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403ac8
ret

Function at 0x454498
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x15c]
mov edx, ebx
mov eax, edi
call fcn.004546bc
mov esi, eax
mov dword [edi + 0x15c], esi
and esi, 0xff
add dword [edi + 0x160], esi
imul esi, dword [edi + 0x160], 0x8088405
inc esi
mov dword [edi + 0x160], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x164]
mov eax, edi
call fcn.004546bc
mov dword [edi + 0x164], eax
pop edi
pop esi
pop ebx
ret

Function at 0x45450c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x454531
inc esi
mov eax, edi
call fcn.004544f0
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.00454498
inc ebx
dec esi
jne 0x45451b
pop edi
pop esi
pop ebx
ret
Function at 0x4545c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00403ed4
xor eax, eax
push ebp
push 0x454635
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00454538
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.004544f0
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.00454498
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x454600
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45463c
lea eax, [ebp - 4]
call fcn.00403aa4
ret

Function at 0x455114
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
cmp ebx, 0xffffffff
jle 0x455258
mov eax, dword [ebp - 4]
call fcn.00456754
cmp ebx, eax
jge 0x455258
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
mov edx, ebx
call fcn.0044c574
mov edx, dword [0x44de84]
call fcn.00403094
mov esi, eax
mov eax, esi
call fcn.0044e878
test al, al
je 0x45524e
mov edi, dword [esi + 0x3c]
test edi, edi
jne 0x455242
xor eax, eax
push ebp
push 0x45523b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00455614
mov edx, dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf8]
xor ecx, ecx
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0x37]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf8]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 4]
movzx edx, word [ebp - 0x1b]
movzx eax, word [ebp - 0x19]
add edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf8]
mov cx, 1
mov esi, dword [eax]
call dword [esi + 0xc]
movzx esi, word [ebp - 0x17]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00403ff4
mov eax, dword [ebp - 8]
call fcn.00403ef0
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf8]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
mov al, byte [eax + 0x24]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004553f8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
mov dl, byte [ebp - 9]
mov byte [eax + 0x24], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45527b
mov eax, dword [ebp - 4]
call fcn.00455698
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.00408674
jmp 0x45527b
mov eax, dword [ebp - 8]
call fcn.00403aa4
jmp 0x45527b
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x3c], 0
lea eax, [ebp - 0x40]
push eax
push 0
mov ecx, 0x45528c
mov dl, 1
mov eax, dword [0x40c49c]
call fcn.00409710
call fcn.0040359c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x456ecb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00403ee4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x456ea5
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x45e9c4]
call fcn.0040515c
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x4569b0]
call fcn.00409710
call fcn.0040359c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00456af8
mov edx, dword [ebp + 8]
mov byte [edx], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456ed2
lea eax, [ebp - 0x10]
call fcn.00403aa4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403ee4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4571a1
test al, 0x10
jne 0x4571a5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x458498
Capabilities:
Inspect section memory permissions

Disassembly:
push ebx
push ecx
mov byte [esp], al
xor ebx, ebx
mov al, byte [0x458500]
cmp al, byte [esp]
jne 0x4584b0
mov ebx, 0x10000000
jmp 0x4584f8
test byte [esp], 1
je 0x4584bc
or ebx, 0x80000000
test byte [esp], 2
je 0x4584c8
or ebx, 0x40000000
test byte [esp], 4
je 0x4584d4
or ebx, 0x20000000
test byte [esp], 8
je 0x4584e0
or ebx, 0x10000
test byte [esp], 0x10
je 0x4584ec
or ebx, 0x40000
test byte [esp], 0x20
je 0x4584f8
or ebx, 0x80000
mov eax, ebx
pop edx
pop ebx
ret
Function at 0x458637
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffab4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x54c], edx
mov esi, eax
xor eax, eax
push ebp
push 0x45872d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 8
mov eax, dword [esi + 0x24]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x458700
inc edi
mov dword [ebp - 4], 0
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x24]
call fcn.0040dce8
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x444]
mov edx, 0x10
call fcn.00406998
lea eax, [ebp - 0x545]
mov edx, 0x101
call fcn.00406998
lea eax, [ebp - 0x434]
mov edx, 0x10
call fcn.00406998
lea eax, [ebp - 0x545]
mov edx, dword [ebx]
call fcn.00408550
lea eax, [ebp - 0x444]
mov edx, dword [esi + 0x3c]
call fcn.00408550
xor eax, eax
mov al, byte [ebx + 8]
cmp eax, 8
ja case.0x4585c6.0
jmp dword [eax*4 + 0x4585cd]
mov dword [ebp - 0xc], 1
jmp case.0x4585c6.0
mov dword [ebp - 0xc], 2
jmp case.0x4585c6.0
mov dword [ebp - 0xc], 3
jmp case.0x4585c6.0
mov dword [ebp - 0xc], 4
jmp case.0x4585c6.0
mov dword [ebp - 0xc], 5
jmp case.0x4585c6.0
mov dword [ebp - 0xc], 6
jmp case.0x4585c6.0
mov dword [ebp - 0xc], 7
jmp case.0x4585c6.0
mov dword [ebp - 0xc], 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x545]
push eax
lea eax, [ebp - 0x444]
push eax
call sub.advapi32.dll_LookupAccountNameA
test eax, eax
jne 0x4586af
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
je 0x4586af
push 0
push 0x400
lea edx, [ebp - 0x424]
push edx
push 0
push eax
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
lea eax, [ebp - 0x54c]
lea edx, [ebp - 0x424]
mov ecx, 0x400
call fcn.00403cd0
mov edx, dword [ebp - 0x54c]
mov eax, esi
call fcn.004571ac
cmp byte [esi + 0x2d], 0
je 0x4586dd
mov al, byte [0x458740]
cmp al, byte [ebx + 0xa]
je 0x4586c8
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x10], eax
mov al, byte [0x458740]
cmp al, byte [ebx + 9]
je 0x4586f6
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x10], eax
jmp 0x4586f6
cmp byte [esi + 0x2c], 0
je 0x4586f6
mov al, byte [0x458740]
cmp al, byte [ebx + 9]
je 0x4586f6
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x10], eax
inc dword [ebp - 4]
dec edi
jne 0x45855f
mov ebx, dword [ebp - 0x14]
shl ebx, 3
add ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
shl eax, 3
add ebx, eax
add ebx, dword [ebp - 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458734
lea eax, [ebp - 0x54c]
call fcn.00403aa4
ret
Function at 0x45a280
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd94
push ebx
xor ebx, ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, dword [ebp - 8]
call fcn.00403ed4
xor eax, eax
push ebp
push 0x45a3a5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00402c08
mov dword [ebp - 0x50], 0x44
mov ax, word [ebp + 8]
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x260]
mov edx, dword [ebp - 8]
call fcn.00408550
push eax
lea eax, [ebp - 0x160]
mov edx, ebx
call fcn.00408550
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x45a355
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x268], eax
mov byte [ebp - 0x264], 0
lea eax, [ebp - 0x268]
push eax
push 0
push 0x45a3c0
push ebx
push 0x45a3e4
lea eax, [ebp - 0x26c]
mov edx, 3
call fcn.00403de0
mov ecx, dword [ebp - 0x26c]
mov dl, 1
mov eax, dword [0x406eb8]
call fcn.00409710
call fcn.0040359c
mov ebx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp byte [ebp - 1], 0
je 0x45a37e
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0xffffffff
je 0x45a37e
lea eax, [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_GetExitCodeProcess
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a3ac
lea eax, [ebp - 0x26c]
call fcn.00403aa4
lea eax, [ebp - 8]
call fcn.00403aa4
ret

Function at 0x45a54c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ed4
xor eax, eax
push ebp
push 0x45a62b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00403aa4
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00403b3c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00403ee4
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x45a610
mov eax, dword [ebp - 0xc]
call fcn.00407994
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x45a609
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x45a638
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45a5f0
mov eax, ebx
mov edx, dword [ebp - 0x18]
call fcn.00403c58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a610
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.004026cc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a632
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403ac8
ret