joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41188e
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x4890f0], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x488720
jne 0x4118ae
push 0
call fcn.00452385
pop ecx
call fcn.0041184f
mov dword [0x476c94], 0x270
mov dword [0x48871c], esi
mov edx, 0xe3
mov ecx, bind
mov eax, 0x9908b0df
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi + 0x634]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x4118cd
mov edx, 0x18c
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi - 0x38c]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x411903
mov edx, dword [0x488720]
mov edi, dword [esi]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
neg dl
sbb edx, edx
and edx, eax
xor edi, edx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x41195d
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x476c94]
jne 0x41196a
call fcn.0041188e
mov eax, dword [0x48871c]
mov ecx, dword [eax]
add dword [0x48871c], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x4119a1
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x476c94]
jne 0x4119af
call fcn.0041188e
mov eax, dword [0x48871c]
mov eax, dword [eax]
add dword [0x48871c], 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 0x4119f5
fadd qword [0x4713b0]
fmul qword [0x4713a8]
pop ecx
ret

Function at 0x411ba0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [esi + 0x14], 1
jne 0x411bc2
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.00450190
add esp, 0xc
jmp 0x411bd5
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.004519fe
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.00450ab0
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
leave
ret 4
Function at 0x411ca9
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 0x464]
test eax, eax
mov ecx, 0x10000
je 0x411cbc
cmp eax, ecx
jne 0x411cd7
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x45c]
call fcn.004519fe
add esp, 0x10
and dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov eax, dword [esi + 0x45c]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x464], ecx
ret

Function at 0x411cee
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0x18], 1
mov eax, dword [esi + 0x444]
push edi
je 0x411da5
cmp eax, dword [esi + 0x43c]
jae 0x411d71
mov edi, 0x10000
push ebx
mov eax, dword [esi + 0x444]
mov ecx, dword [esi + 0x438]
mov ebx, dword [esi + 0x460]
mov edx, dword [esi + 0x458]
and eax, 0x1ffff
mov al, byte [eax + ecx]
mov byte [edx + ebx], al
inc dword [esi + 0x460]
cmp dword [esi + 0x460], edi
jne 0x411d59
push dword [esi + 0x20]
push edi
push 1
push dword [esi + 0x458]
call fcn.004515f2
add esp, 0x10
and dword [esi + 0x460], 0
inc dword [esi + 0x444]
inc dword [esi + 8]
mov eax, dword [esi + 0x444]
cmp eax, dword [esi + 0x43c]
jb 0x411d0d
pop ebx
and dword [esi + 0x440], 0
pop edi
ret
mov eax, dword [esi + 0x444]
mov ecx, dword [esi + 0x438]
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 + 0x444]
mov eax, dword [esi + 0x444]
cmp eax, dword [esi + 0x43c]
jb 0x411d7a
jmp 0x411d71
Function at 0x411daf
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 + 0x43c], eax
push edi
mov dword [esp + 0x10], eax
jae 0x411f0f
mov ebp, 0xff
push 1
mov eax, esi
call fcn.00411f3f
cmp eax, 1
mov eax, esi
jne 0x411e0b
push 8
call fcn.00411f3f
mov ecx, dword [esi + 0x43c]
mov edx, dword [esi + 0x438]
and ecx, 0x1ffff
mov byte [ecx + edx], al
inc dword [esi + 0x43c]
inc dword [esi + 0x440]
jmp 0x411eaa
push 0xf
call fcn.00411f3f
mov ebx, eax
push 2
mov eax, esi
xor edi, edi
call fcn.00411f3f
cmp eax, 3
jne 0x411e6a
push eax
pop edi
push eax
mov eax, esi
call fcn.00411f3f
cmp eax, 7
jne 0x411e6a
push 0xa
pop edi
push 5
mov eax, esi
call fcn.00411f3f
cmp eax, 0x1f
jne 0x411e6a
push 0x29
pop edi
push 8
mov eax, esi
call fcn.00411f3f
cmp eax, ebp
jne 0x411e6a
mov edi, 0x128
jmp 0x411e5d
add edi, ebp
push 8
mov eax, esi
call fcn.00411f3f
cmp eax, ebp
je 0x411e5b
lea edi, [eax + edi + 3]
mov eax, dword [esi + 0x43c]
sub eax, ebx
jmp 0x411ea6
mov ebx, dword [esi + 0x43c]
mov ecx, dword [esi + 0x438]
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 + 0x43c]
inc dword [esi + 0x440]
test edi, edi
jne 0x411e78
call fcn.00411cee
cmp dword [0x48cde0], 0x1000
jbe 0x411ef0
mov edi, dword [esi + 0x454]
and dword [0x48cde0], 0
test edi, edi
je 0x411ef6
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 0x411ef6
mov byte [esi + 0x448], 1
jmp 0x411ef6
inc dword [0x48cde0]
cmp byte [esi + 0x448], 0
jne 0x411f3a
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x43c], eax
jb 0x411dce
lea edi, [esi + 0x460]
mov eax, dword [edi]
test eax, eax
je 0x411f32
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x458]
call fcn.004515f2
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 0x411f34

Function at 0x411fcf
Capabilities:
Hash data with md5

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
push 0x46b160
or eax, 0xffffffff
call fcn.0040df0e
pop ecx
mov esi, eax
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.00450000
push esi
call fcn.0044de9c
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.00411fcf
lea eax, [esp + 0xa8]
push eax
call fcn.0044ff70
pop ecx
mov ebx, eax
call fcn.00411fcf
lea eax, [esp + 0xa8]
push eax
mov eax, ebx
call fcn.00411ffc
mov eax, esi
call fcn.00412093
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 0x412a28
push 0x46be2c
push dword [ebp + 8]
mov dword [edi + 8], eax
call fcn.00451309
test eax, eax
pop ecx
pop ecx
mov dword [edi], eax
jne 0x412a4f
inc eax
jmp 0x412aab
mov esi, edi
call fcn.00412ab3
push dword [edi]
mov esi, eax
test esi, esi
je 0x412a67
call fcn.004516e6
mov eax, esi
jmp 0x412aaa
push ebx
lea eax, [esp + 0x10]
push 1
push eax
call fcn.004519fe
add esp, 0x10
push 0x99f2
push ebx
lea eax, [esp + 0x10]
push eax
call fcn.00412bae
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 0x412a8e
push dword [edi]
mov dword [edi + 8], ecx
call fcn.00452567
mov dword [edi + 4], eax
xor eax, eax
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412ab3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00453310
xor eax, eax
mov cl, byte [eax + 0x477140]
mov byte [ebp + eax - 0x20], cl
mov cl, byte [eax + 0x477138]
mov byte [ebp + eax - 0x18], cl
inc eax
cmp eax, 8
jl 0x412ac2
push ebx
push edi
lea eax, [ebp - 8]
push str.AU3_
push eax
call fcn.00450000
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00450190
add esp, 0x14
xor edi, edi
push dword [esi]
lea eax, [ebp - 0x10020]
push 0x10000
push 1
push eax
call fcn.004519fe
add esp, 0x10
cmp eax, 0x18
mov dword [ebp - 0xc], eax
jl 0x412ba9
lea edx, [eax - 0x14]
xor ecx, ecx
test edx, edx
jle 0x412b55
xor edx, edx
lea eax, [ebp + ecx - 0x10020]
mov bl, byte [ebp + edx - 0x20]
cmp bl, byte [eax + edx]
jne 0x412b45
inc edx
cmp edx, 0x14
jl 0x412b36
cmp edx, 0x14
je 0x412b69
mov eax, dword [ebp - 0xc]
inc ecx
lea edx, [eax - 0x14]
cmp ecx, edx
jl 0x412b2d
push 1
push 0xffffffffffffffec
push dword [esi]
lea edi, [edi + eax - 0x14]
call fcn.004513a3
add esp, 0xc
jmp 0x412b00
push 0
lea eax, [edi + ecx + 0x14]
push eax
push dword [esi]
call fcn.004513a3
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push 4
push 1
push eax
call fcn.004519fe
lea eax, [ebp - 8]
push str.EA06
push eax
mov byte [ebp - 4], 0
call fcn.00450ab0
add esp, 0x18
neg eax
sbb eax, eax
and eax, 4
pop edi
pop ebx
leave
ret
push 3
pop eax
jmp 0x412ba5
Function at 0x412bae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push esi
push edi
lea eax, [ebp - 0xdc]
call fcn.00412815
push dword [ebp + 0x10]
lea esi, [ebp - 0xdc]
call fcn.00412955
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x412bf3
mov eax, dword [ebp + 8]
lea esi, [edi + eax]
lea eax, [ebp - 0xdc]
push eax
call fcn.00412927
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x412bd9
pop edi
pop esi
leave
ret 0xc
Function at 0x412ee6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68c
push ebx
push esi
mov esi, eax
push edi
lea eax, [ebp - 0x478]
call fcn.00411a51
push 0
push dword [esi + 4]
xor edi, edi
push dword [esi]
inc edi
mov dword [ebp - 0xc], edi
call fcn.004513a3
add esp, 0xc
lea eax, [ebp - 0x688]
push eax
push str.___AUTOIT_SCRIPT___
call fcn.00413056
test eax, eax
je 0x412f31
push 6
pop eax
jmp 0x41304f
push dword [esi]
lea eax, [ebp - 1]
push edi
push edi
push eax
call fcn.004519fe
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.004519fe
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.004519fe
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.004519fe
mov ebx, dword [ebp - 8]
add esp, 0x40
push 1
push 0x10
push dword [esi]
xor ebx, 0xa685
call fcn.004513a3
mov eax, dword [ebp + 0xc]
add esp, 0xc
push dword [eax]
call fcn.0044fea5
pop ecx
push edi
mov dword [ebp + 0xc], eax
call fcn.0044fea5
pop ecx
push dword [esi]
mov dword [ebp - 0x10], eax
push 1
push edi
push eax
call fcn.004519fe
mov eax, dword [esi + 8]
mov esi, dword [ebp - 0x10]
add esp, 0x10
add eax, 0x2477
push eax
push edi
push esi
call fcn.00412bae
push edi
push esi
lea edi, [ebp - 0xc]
call fcn.004119fd
cmp ebx, dword [ebp - 0xc]
je 0x412ff7
push dword [ebp + 0xc]
call fcn.004500f8
pop ecx
push esi
call fcn.004500f8
pop ecx
push 0xa
jmp 0x412f2b
cmp byte [ebp - 1], 1
jne 0x413039
lea eax, [ebp - 0x478]
call fcn.00411a51
xor eax, eax
inc eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x478], eax
lea eax, [ebp - 0x478]
mov dword [ebp - 0x474], esi
call fcn.00411a7f
push esi
call fcn.004500f8
jmp 0x413044
push dword [ebp + 0xc]
call fcn.004500f8
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 0x413056
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push ebx
push edi
mov byte [ebp - 1], 1
push dword [esi]
lea eax, [ebp - 0x14]
push 4
push 1
push eax
call fcn.004519fe
add esp, 0x10
push 0x18ee
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.00412bae
lea eax, [ebp - 0x14]
push str.FILE
push eax
mov byte [ebp - 0x10], 0
call fcn.00450ab0
test eax, eax
pop ecx
pop ecx
jne 0x4131ab
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.004519fe
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.004519fe
add esp, 0x20
add edi, 0xb33f
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.00412bae
and word [ebp + ebx - 0x228], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0044ddb8
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.004519fe
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.004519fe
add esp, 0x28
add edi, 0xf479
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.00412bae
and word [ebp + ebx - 0x228], 0
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0xc]
call fcn.0044ddb8
push dword [ebp + 8]
lea eax, [ebp - 0x438]
push eax
call fcn.0044e371
add esp, 0x10
test eax, eax
je 0x4131c2
xor edi, edi
inc edi
push edi
push edi
push dword [esi]
call fcn.004513a3
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.004519fe
xor dword [ebp - 8], 0x87bc
mov eax, dword [ebp - 8]
push edi
add eax, 0x18
push eax
push dword [esi]
call fcn.004513a3
add esp, 0x1c
jmp 0x4131af
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 1
je 0x413065
push 6
pop eax
pop edi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x4131bc
Function at 0x41a61c
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 + 0x290]
push edi
lea edi, [esi + 0x66c]
mov ebx, dword [edi]
mov dword [esp + 0xc], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebx
je 0x41a653
call fcn.0040e0df
cmp byte [ebp + 0x10], 0
je 0x41a7cc
lea eax, [esi + 0x6b0]
push eax
lea ebx, [esp + 0x7c]
mov dword [esp + 0x14], eax
call fcn.0040f907
lea edi, [esi + 0x6c0]
lea esi, [esp + 0x5c]
mov dword [esp + 0x14], edi
call fcn.0040e348
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x770]
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0x6cc]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x778]
lea edi, [ebx + 0x7c4]
lea esi, [esp + 0x50]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
call fcn.0040e348
mov eax, dword [ebx + 0x7d0]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x7d4]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x354]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x358]
add ebx, 0x340
push ebx
mov dword [esp + 0x44], ebx
lea ebx, [esp + 0x6c]
mov dword [esp + 0x40], eax
call fcn.0040f907
mov edi, dword [esp + 0xc]
push dword [ebp + 8]
mov eax, edi
call fcn.004193a1
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x78]
push eax
call fcn.00410013
mov eax, dword [esp + 0x14]
lea ebx, [esp + 0x5c]
call fcn.0040e40c
mov eax, dword [esp + 0x18]
push dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x770], eax
call fcn.0040399e
mov eax, dword [esp + 0x28]
mov dword [edi + 0x778], eax
mov eax, dword [esp + 0x2c]
lea ebx, [esp + 0x50]
call fcn.0040e40c
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x40]
mov dword [edi + 0x7d0], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x7d4], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0x354], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x358], eax
lea eax, [esp + 0x68]
push eax
call fcn.00410013
lea ecx, [esp + 0x68]
call fcn.0040fb59
push dword [esp + 0x50]
call fcn.0044de9c
push dword [esp + 0x60]
call fcn.0044de9c
pop ecx
pop ecx
lea ecx, [esp + 0x78]
call fcn.0040fb59
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0xc]
jmp 0x41a7d6
push dword [ebp + 8]
mov eax, esi
call fcn.004193a1
cmp byte [ebp + 0xc], 0
je 0x41a7e8
call fcn.0040e139
jmp 0x41a7e8
call fcn.0041a85a
cmp ebx, dword [edi]
jl 0x41a7e3
mov eax, dword [esp + 0x4c]
pop edi
mov dword [esi + 0x290], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41ba40
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.00405a0e
cmp dword [eax + 8], 4
jne 0x41babb
push 0x60
call fcn.0044de32
test eax, eax
pop ecx
je 0x41ba6f
call fcn.0040b333
mov edi, eax
jmp 0x41ba71
xor edi, edi
xor eax, eax
mov ecx, ebx
call fcn.00405a0e
mov esi, eax
call fcn.0040fc0c
xor ebx, ebx
push eax
inc ebx
mov eax, ebx
mov ecx, edi
call fcn.0040b343
test al, al
jne 0x41bb49
test edi, edi
je 0x41baa8
mov esi, edi
call fcn.0040b50e
push edi
call fcn.0044de9c
pop ecx
push 0
mov esi, dword [ebp + 0xc]
call fcn.004101c7
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
xor eax, eax
mov ecx, ebx
call fcn.00405a0e
call fcn.0040fce4
mov esi, eax
dec esi
js 0x41baa8
xor eax, eax
mov ecx, ebx
call fcn.00405a0e
call fcn.00410f21
test al, al
je 0x41baa8
cmp esi, dword [edi + 0x680]
jge 0x41baa8
jb 0x41baf1
call fcn.0040427e
jmp 0x41bafa
mov eax, dword [edi + 0x67c]
mov eax, dword [eax + esi*4]
xor ebx, ebx
cmp dword [eax], ebx
je 0x41baa8
cmp esi, dword [edi + 0x680]
jb 0x41bb0f
call fcn.0040427e
jmp 0x41bb18
mov eax, dword [edi + 0x67c]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
cmp dword [eax], ebx
jne 0x41baa8
cmp esi, dword [edi + 0x680]
jb 0x41bb2d
call fcn.0040427e
jmp 0x41bb36
mov eax, dword [edi + 0x67c]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
mov edi, dword [eax + 4]
test byte [edi], 3
jne 0x41bb46
push ebx
jmp 0x41baaa
xor ebx, ebx
inc ebx
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00405a0e
cmp dword [eax + 8], 0xb
je 0x41bbea
test byte [edi], 0x10
jne 0x41bbea
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00405a0e
mov esi, eax
call fcn.0040fc0c
mov ecx, eax
mov esi, edi
call fcn.0040b5d0
cmp byte [ebp + 0x10], 0
je 0x41bc30
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00405a0e
mov esi, eax
call fcn.0040fc0c
push eax
call fcn.0044e3ca
test eax, eax
pop ecx
je 0x41bbdc
mov ecx, dword [ebp + 8]
lea ebx, [eax + eax - 2]
xor eax, eax
inc eax
call fcn.00405a0e
mov esi, eax
call fcn.0040fc0c
cmp word [eax + ebx], 0xd
je 0x41bc30
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
call fcn.00405a0e
mov esi, eax
call fcn.0040fc0c
cmp word [eax + ebx], 0xa
je 0x41bc30
mov ecx, 0x46c0d0
mov esi, edi
call fcn.0040b5d0
jmp 0x41bc30
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00405a0e
call fcn.0040fc4e
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, ebx
call fcn.00405a0e
mov ecx, eax
call fcn.0040fbd1
push dword [edi + 4]
push eax
push ebx
push esi
call fcn.004515f2
push dword [edi + 4]
call fcn.00451214
add esp, 0x14
test eax, eax
je 0x41bc30
mov esi, dword [ebp + 0xc]
push 0
call fcn.004101c7
mov ecx, dword [ebp + 8]
xor eax, eax
call fcn.00405a0e
cmp dword [eax + 8], 4
jne 0x41bab2
mov esi, edi
call fcn.0040b50e
call fcn.0040b50e
push edi
call fcn.0044de9c
pop ecx
jmp 0x41bab2
Function at 0x41c0f4
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push edi
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41c174
lea eax, [ebp - 0x22c]
push 0x46bf18
push eax
call fcn.0044e371
test eax, eax
pop ecx
pop ecx
je 0x41c162
lea eax, [ebp - 0x22c]
push 0x46ec04
push eax
call fcn.0044e371
test eax, eax
pop ecx
pop ecx
je 0x41c162
push dword [ebp + 0x10]
lea eax, [ebp - 0x22c]
push dword [ebp + 0xc]
push eax
call fcn.0040c233
add esp, 0xc
test al, al
je 0x41c18c
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41c11b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41c197
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 0x41c185
lea eax, [ebp - 0x258]
push eax
push 0x46ebfc
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x41c225
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test byte [ebp - 0x258], 0x10
je 0x41c211
lea eax, [ebp - 0x22c]
push 0x46bf18
push eax
call fcn.0044e371
test eax, eax
pop ecx
pop ecx
je 0x41c211
lea eax, [ebp - 0x22c]
push 0x46ec04
push eax
call fcn.0044e371
test eax, eax
pop ecx
pop ecx
je 0x41c211
lea eax, [ebp - 0x22c]
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.0041c0f4
test al, al
je 0x41c229
push 0x46ec04
call esi
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41c1b3
mov bl, 1
jmp 0x41c22b
xor bl, bl
push dword [ebp - 4]
call edi
mov al, bl
jmp 0x41c185
Function at 0x41d7b2
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push str.___s
push eax
call fcn.0044e3e0
lea eax, [ebp - 0x208]
push eax
call fcn.0044e3ca
add esp, 0x10
xor ebx, ebx
cmp word [ebp + eax*2 - 0x20a], 0x5c
jne 0x41d819
lea eax, [ebp - 0x208]
push eax
call fcn.0044e3ca
cmp word [ebp + eax*2 - 0x20c], 0x3a
pop ecx
je 0x41d819
lea eax, [ebp - 0x208]
push eax
call fcn.0044e3ca
pop ecx
mov word [ebp + eax*2 - 0x20a], bx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41d82e
cmp byte [ebp + 8], bl
je 0x41d8fa
push esi
push ebx
push 0x2200000
push 3
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41d8e5
push 0x14
lea eax, [ebp - 0x820]
push ebx
push eax
call fcn.00450990
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x820], 0xa0000003
call fcn.0044e3ca
add eax, eax
mov word [ebp - 0x816], ax
mov eax, dword [ebp - 0x816]
add eax, 2
mov word [ebp - 0x814], ax
push 0x104
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.0045089d
mov eax, dword [ebp - 0x816]
add esp, 0x1c
push ebx
add eax, 0xc
mov word [ebp - 0x81c], ax
lea ecx, [ebp + 0xc]
push ecx
push ebx
movzx eax, ax
push ebx
add eax, 8
push eax
lea eax, [ebp - 0x820]
push eax
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push esi
jne 0x41d8f0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
jmp 0x41d8f9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 8