joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6578fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x65f3f8
cmp edx, dword [eax]
je 0x65791f
add eax, 8
inc ecx
cmp eax, 0x65f488
jl 0x657910
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x65f3f8]
jne 0x657a4d
mov eax, dword [0xa5bdd4]
cmp eax, 1
je 0x657a27
test eax, eax
jne 0x657950
cmp dword [0x65f324], 1
je 0x657a27
cmp edx, 0xfc
je 0x657a4d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x657987
lea eax, [ebp - 0x1a4]
push 0x65ca20
push eax
call fcn.006582e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00658770
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x6579ca
lea eax, [ebp - 0x1a4]
push eax
call fcn.00658770
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65ca1c
push edi
call fcn.0065a640
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65ca00
push eax
call fcn.006582e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.006582f0
lea eax, [ebp - 0xa0]
push 0x65c9fc
push eax
call fcn.006582f0
push dword [esi + 0x65f3fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.006582f0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65c9d4
push eax
call fcn.0065a5b4
add esp, 0x2c
pop edi
jmp 0x657a4d
lea eax, [ebp + 8]
lea esi, [esi + 0x65f3fc]
push 0
push eax
push dword [esi]
call fcn.00658770
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 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x10001f40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.10003000
add esp, 4
mov edx, dword [ebp - 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x10001fb8
mov ecx, dword [ebp - 8]
push ecx
call fcn.10003000
add esp, 4
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.10003000
add esp, 4
mov edx, dword [ebp - 4]
cmp dword [edx], 0x4550
jne 0x10001fb8
mov eax, dword [ebp + 8]
push eax
call fcn.10003000
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x10001fd4
mov edx, dword [ebp + 8]
push edx
call fcn.10003000
add esp, 4
xor eax, eax
jmp 0x10001fd4
mov esp, ebp
pop ebp
ret
Function at 0x40386a
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x4041f7
Capabilities:
Get disk information

Disassembly:
mov eax, 0x422dc8
call fcn.00421fa0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
call fcn.00401e6d
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ebx, ebx
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
jne 0x404228
xor al, al
jmp 0x4042b1
lea ecx, [ebp - 0x2c]
call fcn.0040242c
cmp edi, dword [ebp - 0x24]
mov dword [ebp - 4], ebx
jbe 0x404241
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040221c
push dword [ebp - 0x2c]
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x4042a6
cmp eax, edi
ja 0x4042a6
lea ecx, [ebp - 0x20]
call fcn.0040242c
xor esi, esi
cmp dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
jbe 0x404297
mov eax, dword [ebp - 0x2c]
mov ax, word [eax + esi*2]
cmp ax, bx
jne 0x404288
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
call fcn.004019e3
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
mov word [eax], bx
jmp 0x404291
push eax
lea ecx, [ebp - 0x20]
call fcn.00401d83
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x404265
cmp dword [ebp - 0x1c], ebx
push dword [ebp - 0x20]
sete bl
call fcn.00401fc6
pop ecx
push dword [ebp - 0x2c]
call fcn.00401fc6
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404319
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40433f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40433f
xor al, al
jmp 0x40435f
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004222a0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x40513d
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, ecx
push edi
mov eax, dword [esi]
and dword [esi + 4], 0
and word [eax], 0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
test edi, edi
jne 0x40516b
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
jmp 0x4051a2
cmp edi, dword [esi + 8]
jbe 0x405178
push edi
mov ecx, esi
call fcn.0040221c
mov eax, dword [esi]
inc edi
push edi
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, esi
mov edi, eax
call fcn.00404e91
test edi, edi
jne 0x4051a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
neg eax
jmp 0x4051a2
mov al, 1
pop edi
pop esi
pop ebx
ret 4
Function at 0x40c01a
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4236c2
call fcn.00421fa0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
call fcn.0040242c
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0040c066
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40f8d9
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b4
lea eax, [esp]
neg cl
sbb ecx, ecx
and cl, 1
add ecx, 0x100
or cx, 0x4010
push ecx
push 0x2b4
push eax
push 0x90
push 0x42bb74
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add esp, 0x2b4
ret

Function at 0x410924
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, 0x423eec
call fcn.00421fa0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [esi], 0x425920
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
mov byte [esi + 0x45], bl
call fcn.0040242c
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 3
call fcn.0040242c
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
mov byte [esi + 0x60], bl
call fcn.0040242c
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 5
call fcn.0040242c
lea eax, [esi + 0x80]
mov byte [esi + 0x7c], 1
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
lea ecx, [esi + 0x8c]
mov byte [ebp - 4], 7
call fcn.0040242c
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x4258ec
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x410930
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, 0x423eec
call fcn.00421fa0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [esi], 0x425920
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
mov byte [esi + 0x45], bl
call fcn.0040242c
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 3
call fcn.0040242c
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
mov byte [esi + 0x60], bl
call fcn.0040242c
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 5
call fcn.0040242c
lea eax, [esi + 0x80]
mov byte [esi + 0x7c], 1
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
lea ecx, [esi + 0x8c]
mov byte [ebp - 4], 7
call fcn.0040242c
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x4258ec
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x410deb
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x423fe2
call fcn.00421fa0
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi], 0x425920
lea ecx, [esi + 0xc]
mov dword [ebp - 4], edi
mov dword [esi + 8], edi
call fcn.0040242c
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.0040242c
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.0040242c
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi], 0x425980
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x410e4d
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x424015
call fcn.00421fa0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 3
call fcn.00401a2a
push dword [esi + 0x24]
call fcn.00401fc6
push dword [esi + 0x18]
call fcn.00401fc6
push dword [esi + 0xc]
call fcn.00401fc6
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi], 0x425950
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x411e14
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x424220
call fcn.00421fa0
sub esp, 0x340
push ebx
mov dword [ebp - 0x1c], ecx
push esi
push edi
lea ecx, [ebp - 0x34]
call fcn.0040242c
mov esi, dword [ebp + 0x10]
and dword [ebp - 4], 0
cmp byte [esi], 0
je 0x411e81
push dword [esi + 0xc]
lea ecx, [ebp - 0x40]
push dword [esi + 8]
call fcn.00411cf3
push eax
mov edx, 0xdb0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00411d93
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00402556
push dword [ebp - 0x4c]
call fcn.00401fc6
push dword [ebp - 0x40]
and byte [ebp - 4], 0
call fcn.00401fc6
pop ecx
pop ecx
lea edi, [esi + 0x18]
push 0x5c
mov ecx, edi
call fcn.0040276d
lea ebx, [eax + 1]
lea eax, [ebp - 0x28]
push ebx
push eax
mov ecx, edi
call fcn.00402cbc
mov eax, dword [edi]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
lea eax, [eax + ebx*2]
push eax
call fcn.00402470
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.00411dd9
lea eax, [ebp - 0x58]
mov ecx, ebx
push eax
call fcn.00411dd9
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x18]
push eax
call fcn.004024b7
push 0xa
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00401d83
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x18]
push eax
call fcn.00402616
push 0xa
lea ecx, [ebp - 0x18]
call fcn.00401d83
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x18]
push eax
call fcn.00402616
push 0xa
lea ecx, [ebp - 0x18]
call fcn.00401d83
cmp byte [esi + 1], 0
je 0x411f94
lea eax, [ebp - 0x48]
add esi, 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
jne 0x411f3e
lea eax, [ebp + 0x10]
push 0x4262d8
push eax
mov dword [ebp + 0x10], 0x3ff0c2
call sub.MSVCRT.dll__CxxThrowException
mov edx, 0x3f4
lea ecx, [ebp - 0x40]
call fcn.0040f4f2
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00402616
push dword [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00401fc6
lea ecx, [ebp - 0x18]
mov dword [esp], 0x42b414
call fcn.004025b9
push 1
push 1
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0x48]
call fcn.00404d75
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0x18]
push eax
call fcn.004025b9
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebx + 4]
call esi
push dword [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [edi]
push 0x110
lea eax, [ebp - 0x34c]
push 0x2b4
push eax
push 0x80
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x411feb
push dword [ebp + 0xc]
push dword [ebx + 4]
call esi
push 0
push dword [ebp - 0x34c]
push 0x170
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x18]
call fcn.00401fc6
push dword [ebp - 0x58]
call fcn.00401fc6
push dword [ebp - 0x28]
call fcn.00401fc6
push dword [ebp - 0x34]
call fcn.00401fc6
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x412156
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
mov eax, 0x424258
call fcn.00421fa0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
or eax, 0xffffffff
mov dword [ebp - 0x10], esi
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x38]
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], eax
call fcn.0040242c
lea ecx, [esi + 0x44]
mov dword [ebp - 4], ebx
call fcn.0040242c
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 1
call fcn.0040242c
mov byte [esi + 0x5c], bl
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 3
call fcn.004121ec
lea ecx, [esi + 0x9c]
call fcn.00420ee0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x413a45
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x4244bc
call fcn.00421fa0
sub esp, 0x44
push ebx
push esi
push edi
mov esi, ecx
push 0
call fcn.004126fd
push 1
mov ecx, esi
call fcn.00413051
mov edx, 0x198
lea ecx, [ebp - 0x20]
call fcn.0040f4f2
mov eax, dword [eax]
lea edi, [esi + 4]
push eax
push 2
push dword [edi]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push dword [ebp - 0x20]
call fcn.00401fc6
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
pop ecx
push 2
push dword [edi]
call ebx
push 1
push 1
push 0xf4
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x1bc
push dword [edi]
call ebx
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1be
push dword [edi]
call ebx
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x50]
call fcn.00413bd4
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.00413bd4
lea eax, [esi + 0x1e4]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1ac], ebx
lea ebx, [esi + 0x1b4]
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
setne byte [ebp - 0xd]
call fcn.00413c05
add ebx, 0x18
lea ecx, [ebp - 0x38]
push ebx
call fcn.00413c05
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
cmp dword [ebp - 0x40], ebx
je 0x413b58
cmp dword [ebp - 0x4c], ebx
mov byte [esi + 0x203], 1
jne 0x413b4e
push 0x42b598
lea ecx, [ebp - 0x50]
call fcn.004024ec
push 0x10
push dword [ebp - 0x50]
push dword [ebp - 0x44]
jmp 0x413b83
cmp byte [ebp - 0xd], 0
jne 0x413b99
cmp dword [ebp - 0x28], ebx
mov byte [esi + 0x203], 1
je 0x413bb2
cmp dword [ebp - 0x34], ebx
jne 0x413b7c
push 0x42b598
lea ecx, [ebp - 0x38]
call fcn.004024ec
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
mov eax, esi
neg eax
sbb eax, eax
and eax, edi
push dword [eax]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp byte [ebp - 0xd], 0
je 0x413bb2
cmp byte [esi + 0x136], 0
jne 0x413bb2
mov ecx, esi
mov byte [esi + 0x135], 1
call fcn.00413faa
jmp 0x413bbb
push ebx
push dword [edi]
call dword [sym.imp.USER32.dll_EndDialog]
lea ecx, [ebp - 0x50]
call fcn.004083d6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x414536
Capabilities:
Get file system object information

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push edx
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
ret 0xc

Function at 0x4205c0
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
ret
Function at 0x420df0
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x420e18
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x420e27
mov eax, 1
ret 4
Function at 0x407638
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040abf0
test esi, esi
jne 0x40766e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040ad88
jmp 0x40768c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407518
mov edi, eax
test esi, esi
je 0x40768c
cmp dword [ebx], 0
je 0x40768c
dec esi
jmp 0x407675
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4097ec
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00409cac
mov byte [esp], al
cmp byte [esp], 0
jne 0x409975
test edi, edi
je 0x409975
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4098b5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x409890
cmp edi, 0xffffffff
je 0x409851
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409851
mov byte [esp], 0
jmp 0x409975
cmp dword [esi], 1
jg 0x409890
cmp dword [esi], 0
jne 0x409882
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x409882
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x409975
lea eax, [esp + 0xc]
call fcn.00409484
dec ebp
test ebp, ebp
jg 0x409836
cmp edi, 0xffffffff
je 0x4098b5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4098b3
mov byte [esp], 0
jmp 0x409975
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4097fa
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4098b5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004099f0
mov edx, eax
mov ebx, dword [0x571900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409919
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x409917
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409919
xor edi, edi
cmp byte [esp], 0
je 0x40993f
mov ebx, dword [esi]
test bl, 1
jne 0x409955
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40991f
mov byte [esp + 1], 1
jmp 0x409955
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40993f
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4098cc
cmp byte [esp], 0
je 0x409975
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40a84c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x57105c], 0
je 0x40a8b3
cmp word [0x57134c], 0xd7b2
jne 0x40a875
cmp dword [0x571354], 0
jbe 0x40a875
mov eax, 0x571348
call dword [0x571364]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40a8e0
call fcn.0040b458
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x56c036], 0
jne 0x40a8cf
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40aab0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x56c038], 0
je 0x40aadb
mov edx, edi
mov eax, esi
call dword [0x56c038]
mov ebx, eax
jmp 0x40aaec
mov eax, 8
call fcn.00406ec4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x57105d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40aa78
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40ab1c
mov eax, ebx
call fcn.00406ee0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc