joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068a2
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
push 0x42d2cc
push dword [ebp + 8]
call fcn.0041cdf4
mov esi, eax
xor edi, edi
pop ecx
cmp esi, edi
pop ecx
je 0x40695d
push 2
push edi
push esi
call fcn.0041d22c
xor ebx, ebx
inc ebx
push ebx
push 0xfffffffffffffffa
push esi
call fcn.0041d22c
push esi
push ebx
lea eax, [ebp - 2]
push 2
push eax
call fcn.0041d115
movzx eax, word [ebp - 2]
push ebx
push 0xfffffffffffffffe
pop ecx
sub ecx, eax
push ecx
push esi
call fcn.0041d22c
push esi
call fcn.0041cf93
mov dword [ebp + 8], eax
push esi
movzx eax, word [ebp - 2]
push eax
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0041d115
add esp, 0x48
push edi
push edi
push esi
call fcn.0041d22c
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push ebx
mov ebx, 0x42d2a0
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push eax
call edi
test eax, eax
jne 0x406964
push 0xf0000008
push 1
push ebx
push eax
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
jne 0x406964
push esi
call fcn.0041cd0a
pop ecx
xor al, al
jmp 0x406a4c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40698c
push esi
call fcn.0041cd0a
pop ecx
xor bl, bl
jmp 0x406a3f
mov ebx, dword [ebp + 8]
and byte [ebp + 0xb], 0
mov edi, 0x400
cmp ebx, edi
jge 0x4069a2
mov edi, ebx
mov byte [ebp + 0xb], 1
push esi
push edi
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.0041d115
add esp, 0x10
lea eax, [ebp - 0x410]
push 0
push edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x406a20
sub ebx, edi
cmp byte [ebp + 0xb], 0
je 0x406993
push esi
call fcn.0041cd0a
pop ecx
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push esi
push esi
push 0x54
push 0x42d210
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x406a27
movzx eax, word [ebp - 2]
push esi
push 0x42d280
push dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
test eax, eax
jne 0x406a2b
xor bl, bl
jmp 0x406a2d
push esi
call fcn.0041cd0a
pop ecx
xor bl, bl
jmp 0x406a36
mov bl, 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406a74
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
ret
Function at 0x406a93
Capabilities:
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x348]
push eax
call fcn.0041c380
lea eax, [ebp - 0x348]
push 0x42d32c
push eax
call fcn.0041c390
add esp, 0x10
lea eax, [ebp - 0x140]
mov bl, 1
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406b6e
test byte [ebp - 0x140], 0x10
jne 0x406b58
push dword [ebp + 0xc]
lea eax, [ebp - 0x44c]
push eax
call fcn.0041c380
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.0041c390
push dword [ebp + 8]
lea eax, [ebp - 0x244]
push eax
call fcn.0041c380
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.0041c390
lea eax, [ebp - 0x244]
push eax
call fcn.00406a74
add esp, 0x24
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x406b58
xor bl, bl
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406ae2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop esi
pop ebx
leave
ret

Function at 0x406b7b
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push esi
lea eax, [ebp - 0x348]
push dword [ebp + 8]
push eax
call fcn.0041c380
lea eax, [ebp - 0x348]
push 0x42d338
push eax
call fcn.0041c390
add esp, 0x10
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406c5c
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0041c380
lea eax, [ebp - 0x104]
push 0x42c458
push eax
call fcn.0041c390
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0041c390
lea eax, [ebp - 0x218]
push 0x42d334
push eax
call fcn.0041d2f0
add esp, 0x20
test eax, eax
je 0x406c46
lea eax, [ebp - 0x218]
push 0x42d330
push eax
call fcn.0041d2f0
pop ecx
test eax, eax
pop ecx
je 0x406c46
test byte [ebp - 0x244], 0x10
lea eax, [ebp - 0x104]
push eax
je 0x406c40
call fcn.00406b7b
jmp 0x406c45
call fcn.00406a74
pop ecx
lea eax, [ebp - 0x244]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406bc7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
leave
ret
Function at 0x407a4c
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x407a7a
push esi
call fcn.0040a934
cmp dword [esi + 0x40], 0
pop ecx
je 0x407a73
xor eax, eax
mov dword [esi + 0x10], 0xcf
inc eax
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x407aec
mov eax, dword [esi + 0x1b0]
cmp dword [eax + 0x10], 0
je 0x407ade
mov eax, dword [esi + 8]
test eax, eax
je 0x407a9b
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x1b0]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x407ada
cmp eax, 2
je 0x407ade
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x407a90
cmp eax, 3
je 0x407abf
cmp eax, 1
jne 0x407a90
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x407a90
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x407a90
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
mov dword [esi + 0x98], eax
jmp 0x407b0a
cmp eax, 0xcc
je 0x407b0a
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
push esi
call fcn.00407b13
pop ecx
pop esi
ret
Function at 0x411f27
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp byte [esi], 0
jne 0x411f90
push dword [esi + 8]
lea ecx, [ebp - 8]
call fcn.004139c4
mov ecx, esi
call fcn.004118cb
test al, al
jne 0x411f88
lea ecx, [ebp - 4]
call fcn.004139a5
lea ecx, [ebp - 8]
call fcn.00413dd7
push eax
lea eax, [ebp - 4]
push 0x42f878
push eax
call fcn.00413d42
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.00413dd7
push eax
push 0x42f864
call fcn.004137d0
pop ecx
pop ecx
push 0xffffffffffffffff
call fcn.0041d473
lea ecx, [ebp - 8]
call fcn.00413a7f
pop esi
leave
ret

Function at 0x4123de
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 0xc]
test edx, edx
mov eax, dword [esp + 4]
je 0x41240a
mov ecx, dword [esp + 8]
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
mov esi, dword [esi*4 + 0x42f388]
shr eax, 8
xor eax, esi
inc ecx
dec edx
jne 0x4123f0
pop edi
pop esi
ret

Function at 0x4142eb
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0041c380
lea eax, [ebp - 0x104]
push eax
call fcn.0041436d
add esp, 0xc
push 0
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
jne 0x414368
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.0041c470
test eax, eax
pop ecx
pop ecx
jne 0x414350
lea eax, [ebp - 0x104]
push 0x2f
push eax
call fcn.0041c470
test eax, eax
pop ecx
pop ecx
je 0x414364
and byte [eax], 0
push 0
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
je 0x414328
jmp 0x4142fb
xor al, al
jmp 0x41436a
mov al, 1
pop esi
leave
ret

Function at 0x414433
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x414445
xor al, al
ret
and eax, 1
dec al
neg al
sbb eax, eax
inc eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x414477
and eax, 0xfffffffe
cmp byte [esp + 8], 0
je 0x41446c
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x41ce3f
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429a08
push 0x420e38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x437150], eax
movzx ecx, ah
mov dword [0x43715c], ecx
and eax, 0xff
mov dword [0x437158], eax
shl eax, 8
add eax, ecx
mov dword [0x437154], eax
movzx eax, word [0x437152]
mov dword [0x437150], eax
push 1
call fcn.0041fb3a
pop ecx
test eax, eax
jne 0x41cead
push 0x1c
call fcn.0041cf6f
pop ecx
call fcn.0041f779
test eax, eax
jne 0x41cebe
push 0x10
call fcn.0041cf6f
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00421a71
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x438858], eax
call fcn.0042193f
mov dword [0x437140], eax
call fcn.004216fa
call fcn.00421641
call fcn.0041d446
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004215e3
mov dword [ebp - 0x60], eax
test byte [ebp - 0x30], 1
je 0x41cf0d
movzx eax, word [ebp - 0x2c]
jmp 0x41cf10
push 0xa
pop eax
push eax
push dword [ebp - 0x60]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x64], eax
push eax
call fcn.0041d473
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
push eax
push ecx
call fcn.0042146f
pop ecx
pop ecx
ret

Function at 0x41d495
Capabilities:
Terminate process

Disassembly:
push edi
call fcn.0041d539
xor edi, edi
inc edi
cmp dword [0x43718c], edi
jne 0x41d4b7
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [esp + 0xc], 0
push ebx
mov ebx, dword [esp + 0x14]
mov dword [0x437188], edi
mov byte [0x437184], bl
jne 0x41d50b
mov eax, dword [0x438854]
push esi
test eax, eax
je 0x41d4f9
mov ecx, dword [0x438850]
lea esi, [ecx - 4]
cmp esi, eax
jb 0x41d4f9
mov eax, dword [esi]
test eax, eax
je 0x41d4ee
call eax
sub esi, 4
cmp esi, dword [0x438854]
jae 0x41d4e6
push 0x42c094
push 0x42c08c
call fcn.0041d54b
pop ecx
pop ecx
pop esi
push 0x42c09c
push 0x42c098
call fcn.0041d54b
pop ecx
pop ecx
test ebx, ebx
pop ebx
je 0x41d527
pop edi
jmp fcn.0041d542
push dword [esp + 8]
mov dword [0x43718c], edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x41f803
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x431ad0]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41f860
push 0x74
push 1
call fcn.0041e233
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x41f858
push esi
push dword [0x431ad0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41f858
push esi
call fcn.0041f7f0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x41f860
push 0x10
call fcn.0041cf4a
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x421c65
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x433f00]
je 0x421c82
inc eax
cmp eax, 0x12
jb 0x421c73
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x433f00]
jne 0x421db0
mov eax, dword [0x437148]
cmp eax, 1
je 0x421d8a
test eax, eax
jne 0x421cb3
cmp dword [0x431704], 1
je 0x421d8a
cmp ecx, 0xfc
je 0x421db0
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x421cea
lea eax, [ebp - 0x1a4]
push 0x429ee0
push eax
call fcn.0041c380
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041c300
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x421d2d
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041c300
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x429edc
push edi
call fcn.0041c570
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x429ec0
push eax
call fcn.0041c380
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041c390
lea eax, [ebp - 0xa0]
push 0x429ebc
push eax
call fcn.0041c390
push dword [esi + 0x433f04]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041c390
push 0x12010
lea eax, [ebp - 0xa0]
push 0x429e94
push eax
call fcn.00425400
add esp, 0x2c
pop edi
jmp 0x421db0
lea eax, [ebp + 8]
lea esi, [esi + 0x433f04]
push 0
push eax
push dword [esi]
call fcn.0041c300
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x421fca
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x422190
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x437700]
shl esi, 2
mov eax, dword [edi]
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x422190
test cl, 0x48
je 0x422030
mov al, byte [eax + 5]
cmp al, 0xa
je 0x422030
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [edi]
push dword [ebp + 0x10]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x422082
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x42206a
call fcn.0041db2a
mov dword [eax], 9
call fcn.0041db33
mov dword [eax], esi
jmp 0x42207a
cmp eax, 0x6d
je 0x422190
push eax
call fcn.0041dabc
pop ecx
or eax, 0xffffffff
jmp 0x422192
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x42218b
test edx, edx
je 0x4220a5
cmp byte [ebx], 0xa
jne 0x4220a5
or al, 4
jmp 0x4220a7
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x10], eax
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], ecx
jae 0x422185
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x422175
cmp al, 0xd
je 0x4220db
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x422167
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4220f5
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4220f0
add dword [ebp + 0x10], 2
jmp 0x422149
mov dword [ebp + 0x10], eax
jmp 0x422163
lea eax, [ebp - 0xc]
push 0
push eax
inc dword [ebp + 0x10]
lea eax, [ebp - 1]
push 1
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42211d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x422163
cmp dword [ebp - 0xc], 0
je 0x422163
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42213e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x422149
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x422166
cmp ebx, dword [ebp + 0xc]
jne 0x42214e
cmp byte [ebp - 1], 0xa
jne 0x42214e
mov byte [ebx], 0xa
jmp 0x422166
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421e18
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x422167
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4220bf
jmp 0x422185
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x422185
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x422192
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423519
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
jne 0x423539
xor eax, eax
jmp 0x4236a2
mov eax, dword [ebp + 8]
sar eax, 5
lea ebx, [eax*4 + 0x437700]
mov eax, dword [ebp + 8]
and eax, 0x1f
lea esi, [eax + eax*8]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x423569
push 2
push edi
push dword [ebp + 8]
call fcn.00421e18
add esp, 0xc
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x42363b
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x423676
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x418]
sub ecx, dword [ebp + 0xc]
mov dword [ebp - 4], edi
cmp ecx, dword [ebp + 0x10]
jae 0x4235c4
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
inc ecx
mov dl, byte [edx]
cmp dl, 0xa
jne 0x4235b5
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 4]
mov byte [eax], dl
inc eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x400
jl 0x423598
mov edi, eax
lea eax, [ebp - 0x418]
sub edi, eax
lea eax, [ebp - 0x14]
push 0
push eax
lea eax, [ebp - 0x418]
push edi
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423604
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x42360d
mov eax, dword [ebp - 8]
xor edi, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jb 0x423589
jmp 0x42360f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x42369f
cmp dword [ebp + 8], edi
je 0x423676
push 5
pop esi
cmp dword [ebp + 8], esi
jne 0x423668
call fcn.0041db2a
mov dword [eax], 9
call fcn.0041db33
mov dword [eax], esi
jmp 0x423671
lea ecx, [ebp - 0x14]
push edi
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42365d
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x42360f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x42360f
push dword [ebp + 8]
call fcn.0041dabc
pop ecx
or eax, 0xffffffff
jmp 0x4236a2
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42368b
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x423532
call fcn.0041db2a
mov dword [eax], 0x1c
call fcn.0041db33
mov dword [eax], edi
jmp 0x423671
sub eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424b58
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push esi
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 3
push 0x1f03ff
push 0x429f7c
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
je 0x424bd6
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x804]
push dword [ebp + 8]
push eax
call fcn.0041e031
add esp, 0xc
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret

Function at 0x424bda
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov ebx, eax
push esi
push 0x80
push 4
push esi
push 3
push 0x1f03ff
push 0x429f7c
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
lea eax, [ebp - 4]
push esi
push eax
push 0x400
push ebx
push esi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 4]
lea eax, [ebp - 0x808]
push ebx
push 0x429fa4
push eax
call fcn.0041c518
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, esi
je 0x424c84
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x808]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001410
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 4], 0xffffffff
push 0x1005a858
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x4c], eax
push 0x1005a868
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x54], eax
push 0x1005a874
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x48], eax
push 0x1005a884
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10001488
jmp 0x10001583
mov dword [ebp - 0x40], 0x1c
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x100014af
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10001583
mov ecx, dword [ebp + 8]
push ecx
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x100014c8
jmp 0x10001583
mov dword [ebp - 0x24], 0x1c
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call sub.KERNEL32.dll_Thread32First
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x34], eax
jne 0x1000155a
mov edx, dword [ebp - 0x38]
push edx
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x1000155a
mov dword [ebp - 0x5c], 0
push 0
push 4
lea eax, [ebp - 0x5c]
push eax
push 9
mov ecx, dword [ebp - 0x58]
push ecx
call dword [ebp - 0x50]
test eax, eax
jl 0x10001550
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ebp + 0xc]
jbe 0x10001550
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp + 0x10]
jae 0x10001550
push 0
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.10001590
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x100014f3
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret