joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f3e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea ecx, [ebp - 8]
push ecx
xor eax, eax
push 1
push eax
mov word [esi], ax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x426574
mov edx, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push eax
mov eax, dword [ebp - 8]
push edx
add edi, edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f453
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0x10]
jae 0x42657a
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 8]
push eax
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
push eax
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
xor edx, edx
mov word [edi + esi - 2], dx
jmp 0x40f43f
Function at 0x40f790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00422880
xor eax, eax
nop
mov cl, byte [eax + 0x4921a0]
mov dl, byte [eax + 0x492198]
mov byte [ebp + eax - 0x20], cl
mov byte [ebp + eax - 0x18], dl
inc eax
cmp eax, 8
jl 0x40f7a0
lea eax, [ebp - 8]
push str.AU3_
push eax
call fcn.00413800
push 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00411000
add esp, 0x14
push ebx
push esi
mov dword [ebp - 0xc], 0
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0x10000
lea edx, [ebp - 0x10020]
push 1
push edx
call fcn.00414eb4
add esp, 0x10
cmp eax, 0x18
jl 0x40f861
mov edi, eax
lea esi, [edi - 0x14]
test esi, esi
jle 0x40f830
xor edx, edx
xor ecx, ecx
mov bl, byte [ebp + ecx - 0x20]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x10020]
je 0x40f84e
cmp ecx, 0x14
je 0x426480
inc edx
cmp edx, esi
jl 0x40f810
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
lea edx, [ecx + edi - 0x14]
mov ecx, dword [eax]
push 1
push 0xffffffffffffffec
push ecx
mov dword [ebp - 0xc], edx
call fcn.00415281
add esp, 0xc
jmp 0x40f7e4
mov bl, byte [ebp + ecx - 0x1f]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001f]
je 0x40f86f
inc ecx
jmp 0x40f822
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov bl, byte [ebp + ecx - 0x1e]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001e]
je 0x40f884
add ecx, 2
jmp 0x40f822
mov bl, byte [ebp + ecx - 0x1d]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001d]
jne 0x426478
mov bl, byte [ebp + ecx - 0x1c]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001c]
je 0x426467
add ecx, 4
jmp 0x40f822
add ecx, 5
cmp ecx, 0x14
jl 0x40f812
jmp 0x40f822
add ecx, 3
jmp 0x40f822
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
lea ecx, [eax + edx + 0x14]
mov edx, dword [esi]
push 0
push ecx
push edx
call fcn.00415281
mov eax, dword [esi]
push eax
push 4
lea ecx, [ebp - 8]
push 1
push ecx
call fcn.00414eb4
lea edx, [ebp - 8]
push str.EA06
push edx
mov byte [ebp - 4], 0
call fcn.00414ee0
add esp, 0x24
neg eax
sbb eax, eax
and eax, 4
jmp 0x40f866
Function at 0x40f930
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
or ecx, 0xffffffff
mov ebx, 0x483f68
call fcn.0040f8c0
mov esi, eax
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.00413800
push esi
call fcn.0041137c
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.0040f9f0
lea eax, [esp + 0xa8]
mov ecx, esi
call fcn.0040fa20
xor ebx, ebx
mov dword [edi + 8], ebx
xor ecx, ecx
mov eax, ebx
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
movzx edx, byte [esp + ecx + 0x19]
add eax, edx
movzx edx, byte [esp + ecx + 0x1a]
add eax, edx
movzx edx, byte [esp + ecx + 0x1b]
add ecx, 4
add eax, edx
cmp ecx, 0x10
jl 0x40f984
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
push 0x487178
push eax
call fcn.00414b72
add esp, 8
mov dword [edi], eax
cmp eax, ebx
je 0x42821f
push edi
call fcn.0040f790
cmp eax, ebx
je 0x428229
mov ecx, dword [edi]
push ecx
mov esi, eax
call fcn.00414bf6
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
jmp 0x40f9e3
mov edx, dword [edi]
push edx
push 0x10
lea eax, [esp + 0x10]
push 1
push eax
call fcn.00414eb4
add esp, 0x10
push 0x99f2
push 0x10
lea ecx, [esp + 0x10]
push ecx
call fcn.0044ac61
xor eax, eax
mov dword [edi + 8], ebx
xor ecx, ecx
movzx edx, byte [esp + eax + 8]
inc eax
imul ecx, edx
cmp eax, 0x10
jl 0x428255
mov eax, dword [edi]
push eax
mov dword [edi + 8], ecx
call fcn.00415192
add esp, 4
mov dword [edi + 4], eax
xor eax, eax
jmp 0x40f9e3

Function at 0x40f9f0
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.004130e0
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret

Function at 0x410720
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x497520]
push esi
push 0
mov esi, dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
push 0
push 0
push 0x64
push 0x12c
push accept
push accept
push 0xcf0000
push str.AutoIt_v3
push str.AutoIt_v3
push 0
call esi
mov ecx, dword [0x497520]
push 0
push ecx
push 1
push eax
push 0
push 0
push 0
push 0
push 0x50b008c4
push 0
push str.edit
push 0
mov dword [0x497518], eax
call esi
mov edx, dword [0x497518]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edx
mov dword [0x497514], eax
call esi
mov eax, dword [0x497518]
push 0
push eax
call esi
pop esi
ret

Function at 0x410c30
Capabilities:
Log keystrokes

Disassembly:
push ebx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [esi], 5
mov dword [esi + 4], 5
mov word [esi + 8], 1
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov word [esi + 0x18], bx
push ebx
mov dword [esi + 0x1a], ebx
mov word [esi + 0x1e], bx
push 0x5b
mov dword [esi + 0xc], 4
call edi
push ebx
push 0x10
mov byte [esi + 0x29], al
call edi
push ebx
push 0xa0
mov byte [esi + 0x26], al
call edi
push ebx
push 0xa1
mov byte [esi + 0x27], al
call edi
push ebx
push 0x11
mov byte [esi + 0x28], al
call edi
push ebx
push 0x12
mov byte [esi + 0x24], al
call edi
pop edi
mov byte [esi + 0x25], al
pop ebx
ret
Function at 0x41a3c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x490d40]
jne 0x41a3d2
repz ret
jmp fcn.00422546

Function at 0x4206dc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x490d40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00417a3c
and dword [ebp - 0x14], 0
cmp dword [0x497154], 0
mov dword [ebp - 0x18], eax
jne 0x42078f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x420837
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x483470
push ebx
call edi
test eax, eax
je 0x420837
mov esi, dword [section..data]
push eax
call esi
push 0x483460
push ebx
mov dword [0x497154], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x497158], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x49715c], eax
call edi
push eax
call esi
mov dword [0x497164], eax
test eax, eax
je 0x42078f
push 0x483418
push ebx
call edi
push eax
call esi
mov dword [0x497160], eax
mov eax, dword [0x497160]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00490004]
cmp eax, ecx
je 0x4207e8
cmp dword [0x497164], ecx
je 0x4207e8
push eax
call esi
push dword [0x497164]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4207e8
test ebx, ebx
je 0x4207e8
call edi
test eax, eax
je 0x4207df
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4207df
test byte [ebp - 8], 1
jne 0x4207e8
or dword [ebp + 0x10], 0x200000
jmp 0x42081b
mov eax, dword [0x497158]
cmp eax, dword [ebp - 0x18]
je 0x42081b
push eax
call esi
test eax, eax
je 0x42081b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42081b
mov eax, dword [0x49715c]
cmp eax, dword [ebp - 0x18]
je 0x42081b
push eax
call esi
test eax, eax
je 0x42081b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x497154]
call esi
test eax, eax
je 0x420837
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x420839
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a3c8
leave
ret
Function at 0x4306bc
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x24
cmp word [eax], 0
push ebx
push esi
push edi
je 0x4307dd
push 0
push 0
push 3
push 0
push 0
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4306fa
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4306ef
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 8]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 0x4819f0
push 0
push 0
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4306ef
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
mov eax, dword [ebp + 0x14]
jne 0x4307b6
cmp dword [eax], 0
jne 0x4307b6
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov eax, dword [eax]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
push 0x2000
push eax
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4307e4
mov dword [ebp + 0xc], 0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x60]
test eax, eax
je 0x4307f5
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
push eax
push 0
mov dword [esi + 0x60], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x430817
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
push esi
or ecx, 0x50000000
push edi
mov edi, dword [ebp + 8]
test eax, 0x80000
je 0x430837
and eax, 0xfff7ffff
mov edx, dword [0x4a8684]
push 0
push edx
mov edx, dword [ebp + 0x2c]
push edx
mov edx, dword [edi]
push edx
mov edx, dword [ebp + 0x28]
push edx
mov edx, dword [ebp + 0x24]
push edx
mov edx, dword [ebp + 0x20]
push edx
mov edx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x4308a2
cmp byte [ebp + 0x30], 0
je 0x430887
push 0
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [edi + 0x190], 0
jl 0x4308a2
cmp byte [edi + 0x19c], 0
je 0x4308a2
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x2c
Function at 0x43112e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0x44
push 0
push 0x4a9568
call fcn.004130e0
push 0x10
push 0
push 0x4a9554
call fcn.004130e0
mov ecx, dword [ebp + 8]
add esp, 0x18
push 0x4a9554
push 0x4a9568
push 0
push 0
push 0x20
push 0
push 0
push 0
push ecx
mov eax, 1
push 0
mov dword [0x4a9568], 0x44
mov dword [0x4a9594], 1
mov word [0x4a9598], ax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4311a2
mov edx, dword [0x4a9554]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
ret 4
Function at 0x4318ef
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
cmp eax, ecx
push edi
mov edi, dword [esi + 0xc]
setl byte [ebp + 0x13]
cmp edi, edx
setl byte [ebp - 1]
cmp byte [ebp + 0x13], 0
je 0x43191d
mov dword [esi], eax
mov dword [esi + 8], ecx
cmp byte [ebp - 1], 0
je 0x431929
mov dword [esi + 4], edi
mov dword [esi + 0xc], edx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx + 0x104]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.004318a3
mov eax, dword [ebp - 0x18]
add dword [esi], eax
add dword [esi + 8], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 8]
add dword [esi + 0xc], ecx
mov ebx, dword [esi + 0xc]
sub eax, dword [esi]
add dword [esi + 4], ecx
sub ebx, dword [esi + 4]
inc eax
push 0
mov dword [ebp + 0xc], eax
inc ebx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [ebp + 0xc]
push ebx
mov edi, eax
push ecx
push edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [ebp - 8]
mov edi, eax
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dl, byte [ebp - 1]
mov dword [ebp - 0x10], eax
mov ecx, ebx
test dl, dl
je 0x43199f
neg ecx
cmp byte [ebp + 0x13], 0
mov eax, dword [ebp + 0xc]
je 0x4319aa
neg eax
test dl, dl
je 0x4319b3
mov edx, dword [esi + 0xc]
jmp 0x4319b6
mov edx, dword [esi + 4]
cmp byte [ebp + 0x13], 0
mov dword [ebp + 8], edx
je 0x4319d5
mov esi, dword [esi + 8]
jmp 0x4319d7
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0041137c
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [esi]
mov edx, dword [ebp + 0xc]
push 0xcc0020
push ecx
mov ecx, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push esi
push ecx
push ebx
push edx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
push 0
mov ecx, ebx
neg ecx
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
push 0
push esi
push edi
mov dword [ebp - 0x44], 0x28
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], 0x200001
mov dword [ebp - 0x34], 0
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp + 0x14]
push eax
mov dword [edx], eax
call fcn.00411777
add esp, 4
push 0
lea ecx, [ebp - 0x44]
push ecx
push eax
push ebx
push 0
push esi
push edi
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_GetDIBits]
mov edx, dword [ebp - 0x10]
push edx
push edi
mov ebx, eax
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
test ebx, ebx
pop ebx
je 0x4319c4
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x431a91
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
lea ebx, [ecx + edx]
mov edx, edi
imul edx, esi
add edx, edx
add esi, esi
or eax, 0xffffffff
add edx, edx
lea edi, [ecx + edi*4]
add esi, esi
mov dword [ebp + 8], edi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], ecx
movzx edi, byte [ecx + 2]
mov esi, eax
and esi, 0xff
xor esi, edi
movzx edi, byte [ecx + 1]
shr eax, 8
xor eax, dword [esi*4 + 0x491be8]
mov esi, eax
and esi, 0xff
xor esi, edi
movzx edi, byte [ecx]
shr eax, 8
xor eax, dword [esi*4 + 0x491be8]
add ecx, edx
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x491be8]
mov esi, dword [ebp + 0x14]
cmp ecx, ebx
jb 0x431b1a
add esi, dword [ebp + 0x10]
mov dword [ebp + 0x14], esi
mov ecx, esi
cmp esi, dword [ebp + 8]
jb 0x431ac2
not eax
mov dword [ebp + 0x14], eax
fild dword [ebp + 0x14]
test eax, eax
jns 0x431b31
fadd qword [0x48bd70]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x43204d
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [esp + 0x10]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
xor bl, bl
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4320e0
lea ecx, [ecx]
lea edx, [esp + 0x3c]
push 0x486cfc
push edx
call fcn.004132dc
add esp, 8
test eax, eax
je 0x4320d0
lea eax, [esp + 0x3c]
push 0x489b88
push eax
call fcn.004132dc
add esp, 8
test eax, eax
je 0x4320d0
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
not edx
and eax, edx
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4320fa
mov bl, 1
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x43207d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
call esi
cmp byte [ebp + 0x14], 0
jne 0x43210c
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea edx, [esp + 0x10]
push edx
push 0x489b80
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x432193
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test byte [esp + 0x10], 0x10
je 0x432183
lea eax, [esp + 0x3c]
push 0x486cfc
push eax
call fcn.004132dc
add esp, 8
test eax, eax
je 0x432183
lea ecx, [esp + 0x3c]
push 0x489b88
push ecx
call fcn.004132dc
add esp, 8
test eax, eax
je 0x432183
lea edx, [esp + 0x3c]
push edx
call ebx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
call fcn.0043204d
test al, al
je 0x4321a1
push 0x489b88
call ebx
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x432125
push edi
call esi
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push edi
call esi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4321af
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0xa28
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0xa28]
push ecx
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x4321e1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
lea eax, [ebp - 0xa28]
push eax
lea ecx, [ebp - 0x208]
push str.___s
push ecx
call fcn.0041343b
lea edx, [ebp - 0x208]
push edx
call fcn.00411361
mov edi, eax
add esp, 0x10
cmp word [ebp + edi*2 - 0x20a], 0x5c
jne 0x43222b
cmp word [ebp + edi*2 - 0x20c], 0x3a
je 0x43222b
xor eax, eax
mov word [ebp + edi*2 - 0x20a], ax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x432245
cmp byte [ebp + 0x10], al
jne 0x432245
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
push 0
push 0x2200000
push 3
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4322f8
push 0x14
lea ecx, [ebp - 0x820]
push 0
push ecx
call fcn.004130e0
lea edx, [edi + edi]
mov word [ebp - 0x816], dx
mov eax, dword [ebp - 0x816]
push 0x104
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x810]
add eax, 2
push edx
mov dword [ebp - 0x820], 0xa0000003
mov word [ebp - 0x814], ax
call fcn.0041315a
mov eax, dword [ebp - 0x816]
add esp, 0x18
push 0
add eax, 0xc
lea ecx, [ebp + 8]
push ecx
push 0
movzx edx, ax
push 0
add edx, 8
push edx
mov word [ebp - 0x81c], ax
lea eax, [ebp - 0x820]
push eax
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
test eax, eax
jne 0x43230a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4325de
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x464]
test eax, eax
je 0x4325f6
cmp eax, 0x10000
jne 0x43261a
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x45c]
push eax
push 0x10000
push 1
push ecx
call fcn.00414eb4
add esp, 0x10
mov dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov edx, dword [esi + 0x45c]
mov al, byte [ecx + edx]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
pop ebp
ret 4

Function at 0x432635
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x460]
test eax, eax
je 0x432666
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x458]
push ecx
push eax
push 1
push edx
call fcn.00414466
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 4