joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413e4b
Capabilities:
Create thread

Disassembly:
sub esp, 0x624
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x61c], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
push 0x33
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, eax
call fcn.00413dfa
movzx ebp, ax
xor eax, eax
push 0x104
mov word [esp + 0x11c], ax
lea eax, [esp + 0x11c]
push eax
push 0x37
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
cmp word [esp + 0x118], 0
jne 0x413eac
xor al, al
jmp 0x413fda
cmp byte [esi + 0x311], 0
je 0x413f43
lea eax, [esp + 0x118]
push eax
call fcn.0041fe91
pop ecx
test al, al
je 0x413f43
mov ecx, dword [0x52aa50]
lea eax, [esp + 0x18]
mov ebx, 0x80
push ebx
push eax
push 0x3a
call fcn.0042126e
test eax, eax
jne 0x413f06
movzx edx, word [0x51fc40]
lea eax, [esp + 0x18]
push ebx
push eax
xor edx, 0x9191
mov ecx, 0x51fc42
call fcn.00412903
pop ecx
pop ecx
lea eax, [esp + 0x118]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x328]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x320]
push 0x34
push 0x4ef5ec
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x413ea5
mov ecx, esi
call fcn.004139ef
lea eax, [esp + 0x118]
push eax
lea ebx, [esi + 0x102]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
and dword [esi + 0x344], 0
push 5
push edi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
dec eax
mov ecx, esi
neg eax
push edi
sbb al, al
inc al
push ebp
mov byte [esi + 0x312], al
call fcn.00412abe
test al, al
je 0x413ea5
mov ecx, dword [0x52aa58]
movzx eax, byte [esi + 0x312]
shl eax, 0xa
push ebx
xor eax, dword [ecx + 0x14]
and eax, 0x400
xor dword [ecx + 0x14], eax
call fcn.0040eb77
mov ecx, dword [0x52aa58]
call fcn.0040db96
lea eax, [esp + 0x14]
push eax
xor eax, eax
push eax
push esi
push 0x4130e6
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x568], eax
setne al
mov ecx, dword [esp + 0x62c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b9a6c
add esp, 0x624
ret

Function at 0x413ff3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x518450]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [ecx]
push ebx
push esi
push edi
push 0x3a
mov word [ebp - 0xc], ax
lea esi, [ecx + 2]
pop eax
push 0x5c
mov word [ebp - 0xa], ax
xor ebx, ebx
pop eax
push ebx
push ebx
mov word [ebp - 8], ax
xor eax, eax
push ebx
push ebx
mov word [ebp - 6], ax
mov word [esi], ax
lea eax, [ebp - 0x10]
push eax
push 0x80
push esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edi, eax
test edi, edi
je 0x414072
cmp word [esi], bx
jne 0x414072
push 0x483e95df
mov edx, 0x5f2ccdae
mov ecx, 0x7c98c75
call fcn.004018b4
pop ecx
sub esi, eax
movzx ecx, word [eax]
mov word [esi + eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x414063
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b9a6c
mov esp, ebp
pop ebp
ret
Function at 0x4155e5
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x434
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, ecx
push edi
push 0x32
push ebx
mov dword [esp + 0x28], ebx
call esi
push 0x33
push ebx
mov ebp, eax
call esi
mov esi, eax
call fcn.0040abfb
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0x1303
push ebp
call edi
and dword [esp + 0x1c], 0
lea edx, [esp + 0x14]
mov ecx, fcn.00415333
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
call fcn.0040807d
push 0
push 0
push 0x1304
push ebp
mov dword [esp + 0x34], eax
call edi
test eax, eax
jle 0x415683
mov edx, dword [esp + 0x1c]
mov ecx, ebp
call fcn.00415547
push 0
push dword [esp + 0x20]
push 0x130c
push ebp
call edi
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x415778
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 0x28]
xor ebp, ebp
push eax
push ebp
push 0xb2
push esi
call edi
push 0xfffffffffffffff9
push 0xfffffffffffffff9
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [esp + 0x28]
push eax
push ebp
push 0xb4
push esi
call edi
push 0xf9f9f9
push ebp
push 0x443
push esi
call edi
cmp dword [esp + 0x24], ebp
jne 0x415759
mov ecx, dword [0x52aa50]
lea eax, [esp + 0x38]
mov esi, 0x100
push esi
push eax
push 0xd
pop eax
push eax
call fcn.0042126e
test eax, eax
jne 0x41570e
movzx edx, word [0x51f25e]
lea eax, [esp + 0x38]
push esi
push eax
xor edx, 0x9191
mov ecx, 0x51f260
call fcn.00412903
pop ecx
pop ecx
lea ecx, [esp + 0x38]
lea eax, [esp + 0x238]
cmp word [esp + 0x38], bp
je 0x41574b
push 0xa
pop edi
push 2
pop esi
push 0xd
pop ebx
movzx edx, word [ecx]
cmp dx, di
jne 0x41573b
mov word [eax], bx
add eax, esi
mov word [eax], di
jmp 0x41573e
mov word [eax], dx
add ecx, esi
add eax, esi
cmp word [ecx], bp
jne 0x415729
mov ebx, dword [esp + 0x20]
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x238]
jmp 0x41576e
push 0x73e99105
mov edx, 0x623b715d
mov ecx, 0xe4aa9bbe
call fcn.0040198e
pop ecx
push eax
push 0x33
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x52aa4c]
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
mov dword [eax + 0xc], ebx
pop ebx
xor ecx, esp
call fcn.004b9a6c
add esp, 0x434
ret
Function at 0x415877
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edx
push 0x32
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
xor ebp, ebp
push ebp
push ebp
mov esi, eax
push 0x1304
push esi
call ebx
mov ecx, dword [esp + 0x44]
movzx eax, cx
dec eax
je 0x415996
dec eax
je 0x415939
dec eax
jne 0x415931
mov dl, byte [esp + 0x14]
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.00415799
mov ebp, eax
pop ecx
cmp ebp, 0xffffffff
je 0x415931
push dword [esp + 0x14]
mov edx, ebp
mov ecx, esi
push dword [esp + 0x48]
call fcn.00414ea0
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x1c]
shr eax, 0x10
pop ecx
pop ecx
test ax, ax
jne 0x415908
push 0
push ebp
push 0x130c
push esi
call ebx
mov edx, ebp
mov ecx, esi
call fcn.00415547
push 6
pop ecx
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
push ebp
push 0x133d
push esi
mov dword [esp + 0x34], 2
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
push ebp
push ebp
push 0x130b
push esi
call ebx
mov dl, byte [esp + 0x14]
mov edi, eax
lea eax, [esp + 0x44]
mov ecx, esi
push eax
call fcn.00415799
mov ebp, eax
pop ecx
cmp ebp, 0xffffffff
je 0x415931
push 0
push ebp
push 0x1308
push esi
call ebx
push dword [esp + 0x44]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp edi, ebp
jl 0x415977
dec edi
test edi, edi
js 0x415931
push 0
push edi
push 0x130c
push esi
call ebx
mov edx, edi
pop edi
mov ecx, esi
pop esi
pop ebp
pop ebx
add esp, 0x30
jmp fcn.00415547
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edi
push eax
push dword [esp + 0x18]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebp
call fcn.00415333
pop ecx
pop ecx
push ebp
push dword [esp + 0x24]
push 0x130c
push esi
call ebx
mov edx, dword [esp + 0x20]
jmp 0x415988
Function at 0x415a92
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
push esi
push edi
mov edi, edx
mov ebx, ecx
cmp word [edi], 0x2f
jne 0x415bcb
push 0xc2883bf7
mov edx, 0xd35adb8f
mov ecx, 0x55cb30f2
add edi, 2
call fcn.0040198e
pop ecx
mov ecx, edi
mov dx, word [ecx]
xor ebp, ebp
inc ebp
xor esi, esi
cmp dx, word [eax]
jne 0x415afd
test dx, dx
je 0x415af9
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x415afd
add ecx, 4
add eax, 4
test dx, dx
jne 0x415ad2
mov eax, esi
jmp 0x415b01
sbb eax, eax
or eax, ebp
test eax, eax
jne 0x415b18
mov ecx, ebx
call fcn.004159c5
mov ecx, ebp
call fcn.0040c51b
jmp 0x415c8c
push 0x5e433979
mov edx, 0x4f91d901
mov ecx, 0xc900326c
call fcn.0040198e
pop ecx
mov ecx, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x415b55
test dx, dx
je 0x415b51
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x415b55
add ecx, 4
add eax, 4
test dx, dx
jne 0x415b2f
mov eax, esi
jmp 0x415b59
sbb eax, eax
or eax, ebp
test eax, eax
jne 0x415b6a
push ebp
push ebx
call fcn.00404f8c
pop ecx
jmp 0x415bf6
push 0x4b65d5ac
mov edx, 0x5ab735db
mov ecx, 0xdc26de86
call fcn.0040198e
pop ecx
mov cx, word [edi]
cmp cx, word [eax]
jne 0x415ba3
test cx, cx
je 0x415ba7
mov cx, word [edi + 2]
cmp cx, word [eax + 2]
jne 0x415ba3
add edi, 4
add eax, 4
test cx, cx
jne 0x415b7f
jmp 0x415ba7
sbb esi, esi
or esi, ebp
test esi, esi
jne 0x415c8c
push 0x49b797d1
mov edx, 0x586577a7
mov ecx, 0xdef49ce8
call fcn.00401964
pop ecx
mov ecx, eax
jmp 0x415c87
push 4
push 0xa82c7750
mov edx, 0xb9fe972a
mov ecx, 0x3f6f7c69
call fcn.0040198e
pop ecx
push eax
push edi
call fcn.004bc473
add esp, 0xc
test eax, eax
jne 0x415bfc
push edi
call fcn.00420731
pop ecx
jmp 0x415c8c
cmp word [edi + 2], 0x3a
jne 0x415c48
push edi
call fcn.0041fea4
pop ecx
test al, al
je 0x415c34
push 5
xor esi, esi
mov edx, 0x9bbd6480
push esi
push esi
push edi
push 0x8a6f84fa
mov ecx, 0x1d2c8fb7
call fcn.0040198e
pop ecx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x415c8c
push edi
call fcn.0041fe91
pop ecx
test al, al
je 0x415c8c
mov ecx, edi
call fcn.0041b856
jmp 0x415c8c
push 0xbc0eca1e
mov edx, 0xaddc2a67
mov ecx, 0x2b4dc14c
call fcn.0040198e
pop ecx
push eax
push edi
call fcn.004bc4a9
pop ecx
pop ecx
test eax, eax
je 0x415c8c
xor esi, esi
lea eax, [esp + 0x10]
push esi
push esi
push 0x100
push eax
push 0xffffffffffffffff
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x10]
call fcn.0040acd1
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b9a6c
add esp, 0x10c
ret
Function at 0x4176d7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x518450]
xor eax, ebp
mov dword [ebp - 4], eax
xor ecx, ecx
movzx eax, word [ecx + str._SELECT_]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x226], ax
test ax, ax
jne 0x4176ec
push esi
lea eax, [ebp - 0x214]
mov esi, str.keydb.db
push eax
call fcn.0042c99a
pop ecx
sub eax, esi
movzx ecx, word [esi]
mov word [eax + esi], cx
lea esi, [esi + 2]
test cx, cx
jne 0x417718
push 1
push 0
lea eax, [ebp - 0x224]
push eax
push str.explorer
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b9a6c
mov esp, ebp
pop ebp
ret

Function at 0x418d34
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x16c
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x164], eax
push ebx
push ebp
push esi
push edi
mov eax, ecx
push 0x33
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, eax
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebx, eax
mov dword [esp + 0x14], 0x30
push 0xa
xor eax, eax
mov dword [esp + 0x1c], 0x43
pop ecx
lea edi, [esp + 0x1c]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x70]
inc esi
mov dword [esp + 0x38], eax
cmp esi, 0xc
je 0x418dce
mov ecx, dword [esi*4 + 0x523d70]
lea edx, [esp + 0x70]
push 0x80
and ecx, 0x3f
call fcn.00416782
mov eax, dword [esi*4 + 0x523d70]
shr eax, 9
and eax, 8
mov dword [esp + 0x28], esi
pop ecx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 1
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_InsertMenuItemW]
inc esi
cmp esi, 0x15
jb 0x418d8b
call dword [sym.imp.USER32.dll_GetMessagePos]
xor edi, edi
mov ecx, eax
push edi
push dword [esp + 0x14]
shr ecx, 0x10
push edi
movsx ecx, cx
push ecx
cwde
push eax
push 0x180
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push ebx
mov esi, eax
call dword [sym.imp.USER32.dll_DestroyMenu]
test esi, esi
jle 0x418eb6
cmp esi, 0x15
ja 0x418eb6
mov ebx, edi
mov eax, edi
mov ecx, 0x1000
test esi, esi
jle 0x418e2f
test dword [eax*4 + 0x523d70], ecx
je 0x418e2a
inc ebx
inc eax
cmp eax, esi
jl 0x418e20
mov eax, dword [esi*4 + 0x523d70]
mov edx, eax
not edx
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esi*4 + 0x523d70], edx
test ecx, edx
je 0x418ea8
push 0xa
xor eax, eax
lea edi, [esp + 0x4c]
pop ecx
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x44], 0xe
shr edx, 0xd
lea eax, [esp + 0x70]
and edx, 0x1ffff
mov dword [esp + 0x50], eax
and ecx, 0x3f
mov dword [esp + 0x4c], edx
push 0x80
mov edx, eax
mov dword [esp + 0x5c], ecx
call fcn.00416782
pop ecx
lea eax, [esp + 0x44]
push eax
push ebx
push 0x1061
push ebp
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x10]
mov edx, ebp
call fcn.0041711a
jmp 0x418eb6
push edi
push ebx
push 0x101c
push ebp
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b9a6c
add esp, 0x16c
ret
Function at 0x41b856
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e8
mov eax, dword [0x518450]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push ecx
push 0xdd24528e
mov edx, 0xccf6b2e0
mov ecx, 0x4a675c91
call fcn.0040198e
pop ecx
push eax
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x40
xor esi, esi
lea eax, [ebp - 0x2e4]
xorps xmm0, xmm0
push esi
push eax
movdqu xmmword [ebp - 0x2a0], xmm0
call fcn.004bf040
add esp, 0x18
mov dword [ebp - 0x2e8], 0x44
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x2dc], esi
xor ebx, ebx
inc ebx
push eax
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x2bc], ebx
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x290]
mov word [ebp - 0x2b8], bx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
jne 0x41b90a
push dword [ebp - 0x2a0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x29c]
call esi
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.004b9a6c
mov esp, ebp
pop ebp
ret
Function at 0x41ca7e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, edx
push edi
mov edi, ecx
push 0x33
push edi
call esi
push 0x35
push edi
mov dword [0x52aa70], eax
call esi
mov dword [0x52aa74], eax
mov eax, dword [ebp + 8]
push 0x20c
mov dword [0x52aa78], eax
call fcn.004ba21e
mov esi, eax
pop ecx
mov ecx, dword [0x52aa78]
mov dword [esi], ecx
lea ecx, [esi + 4]
sub ecx, ebx
movzx eax, word [ebx]
mov word [ecx + ebx], ax
lea ebx, [ebx + 2]
test ax, ax
jne 0x41cac4
xor edi, edi
cmp word [esi + 4], di
je 0x41caf8
call fcn.0040667b
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x4065e3
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x52ab08], eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41fc1e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41fc34
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x41fcd1
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x258], eax
mov eax, dword [esp + 0x264]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x270]
mov bl, 1
mov ecx, edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x27c]
xor ebp, ebp
mov dword [esp + 0x10], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x41fd0f
sub ecx, edx
sar ecx, 1
push 0x2a
pop eax
lea esi, [edi + ecx*2]
mov word [esi], ax
xor eax, eax
mov word [esi + 2], ax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41fe63
push 0x2e
pop eax
test byte [esp + 0x18], 0x10
je 0x41fdeb
cmp byte [esp + 0x278], 0
je 0x41fe41
cmp word [esp + 0x44], ax
jne 0x41fd86
cmp word [esp + 0x46], 0
je 0x41fe45
cmp word [esp + 0x46], ax
jne 0x41fd86
cmp word [esp + 0x48], 0
je 0x41fe45
lea ecx, [esp + 0x44]
mov edx, esi
mov eax, ecx
sub edx, eax
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x41fd90
mov ecx, esi
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x41fda6
push 0x5c
pop eax
push dword [esp + 0x284]
sub ecx, edx
push dword [esp + 0x284]
sar ecx, 1
push dword [esp + 0x18]
push dword [esp + 0x284]
mov word [esi + ecx*2], ax
xor eax, eax
push dword [esp + 0x24]
mov word [esi + ecx*2 + 2], ax
push edi
call fcn.0041fcd1
add esp, 0x18
jmp 0x41fe3a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41fe02
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0041fea9
pop ecx
pop ecx
jmp 0x41fe05
xor eax, eax
inc eax
test eax, eax
je 0x41fe41
lea ecx, [esp + 0x44]
mov edx, esi
mov eax, ecx
sub edx, eax
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x41fe13
push dword [esp + 0x284]
lea eax, [esp + 0x1c]
push dword [esp + 0x284]
push edi
push eax
call dword [esp + 0x20]
mov bl, al
xor eax, eax
mov word [esi], ax
test bl, bl
je 0x41fe5c
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41fd47
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x268]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b9a6c
add esp, 0x25c
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret
Function at 0x42014f
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0xffffffff
jne 0x42015b
xor eax, eax
jmp 0x4201a3
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
xor edi, edi
test esi, esi
je 0x42019e
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push 0
push eax
mov eax, 0x400
cmp esi, eax
cmovb eax, esi
push eax
push ebp
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42019e
add ebp, dword [esp + 0x14]
add edi, dword [esp + 0x14]
sub esi, dword [esp + 0x14]
jne 0x42016c
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x4205fd
Capabilities:
Clear file content

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.004bf773
push dword [esp + 0x10]
call fcn.004bf4a4
push eax
call fcn.004bff32
add esp, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov al, 1
ret

Function at 0x4206d2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x518450]
xor eax, ebp
mov dword [ebp + 0x94], eax
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x78]
push 0x10c
push 0
push eax
mov dword [ebp - 0x80], 0x114
call fcn.004bf040
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
mov ecx, dword [ebp + 0x94]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004b9a6c
lea esp, [ebp + 0x98]
pop ebp
ret

Function at 0x420731
Capabilities:
Create process on windows

Disassembly:
push 1
xor eax, eax
push eax
push eax
push dword [esp + 0x10]
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret

Function at 0x420744
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x3c]
push 0x38
push 0
push eax
call fcn.004bf040
mov eax, dword [ebp + 0x14]
add esp, 0xc
neg eax
mov dword [ebp - 0x40], 0x3c
sbb eax, eax
and eax, 0x40
mov dword [ebp - 0x3c], eax
call fcn.004206d2
test eax, eax
mov dword [ebp - 0x24], 1
mov eax, dword [ebp + 8]
mov edx, str.open
mov dword [ebp - 0x30], eax
mov ecx, str.runas
mov eax, dword [ebp + 0xc]
cmove ecx, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x34], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp + 0x14], 0
je 0x4207dd
test eax, eax
je 0x4207dd
cmp dword [ebp - 0x20], 0x20
jle 0x4207dd
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x420b0a
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x570
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x56c], eax
push ebx
mov ebx, dword [esp + 0x578]
lea eax, [esp + 0x368]
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x1c], ecx
push eax
mov dword [esp + 0x14], ebx
inc ebp
call fcn.00420df0
pop ecx
push dword [0x52aad8]
mov edi, eax
push 0x1130d84b
push 0x50e4e836
push 0x2962003d
call fcn.004019ba
add esp, 0xc
push eax
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
push 0xbf2fb0a
push 0x4a26cb75
push 0x33a02354
call fcn.004019ba
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0x18
push eax
xor eax, eax
push eax
push 0x143
push ebx
call esi
push 0x554e45
push eax
push 0x151
push ebx
call esi
xor eax, eax
push eax
push eax
push 0x14e
push ebx
call esi
xor eax, eax
push 0x24c
push eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
call fcn.004bf040
add esp, 0xc
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x378]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
je 0x420d49
or dword [esp + 0x14], 0xffffffff
test byte [esp + 0x24], 0x10
jne 0x420d2e
lea eax, [esp + 0x50]
push 0x5f
push eax
call fcn.004bc0ad
pop ecx
pop ecx
test eax, eax
je 0x420d2e
lea eax, [esp + 0x50]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [0x52aad8]
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x420c24
sub esi, ecx
sar esi, 1
cmp word [edi + esi*2], 0x45
jne 0x420c4e
cmp word [edi + esi*2 + 2], 0x4e
jne 0x420c4e
cmp word [edi + esi*2 + 4], 0x55
je 0x420d2a
lea eax, [esp + 0x374]
push eax
push 0x80
lea eax, [esp + 0x27c]
push eax
push 0x51e3ea73
push 0x1037da05
push 0x69b132ce
call fcn.004019ba
add esp, 0xc
push eax
push 0xe32b5cc6
push 0xa2ff6cb4
push 0xdb79846b
call fcn.004019ba
add esp, 0xc
push eax
push 0x24b25da9
push 0x65666ddb
push 0x1ce08508
call fcn.004019ba
add esp, 0xc
push eax
call fcn.004212bd
add esp, 0x18
lea eax, [esp + 0x274]
push eax
xor eax, eax
push eax
push 0x143
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
movzx ebx, byte [edi + esi*2 + 4]
mov ecx, eax
movzx eax, byte [edi + esi*2 + 2]
shl ebx, 8
or ebx, eax
mov dword [esp + 0x20], ecx
movzx eax, byte [edi + esi*2]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
shl ebx, 8
or ebx, eax
push ebx
push ecx
push 0x151
push dword [esp + 0x1c]
call esi
cmp dword [esp + 0x14], 0xffffffff
jne 0x420d25
mov eax, dword [esp + 0x1c]
cmp ebx, dword [eax + 4]
mov ebx, dword [esp + 0x10]
jne 0x420d29
mov eax, dword [esp + 0x20]
xor ecx, ecx
push ecx
push eax
push 0x14e
push ebx
mov dword [esp + 0x24], eax
call esi
jmp 0x420d29
mov ebx, dword [esp + 0x10]
inc ebp
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x420bec
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x57c]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b9a6c
add esp, 0x570
ret 4