joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101e9fe
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x1036a44]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push esi
xor esi, esi
cmp ecx, 0x2000
mov dword [ebp - 0x290], esi
je 0x101ea54
cmp ecx, 0x4000
jne 0x101eb44
add eax, 0x14
cmp eax, esi
je 0x101eb44
push eax
mov ecx, 0x1036b40
mov word [eax + 2], 0x3f
call fcn.0101e856
jmp 0x101eb44
push edi
lea edi, [eax + 0x14]
cmp edi, esi
je 0x101eb43
lea eax, [ebp - 0x28c]
push eax
push esi
push edi
mov word [edi + 2], 0x3f
call fcn.0101ee58
test eax, eax
jl 0x101eb43
push ebx
mov ebx, dword [fcn.01001360]
push 0x202
lea eax, [ebp - 0x288]
push eax
push esi
push esi
push 0x4d0008
lea eax, [ebp - 0x298]
push eax
push esi
push esi
push esi
push dword [ebp - 0x28c]
call ebx
test eax, eax
jge 0x101eabd
push dword [ebp - 0x28c]
call dword [fcn.01001130]
jmp 0x101eb42
movzx eax, word [ebp - 0x288]
push 0xc
shr eax, 1
mov word [ebp + eax*2 - 0x286], si
lea eax, [ebp - 0x2a4]
push eax
push esi
push esi
push 0x2d1080
lea eax, [ebp - 0x298]
push eax
push esi
push esi
push esi
push dword [ebp - 0x28c]
call ebx
test eax, eax
jl 0x101eb1d
push dword [ebp - 0x29c]
lea eax, [ebp - 0x84]
push dword [ebp - 0x2a0]
push 0x10028b8
push eax
call dword [0x100125c]
add esp, 0x10
lea esi, [ebp - 0x84]
jmp 0x101eb23
mov esi, dword [ebp - 0x290]
push dword [ebp - 0x28c]
call dword [fcn.01001130]
push esi
lea eax, [ebp - 0x286]
push eax
push edi
mov ecx, 0x1036b40
call fcn.0101e900
pop ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.0102e95a
leave
ret 4
Function at 0x402a3f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423790]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402ad3
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a90
cmp dword [ebp + 0x10], ebx
jne 0x402ac7
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a3f
test eax, eax
jne 0x402aa2
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a77
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040600b
cmp eax, ebx
je 0x402ada
push ebx
push dword [0x423790]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ad3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423790], ebx
jne 0x402ad0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ad0
jmp 0x402ad3
Function at 0x402f21
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
cmp eax, esi
jl 0x402f4d
mov ecx, dword [0x423738]
push esi
add eax, ecx
push esi
push eax
mov dword [0x41688c], eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.0040303c
cmp eax, esi
jl 0x403036
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40901c]
call fcn.004059e9
test eax, eax
je 0x403022
push dword [ebp + 8]
add dword [0x41688c], 4
call fcn.0040303c
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x403036
cmp dword [ebp + 0x10], esi
jne 0x402ffe
cmp dword [ebp + 8], esi
jle 0x403033
mov esi, 0x412888
cmp dword [ebp + 8], 0x4000
mov edi, dword [ebp + 8]
jl 0x402fb3
mov edi, 0x4000
push edi
push esi
push dword [0x40901c]
mov dword [ebp - 4], edi
call fcn.004059e9
test eax, eax
je 0x403022
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ffa
cmp dword [ebp + 0x14], edi
jne 0x402ffa
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41688c], eax
cmp dword [ebp + 8], 0
jg 0x402fa2
jmp 0x403033
push 0xfffffffffffffffe
jmp 0x403024
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403009
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403027
push 0xfffffffffffffffd
pop eax
jmp 0x403036
mov eax, dword [ebp - 4]
add dword [0x41688c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0x10
Function at 0x40303c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41688c]
sub esi, dword [0x40a7f8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x4236ec], eax
jle 0x4031a6
push dword [0x41e89c]
call fcn.004031ce
push ebx
push ebx
push dword [0x40a7f8]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41e898], esi
mov dword [0x416888], ebx
mov ebp, 0x40a888
mov eax, dword [0x416890]
mov edi, 0x4000
sub eax, dword [0x41e89c]
cmp eax, edi
jg 0x4030b1
mov edi, eax
mov esi, 0x412888
push edi
push esi
call fcn.004031b8
test eax, eax
je 0x403198
add dword [0x41e89c], edi
mov dword [0x40a818], esi
mov dword [0x40a81c], edi
cmp dword [0x4236f0], ebx
je 0x403108
cmp dword [0x423780], ebx
jne 0x403108
mov eax, dword [0x41e898]
push ebx
sub eax, dword [0x41688c]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40a7f8]
mov dword [0x416888], eax
call fcn.00402bdc
pop ecx
mov ecx, 0x40a800
mov dword [0x40a820], ebp
mov dword [0x40a824], 0x8000
call fcn.0040610b
test eax, eax
jl 0x4031a1
mov esi, dword [0x40a820]
sub esi, ebp
je 0x403162
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40319d
cmp esi, dword [esp + 0x10]
jne 0x40319d
add dword [0x40a7f8], esi
cmp dword [0x40a81c], ebx
jne 0x4030d7
jmp 0x40316e
cmp dword [0x40a81c], ebx
jne 0x4031a1
cmp edi, ebx
je 0x4031a1
mov eax, dword [0x41688c]
mov ecx, eax
sub ecx, dword [0x40a7f8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x40309b
push ebx
push ebx
push eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4031a6
or eax, 0xffffffff
jmp 0x4031b0
push 0xfffffffffffffffe
jmp 0x4031a3
push 0xfffffffffffffffd
pop eax
jmp 0x4031b0
push 1
call fcn.00402bdc
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x405493
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4214e8], 0x44
push eax
xor eax, eax
push 0x4214e8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4054ce
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405558
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040594c
mov edi, eax
cmp edi, 0xffffffff
je 0x405599
test byte [esp + 0x10], 1
push esi
je 0x40557b
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405581
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40558a
xor eax, eax
inc eax
jmp 0x40559b
test byte [esp + 0x10], 4
jne 0x405599
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4055a0
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040585e
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4055df
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423768], eax
jmp 0x405769
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4055f9
test eax, eax
je 0x405717
test bl, 2
je 0x405717
mov esi, 0x420ce8
push edi
push esi
call fcn.00405ce0
cmp dword [ebp + 8], 0
je 0x405618
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40561e
push edi
call fcn.004057b7
cmp byte [edi], 0
jne 0x40562c
cmp byte [0x420ce8], 0x5c
jne 0x405637
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40570d
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040579b
cmp byte [eax], 0
je 0x40567d
cmp byte [ebp - 0x1c], 0
je 0x40567d
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405693
mov al, byte [esi + 1]
test al, al
je 0x4056ec
cmp al, 0x2e
jne 0x405693
cmp byte [esi + 2], 0
je 0x4056ec
push esi
push ebx
call fcn.00405ce0
test byte [ebp - 0x14c], 0x10
je 0x4056b8
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4056ec
push dword [ebp + 0xc]
push edi
call fcn.004055a0
jmp 0x4056ec
push dword [ebp - 4]
push edi
call fcn.00405558
test eax, eax
jne 0x4056e4
cmp dword [ebp - 4], eax
je 0x4056dc
push edi
push 0xfffffffffffffff1
call fcn.00404fcb
push 0
push edi
call fcn.00405b94
jmp 0x4056ec
inc dword [0x423768]
jmp 0x4056ec
push edi
push 0xfffffffffffffff2
call fcn.00404fcb
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40565b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405717
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405769
cmp dword [ebp - 0xc], esi
jne 0x40572b
inc dword [0x423768]
jmp 0x405769
push edi
call fcn.00405fe4
test eax, eax
je 0x405769
push edi
call fcn.00405770
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405558
test eax, eax
jne 0x405761
cmp dword [ebp - 4], esi
je 0x405723
push edi
push 0xfffffffffffffff1
call fcn.00404fcb
push esi
push edi
call fcn.00405b94
jmp 0x405769
push edi
push 0xffffffffffffffe5
call fcn.00404fcb
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40585e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4210e8
push esi
call fcn.00405ce0
push esi
call fcn.00405809
mov edi, eax
test edi, edi
jne 0x40587f
xor eax, eax
jmp 0x4058d1
push edi
call fcn.00405f4b
test byte [0x4236f8], 0x80
je 0x405898
mov al, byte [edi]
test al, al
je 0x40587b
cmp al, 0x5c
je 0x40587b
sub edi, esi
jmp 0x4058b0
call fcn.00405fe4
test eax, eax
je 0x4058aa
test byte [eax], 0x10
je 0x40587b
push esi
call fcn.004057b7
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40589c
call fcn.00405770
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40594c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40596b
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405971
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4059a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409380]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4059e5
test edi, edi
jne 0x4059ab
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4059df
Function at 0x405a18
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x421a70
push 0x40939c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405a67
push 1
push 0
push esi
call fcn.00405971
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405b8e
cmp eax, ebx
jg 0x405b8e
mov esi, 0x421e70
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405b8e
cmp eax, ebx
jg 0x405b8e
push esi
push edi
push str._s_s_r_n
push 0x421670
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4236f0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d02
push 4
push 0xc0000000
push esi
call fcn.00405971
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405b8e
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405b87
push edi
push esi
push ebp
call fcn.004059e9
test eax, eax
je 0x405b87
push str._Rename__r_n
push esi
call fcn.004058d6
test eax, eax
jne 0x405b1d
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405b52
add eax, 0xa
push 0x409384
push eax
call fcn.004058d6
mov ebp, eax
test ebp, ebp
je 0x405b4e
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405b3f
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405b39
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405b54
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x421670
push eax
call fcn.0040592c
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405bc7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c38
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405c27
cmp dword [ebp + 0x14], 1
je 0x405c29
cmp dword [ebp + 0x14], 2
je 0x405c29
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40607d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422274], 0
push esi
jne 0x4060b4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40608e
mov dword [ecx*4 + 0x422270], eax
inc ecx
cmp ecx, 0x100
jl 0x406089
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4060e5
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422270]
xor eax, esi
inc ecx
dec edx
jne 0x4060c7
pop edi
not eax
pop esi
ret 0xc
Function at 0x10018af
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ebp + 0x18], 1
push esi
push edi
mov word [0x10069e0], ax
jne 0x10018e0
push 0x1f4
mov esi, 0x10069e0
push esi
push dword [ebp + 0x14]
push dword [0x1006dc8]
call dword [sym.imp.USER32.dll_LoadStringW]
jmp 0x1001944
cmp dword [ebp + 0x10], 0x56
je 0x10018f6
cmp dword [ebp + 0x10], 0x5b6
jne 0x1001909
mov eax, 0x7d0
jmp 0x10018fb
mov eax, 0x7d1
push 0x1f4
mov esi, 0x10069e0
push esi
push eax
jmp 0x10018d2
mov edi, dword [sym.imp.KERNEL32.dll_FormatMessageW]
push ebx
xor eax, eax
push eax
push 0x1f4
mov esi, 0x10069e0
push esi
push eax
push dword [ebp + 0x10]
mov ebx, 0x1000
push eax
push ebx
call edi
test eax, eax
jne 0x1001943
push eax
push 0x1f4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push ebx
call edi
pop ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 5
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
cmp dword [ebp + 0x20], 0
je 0x1001980
push 5
push dword [ebp + 0x1c]
push dword [ebp + 8]
call esi
push eax
call edi
pop edi
pop esi
pop ebp
ret 0x1c
Function at 0x1001c2c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
push ebx
stosd dword es:[edi], eax
push ebx
push ebx
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x1001c73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1001d13
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
cmp byte [ebp + 0x20], bl
je 0x1001c9d
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1001ca3
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x1001ce4
call esi
mov edi, eax
cmp edi, 0x3e5
jne 0x1001d13
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x14]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
jb 0x1001cdc
cmp eax, 3
ja 0x1001cdc
mov edi, 0x4c7
jmp 0x1001d17
cmp eax, ebx
je 0x1001ce4
call esi
jmp 0x1001c6c
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1001ce0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
cmp eax, dword [ebp + 0x10]
je 0x1001d11
mov edi, 0x5b6
jmp 0x1001d17
xor edi, edi
cmp edi, ebx
je 0x1001d2e
cmp dword [ebp - 0x14], ebx
je 0x1001d25
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x10020a3
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44
mov esi, 0x1006de0
push esi
call dword [sym.imp.RPCRT4.dll_RpcAsyncInitializeHandle]
test eax, eax
je 0x10020c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100213a
push ebx
push edi
xor edi, edi
push edi
push edi
push edi
push 0x1001a8f
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, edi
jne 0x10020e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100212d
mov eax, dword [ebp + 8]
mov dword [0x1006e00], 5
mov dword [0x1006e04], 0x1001aa3
mov dword [0x1006e08], ebx
mov dword [0x1006df4], eax
cmp dword [eax], 1
push edi
jne 0x100211d
add eax, 0x10
push eax
push esi
call fcn.0100487b
jmp 0x1002127
add eax, 0x10
push eax
push esi
call fcn.01004910
cmp eax, edi
je 0x10020df
xor esi, esi
cmp ebx, edi
je 0x1002138
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10023d5
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x1d
pop ecx
push 0x194
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x198]
push 0
mov esi, 0x1001288
lea edi, [ebp - 0x20c]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.msvcrt.dll_memset
push 0x58
pop esi
push esi
lea eax, [ebp - 0x470]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x1f4
mov edi, 0x10069e0
push edi
push 0xdc
push dword [0x1006dc8]
xor eax, eax
mov dword [ebp - 0x470], esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
mov word [ebp - 0x414], ax
mov dword [ebp - 0x46c], ebx
call esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push pe_nt_image_headers32
push dword [0x1006dc8]
call esi
mov esi, dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x470]
add esi, 0x10
push eax
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x454], esi
mov dword [ebp - 0x450], 0x104
mov dword [ebp - 0x434], 0x100127c
mov dword [ebp - 0x43c], 0x802
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x1002532
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, 0x3fa
push edi
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push 2
push 0
push 0x470
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0x406
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push 0
push 0xbb8
push ebx
call esi
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010042f8
leave
ret 8