joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a410
Capabilities:
Create process on windows

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 0x10
mov byte [esp + 0xc], al
mov ecx, edx
test edx, edx
jne 0x40a42b
xor eax, eax
add esp, 0x10
pop ebp
pop edi
pop esi
pop ecx
ret
call fcn.0040a760
mov ebp, eax
test eax, eax
je 0x40a423
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
xor edx, edx
mov byte [eax + 0xa], bl
mov dword [esp], edx
mov dword [esp + 4], edx
mov dl, byte [esp + 0xc]
dec dl
mov byte [esp + 8], 1
cmp dl, 3
ja case.0x40a463.4
movzx edx, dl
jmp dword [edx*4 + 0x40a400]
test bl, bl
jne 0x40a480
mov edx, dword [ecx + 0xc]
mov edx, dword [edx + 0x15]
mov dword [eax + 0x1c], edx
mov edx, dword [ecx + 0xc]
mov edx, dword [edx + 8]
mov dword [eax + 0x20], edx
cmp byte [esp + 8], 0
jne 0x40a50c
mov ebp, dword [esp]
test ebp, ebp
je 0x40a421
push ebp
call dword [sym.imp.wr.dll__WRMemFree_4]
xor eax, eax
add esp, 0x10
pop ebp
pop edi
pop esi
pop ecx
ret
test bl, bl
je 0x40a4b6
mov eax, dword [esp + 4]
mov dword [ebp + 0x1c], eax
mov eax, dword [esp]
mov dword [ebp + 0x20], eax
jmp 0x40a480
lea ebx, [esp + 4]
mov edx, esp
mov eax, ecx
call fcn.0040b920
test al, al
je case.0x40a463.4
mov eax, dword [esp + 4]
mov dword [ebp + 0x1c], eax
mov eax, dword [esp]
mov dword [ebp + 0x20], eax
jmp 0x40a480
test bl, bl
je 0x40a4e9
mov eax, dword [esp + 4]
mov dword [ebp + 0x1c], eax
mov eax, dword [esp]
mov dword [ebp + 0x20], eax
jmp 0x40a480
lea ebx, [esp + 4]
mov edx, esp
mov eax, ecx
call fcn.0040baf0
test al, al
je case.0x40a463.4
mov eax, dword [esp + 4]
mov dword [ebp + 0x1c], eax
mov eax, dword [esp]
mov dword [ebp + 0x20], eax
jmp 0x40a480
mov eax, dword [ecx]
call fcn.00404290
call fcn.00403500
mov dword [ebp + 0xc], eax
mov eax, dword [ecx + 8]
add eax, 0x12
call fcn.00409130
mov dword [ebp + 0x10], eax
mov esi, dword [ecx + 0xc]
lea edi, [ebp + 0x14]
lea esi, [esi + 0xc]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [ecx + 0xc]
mov ax, word [eax + 0xf]
mov word [ebp + 0x18], ax
mov eax, dword [ecx]
mov al, byte [eax + 0x16]
mov byte [ebp + 0x1a], al
mov eax, dword [ecx]
mov ax, word [eax + 0x14]
mov word [ebp + 8], ax
mov eax, dword [ecx + 4]
mov dword [ebp + 0x24], eax
mov eax, dword [ecx + 8]
mov dword [ebp + 0x28], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp + 0x2c], eax
mov eax, dword [ecx]
mov dword [ebp + 0x30], eax
mov eax, dword [esp + 9]
sar eax, 0x18
call fcn.0040ab40
push 5
push 0x409c42
mov dword [0x425858], ebp
call dword [sym.imp.KERNEL32.DLL_WinExec]
cmp eax, 0x20
jae 0x40a5b0
mov eax, 0x3f
call fcn.004028a0
mov eax, ebp
xor edi, edi
call fcn.0040a860
mov eax, 4
mov dword [0x425858], edi
call fcn.0040ab40
mov eax, ebp
add esp, 0x10
pop ebp
pop edi
pop esi
pop ecx
ret
Function at 0x40c740
Capabilities:
Read clipboard data

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 0xc
mov ebp, edx
mov dword [esp + 4], ebx
xor edx, edx
mov dword [esp], edx
mov dword [esp + 8], edx
test eax, eax
je 0x40c7f3
cmp dword [eax], 0
je 0x40c7f3
test ebp, ebp
je 0x40c7f3
test ebx, ebx
je 0x40c7f3
mov dl, 1
mov bl, dl
test dl, dl
je 0x40c792
mov edi, dword [eax]
push edi
call dword [sym.imp.USER32.DLL_GetClipboardData]
mov dword [esp], eax
test eax, eax
setne al
mov bl, al
test bl, bl
je 0x40c7ab
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov dword [esp + 8], eax
test eax, eax
setne al
mov bl, al
test bl, bl
je 0x40c804
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.DLL_GlobalSize]
test eax, eax
jne 0x40c7f7
xor bl, bl
mov esi, dword [ebp]
test esi, esi
je 0x40c7cd
push esi
call dword [sym.imp.wr.dll__WRMemFree_4]
mov eax, dword [esp + 4]
mov dword [ebp], 0
mov dword [eax], 0
cmp dword [esp + 8], 0
jne 0x40c859
mov al, bl
add esp, 0xc
pop ebp
pop edi
pop esi
pop ecx
ret
xor dl, dl
jmp 0x40c779
cmp eax, 0x7fffffff
jae 0x40c84a
mov ecx, dword [esp + 4]
mov dword [ecx], eax
test bl, bl
je 0x40c81f
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.wr.dll__WRMemAlloc_4]
mov dword [ebp], eax
test eax, eax
setne al
mov bl, al
test bl, bl
je 0x40c840
mov ecx, dword [esp + 4]
mov esi, dword [esp + 8]
mov edi, dword [ebp]
mov ecx, dword [ecx]
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
test bl, bl
je 0x40c7bf
jmp 0x40c7de
mov eax, 0x46
call fcn.004028a0
jmp 0x40c7bd
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov al, bl
add esp, 0xc
pop ebp
pop edi
pop esi
pop ecx
ret

Function at 0x40d0a0
Capabilities:
Read clipboard data

Disassembly:
push ebx
push ecx
push edx
push esi
sub esp, 8
mov esi, eax
xor eax, eax
mov dword [esp], eax
test esi, esi
setne al
mov bl, al
test al, al
jne 0x40d10f
test bl, bl
je 0x40d0d0
lea eax, [esp + 4]
push eax
lea eax, [esp + 4]
push eax
push edx
call dword [sym.imp.wr.dll__WRWriteBitmapToData_12]
mov bl, al
test bl, bl
je 0x40d0e6
lea eax, [esp + 4]
push eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.wr.dll__WRStripBitmapFileHeader_8]
mov bl, al
test bl, bl
je 0x40d0fa
mov ebx, dword [esp + 4]
mov edx, dword [esp]
mov eax, esi
call fcn.0040cec0
mov bl, al
test bl, bl
jne 0x40d105
mov ecx, dword [esp]
test ecx, ecx
jne 0x40d123
mov al, bl
add esp, 8
pop esi
pop edx
pop ecx
pop ebx
ret
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.DLL_GetClipboardData]
mov edx, eax
test eax, eax
setne al
mov bl, al
jmp 0x40d0b9
push ecx
call dword [sym.imp.wr.dll__WRMemFree_4]
mov al, bl
add esp, 8
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x40d230
Capabilities:
Open clipboard

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
mov ebx, eax
push eax
call dword [sym.imp.USER32.DLL_GetMenu]
push ebx
mov esi, 1
mov edi, eax
call dword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
je 0x40d275
xor ebx, ebx
cmp word [0x4258fc], 0
je 0x40d26f
mov eax, dword [ebx + 0x4258f4]
push eax
call dword [sym.imp.USER32.DLL_IsClipboardFormatAvailable]
test eax, eax
je 0x40d288
xor esi, esi
call dword [sym.imp.USER32.DLL_CloseClipboard]
push esi
push 0xd4
push edi
call dword [sym.imp.USER32.DLL_EnableMenuItem]
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
add ebx, 0xc
cmp word [ebx + 0x4258fc], 0
jne 0x40d25c
jmp 0x40d26f

Function at 0x40d460
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push ecx
push esi
push edi
push ebp
sub esp, 8
mov esi, eax
mov ebp, edx
xor eax, eax
xor edi, edi
mov dword [esp], eax
test esi, esi
je 0x40d53a
cmp dword [esi + 4], 0
je 0x40d53a
cmp dword [esi + 8], 0
je 0x40d53a
cmp dword [esi + 0xc], 0
je 0x40d53a
mov al, 1
mov bl, al
test al, al
je 0x40d4b2
mov eax, esi
call fcn.004069a0
mov dword [esp], eax
test eax, eax
setne al
mov bl, al
test bl, bl
je 0x40d4d2
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x15]
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.wr.dll__WRAddBitmapFileHeader_8]
mov bl, al
test bl, bl
je 0x40d4ec
push 0
mov edi, dword [esp + 4]
push edi
call dword [sym.imp.wr.dll__WRBitmapFromData_8]
mov edi, eax
test eax, eax
setne al
mov bl, al
test bl, bl
je 0x40d4fe
push ebp
call dword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
setne al
mov bl, al
test bl, bl
je 0x40d517
call dword [sym.imp.USER32.DLL_EmptyClipboard]
push edi
push 2
call dword [sym.imp.USER32.DLL_SetClipboardData]
call dword [sym.imp.USER32.DLL_CloseClipboard]
test bl, bl
je 0x40d528
mov eax, dword [esi + 8]
add eax, 0x12
push eax
call dword [sym.imp.wr.dll__WRRememberBitmapName_4]
mov ebp, dword [esp]
test ebp, ebp
jne 0x40d541
mov al, bl
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
xor al, al
jmp 0x40d49b
push ebp
call dword [sym.imp.wr.dll__WRMemFree_4]
mov al, bl
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x40d560
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 0xc
mov dword [esp + 8], edx
mov dword [esp], ebx
xor ebp, ebp
xor edi, edi
mov dword [esp + 4], ebp
test eax, eax
je 0x40d67a
test ebx, ebx
je 0x40d67a
mov dl, 1
mov bl, dl
test dl, dl
je 0x40d59c
call fcn.0040d2a0
mov ebp, eax
test eax, eax
setne al
mov bl, al
test bl, bl
je 0x40d5b7
mov ebx, dword [ebp]
push ebx
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [esp + 4], eax
test eax, eax
setne al
mov bl, al
test bl, bl
je 0x40d5cf
mov esi, dword [esp + 4]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov edi, eax
test eax, eax
setne al
mov bl, al
test bl, bl
je 0x40d605
mov esi, ebp
mov ecx, dword [ebp]
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov edi, dword [esp + 4]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
setne al
mov bl, al
test bl, bl
je 0x40d65d
call dword [sym.imp.USER32.DLL_EmptyClipboard]
mov edx, dword [esp + 4]
push edx
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.USER32.DLL_SetClipboardData]
mov ebx, dword [0x425984]
push ebx
push 0x82
call dword [sym.imp.USER32.DLL_SetClipboardData]
call fcn.00401920
push 0x40c6be
xor esi, esi
push eax
mov dword [esp + 0xc], esi
call dword [sym.imp.USER32.DLL_LoadBitmapA]
mov dword [0x425984], eax
call dword [sym.imp.USER32.DLL_CloseClipboard]
cmp dword [0x425984], 0
setne bl
mov eax, dword [esp + 4]
test eax, eax
je 0x40d66c
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
test ebp, ebp
jne 0x40d681
mov al, bl
add esp, 0xc
pop ebp
pop edi
pop esi
pop ecx
ret
xor dl, dl
jmp 0x40d588
push ebp
call dword [sym.imp.wr.dll__WRMemFree_4]
mov al, bl
add esp, 0xc
pop ebp
pop edi
pop esi
pop ecx
ret

Function at 0x40d750
Capabilities:
Open clipboard

Disassembly:
push ebx
push ecx
push edx
sub esp, 8
push eax
mov byte [esp + 4], 0
call dword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
setne al
mov byte [esp + 4], al
test al, al
jne 0x40d799
cmp byte [esp + 4], 0
je 0x40d788
mov eax, dword [ebx]
cmp eax, 2
jne 0x40d7af
mov eax, ebx
call fcn.0040d0a0
mov byte [esp + 4], al
cmp byte [esp], 0
jne 0x40d7df
mov al, byte [esp + 4]
add esp, 8
pop edx
pop ecx
pop ebx
ret
call fcn.0040c8a0
mov byte [esp], 1
mov ebx, eax
test eax, eax
setne al
mov byte [esp + 4], al
jmp 0x40d76f
cmp eax, 8
je 0x40d7cd
mov ax, word [ebx + 8]
cmp ax, 0xe
je 0x40d7c4
cmp ax, 0xc
jne 0x40d7d6
mov eax, ebx
call fcn.0040cc80
jmp 0x40d784
mov eax, ebx
call fcn.0040d030
jmp 0x40d784
mov eax, ebx
call fcn.0040ca80
jmp 0x40d784
call dword [sym.imp.USER32.DLL_CloseClipboard]
mov al, byte [esp + 4]
add esp, 8
pop edx
pop ecx
pop ebx
ret
Function at 0x410090
Capabilities:
Encode data using xor

Disassembly:
push edx
sub esp, 8
mov edx, eax
call fcn.004100e0
mov eax, dword [0x4272d8]
cmp byte [eax], 0x5e
je 0x4100aa
add esp, 8
pop edx
ret
inc eax
mov dword [0x4272d8], eax
mov eax, esp
call fcn.004100e0
mov eax, dword [esp + 4]
xor dword [edx + 4], eax
mov eax, dword [esp]
or dword [edx], eax
mov eax, dword [0x4272d8]
cmp byte [eax], 0x5e
je 0x4100aa
add esp, 8
pop edx
ret

Function at 0x411f60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ecx
push esi
push edi
push ebp
sub esp, 0x10
mov ebx, eax
mov ebp, edx
cmp edx, 0xffffffff
jne 0x411f78
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalSize]
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test eax, eax
jne 0x411f8e
add esp, 0x10
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
call fcn.00411eb0
test al, al
jne 0x411fa2
xor eax, eax
add esp, 0x10
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
mov eax, ebx
call fcn.00411ec0
mov edx, eax
sub edx, ebx
call fcn.00411f00
mov dword [esp + 8], edx
add edx, eax
mov dword [esp + 4], edx
lea eax, [edx + 3]
and al, 0xfc
mov dword [esp + 4], eax
sub ebp, eax
mov eax, dword [esp + 8]
add eax, dword [0x4259b4]
mov dword [esp + 0xc], eax
add eax, 3
and al, 0xfc
mov dword [esp + 0xc], eax
add eax, ebp
push eax
push 0x42
mov dword [esp + 8], ebp
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebp, eax
test eax, eax
je 0x411f85
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov edx, eax
test eax, eax
jne 0x412012
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
xor eax, eax
add esp, 0x10
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
mov ecx, dword [esp + 8]
mov esi, ebx
mov edi, eax
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov edi, dword [esp + 8]
mov ecx, dword [0x4259b4]
mov esi, dword [0x4259b0]
add edi, edx
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov esi, dword [esp + 4]
mov edi, dword [esp + 0xc]
mov ecx, dword [esp]
add esi, ebx
add edi, edx
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov eax, ebp
add esp, 0x10
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x41296a
Capabilities:
Terminate process

Disassembly:
jmp 0x417eb0
push ebx
push ecx
push edx
push ebp
mov ebp, esp
sub esp, 8
mov eax, 1
call fcn.0041bec0
mov eax, dword [0x425fc4]
add eax, 3
and al, 0xfc
xor edx, edx
sub esp, eax
mov ecx, esp
mov ebx, dword [0x425fc4]
mov eax, ecx
call fcn.00412a00
mov eax, dword [0x425fc4]
mov dword [ecx + 0x104], eax
mov eax, ecx
mov edx, ecx
call fcn.0041bf70
lea eax, [ebp - 8]
call fcn.0041a570
mov ecx, dword [0x425f90]
add ecx, 3
and cl, 0xfc
call fcn.0041bfa0
cmp ecx, eax
jb 0x417f42
xor eax, eax
mov ecx, dword [0x425f90]
add eax, ecx
mov dword [0x425f94], eax
call fcn.0041bfc0
push 0xa
mov eax, dword [0x425f70]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call fcn.00401290
jmp 0x41bfc2
push ecx
call fcn.0041c065
mov eax, dword [0x425f90]
add eax, 3
and al, 0xfc
sub esp, eax
mov eax, esp
jmp 0x417f13
mov ecx, eax
call dword [0x425fc8]
cmp dword [0x427ad0], 0
je 0x41bfff
cmp dword [0x425e00], 0
je 0x41bfec
mov edx, 0xff
mov eax, 0x10
call dword [0x425e00]
call dword [0x425fc8]
call dword [0x425fcc]
mov eax, ecx
jmp fcn.0041a5d0
mov edx, 0xff
mov eax, 0x10
call fcn.0041bf10
jmp 0x41bfec

Function at 0x414060
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
push esi
push edi
sub esp, 0x104
mov edi, eax
mov ebx, edx
mov eax, esp
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
mov ecx, eax
test eax, eax
je 0x4140b2
inc eax
test edi, edi
jne 0x4140b9
cmp ebx, eax
jbe 0x41408d
mov eax, ebx
call fcn.00418a90
mov edi, eax
test eax, eax
jne 0x4140cc
call dword [0x425c88]
mov dword [eax + 4], 5
xor eax, eax
add esp, 0x104
pop edi
pop esi
pop ecx
pop ebx
ret
call fcn.00418be0
jmp 0x4140a5
cmp eax, ebx
jbe 0x4140cc
call dword [0x425c88]
mov dword [eax + 4], 0xe
jmp 0x4140a5
mov esi, esp
inc ecx
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
add esp, 0x104
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x4144d0
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
push esi
push edi
push ebp
mov ebx, eax
mov esi, edx
push 0x4144a0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebp, eax
test eax, eax
je 0x41457b
push 0x4144ba
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push ebx
push 0
push 0
push 0x801a
push 0
call eax
test eax, eax
jl 0x41456e
mov edi, ebx
sub ecx, ecx
dec ecx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x4144ad
mov edx, ecx
sub ecx, ecx
dec ecx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 0xc]
cmp eax, esi
jae 0x41456e
mov esi, 0x4144ad
mov edi, ebx
push edi
sub ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x414559
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x414541
pop edi
xor edx, edx
mov eax, ebx
call fcn.00417670
test eax, eax
je 0x41456e
mov eax, ebx
call fcn.00419ad0
push ebp
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x41a2d0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov esi, ebx
mov dword [0x427ad0], eax
mov dword [0x425c84], edx
call fcn.0041d970
xor eax, eax
mov dword [0x4280f8], eax
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov edx, eax
mov byte [0x425fa9], al
shr eax, 0x10
mov word [0x425fab], ax
xor eax, eax
mov ax, word [0x425fab]
and edx, 0xffff
mov dword [0x425fad], eax
xor eax, eax
sar edx, 8
mov al, byte [0x425fa9]
and edx, 0xff
mov dword [0x425fb1], eax
xor eax, eax
mov al, dl
mov byte [0x425faa], dl
mov dword [0x425fb5], eax
mov eax, dword [0x425fb1]
mov edx, dword [0x425fb5]
shl eax, 8
or eax, edx
mov dword [0x425fb9], eax
cmp byte [0x425fa9], 4
jae 0x41a3f7
mov eax, 0x41a268
push eax
xor edx, edx
push 0x41a295
mov dword [0x425fa5], edx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, eax
test eax, eax
je 0x41a38a
call edx
mov dword [0x425fa5], eax
push 0x104
push 0x427ad4
push 0
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x427bd8
xor eax, eax
mov dword [0x425f74], 0x427ad4
call fcn.0041dd80
mov dword [0x425f80], 0x427bd8
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.0041de20
mov edx, eax
mov bl, byte [eax]
mov dword [0x427ac8], eax
cmp bl, 0x22
je 0x41a401
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x417891], 2
je 0x41a419
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x417891], 2
je 0x41a420
inc eax
jmp 0x41a3e7
mov eax, 0x41a27e
jmp 0x41a362
inc eax
cmp bl, byte [eax]
je 0x41a411
cmp byte [eax], 0
je 0x41a411
inc eax
cmp byte [eax], 0x22
jne 0x41a406
cmp byte [eax], 0
je 0x41a3e7
inc eax
jmp 0x41a3e7
test dl, dl
je 0x41a3e7
inc eax
jmp 0x41a3da
mov dword [0x425f70], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
test eax, eax
je 0x41a496
call fcn.0041de60
mov edx, eax
mov bx, word [eax]
mov dword [0x427acc], eax
cmp bx, 0x22
je 0x41a469
xor eax, eax
mov ax, word [edx]
call fcn.0041de87
test eax, eax
je 0x41a48b
xor eax, eax
mov ax, word [edx]
call fcn.0041de87
test eax, eax
je 0x41a49b
add edx, 2
jmp 0x41a456
lea edx, [eax + 2]
cmp bx, word [edx]
je 0x41a480
cmp word [edx], 0
je 0x41a480
add edx, 2
cmp word [edx], 0x22
jne 0x41a471
cmp word [edx], 0
je 0x41a456
add edx, 2
jmp 0x41a456
cmp word [edx], 0
je 0x41a456
add edx, 2
jmp 0x41a448
mov edx, 0x41a2a2
mov dword [0x425f7c], edx
test edi, edi
jne 0x41a4ae
mov eax, 1
pop edi
pop esi
pop ecx
ret
push 0x104
push 0x427de0
push esi
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x427ee4
mov eax, esi
mov dword [0x425f78], 0x427de0
call fcn.0041dd80
mov dword [0x425f84], 0x427ee4
mov eax, 1
pop edi
pop esi
pop ecx
ret
Function at 0x41a8d0
Capabilities:
Get file attributes

Disassembly:
push ecx
push edx
push esi
sub esp, 0x140
mov ecx, eax
cmp word [0x425fab], 0x8000
jae 0x41a8ef
cmp byte [0x425fa9], 4
jae 0x41a93e
mov dl, 0x2a
mov esi, ecx
mov al, byte [esi]
cmp al, dl
je 0x41a90b
cmp al, 0
je 0x41a909
inc esi
mov al, byte [esi]
cmp al, dl
je 0x41a90b
inc esi
cmp al, 0
jne 0x41a8f3
sub esi, esi
test esi, esi
jne 0x41a92f
mov dl, 0x3f
mov esi, ecx
mov al, byte [esi]
cmp al, dl
je 0x41a92b
cmp al, 0
je 0x41a929
inc esi
mov al, byte [esi]
cmp al, dl
je 0x41a92b
inc esi
cmp al, 0
jne 0x41a913
sub esi, esi
test esi, esi
je 0x41a947
mov eax, 0xffffffff
add esp, 0x140
pop esi
pop edx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
jmp 0x41a934
mov edx, esp
mov eax, ecx
call fcn.0041ee00
cmp eax, 0xffffffff
je 0x41a934
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp]
add esp, 0x140
pop esi
pop edx
pop ecx
ret

Function at 0x41a970
Capabilities:
Read file on windows

Disassembly:
push ecx
sub esp, 4
test eax, eax
jl 0x41a9a1
cmp eax, dword [0x42600c]
jae 0x41a9a1
push 0
lea ecx, [esp + 4]
push ecx
push ebx
push edx
call fcn.0041d8a0
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x41a9b8
mov eax, dword [esp]
add esp, 4
pop ecx
ret
call dword [0x425c88]
mov dword [eax + 4], 4
mov eax, 0xffffffff
add esp, 4
pop ecx
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
call fcn.00418b90
cmp edx, 0x6d
jne 0x41a9d0
cmp dword [esp], 0
je 0x41a999
mov eax, 0xffffffff
add esp, 4
pop ecx
ret

Function at 0x41d0a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edx
push 0x40
push 0x1000
mov edx, dword [eax]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop edx
pop ecx
ret

Function at 0x41ed20
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 8
mov esi, eax
mov ebp, edx
mov edi, ebx
test eax, eax
jl 0x41edb4
cmp eax, dword [0x42600c]
jae 0x41edb4
call fcn.0041d8a0
mov edx, eax
mov dword [esp + 4], eax
mov eax, esi
xor ebx, ebx
call fcn.0041ec90
test al, 0x80
je 0x41ed78
mov eax, esi
call dword [0x425dc4]
push 2
push 0
push 0
push edx
mov ebx, 1
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x41edc8
push 0
lea eax, [esp + 4]
push eax
push edi
push ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x41edd2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
cmp ebx, 1
jne 0x41eda5
mov eax, esi
call dword [0x425dc8]
mov eax, edx
call fcn.00418b90
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
ret
call dword [0x425c88]
mov dword [eax + 4], 4
mov eax, 0xffffffff
jmp 0x41edac
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
jmp 0x41ed9d
cmp edi, dword [esp]
je 0x41ede4
call dword [0x425c88]
mov dword [eax + 4], 0xc
cmp ebx, 1
jne 0x41edf1
mov eax, esi
call dword [0x425dc8]
mov eax, dword [esp]
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
ret
Function at 0x407320
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2e0
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x2dc], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2fc]
push esi
push edi
mov edi, dword [esp + 0x2f4]
mov ebx, ecx
push 0x1008
mov dword [esp + 0x38], ebx
call fcn.004c22b0
mov ecx, dword [esp + 0x300]
mov esi, eax
mov eax, dword [esp + 0x2fc]
add esp, 4
push edi
mov dword [esi], eax
mov dword [esi + 4], ecx
call fcn.0047f030
lea edx, [esi + 8]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x407377
cmp dword [ebx + 4], 0x50000
jb 0x4073a7
call fcn.0044b3b0
cmp eax, 0x400
je 0x4073a7
cmp byte [esp + 0x310], 0
jne 0x4073f2
mov ebx, dword [esp + 0x300]
cmp ebx, 0xffffffff
je 0x4073b7
test ebp, ebp
jne 0x4073f9
cmp dword [esp + 0x2f8], 2
mov eax, 0x4201
jne 0x4073cb
mov eax, 0x4203
push eax
push 0x2b4
lea edx, [esp + 0x40]
push edx
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp ebx, 0xffffffff
jne 0x4073e8
mov ebx, dword [esp + 0x3c]
test ebp, ebp
jne 0x4073f9
lea ebp, [esp + 0x44]
jmp 0x4073f9
mov ebx, dword [esp + 0x300]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], 0x37
mov dword [esp + 0x18], ebp
test ebp, ebp
jne 0x407437
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x30c]
mov ecx, dword [esp + 0x308]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
push 0
mov dword [esp + 0x34], ecx
mov ecx, dword [eax]
push 0x40b
push ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c1302
add esp, 0x2e0
ret 0x20