joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409840
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [0x40e300]
cmp ebx, eax
jae 0x40986d
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x40e304]
test byte [edx + eax*8 + 4], 1
jne 0x40987f
mov dword [0x40d334], 9
or eax, 0xffffffff
jmp 0x40999c
push 1
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
je 0x4098a7
push 2
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x4098af
or eax, 0xffffffff
jmp 0x40999c
mov eax, dword [ebp + 0xc]
neg edi
add edi, eax
jle 0x409941
push 0x1000
push 1
call fcn.00409e10
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x40993b
push 0x8000
push ebx
call fcn.00409e70
add esp, 8
mov dword [ebp - 8], eax
mov eax, 0x1000
cmp edi, 0x1000
jge 0x4098f2
mov eax, edi
mov edx, eax
push edx
mov eax, dword [ebp - 4]
push eax
push ebx
call fcn.004074e0
add esp, 0xc
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x409910
or dword [ebp - 0xc], 0xffffffff
jmp 0x409922
mov eax, edi
sub eax, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0xc], 0
test eax, eax
jg 0x4098e3
mov eax, dword [ebp - 8]
push eax
push ebx
call fcn.00409e70
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.004040b0
pop ecx
jmp 0x40998d
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
mov dword [ebp - 0xc], 0
test edi, edi
jge 0x40998d
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00408af0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x409966
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
push ebx
call fcn.00407980
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0xc], 0
test eax, eax
jne 0x40998d
mov dword [0x40d334], 0xd
or dword [ebp - 0xc], 0xffffffff
push 0
push esi
push ebx
call fcn.00408af0
add esp, 0xc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x403c17
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
call fcn.00403d81
mov ebx, eax
test ebx, ebx
jne 0x403c57
call fcn.0040155c
mov ecx, edi
call fcn.00403d1d
and dword [esp + 0xc], ebx
lea eax, [esp + 0xc]
push eax
mov ecx, edi
call fcn.00403f77
mov edx, dword [esp + 0xc]
mov ebx, eax
mov ecx, ebx
call fcn.00401637
cmp byte [edi + 0x1d8], 0
je 0x403cd0
cmp dword [edi + 0x1ec], 2
jne 0x403cd0
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [edi + 0x144]
call esi
push 0x43e518
call fcn.004011a4
pop ecx
push eax
push 0x43e518
lea ecx, [edi + 0x174]
call fcn.004020e0
push 0xfffffffffffffff0
push dword [edi + 0x108]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 1
push eax
push 0xfffffffffffffff0
push dword [edi + 0x108]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push 0
lea ecx, [edi + 0x104]
call fcn.00407ad6
push 0
push dword [edi + 0x108]
call esi
jmp 0x403d14
push dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
call esi
test eax, eax
je 0x403d14
mov eax, dword [edi + 0x164]
test eax, eax
je 0x403d0a
push dword [eax + 4]
call esi
test eax, eax
je 0x403d0a
mov eax, dword [edi + 0x164]
push 0
push 2
push 0x111
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404806
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push esi
mov esi, ecx
jne 0x4048ff
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
jne 0x404835
sub esp, 0x10
call fcn.00404b11
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x404901
cmp eax, 0xf
jne 0x404849
lea ecx, [esi + 0x20]
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x40482d
cmp eax, 0x14
jne 0x404859
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 1
jmp 0x40482d
cmp eax, 0x201
jne 0x40486d
push ecx
push dword [ebp + 0x14]
push ecx
push ecx
call fcn.00404a5e
jmp 0x404828
cmp eax, 0x202
jne 0x40487f
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
jmp 0x40482d
cmp eax, 0x18
jne 0x4048d7
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
cmp byte [0x445fe4], 0
mov edi, eax
jne 0x4048cc
xor ecx, ecx
mov byte [0x445fe4], 1
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], ecx
push eax
push ecx
push esi
push 0x404c62
push ecx
push ecx
call fcn.0041791c
add esp, 0x18
test eax, eax
je 0x4048cc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
xor eax, eax
inc eax
pop edi
jmp 0x404901
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x1c], 1
push ecx
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push eax
call fcn.00404ffd
cmp dword [ebp + 0x1c], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jne 0x40482d
xor eax, eax
pop esi
pop ebp
ret 0x18
Function at 0x408133
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
push esi
push eax
mov esi, ecx
push eax
push eax
push eax
mov dword [esi], 0x43eb70
mov dword [esi + 4], eax
or dword [esi + 0xc], 0xffffffff
push str.FreeULoader
mov dword [esi + 8], eax
mov byte [esi + 0x10], al
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 4], eax
test eax, eax
je 0x4081ef
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [ebp - 4]
push edi
push 4
push ecx
push 2
push eax
mov dword [ebp - 4], 0x88b8
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x408191
call edi
push 4
lea eax, [ebp - 4]
push eax
push 5
push dword [esi + 4]
call ebx
test eax, eax
jne 0x4081a4
call edi
push 4
lea eax, [ebp - 4]
push eax
push 6
push dword [esi + 4]
call ebx
test eax, eax
jne 0x4081b7
call edi
push 4
pop eax
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 3
push dword [esi + 4]
call ebx
test eax, eax
jne 0x4081cf
call edi
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push 8
push eax
push 0x32
push dword [esi + 4]
mov dword [ebp - 0x10], 1
call ebx
test eax, eax
jne 0x4081ed
call edi
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4095ef
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x444070]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
push str.AMIGOLOADERV2
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete cl
test cl, cl
jne 0x40975c
mov ecx, edi
call fcn.00405c87
call fcn.00401393
mov eax, dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
push esi
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
push eax
mov byte [esp + 0x28], 1
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
lea ecx, [esp + 0x48]
call fcn.004030e2
push str.silent
lea ecx, [esp + 0x34]
call fcn.00402058
mov ecx, dword [0x445c70]
lea eax, [esp + 0x30]
push eax
call fcn.0040658d
push esi
push 1
lea ecx, [esp + 0x38]
mov bl, al
call fcn.00402089
test bl, bl
jne 0x409701
call dword [sym.imp.USER32.dll_GetActiveWindow]
push esi
push esi
lea ecx, [esp + 0x58]
mov edi, eax
call fcn.00402702
test eax, eax
jne 0x4096d8
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
or edi, 0xffffffff
jmp 0x40971a
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.004024be
push esi
push 0x404e93
push edi
push 0x82
push dword [0x444f30]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
jmp 0x409718
cmp byte [esp + 0x231], 0
je 0x40970f
mov edi, esi
jmp 0x40971a
lea ecx, [esp + 0x48]
call fcn.00403c17
mov edi, eax
cmp byte [esp + 0x220], 0
je 0x40972e
cmp dword [esp + 0x234], 2
jne 0x409743
cmp byte [esp + 0x231], 0
jne 0x409743
test edi, edi
jne 0x409741
call fcn.0040951c
mov esi, edi
lea ecx, [esp + 0x48]
call fcn.004032d4
cmp byte [esp + 0x1c], 0
je 0x40975c
lea ecx, [esp + 0x14]
call fcn.00409784
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40976b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x23c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004107d5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a436
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, ecx
cmp byte [edi + 0x24], 0
jne 0x40a4db
push esi
xor eax, eax
mov dword [ebp - 4], 0x1388
push eax
push eax
push eax
push eax
push str.FreeULoader
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
je 0x40a4da
push 4
lea eax, [ebp - 4]
push eax
push 2
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x40a4d3
push 4
lea eax, [ebp - 4]
push eax
push 6
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x40a4d3
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 3
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x40a4d3
lea eax, [edi + 0xc]
cmp dword [eax + 0x14], 8
jb 0x40a4b2
mov eax, dword [eax]
xor ecx, ecx
push ecx
push 0x80000000
push ecx
push ecx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
test eax, eax
je 0x40a4d3
push eax
mov byte [edi + 0x24], 1
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40c205
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.0040c2a2
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40c298
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x40c291
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x40c288
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40c288
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x40c29a
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0040c2a2
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40c2e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
jne 0x40c2f1
xor al, al
jmp 0x40c35a
mov ecx, 0x5a4d
push esi
cmp word [eax], cx
jne 0x40c357
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x40c357
mov edx, dword [ecx + eax + 0x98]
xor ecx, ecx
lea esi, [edx + eax]
test edx, edx
jne 0x40c31a
mov esi, ecx
test esi, esi
je 0x40c357
lea eax, [esi + 8]
test eax, eax
je 0x40c357
cmp byte [eax], 0x30
lea edx, [eax + 1]
jne 0x40c349
mov al, byte [edx]
cmp al, 0x82
jne 0x40c349
movzx ecx, byte [edx + 1]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, 0x13
add ecx, eax
and ecx, 0xffffff8
test ecx, ecx
je 0x40c357
mov dword [edi + 0x14], ecx
mov al, 1
mov dword [edi + 0x18], esi
jmp 0x40c359
xor al, al
pop esi
pop edi
pop ebp
ret 4
Function at 0x40c7bb
Capabilities:
Encode data using xor

Disassembly:
push 0x844
mov eax, 0x430a0b
call fcn.0041129c
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x840], eax
mov edi, 0xff
mov ecx, esi
mov dword [ebp - 0x850], esi
lea eax, [ebp - 0x844]
mov dword [ebp - 0x84c], ecx
mov dword [ebp - 0x848], edi
mov dword [ebp - 0x844], 0x4fd7e7d
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x830], eax
push 0x20
pop ebx
or eax, 0xffffffff
shr eax, 1
dec ebx
mov dword [ebp - 0x82c], ebx
mov dword [ebp - 0x828], eax
cmp eax, 0x7ffffffd
ja 0x40c810
mov dword [ebp - 0x834], eax
add edi, 0x80000000
lea eax, [ecx - 0x80000000]
mov dword [ebp - 0x838], ebx
sub edi, eax
mov dword [ebp - 0x83c], eax
cmp edi, 0xffffffff
jne 0x40c875
mov edi, esi
mov dword [ebp - 0x818], esi
lea ecx, [ebp - 0x830]
call fcn.0040cb0e
lea ecx, [ebx - 1]
add esi, ebx
shl edi, cl
add edi, edi
or edi, eax
cmp esi, 0x20
jb 0x40c853
xor esi, esi
jmp 0x40c91d
lea eax, [edi + 1]
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x814], esi
mov eax, esi
mov dword [ebp - 0x820], eax
test edi, edi
je 0x40c8e0
mov esi, dword [ebp - 0x834]
lea eax, [ebx - 1]
mov ebx, dword [ebp - 0x814]
mov dword [ebp - 0x81c], eax
lea ecx, [ebp - 0x830]
call fcn.0040cb0e
mov ecx, dword [ebp - 0x81c]
shl ebx, cl
add ebx, ebx
or ebx, eax
mov eax, dword [ebp - 0x820]
shl eax, cl
add eax, eax
or eax, esi
mov dword [ebp - 0x820], eax
cmp eax, edi
jb 0x40c8a5
mov dword [ebp - 0x814], ebx
xor esi, esi
mov ebx, dword [ebp - 0x838]
xor edx, edx
lea ecx, [edi + 1]
div ecx
mov ecx, eax
mov dword [ebp - 0x81c], edx
mov eax, dword [ebp - 0x814]
xor edx, edx
div dword [ebp - 0x818]
cmp eax, ecx
jb 0x40c90d
cmp dword [ebp - 0x81c], edi
jne 0x40c87e
mov eax, dword [ebp - 0x814]
xor edx, edx
div dword [ebp - 0x818]
mov edi, edx
mov ecx, dword [ebp - 0x824]
mov eax, dword [ebp - 0x83c]
add eax, edi
add eax, 0x80000000
mov byte [ebp + ecx - 0x810], al
inc ecx
mov dword [ebp - 0x824], ecx
cmp ecx, 0x800
jge 0x40c957
mov edi, dword [ebp - 0x848]
mov ecx, dword [ebp - 0x84c]
jmp 0x40c80a
push 0x800
lea ecx, [ebp - 0x830]
call fcn.00409286
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x830]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cmp eax, 0x800
jne 0x40c9a0
lea ebx, [ebp - 0x810]
sub ebx, edi
mov eax, dword [ecx]
lea edx, [edi + esi]
mov cl, byte [ebx + edx]
xor cl, byte [eax + esi]
inc esi
mov byte [edx], cl
mov ecx, dword [ebp + 0xc]
cmp esi, 0x800
jl 0x40c987
mov ecx, dword [ebp - 0x840]
push edi
call fcn.0040a703
lea ecx, [ebp - 0x830]
call fcn.004092cd
mov eax, dword [ebp - 0x840]
call fcn.00411246
ret 8
Function at 0x40cc38
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x430a3b
call fcn.00411268
mov ebx, ecx
and dword [ebp - 0x18], 0
cmp dword [ebx], 0
je 0x40cd15
cmp dword [ebx], 0xffffffff
je 0x40cd15
push 0x40
pop esi
push esi
lea ecx, [ebp - 0x24]
call fcn.0040cdf7
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x40cc79
mov ecx, dword [eax]
jmp 0x40cc7b
mov ecx, eax
mov edi, dword [ebp - 0x24]
lea eax, [esi + esi]
mov dword [ebp - 0x14], eax
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push esi
push ecx
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cccf
cmp dword [ebp - 0x10], 1
je 0x40ccae
cmp dword [ebp - 0x10], 2
je 0x40ccae
push 0xd
pop eax
jmp 0x40cccf
test edi, edi
je 0x40cccd
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40ccc8
test al, 1
jne 0x40cca9
shr eax, 1
cmp word [edi + eax*2 - 2], si
je 0x40cccd
jmp 0x40cca9
xor eax, eax
mov word [edi], ax
mov eax, esi
mov dword [ebx + 0xc], eax
cmp eax, 0xea
jne 0x40ccec
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
sub esi, edi
and esi, 0xfffffffe
push esi
call fcn.0040cd96
jmp 0x40cc6c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0xc], esi
je 0x40cd0d
push dword [ebp + 0x10]
call fcn.00404a14
lea ecx, [ebp - 0x24]
call fcn.0040ce30
jmp 0x40cd20
push edi
call fcn.00402058
jmp 0x40cd03
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
call fcn.00404a14
mov eax, dword [ebp + 8]
call fcn.00411231
ret 0xc

Function at 0x40cd2b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x40cd91
cmp dword [edi], 0xffffffff
je 0x40cd91
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
jb 0x40cd46
mov ecx, dword [ecx]
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x40cd52
mov esi, dword [esi]
test ecx, ecx
jne 0x40cd5b
push 0xd
pop eax
jmp 0x40cd8d
and dword [ebp + 0xc], 0
mov edx, ecx
push ebx
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp + 0xc]
jne 0x40cd65
sub edx, ebx
sar edx, 1
lea eax, [edx*2 + 2]
push eax
push ecx
push 1
xor eax, eax
push eax
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebx
mov dword [edi + 0xc], eax
pop esi
pop edi
pop ebp
ret 8
Function at 0x40d067
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x2a4
mov eax, 0x430a85
call fcn.0041129c
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x2ac], edi
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x445ffc]
cmp eax, dword [esi + 4]
jle 0x40d0cf
mov esi, 0x445ffc
push esi
call fcn.00410cc7
cmp dword [0x445ffc], 0xffffffff
pop ecx
jne 0x40d0cf
and dword [ebp - 4], 0
mov ecx, 0x446000
push ebx
call fcn.00404a14
push 0x431062
call fcn.00410b53
or dword [ebp - 4], 0xffffffff
push esi
call fcn.00410c88
pop ecx
pop ecx
push ecx
mov edx, edi
lea ecx, [ebp - 0x40]
call fcn.0040d4b4
pop ecx
xor edx, edx
lea eax, [ebp - 0x40]
inc edx
mov dword [ebp - 4], edx
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x2a8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40d11b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40d1e6
jmp 0x40d1cd
mov dword [ebp - 0x2b0], edi
mov byte [ebp - 4], 2
cmp word [ebp - 0x27c], 0x2e
je 0x40d1a5
mov edx, dword [ebp - 0x2ac]
mov esi, dword [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x58]
call fcn.0040d524
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.00407018
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.00402089
and esi, 0x410
je 0x40d17f
mov edx, ebx
lea ecx, [ebp - 0x28]
call fcn.0040d067
jmp 0x40d195
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40d1d1
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00402089
lea eax, [ebp - 0x2a8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d125
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x40d1df
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor bl, bl
jmp 0x40d1e8
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00402089
jmp 0x40d1c6
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00402089
mov al, bl
call fcn.00411246
ret
Function at 0x40d1fc
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0x24
mov eax, 0x430ac6
call fcn.0041129c
mov byte [ebp - 0x29], dl
mov esi, ecx
and dword [ebp - 0x30], 0
cmp dword [esi + 0x10], 0
jne 0x40d21e
mov al, 1
jmp 0x40d2de
cmp dword [esi + 0x10], 0x104
jae 0x40d2dc
cmp dword [esi + 0x14], 8
jb 0x40d235
mov eax, dword [esi]
jmp 0x40d237
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d217
test bl, 1
je 0x40d267
cmp dword [esi + 0x14], 8
jb 0x40d254
mov ecx, dword [esi]
jmp 0x40d256
mov ecx, esi
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40d2dc
test bl, 0x10
jne 0x40d283
cmp dword [esi + 0x14], 8
jb 0x40d274
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
jmp 0x40d2de
cmp byte [ebp - 0x29], 0
je 0x40d2b3
push 0x43f0b8
lea ecx, [ebp - 0x28]
call fcn.00402058
and dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, esi
mov dword [ebp - 0x30], 1
call fcn.0040d067
test al, al
jne 0x40d2b3
xor bl, bl
jmp 0x40d2b5
mov bl, 1
test byte [ebp - 0x30], 1
je 0x40d2c7
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00402089
test bl, bl
je 0x40d2dc
cmp dword [esi + 0x14], 8
jb 0x40d2d3
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40d27b
xor al, al
call fcn.00411246
ret

Function at 0x40d2e4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ecx + 0x14], 8
push esi
mov esi, edx
jb 0x40d2f7
mov ecx, dword [ecx]
push 0x43f0c0
push ecx
lea eax, [ebp - 4]
push eax
call fcn.0041c261
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x40d318
call fcn.0041c7ba
mov eax, dword [eax]
jmp 0x40d353
push 2
push 0
push dword [ebp - 4]
call fcn.0041c658
push dword [ebp - 4]
call fcn.0041c673
add esp, 0x10
mov ecx, esi
push 3
call fcn.0040c9c5
push dword [ebp - 4]
push 3
push 1
push dword [esi]
call fcn.0041c999
push dword [ebp - 4]
call fcn.0041c31e
add esp, 0x14
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d358
Capabilities:
Create directory

Disassembly:
push 0x50
mov eax, 0x430b13
call fcn.0041129c
mov ebx, edx
mov edi, ecx
and dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
and dword [ebp - 4], eax
xor esi, esi
and dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004021fa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.0040e691
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00406da6
push 0
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00402089
push 0x5f
lea ecx, [ebp - 0x2c]
call fcn.00406845
mov edx, 0x7fff
call fcn.0040e6ea
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.0040e691
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00406da6
push 0
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00402089
push edi
lea ecx, [ebp - 0x5c]
call fcn.00404a14
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.00406da6
lea ecx, [ebp - 0x44]
cmp ecx, eax
je 0x40d43c
push 0xffffffffffffffff
push 0
push eax
call fcn.004021fa
push 0
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00402089
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40d480
push eax
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], al
call fcn.00402089
inc esi
cmp esi, 0x32
jl 0x40d37e
xor bl, bl
jmp 0x40d4a0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x44]
mov ecx, 0x444a04
push eax
call fcn.004021fa
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402089
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.00402089
mov al, bl
call fcn.00411246
ret