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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor edi, edi
call fcn.0040cd0d
mov esi, eax
lea eax, [ebp - 8]
push eax
push 1
push ebx
push str.Control_PanelMouse
push reloc.WSOCK32.dll_accept
mov dword [ebp - 0xc], 3
mov byte [ebp - 4], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cbc5
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push str.SwapMouseButtons
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 7
ja case.default.0x40cbca
jmp dword [esi*4 + 0x40cc19]
xor eax, eax
jmp 0x40cc13
push 2
pop edi
jmp case.default.0x40cbca
push 8
jmp 0x40cbd7
push 0x20
jmp 0x40cbd7
xor eax, eax
cmp byte [ebp - 4], 0x31
setne al
dec eax
and eax, 6
inc eax
inc eax
jmp 0x40cc03
xor eax, eax
cmp byte [ebp - 4], 0x31
setne al
dec eax
and eax, 0xfffffffa
add eax, 8
mov edi, eax
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_mouse_event]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40cc39
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor edi, edi
call fcn.0040cd0d
push 4
pop esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 1
push ebx
push str.Control_PanelMouse
push reloc.WSOCK32.dll_accept
mov dword [ebp - 0xc], esi
mov byte [ebp - 4], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cc95
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push str.SwapMouseButtons
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
cmp eax, 7
ja case.default.0x40cc9d
jmp dword [eax*4 + 0x40cced]
xor eax, eax
jmp 0x40cce6
mov edi, esi
jmp case.default.0x40cc9d
push 0x10
pop edi
jmp case.default.0x40cc9d
push 0x40
jmp 0x40ccae
xor eax, eax
cmp byte [ebp - 4], 0x31
setne al
dec eax
and eax, 0xc
add eax, esi
jmp 0x40ccd6
xor eax, eax
cmp byte [ebp - 4], 0x31
setne al
dec eax
and eax, 0xfffffff4
add eax, 0x10
mov edi, eax
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_mouse_event]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411041
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x471c9c]
jne 0x41104f
call fcn.00410f2e
mov eax, dword [0x47b5ac]
mov eax, dword [eax]
add dword [0x47b5ac], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
test ecx, ecx
mov dword [esp], ecx
fild dword [esp]
jge 0x411095
fadd qword [0x46c960]
fmul qword [0x46c958]
pop ecx
ret

Function at 0x41123e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [esi + 0x14], 1
jne 0x411260
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.0044f370
add esp, 0xc
jmp 0x411273
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.0045019d
add esp, 0x10
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 3]
add dword [esi + 0xc], 8
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 1]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [ebp - 8]
push str.EA06
push eax
mov byte [ebp - 4], 0
call fcn.0044d5b0
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
leave
ret 4

Function at 0x411347
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 0x25c]
test eax, eax
mov ecx, 0x10000
je 0x41135a
cmp eax, ecx
jne 0x411375
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x254]
call fcn.0045019d
add esp, 0x10
and dword [esi + 0x25c], 0
mov ecx, dword [esi + 0x25c]
mov eax, dword [esi + 0x254]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x25c], ecx
ret

Function at 0x41138c
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0x18], 1
mov eax, dword [esi + 0x23c]
push edi
je 0x411443
cmp eax, dword [esi + 0x234]
jae 0x41140f
mov edi, 0x10000
push ebx
mov eax, dword [esi + 0x23c]
mov ecx, dword [esi + 0x230]
mov ebx, dword [esi + 0x258]
mov edx, dword [esi + 0x250]
and eax, 0x1ffff
mov al, byte [eax + ecx]
mov byte [edx + ebx], al
inc dword [esi + 0x258]
cmp dword [esi + 0x258], edi
jne 0x4113f7
push dword [esi + 0x20]
push edi
push 1
push dword [esi + 0x250]
call fcn.00450b32
add esp, 0x10
and dword [esi + 0x258], 0
inc dword [esi + 0x23c]
inc dword [esi + 8]
mov eax, dword [esi + 0x23c]
cmp eax, dword [esi + 0x234]
jb 0x4113ab
pop ebx
and dword [esi + 0x238], 0
pop edi
ret
mov eax, dword [esi + 0x23c]
mov ecx, dword [esi + 0x230]
mov edi, dword [esi + 8]
mov edx, dword [esi]
and eax, 0x1ffff
mov al, byte [eax + ecx]
mov byte [edx + edi], al
inc dword [esi + 8]
inc dword [esi + 0x23c]
mov eax, dword [esi + 0x23c]
cmp eax, dword [esi + 0x234]
jb 0x411418
jmp 0x41140f
Function at 0x41144d
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x234], eax
push edi
mov dword [esp + 0x10], eax
jae 0x4115ad
mov ebp, 0xff
push 1
mov eax, esi
call fcn.004115dd
cmp eax, 1
mov eax, esi
jne 0x4114a9
push 8
call fcn.004115dd
mov ecx, dword [esi + 0x234]
mov edx, dword [esi + 0x230]
and ecx, 0x1ffff
mov byte [ecx + edx], al
inc dword [esi + 0x234]
inc dword [esi + 0x238]
jmp 0x411548
push 0xf
call fcn.004115dd
mov ebx, eax
push 2
mov eax, esi
xor edi, edi
call fcn.004115dd
cmp eax, 3
jne 0x411508
push eax
pop edi
push eax
mov eax, esi
call fcn.004115dd
cmp eax, 7
jne 0x411508
push 0xa
pop edi
push 5
mov eax, esi
call fcn.004115dd
cmp eax, 0x1f
jne 0x411508
push 0x29
pop edi
push 8
mov eax, esi
call fcn.004115dd
cmp eax, ebp
jne 0x411508
mov edi, 0x128
jmp 0x4114fb
add edi, ebp
push 8
mov eax, esi
call fcn.004115dd
cmp eax, ebp
je 0x4114f9
lea edi, [eax + edi + 3]
mov eax, dword [esi + 0x234]
sub eax, ebx
jmp 0x411544
mov ebx, dword [esi + 0x234]
mov ecx, dword [esi + 0x230]
mov edx, eax
and edx, 0x1ffff
mov dl, byte [edx + ecx]
and ebx, 0x1ffff
dec edi
mov byte [ebx + ecx], dl
inc eax
inc dword [esi + 0x234]
inc dword [esi + 0x238]
test edi, edi
jne 0x411516
call fcn.0041138c
cmp dword [0x47f2d8], 0x1000
jbe 0x41158e
mov edi, dword [esi + 0x24c]
and dword [0x47f2d8], 0
test edi, edi
je 0x411594
mov ecx, dword [esi + 8]
mov eax, ecx
imul eax, eax, 0x64
xor edx, edx
div dword [esi + 0x10]
push eax
push ecx
push dword [esi + 0xc]
call edi
add esp, 0xc
test eax, eax
jne 0x411594
mov byte [esi + 0x240], 1
jmp 0x411594
inc dword [0x47f2d8]
cmp byte [esi + 0x240], 0
jne 0x4115d8
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x234], eax
jb 0x41146c
lea edi, [esi + 0x258]
mov eax, dword [edi]
test eax, eax
je 0x4115d0
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x250]
call fcn.00450b32
add esp, 0x10
and dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
pop eax
jmp 0x4115d2

Function at 0x41166d
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.0044fdd0
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 0x412052
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
lea eax, [esp + 0xa8]
push 0x468eee
push eax
call fcn.0044cf30
pop ecx
pop ecx
lea esi, [esp + 0x18]
call fcn.0041166d
lea eax, [esp + 0xa8]
push eax
call fcn.0044d720
pop ecx
mov ebx, eax
call fcn.0041166d
lea eax, [esp + 0xa8]
push eax
mov eax, ebx
call fcn.0041169a
mov eax, esi
call fcn.00411731
and dword [edi + 8], 0
push 0x10
xor ecx, ecx
xor eax, eax
pop ebx
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
inc ecx
cmp ecx, ebx
jl 0x4120b3
push 0x4699e4
push dword [ebp + 8]
mov dword [edi + 8], eax
call fcn.00450849
test eax, eax
pop ecx
pop ecx
mov dword [edi], eax
jne 0x4120da
inc eax
jmp 0x412136
mov esi, edi
call fcn.0041213e
push dword [edi]
mov esi, eax
test esi, esi
je 0x4120f2
call fcn.00450c26
mov eax, esi
jmp 0x412135
push ebx
lea eax, [esp + 0x10]
push 1
push eax
call fcn.0045019d
add esp, 0x10
push 0x99f2
push ebx
lea eax, [esp + 0x10]
push eax
call fcn.00412239
xor ecx, ecx
mov dword [edi + 8], ecx
xor eax, eax
movzx edx, byte [esp + eax + 8]
imul ecx, edx
inc eax
cmp eax, ebx
jl 0x412119
push dword [edi]
mov dword [edi + 8], ecx
call fcn.00451939
mov dword [edi + 4], eax
xor eax, eax
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41213e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00452790
xor eax, eax
mov cl, byte [eax + 0x472148]
mov byte [ebp + eax - 0x20], cl
mov cl, byte [eax + 0x472140]
mov byte [ebp + eax - 0x18], cl
inc eax
cmp eax, 8
jl 0x41214d
push ebx
push edi
lea eax, [ebp - 8]
push str.AU3_
push eax
call fcn.0044cf30
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0044f370
add esp, 0x14
xor edi, edi
push dword [esi]
lea eax, [ebp - 0x10020]
push 0x10000
push 1
push eax
call fcn.0045019d
add esp, 0x10
cmp eax, 0x18
mov dword [ebp - 0xc], eax
jl 0x412234
lea edx, [eax - 0x14]
xor ecx, ecx
test edx, edx
jle 0x4121e0
xor edx, edx
lea eax, [ebp + ecx - 0x10020]
mov bl, byte [ebp + edx - 0x20]
cmp bl, byte [eax + edx]
jne 0x4121d0
inc edx
cmp edx, 0x14
jl 0x4121c1
cmp edx, 0x14
je 0x4121f4
mov eax, dword [ebp - 0xc]
inc ecx
lea edx, [eax - 0x14]
cmp ecx, edx
jl 0x4121b8
push 1
push 0xffffffffffffffec
push dword [esi]
lea edi, [edi + eax - 0x14]
call fcn.004508e3
add esp, 0xc
jmp 0x41218b
push 0
lea eax, [edi + ecx + 0x14]
push eax
push dword [esi]
call fcn.004508e3
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push 4
push 1
push eax
call fcn.0045019d
lea eax, [ebp - 8]
push str.EA06
push eax
mov byte [ebp - 4], 0
call fcn.0044d5b0
add esp, 0x18
neg eax
sbb eax, eax
and eax, 4
pop edi
pop ebx
leave
ret
push 3
pop eax
jmp 0x412230
Function at 0x412239
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push esi
push edi
lea eax, [ebp - 0xdc]
call fcn.00411eb3
push dword [ebp + 0x10]
lea esi, [ebp - 0xdc]
call fcn.00411ff3
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x41227e
mov eax, dword [ebp + 8]
lea esi, [edi + eax]
lea eax, [ebp - 0xdc]
push eax
call fcn.00411fc5
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x412264
pop edi
pop esi
leave
ret 0xc
Function at 0x412568
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x37c
push ebx
push esi
mov esi, eax
push edi
lea eax, [ebp - 0x270]
call fcn.004110f1
push 0
push dword [esi + 4]
xor edi, edi
push dword [esi]
inc edi
mov dword [ebp - 0xc], edi
call fcn.004508e3
add esp, 0xc
lea eax, [ebp - 0x378]
push eax
push str.___AUTOIT_SCRIPT___
call fcn.004126d8
test eax, eax
je 0x4125b3
push 6
pop eax
jmp 0x4126d1
push dword [esi]
lea eax, [ebp - 1]
push edi
push edi
push eax
call fcn.0045019d
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.0045019d
push dword [esi]
mov edi, dword [ebp - 8]
push 1
lea eax, [ebp - 8]
push 4
mov ebx, 0x87bc
push eax
xor edi, ebx
call fcn.0045019d
push dword [esi]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
xor eax, ebx
push 1
mov dword [ecx], eax
lea eax, [ebp - 8]
push 4
push eax
call fcn.0045019d
mov ebx, dword [ebp - 8]
add esp, 0x40
push 1
push 0x10
push dword [esi]
xor ebx, 0xa685
call fcn.004508e3
mov eax, dword [ebp + 0xc]
add esp, 0xc
push dword [eax]
call fcn.0044f212
pop ecx
push edi
mov dword [ebp + 0xc], eax
call fcn.0044f212
pop ecx
push dword [esi]
mov dword [ebp - 0x10], eax
push 1
push edi
push eax
call fcn.0045019d
mov eax, dword [esi + 8]
mov esi, dword [ebp - 0x10]
add esp, 0x10
add eax, 0x2477
push eax
push edi
push esi
call fcn.00412239
push edi
push esi
lea edi, [ebp - 0xc]
call fcn.0041109d
cmp ebx, dword [ebp - 0xc]
je 0x412679
push dword [ebp + 0xc]
call fcn.0044f2d5
pop ecx
push esi
call fcn.0044f2d5
pop ecx
push 0xa
jmp 0x4125ad
cmp byte [ebp - 1], 1
jne 0x4126bb
lea eax, [ebp - 0x270]
call fcn.004110f1
xor eax, eax
inc eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x270]
mov dword [ebp - 0x26c], esi
call fcn.0041111d
push esi
call fcn.0044f2d5
jmp 0x4126c6
push dword [ebp + 0xc]
call fcn.0044f2d5
mov dword [ebp + 0xc], esi
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4126d8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
push ebx
push edi
mov byte [ebp - 1], 1
push dword [esi]
lea eax, [ebp - 0x14]
push 4
push 1
push eax
call fcn.0045019d
add esp, 0x10
push 0x18ee
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.00412239
lea eax, [ebp - 0x14]
push str.FILE
push eax
mov byte [ebp - 0x10], 0
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
jne 0x412856
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.0045019d
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0xadbc
lea ebx, [edi + edi]
push ebx
lea eax, [ebp - 0x228]
push 1
push eax
call fcn.0045019d
add esp, 0x20
add edi, 0xb33f
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.00412239
and word [ebp + ebx - 0x228], 0
lea eax, [ebp - 0x228]
push eax
or eax, 0xffffffff
call fcn.0040d6fa
pop ecx
mov edi, eax
lea eax, [ebp - 0x330]
push edi
push eax
call fcn.0044cf30
push edi
call fcn.0044d0f0
add esp, 0xc
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.0045019d
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0xf820
lea ebx, [edi + edi]
push ebx
lea eax, [ebp - 0x228]
push 1
push eax
call fcn.0045019d
add esp, 0x20
add edi, 0xf479
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.00412239
and word [ebp + ebx - 0x228], 0
lea eax, [ebp - 0x228]
push eax
or eax, 0xffffffff
call fcn.0040d6fa
pop ecx
mov edi, eax
push edi
push dword [ebp + 0xc]
call fcn.0044cf30
push edi
call fcn.0044d0f0
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x330]
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
je 0x41286d
xor edi, edi
inc edi
push edi
push edi
push dword [esi]
call fcn.004508e3
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.0045019d
xor dword [ebp - 8], 0x87bc
mov eax, dword [ebp - 8]
push edi
add eax, 0x18
push eax
push dword [esi]
call fcn.004508e3
add esp, 0x1c
jmp 0x41285a
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 1
je 0x4126e7
push 6
pop eax
pop edi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x412867
Function at 0x419c4a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
cmp byte [ebp + 0xc], 0
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x18c]
push edi
lea edi, [esi + 0x56c]
mov ebx, dword [edi]
mov dword [esp + 0x10], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebx
je 0x419c81
call fcn.0040d8f2
cmp byte [ebp + 0x10], 0
je 0x419dec
lea eax, [esi + 0x5b0]
push eax
lea ebx, [esp + 0x7c]
mov dword [esp + 0x18], eax
call fcn.0040eff2
lea edi, [esi + 0x5c0]
lea esi, [esp + 0x5c]
mov dword [esp + 0x18], edi
call fcn.0040db02
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x670]
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0x5cc]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x678]
lea edi, [ebx + 0x6c4]
lea esi, [esp + 0x50]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
call fcn.0040db02
mov eax, dword [ebx + 0x6d0]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x6d4]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x254]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x258]
add ebx, 0x240
push ebx
mov dword [esp + 0x44], ebx
lea ebx, [esp + 0x6c]
mov dword [esp + 0x40], eax
call fcn.0040eff2
mov edi, dword [esp + 0x10]
push dword [ebp + 8]
mov eax, edi
call fcn.004189cf
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x78]
push eax
call fcn.0040f6bd
mov eax, dword [esp + 0x18]
lea ebx, [esp + 0x5c]
call fcn.0040db98
mov eax, dword [esp + 0x1c]
push dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov dword [edi + 0x670], eax
call fcn.00403398
mov eax, dword [esp + 0x28]
mov dword [edi + 0x678], eax
mov eax, dword [esp + 0x2c]
lea ebx, [esp + 0x50]
call fcn.0040db98
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x40]
mov dword [edi + 0x6d0], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x6d4], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0x254], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x258], eax
lea eax, [esp + 0x68]
push eax
call fcn.0040f6bd
lea ecx, [esp + 0x68]
call fcn.0040f244
push dword [esp + 0x50]
call fcn.0044d0f0
push dword [esp + 0x60]
call fcn.0044d0f0
pop ecx
pop ecx
lea ecx, [esp + 0x78]
call fcn.0040f244
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x10]
jmp 0x419df6
push dword [ebp + 8]
mov eax, esi
call fcn.004189cf
cmp byte [ebp + 0xc], 0
je 0x419e08
call fcn.0040d94c
jmp 0x419e08
call fcn.00419e7a
cmp ebx, dword [edi]
jl 0x419e03
mov eax, dword [esp + 0x4c]
pop edi
mov dword [esi + 0x18c], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b042
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, eax
xor eax, eax
mov ecx, ebx
call fcn.0040545c
cmp dword [eax + 8], 4
jne 0x41b0bd
push 0x60
call fcn.0044d086
test eax, eax
pop ecx
je 0x41b071
call fcn.0040abf7
mov edi, eax
jmp 0x41b073
xor edi, edi
xor eax, eax
mov ecx, ebx
call fcn.0040545c
mov esi, eax
call fcn.0040f2f4
xor ebx, ebx
push eax
inc ebx
mov eax, ebx
mov ecx, edi
call fcn.0040ac07
test al, al
jne 0x41b149
test edi, edi
je 0x41b0aa
mov esi, edi
call fcn.0040add2
push edi
call fcn.0044d0f0
pop ecx
mov esi, dword [ebp + 0xc]
push 0
call fcn.0040f871
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
xor eax, eax
mov ecx, ebx
call fcn.0040545c
call fcn.0040f3c6
mov esi, eax
dec esi
js 0x41b0aa
xor eax, eax
mov ecx, ebx
call fcn.0040545c
call fcn.00410609
test al, al
je 0x41b0aa
cmp esi, dword [edi + 0x580]
jge 0x41b0aa
jb 0x41b0f3
call fcn.00419ebf
jmp 0x41b0fc
mov eax, dword [edi + 0x57c]
mov eax, dword [eax + esi*4]
cmp dword [eax], 0
je 0x41b0aa
cmp esi, dword [edi + 0x580]
jb 0x41b110
call fcn.00419ebf
jmp 0x41b119
mov eax, dword [edi + 0x57c]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
cmp dword [eax], 0
jne 0x41b0aa
cmp esi, dword [edi + 0x580]
jb 0x41b12f
call fcn.00419ebf
jmp 0x41b138
mov eax, dword [edi + 0x57c]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
mov edi, dword [eax + 4]
test byte [edi], 3
je 0x41b0aa
xor ebx, ebx
inc ebx
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.0040545c
cmp dword [eax + 8], 0xb
je 0x41b1e8
test byte [edi], 0x10
jne 0x41b1e8
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.0040545c
mov esi, eax
call fcn.0040f2f4
mov ecx, eax
mov esi, edi
call fcn.0040ae94
cmp byte [ebp + 0x10], 0
je 0x41b22e
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.0040545c
mov esi, eax
call fcn.0040f2f4
push eax
call fcn.0044d720
mov ebx, eax
test ebx, ebx
pop ecx
je 0x41b1da
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
call fcn.0040545c
mov esi, eax
call fcn.0040f2f4
cmp byte [eax + ebx - 1], 0xd
je 0x41b22e
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
call fcn.0040545c
mov esi, eax
call fcn.0040f2f4
cmp byte [eax + ebx - 1], 0xa
je 0x41b22e
mov ecx, 0x469b38
mov esi, edi
call fcn.0040ae94
jmp 0x41b22e
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.0040545c
call fcn.0040f336
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, ebx
call fcn.0040545c
mov ecx, eax
call fcn.0040f2bc
push dword [edi + 4]
push eax
push ebx
push esi
call fcn.00450b32
push dword [edi + 4]
call fcn.004501e7
add esp, 0x14
test eax, eax
je 0x41b22e
mov esi, dword [ebp + 0xc]
push 0
call fcn.0040f871
mov ecx, dword [ebp + 8]
xor eax, eax
call fcn.0040545c
cmp dword [eax + 8], 4
jne 0x41b0b4
mov esi, edi
call fcn.0040add2
call fcn.0040add2
push edi
call fcn.0044d0f0
pop ecx
jmp 0x41b0b4
Function at 0x41b6f3
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push edi
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41b773
lea eax, [ebp - 0x11c]
push 0x469a60
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
je 0x41b761
lea eax, [ebp - 0x11c]
push 0x46b2dc
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
je 0x41b761
push dword [ebp + 0x10]
lea eax, [ebp - 0x11c]
push dword [ebp + 0xc]
push eax
call fcn.0040baad
add esp, 0xc
test al, al
je 0x41b78b
lea eax, [ebp - 0x148]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41b71a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41b796
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x41b784
lea eax, [ebp - 0x148]
push eax
push 0x46b2d8
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x41b824
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test byte [ebp - 0x148], 0x10
je 0x41b810
lea eax, [ebp - 0x11c]
push 0x469a60
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
je 0x41b810
lea eax, [ebp - 0x11c]
push 0x46b2dc
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
je 0x41b810
lea eax, [ebp - 0x11c]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041b6f3
test al, al
je 0x41b828
push 0x46b2dc
call esi
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41b7b2
mov bl, 1
jmp 0x41b82a
xor bl, bl
push dword [ebp - 4]
call edi
mov al, bl
jmp 0x41b784
Function at 0x41cda1
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push str.___s
push eax
call fcn.0044d7ab
lea eax, [ebp - 0x104]
lea esi, [ebp - 0x104]
push eax
dec esi
call fcn.0044d720
add esp, 0x10
xor ebx, ebx
cmp byte [eax + esi], 0x5c
jne 0x41ce09
lea eax, [ebp - 0x104]
push eax
call fcn.0044d720
pop ecx
lea ecx, [ebp - 0x104]
dec ecx
dec ecx
cmp byte [eax + ecx], 0x3a
je 0x41ce09
lea eax, [ebp - 0x104]
push eax
call fcn.0044d720
pop ecx
mov byte [eax + esi], bl
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41ce21
cmp byte [ebp + 8], bl
jne 0x41ce21
xor eax, eax
jmp 0x41cef0
push ebx
push 0x2200000
push 3
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41ce47
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x41ce1a
push 0x14
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.0044fdd0
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x410], 0xa0000003
call fcn.0044d720
add eax, eax
mov word [ebp - 0x406], ax
mov eax, dword [ebp - 0x406]
add esp, 0x10
add eax, 2
push 0x104
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x400]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x104]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x406]
push ebx
add eax, 0xc
mov word [ebp - 0x40c], ax
lea ecx, [ebp + 0xc]
push ecx
push ebx
movzx eax, ax
push ebx
add eax, 8
push eax
lea eax, [ebp - 0x410]
push eax
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push esi
jne 0x41cee7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41ce3e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 8