joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4173c0
Capabilities:
Query service status

Disassembly:
push ebp
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4173c6
mov edx, dword [esp + 0x30]
lea ecx, [esp]
call fcn.0041b000
lea eax, [esp + 4]
push 0xf003f
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerW
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
je 0x417448
push 0xf01ff
push dword [esp + 4]
push dword [esp + 0x28]
call sub.ADVAPI32.DLL_OpenServiceW
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0
je 0x417436
lea eax, [esp + 4]
push eax
push dword [esp + 0x28]
call sub.ADVAPI32.DLL_QueryServiceStatus
push dword [esp + 0x24]
call sub.ADVAPI32.DLL_CloseServiceHandle
push dword [esp + 0x20]
call sub.ADVAPI32.DLL_CloseServiceHandle
lea ebp, [esp + 4]
mov eax, dword [ebp + 4]
jmp 0x41744a
xor eax, eax
push dword [esp]
call fcn.00430f50
add esp, 0x28
pop ebp
ret 4
Function at 0x41a397
Capabilities:
Get graphical window text

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.00430eb0
push dword [esp + 0xc]
call fcn.00430e60
mov ebx, dword [0x9e5e40]
and ebx, ebx
jne 0x41a3d3
push 0
push 0
call sub.USER32.DLL_FindWindowW
mov dword [0x9e5e44], eax
mov dword [0x9e5e40], 1
jmp 0x41a3e8
push 2
push dword [0x9e5e44]
call sub.USER32.DLL_GetWindow
mov dword [0x9e5e44], eax
mov ebx, dword [0x9e5e44]
and ebx, ebx
je 0x41a47e
push 0xfffffff0
push dword [0x9e5e44]
call sub.USER32.DLL_GetWindowLongW
mov ebx, eax
and ebx, 0x10000000
cmp ebx, 0x10000000
jne 0x41a47c
push 0xffffffec
push dword [0x9e5e44]
call sub.USER32.DLL_GetWindowLongW
mov ebx, eax
and ebx, 0x80
cmp ebx, 0x80
je 0x41a47c
call fcn.00430c90
push eax
call fcn.00430c90
push eax
push 0x100
call fcn.0041b390
lea eax, [esp + 4]
push eax
call fcn.00430d30
push 0x100
push dword [esp + 4]
push dword [0x9e5e44]
call sub.USER32.DLL_GetWindowTextW
push dword [esp]
mov edx, 0x46f046
pop ecx
call fcn.00430dc0
jne 0x41a47c
jmp 0x41a496
jmp 0x41a488
mov dword [0x9e5e40], 0
mov ebx, dword [0x9e5e44]
and ebx, ebx
jne 0x41a3a9
mov edx, dword [esp]
call fcn.00430c90
push eax
call fcn.00430cd0
pop eax
push eax
call fcn.00430e30
pop edx
add eax, edx
jmp 0x41a4ba
push dword [esp]
call fcn.00430f50
add esp, 4
pop ebx
ret

Function at 0x41cc48
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x41cc97
push dword [esp + 0x10]
push 0x41cbc6
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x9e5ef0]
cmp esi, ebx
je 0x41cceb
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x41cc8f
cmp byte [esi + 0x10], bl
je 0x41cc8f
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x41cc6c
jmp 0x41cceb
mov esi, dword [0x9e5ef0]
cmp esi, ebx
je 0x41cceb
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x41cce4
cmp byte [esi + 0x11], bl
je 0x41ccc1
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x41ccd7
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x9e5ef0
call fcn.00430bc1
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x41cca2
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41cdd9
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [0x9e6a8c]
call fcn.00430485
or dword [ebp - 4], 0xffffffff
mov ebx, eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx ecx, word [eax]
test cx, cx
je 0x41ce9e
mov edx, dword [ebp + 8]
push 2
pop esi
cmp cx, 0x20
jne 0x41ce1a
add eax, esi
cmp word [eax], 0x20
je 0x41ce12
movzx ecx, word [eax]
mov dword [ebp - 8], 1
cmp ecx, 0x22
jne 0x41ce55
add eax, esi
movzx ecx, word [eax]
mov edi, eax
test cx, cx
je 0x41ce51
cmp cx, 0x22
je 0x41ce45
add eax, esi
movzx ecx, word [eax]
test cx, cx
jne 0x41ce35
cmp word [eax], 0
je 0x41ce51
mov edx, eax
add eax, esi
jmp 0x41ce7a
mov edx, eax
jmp 0x41ce7a
test cx, cx
je 0x41ce76
mov edi, eax
cmp cx, 0x20
je 0x41ce6c
add eax, esi
movzx ecx, word [eax]
test cx, cx
jne 0x41ce5c
cmp word [eax], 0
mov edx, eax
je 0x41ce7a
jmp 0x41ce4d
and dword [ebp - 8], 0
mov ecx, dword [ebx]
cmp ecx, dword [ebp - 4]
jne 0x41ce88
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x41cea9
xor edi, edi
cmp dword [ebp - 8], edi
je 0x41ce92
inc dword [ebp - 4]
movzx ecx, word [eax]
test cx, cx
jne 0x41ce0c
cmp dword [ebp + 8], 0
jne 0x41ceb9
mov eax, dword [ebp - 4]
jmp 0x41cebf
test edi, edi
je 0x41cebc
sub edx, edi
sar edx, 1
mov dword [ecx], edx
inc dword [ebx]
mov eax, edi
jmp 0x41cebf
mov ecx, dword [ebp + 8]
and dword [ecx], 0
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41d534
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, 0x1000
xor esi, esi
cmp dword [ebp + 0xc], 0x18
push edi
mov dword [ebp - 0xc], ebx
je 0x41d5db
cmp dword [ebp + 0xc], 0x19
je 0x41d5db
push 0x2000
push esi
push dword [0x9e55a0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
jmp 0x41d5b1
cmp dword [ebp - 0x10], 2
jne 0x41d5ca
cmp dword [ebp - 0xc], 0
jne 0x41d599
lea eax, [esi + esi + 0x2000]
push eax
push edi
push 8
push dword [0x9e55a0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, eax
mov dword [ebp - 0xc], ebx
mov ax, word [ebp - 8]
cmp ax, 0xa
je 0x41d5ca
cmp ax, 0xd
je 0x41d5b1
mov word [edi + esi*2], ax
inc esi
dec dword [ebp - 0xc]
push 0
lea eax, [ebp - 0x10]
push eax
push 2
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41d571
push dword [ebp + 0x10]
xor eax, eax
push edi
mov word [edi + esi*2], ax
call fcn.0045a4a0
jmp 0x41d659
push ebx
push esi
push dword [0x9e55a0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
jmp 0x41d626
cmp dword [ebp - 0x10], 1
jne 0x41d63f
cmp dword [ebp - 0xc], 0
jne 0x41d614
lea eax, [esi + 0x1000]
push eax
push edi
push 8
push dword [0x9e55a0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, eax
mov dword [ebp - 0xc], ebx
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41d63f
cmp al, 0xd
je 0x41d626
mov byte [edi + esi], al
inc esi
dec dword [ebp - 0xc]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41d5ed
cmp dword [ebp + 0xc], 0x18
push dword [ebp + 0x10]
mov byte [edi + esi], 0
push edi
jne 0x41d654
call fcn.0045a590
jmp 0x41d659
call fcn.0045a6b0
push edi
push 0
push dword [0x9e55a0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41ecb9
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 1
jne 0x41ecdb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WSOCK32.DLL_send]
jmp 0x41ed1a
push 2
pop eax
mov word [ebp - 0x10], ax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
movzx eax, word [esi + 8]
push eax
call dword [sym.imp.WSOCK32.DLL_htons]
mov word [ebp - 0xe], ax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41ed02
mov eax, dword [eax]
jmp 0x41ed05
mov eax, dword [esi + 0x10]
push 0x10
lea ecx, [ebp - 0x10]
push ecx
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WSOCK32.DLL_sendto]
pop esi
leave
ret 0xc

Function at 0x41ede0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x9e5f20], 0
jne 0x41edee
call fcn.0041ed80
mov eax, dword [0x9e5f1c]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push eax
call esi
test eax, eax
jne 0x41ee12
call fcn.0041ed80
mov ecx, dword [0x9e5f1c]
push ecx
call esi
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ecx*4 + 0x4c]
mov ebp, dword [esp + 0x14]
mov esi, dword [eax + ecx*4 + 8]
mov ebx, dword [eax + edi*4 + 8]
inc ebp
ror edx, 0xd
add edx, dword [eax + edi*4 + 0x4c]
ror esi, 5
add esi, ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0x4c], esi
dec edi
dec ecx
jns 0x41ee45
mov ecx, 0x10
test edi, edi
jns 0x41ee4e
mov edi, 0x10
mov dword [eax], ecx
mov dword [eax + 4], edi
mov eax, edx
test ebp, ebp
je 0x41ee5d
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41ee90
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x9e5f20], 0
jne 0x41ee9e
call fcn.0041ed80
mov eax, dword [0x9e5f1c]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push eax
call esi
test eax, eax
jne 0x41eec2
call fcn.0041ed80
mov ecx, dword [0x9e5f1c]
push ecx
call esi
mov ecx, dword [esp + 0x14]
lea edx, [eax + 8]
mov esi, 0x11
mov edi, edi
mov edi, ecx
imul edi, edi, 0x53a9b4fb
mov ecx, 1
sub ecx, edi
mov dword [edx + 0x44], ecx
imul ecx, ecx, 0x53a9b4fb
mov edi, 1
sub edi, ecx
mov ecx, edi
mov dword [edx], ecx
add edx, 4
dec esi
jne 0x41eed0
mov dword [eax], esi
mov dword [eax + 4], 0xa
lea ebp, [esi + 0x1f]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov edx, dword [eax + ecx*4 + 0x4c]
mov edi, dword [eax + ecx*4 + 8]
mov ebx, dword [eax + esi*4 + 8]
ror edx, 0xd
add edx, dword [eax + esi*4 + 0x4c]
ror edi, 5
add edi, ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0x4c], edi
dec esi
dec ecx
jns 0x41ef33
mov ecx, 0x10
test esi, esi
jns 0x41ef3c
mov esi, 0x10
dec ebp
mov dword [eax], ecx
mov dword [eax + 4], esi
jne 0x41ef05
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x420648
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x9e6b00]
call fcn.00430311
mov edi, eax
test edi, edi
je 0x4206ac
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x420671
push dword [esp + 0xc]
push edi
call eax
jmp 0x4206ac
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthW]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.00431240
mov ebx, eax
xor eax, eax
mov word [ebx], ax
lea eax, [esi + 1]
push eax
push ebx
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextW]
push ebx
call sub.MSVCRT.dll_wcslen
pop ecx
sub esi, eax
push esi
call fcn.00431360
pop esi
pop ebx
pop edi
ret 8

Function at 0x42098a
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.USER32.DLL_SendMessageW]
push 0
push 0
push 0x1304
push dword [esi]
call edi
test eax, eax
jle 0x4209f8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
cmp ebp, 0xffffffff
jne 0x4209b4
mov ebp, eax
push dword [esi]
call fcn.004207b3
push ebp
push dword [esi]
mov ebx, eax
call fcn.0042078c
add esp, 0xc
push 0
push ebp
push 0x130c
push dword [esi]
mov dword [esp + 0x24], eax
call edi
push 0
push ebx
call dword [sym.imp.USER32.DLL_ShowWindow]
push 0
push ebx
call dword [sym.imp.USER32.DLL_EnableWindow]
push dword [esp + 0x14]
mov ebx, dword [esi]
call fcn.004207d3
pop ecx
pop ebp
pop ebx
pop edi
pop esi
ret 8
Function at 0x421ee0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
push dword [0x9e6b04]
call fcn.00430485
xor edi, edi
mov dword [ebp - 4], eax
cmp dword [0x9e6224], edi
jne 0x421fc1
xor ebx, ebx
inc ebx
mov dword [0x9e6224], ebx
call fcn.00426d37
mov esi, 0xa4
push esi
push edi
push 0x9e6180
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [0x9e6180], 0x13
mov dword [0x9e6184], esi
mov dword [0x9e6190], 0x421835
mov dword [0x9e6194], 0x421813
mov dword [0x9e61e8], 0x421873
mov dword [0x9e61ec], 0x421898
mov dword [0x9e618c], 0x421850
mov dword [0x9e6210], 0x42194d
mov dword [0x9e6178], ebx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x421fc1
cmp dword [ebp - 0x108], ebx
je 0x421fbb
cmp dword [ebp - 0x108], 2
jne 0x421fc1
cmp dword [ebp - 0x114], 5
jb 0x421fbb
jne 0x421fc1
cmp dword [ebp - 0x110], edi
jne 0x421fc1
mov dword [0x9e6178], edi
mov eax, dword [ebp - 4]
push edi
push dword [0x9e55a4]
push 0xffffffffffffffff
push dword [eax]
mov eax, dword [ebp + 0x20]
push dword [ebp + 0x18]
or eax, 0x50010000
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push edi
push 0x466164
push edi
call dword [sym.imp.USER32.DLL_CreateWindowExW]
mov dword [ebp + 0x18], eax
cmp eax, edi
je 0x42205b
push dword [ebp + 8]
push dword [0x9e6b00]
call fcn.00430274
mov ebx, dword [ebp + 0x1c]
mov esi, eax
mov dword [esi + 0x10], ebx
cmp ebx, edi
je 0x422029
push ebx
call fcn.0042d69c
test eax, eax
je 0x422029
push edi
push edi
push ebx
call fcn.0042d77e
mov dword [esi + 0x18], eax
jmp 0x42202c
mov dword [esi + 0x18], edi
push 0x421c12
push 0xfffffffffffffffc
push dword [ebp + 0x18]
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
call dword [sym.imp.USER32.DLL_SetWindowLongW]
push 0x9e6180
push dword [ebp + 0x18]
mov dword [0x9e617c], eax
push esi
push dword [ebp + 8]
call fcn.00426ec5
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x428766
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x4287e2
push 9
call esi
test bl, al
je 0x4287e2
push 0x11
call esi
test bl, al
jne 0x4287e2
push 0x10
call esi
test bl, al
jne 0x4287e2
push 0x12
call esi
test bl, al
jne 0x4287e2
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [esp + 0x14]
push 0x4665d0
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4287e2
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x4287e2
xor eax, eax
jmp 0x428864
push ebp
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x42880b
push 0x11
call esi
test bl, al
jne 0x428803
push 0x10
call esi
test bl, al
jne 0x428803
push 0x12
call esi
test bl, al
je 0x42880b
push 1
push ebp
call fcn.0042871f
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test edi, edi
je 0x428821
push 0x4665bc
push edi
call esi
test eax, eax
jne 0x428861
push 0x466494
push ebp
call esi
mov esi, eax
test esi, esi
je 0x428861
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x428861
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x428861
dec esi
push esi
push dword [0x9e6b0c]
call fcn.00430311
test eax, eax
je 0x428861
mov eax, dword [eax + 8]
jmp 0x428863
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x428a66
Capabilities:
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x428af2
cmp word [eax], 0
je 0x428af2
push 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [ebp + eax*2 - 0x20e]
cmp eax, 2
je 0x428abb
cmp eax, 3
jne 0x428afc
cmp word [ebp - 0x20a], 0x3a
jne 0x428afc
cmp eax, 2
jne 0x428add
lea eax, [ebp - 0x20c]
push 0x4665dc
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x428af2
push 0xfffffffffffffffe
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret 4
movzx eax, word [ecx]
cmp eax, 0x5c
je 0x428b09
cmp eax, 0x2f
jne 0x428b13
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x428afc
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x428b54
test byte [ebp - 0x45c], 0x10
je 0x428b39
push 0xfffffffffffffffe
pop edi
jmp 0x428b4b
mov esi, dword [ebp - 0x440]
xor edi, edi
or edi, dword [ebp - 0x43c]
xor edx, edx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x428af2
cmp word [ebp - 0x20c], 0x5c
jne 0x428b68
cmp word [ebp - 0x20a], 0x5c
je 0x428b80
cmp word [ebp - 0x20c], 0x2e
jne 0x428af2
cmp word [ebp - 0x20a], 0x2e
jne 0x428af2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x428add
test al, 0x10
je 0x428af2
jmp 0x428aef
Function at 0x428f4a
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x428f73
test byte [esp + 8], 2
je 0x428f67
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x428f75
xor eax, eax
ret 8

Function at 0x428fdc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x429052
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea eax, [ebp + eax*2 - 0x20c]
jmp 0x429033
movzx edx, word [eax - 2]
cmp edx, 0x20
je 0x429030
cmp edx, 0x5c
je 0x429030
cmp edx, 0x2f
jne 0x42903d
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x42901d
xor ecx, ecx
mov word [eax], cx
push ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x429054
xor eax, eax
leave
ret 4

Function at 0x429058
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x429066
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x429069
Capabilities:
Copy file

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x429088
cmp dword [esp + 8], eax
je 0x429088
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x42908a
xor eax, eax
ret 8

Function at 0x42908d
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x429162
push edi
push esi
push pe_nt_image_headers32
push 3
push esi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x429161
mov esi, dword [ebp + 0x10]
push esi
call fcn.0042b1af
push esi
mov word [ebp - 0x20], ax
call fcn.0042b1d7
push esi
mov word [ebp - 0x1e], ax
call fcn.0042b1fa
push esi
mov word [ebp - 0x1c], ax
call fcn.0042b21c
push esi
mov word [ebp - 0x1a], ax
call fcn.0042b23e
push esi
mov word [ebp - 0x18], ax
call fcn.0042b260
push esi
mov word [ebp - 0x16], ax
call fcn.0042b282
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
xor eax, eax
xor edx, edx
xor ecx, ecx
cmp dword [ebp + 0xc], 1
jne 0x429140
lea edx, [ebp - 8]
jmp 0x42914e
cmp dword [ebp + 0xc], 2
jne 0x42914b
lea ecx, [ebp - 8]
jmp 0x42914e
lea eax, [ebp - 8]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x429470
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x4294a5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x429900
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x429959
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x429958
mov eax, dword [esp + 0x10]
mov ecx, dword [0x9e6b24]
push eax
push ecx
call fcn.00430311
test eax, eax
je 0x429954
cmp dword [eax + 4], 0
je 0x429942
push esi
push edi
push eax
call fcn.00429f00
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc

Function at 0x429960
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x9e6b24]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.00430311
test eax, eax
je 0x4299a8
cmp dword [eax + 4], 0
lea edx, [esp + 0xc]
je 0x429995
push 1
push edx
push eax
call fcn.00429f00
pop ecx
ret 8
mov eax, dword [eax]
push 0
lea ecx, [esp + 4]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp]
pop ecx
ret 8

Function at 0x4299b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x9e6b24]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
call fcn.00430311
mov esi, eax
test esi, esi
je 0x429a33
cmp dword [esi + 4], 0
je 0x429a02
push 1
lea edx, [esp + 8]
push edx
push esi
call fcn.0042a000
test eax, eax
je 0x4299f6
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
mov edx, dword [esi]
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x429a3e
cmp dword [esp + 8], 0
je 0x429a3e
mov eax, dword [esi]
push 1
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x429a50
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x9e6b24]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.00430311
test eax, eax
je 0x429a9a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x429a87
push 1
push edx
push eax
call fcn.0042a000
movsx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4