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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4606b3
add esp, 0xfffffff0
call fcn.00403dfc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421334
mov eax, dword [0x5345f0]
cmp word [eax + 2], 0
jne 0x4606db
mov eax, dword [0x5345f0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00461d78
mov eax, dword [0x534718]
cmp word [eax + 2], 0
jne 0x4606f5
mov eax, dword [0x534718]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00461f70
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4163d0]
call fcn.00403a68
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4163d0]
call fcn.00403a68
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x423864]
call fcn.0042b7d8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46087c
mov eax, dword [0x534470]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042bba8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4624f0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x534470]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
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.0040dbb8
test eax, eax
je 0x4607ea
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040971c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040dbe0
test eax, eax
je 0x4607fe
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404b10
mov eax, dword [0x534298]
cmp byte [eax], 0
jne 0x460832
mov eax, ebx
call fcn.004609a4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004626cc
mov eax, ebx
call fcn.0046300c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x460872
call fcn.00403e54
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460c18
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x535c38]
cmp dword [eax + 0x30], 0
je 0x460cc2
cmp dword [ebx + 0x94], 0
jne 0x460cbc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x460ba8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x460cbc
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 0x460c82
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x460cbc
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418c74
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x460c91
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4617a0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4617d5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404998
jmp 0x4617e2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004048fc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4628a8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4628e9
mov eax, esi
call fcn.004484a4
test al, al
je 0x4628e9
mov eax, dword [ebx + 0x84]
call fcn.004481a0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4628e9
push 0
mov eax, dword [ebx + 0x84]
call fcn.004481a0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404d58
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne al
pop ebx
ret
Function at 0x46fcc0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46fd98
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x535cc8], 0
jne 0x46fd7c
lea eax, [ebp - 4]
mov edx, 0x46fdb0
call fcn.00404940
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404d58
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x46fd7c
mov eax, ebx
call fcn.004027a0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46fd75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x46fd5f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x46fdc0
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46fd5f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x535cc8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fd7c
mov eax, dword [ebp - 0xc]
call fcn.004027c0
ret
mov ebx, dword [0x535cc8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fd9f
lea eax, [ebp - 4]
call fcn.004048a8
ret
Function at 0x48ab44
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48ada4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x48aba7
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0048a65c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d72c
cmp al, 1
jne 0x48aba7
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0048a924
test al, al
je 0x48ad33
cmp dword [ebp - 8], 0
jge 0x48abc5
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0048a65c
mov eax, dword [ebp - 0x210]
call fcn.00404b60
cmp ebx, eax
jge 0x48ac0f
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0048a65c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x534944]
and eax, 0xff
bt dword [edx], eax
jae 0x48ac0f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x48ac23
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0048ab20
cmp ebx, dword [ebp - 8]
je 0x48ad25
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x48ac4f
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c94
and eax, 0x7f
movzx eax, word [eax*2 + 0x5330e4]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x48ad12
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c94
and eax, 0x7f
movzx eax, word [eax*2 + 0x5330e4]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.004481a0
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c94
and eax, 0x7f
movzx eax, word [eax*2 + 0x5330e4]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004481a0
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ad19
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x48ad86
cmp dword [ebp - 8], 0
jge 0x48ad3e
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0048a65c
mov eax, dword [ebp - 0x218]
call fcn.00404b60
cmp eax, dword [ebp - 8]
jg 0x48ad78
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0048a65c
mov eax, dword [ebp - 0x21c]
call fcn.00404b60
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0048ab20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48adab
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004048cc
ret
Function at 0x4bb014
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004bafdc
mov eax, dword [ebx]
call fcn.00404b60
mov edx, dword [ebx]
dec eax
test edx, edx
je 0x4bb051
cmp eax, dword [edx - 4]
jb 0x4bb056
call fcn.004039d8
inc eax
cmp byte [edx + eax - 1], 0x5c
je 0x4bb06a
mov eax, ebx
mov edx, 0x4bb078
call fcn.00404b68
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bb07c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004bafdc
mov eax, dword [ebx]
call fcn.00404b60
mov edx, dword [ebx]
dec eax
test edx, edx
je 0x4bb0b9
cmp eax, dword [edx - 4]
jb 0x4bb0be
call fcn.004039d8
inc eax
cmp byte [edx + eax - 1], 0x5c
je 0x4bb0d2
mov eax, ebx
mov edx, 0x4bb0e0
call fcn.00404b68
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bf5e4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4bf612
mov eax, ebx
call fcn.004c009c
cmp dword [ebx + 0x3c], 0
je 0x4bf60b
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4bf683
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4bf675
cmp dword [ebx + 8], 0
je 0x4bf634
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4bf646
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4bf675
cmp dword [ebx + 8], 0
je 0x4bf627
cmp eax, 3
je 0x4bf659
dec eax
jne 0x4bf627
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4bf627
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4bf627
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4bf6a1
cmp dword [ebx + 0x10], 0xcc
je 0x4bf6a1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004bf6ac
pop ebx
ret
Function at 0x4d4aec
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
add esp, 0xffffffe8
mov ebx, ecx
mov esi, edx
push dword [esi + 4]
push dword [esi]
lea eax, [esp + 0xe]
push eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0xe]
lea eax, [esp + 0xc]
call fcn.0040abdc
movzx eax, word [esp]
imul eax, eax, 0x3c
movzx edx, word [esp + 2]
add eax, edx
xor edx, edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
push edx
push eax
movsx eax, bl
cdq
push edx
push eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
call fcn.004059a8
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
movsx eax, bl
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
jne 0x4d4b86
cmp dword [esp + 8], 0
jae 0x4d4b98
jmp 0x4d4b88
jge 0x4d4b98
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
push 0
push 0x3c
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
call fcn.004059a8
mov word [esp + 2], ax
push 0
push 0x3c
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edx
push eax
movzx eax, word [esp + 0x12]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.004058e0
mov word [esp], ax
cmp word [esp], 0x17
jbe 0x4d4be9
mov word [esp], 0x17
mov word [esp + 2], 0x3b
push 0
xor ecx, ecx
mov dx, word [esp + 6]
mov ax, word [esp + 4]
call fcn.0040ab9c
fstp qword [esi]
wait
add esp, 0x18
pop esi
pop ebx
ret
Function at 0x4dc098
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x4dc0a7
add esp, 0xfffffff0
call fcn.00403dfc
mov ebx, edx
mov edi, eax
xor edx, edx
mov eax, edi
call fcn.00403a68
lea eax, [edi + 0x18]
push eax
push 0x202
call sub.Ws2_32.dll_WSAStartup
test eax, eax
jne 0x4dc0f1
mov dword [edi + 4], 0xffffffff
xor eax, eax
mov dword [edi + 0x1a8], eax
call sub.Ws2_32.dll_WSACreateEvent
mov esi, eax
mov dword [edi + 0x1a8], esi
test esi, esi
je 0x4dc0f1
mov word [edi + 8], 2
xor eax, eax
mov dword [edi + 0xc], eax
mov eax, edi
test bl, bl
je 0x4dc106
call fcn.00403e54
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x4dc144
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404d58
push eax
call sub.Ws2_32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.004030ec
test ebx, ebx
je 0x4dc18d
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov dl, byte [eax]
mov byte [esp + 4], dl
mov dl, byte [eax + 1]
mov byte [esp + 5], dl
mov dl, byte [eax + 2]
mov byte [esp + 6], dl
mov al, byte [eax + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x4fc39c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4fc405
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x534164]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x4fc3ef
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.004fc38c
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4fbb08]
call fcn.004fd198
mov dword [0x5341c8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fc40c
lea eax, [ebp - 8]
call fcn.00406770
ret

Function at 0x4fc4a4
Capabilities:
Get file system object information

Disassembly:
push esi
add esp, 0xfffffea0
mov esi, 0x4008
test cl, cl
je 0x4fc4b7
or esi, 2
test dl, dl
je 0x4fc4c0
or esi, 0
jmp 0x4fc4c3
or esi, 1
push esi
push 0x160
lea edx, [esp + 8]
push edx
push 0
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 4]
add esp, 0x160
pop esi
ret
Function at 0x4fd024
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404d48
xor eax, eax
push ebp
push 0x4fd17c
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
mov edx, dword [ebx]
mov eax, dword [0x4fb9b8]
call fcn.00414cd0
test eax, eax
jl 0x4fd08b
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.004fc488
and eax, 0x7f
mov eax, dword [eax*4 + 0x534164]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov esi, eax
jmp 0x4fd0ee
mov eax, dword [ebx]
call fcn.00404b60
test eax, eax
jle 0x4fd0ee
mov eax, dword [ebx]
call fcn.00404b60
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x3a
jne 0x4fd0b2
mov eax, ebx
mov edx, 0x4fd194
call fcn.00404b68
mov eax, dword [ebx]
call fcn.00404b60
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
call fcn.00405710
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0
push 0
lea eax, [ebp - 0x18]
call fcn.004fc38c
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je 0x4fd139
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [0x5342fc]
call fcn.00406c3c
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x24]
xor ecx, ecx
pop eax
call fcn.00409e54
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004048fc
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x40802c]
call fcn.0040ce60
call fcn.00404264
mov eax, dword [ebp - 8]
call fcn.004fcf9c
mov ebx, eax
test edi, edi
je 0x4fd14e
mov eax, edi
call fcn.00403a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fd183
lea eax, [ebp - 0x1c]
call fcn.004048a8
lea eax, [ebp - 0x18]
call fcn.00406770
lea eax, [ebp - 0x14]
call fcn.004048a8
lea eax, [ebp - 4]
call fcn.004048a8
ret
Function at 0x4fdc88
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
test dl, dl
je 0x4fdc9f
add esp, 0xfffffff0
call fcn.00403dfc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0047461c
xor eax, eax
mov dword [ebx + 0x340], eax
xor edx, edx
mov eax, ebx
call fcn.0047510c
mov al, byte [0x4fdd78]
mov byte [ebx + 0x344], al
mov byte [ebx + 0x244], 1
mov byte [ebx + 0x34d], 1
mov byte [ebx + 0x34e], 0
xor eax, eax
mov dword [ebx + 0x350], eax
xor eax, eax
mov dword [ebx + 0x354], eax
mov byte [ebx + 0x359], 0
mov byte [ebx + 0x35a], 1
push 0x4001
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push 0x4fdd7c
call sub.shell32.dll_SHGetFileInfoA
mov dword [ebx + 0x348], eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4fbd9c]
call fcn.004fd8bc
mov esi, eax
mov dword [ebx + 0x35c], esi
mov al, byte [esi + 0x24]
or al, byte [0x4fdd80]
mov byte [esi + 0x24], al
lea eax, [ebx + 0x338]
mov edx, 0x4fdd8c
call fcn.004048fc
mov byte [ebx + 0x34c], 0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4fdd6f
call fcn.00403e54
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fe2fc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fe466
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x53492c]
mov eax, dword [eax]
mov ax, word [eax + 0x44]
mov word [ebp - 0x16], ax
mov eax, dword [0x53492c]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0045fc60
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
call fcn.00473b98
xor edx, edx
push ebp
push 0x4fe449
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4fe3b9
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10]
call fcn.00406770
push eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x344]
call fcn.004fcaa0
push eax
mov eax, dword [0x5346e8]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
je 0x4fe3af
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404310
jmp 0x4fe450
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fe3f5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00473778
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004fe18c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x4fe3d1
push 0
mov edx, 0x4fe124
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.00473320
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe450
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
call fcn.00473be4
mov eax, dword [0x53492c]
mov eax, dword [eax]
mov dx, word [ebp - 0x16]
call fcn.0045fc60
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe46d
lea eax, [ebp - 0x10]
call fcn.00406770
ret
Function at 0x510068
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, ebx
call fcn.00404d58
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x51011a
xor eax, eax
push ebp
push 0x510113
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, 2
call fcn.00510000
push eax
xor eax, eax
call fcn.00510000
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x5100e0
mov eax, 2
call fcn.00510000
cmp eax, dword [ebp - 0xc]
je 0x5100e4
xor eax, eax
jmp 0x5100e6
mov al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x5100fc
mov eax, ebx
call fcn.00404d58
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51011a
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x510124
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x510275
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.00404ee4
push 0x104
lea eax, [ebp - 8]
call fcn.00404db0
mov edx, 1
dec edx
test eax, eax
je 0x510176
cmp edx, dword [eax - 4]
jb 0x51017b
call fcn.004039d8
inc edx
lea eax, [eax + edx - 1]
push eax
push 0x510288
call sub.kernel32.dll_GetEnvironmentVariableA
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404ee4
mov eax, dword [ebp - 8]
call fcn.00404b60
test eax, eax
jle 0x510257
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.004030ec
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x210
push 0
push 0
push 0
push dword [ebp - 8]
push 0x510298
push ebx
push 0x5102a8
push esi
lea eax, [ebp - 0x60]
mov edx, 5
call fcn.00404c20
mov eax, dword [ebp - 0x60]
call fcn.00404d58
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x510257
xor eax, eax
push ebp
push 0x510250
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
setne byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510257
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51027c
lea eax, [ebp - 0x60]
call fcn.004048a8
lea eax, [ebp - 8]
call fcn.004048a8
ret
Function at 0x5102ac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404d58
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x5102c9
and eax, 0x10
cmp eax, 0x10
je 0x5102cd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret