joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d35
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x45100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0x38], edx
push ebx
push 1
push ebx
push ebx
push eax
mov esi, ecx
call edi
test eax, eax
jne 0x403d7b
push 8
push 1
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
call edi
test eax, eax
jne 0x403d7b
xor al, al
jmp 0x403e5c
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x403d9f
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x403d74
mov eax, dword [esi + 0x10]
push 0x10
pop edi
cmp dword [esi + 0x14], edi
jb 0x403dac
mov esi, dword [esi]
push ebx
push eax
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x403dc7
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x403d93
push ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], edi
push eax
lea eax, [ebp - 0x14]
push eax
push 2
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 0x30]
test eax, eax
je 0x403dbf
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x34], edi
jne 0x403d74
mov esi, str.0123456789abcdef
lea edi, [ebp - 0x28]
push ebx
push 0x20
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x38]
mov ecx, esi
call fcn.0040421d
mov edx, ebx
cmp dword [esi + 0x14], 0x10
jb 0x403e24
mov ecx, dword [esi]
jmp 0x403e26
mov ecx, esi
movzx eax, byte [ebp + edx - 0x14]
shr eax, 4
mov al, byte [ebp + eax - 0x28]
mov byte [ecx + ebx], al
cmp dword [esi + 0x14], 0x10
jb 0x403e3f
mov eax, dword [esi]
jmp 0x403e41
mov eax, esi
movzx ecx, byte [ebp + edx - 0x14]
and ecx, 0xf
mov cl, byte [ebp + ecx - 0x28]
mov byte [eax + ebx + 1], cl
add ebx, 2
inc edx
cmp edx, 0x10
jb 0x403e1a
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b97b
mov esp, ebp
pop ebp
ret
Function at 0x405eeb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
mov eax, edx
push edi
mov edi, ecx
cmp dword [0x458438], ebx
jne 0x405f37
mov esi, ebx
push 8
mov eax, esi
pop ecx
test al, 1
je 0x405f14
shr eax, 1
xor eax, 0xedb88320
jmp 0x405f16
shr eax, 1
sub ecx, 1
jne 0x405f07
mov dword [esi*4 + 0x458488], eax
inc esi
cmp esi, 0x100
jl 0x405f02
mov dword [0x458438], 1
mov eax, edx
add eax, edi
xor ecx, ecx
mov esi, eax
or edx, 0xffffffff
sub esi, edi
cmp edi, eax
cmova esi, ecx
test esi, esi
je 0x405f63
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x458488]
inc edi
inc ebx
cmp ebx, esi
jb 0x405f4b
pop edi
not edx
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4060e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push edx
push 0x4480b0
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov esi, eax
test esi, esi
jne 0x406103
xor eax, eax
jmp 0x4061b3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4060fc
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x406145
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x406145
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406145
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x406149
xor eax, eax
jmp 0x4061b2
push edi
push ebx
push eax
call fcn.00420670
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x406177
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x4061a1
mov ecx, dword [ebp - 4]
lea eax, [esi + 4]
and dword [eax], 0
push eax
push ecx
mov dword [esi], vtable.Gdiplus::Image.0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x4061a3
xor esi, esi
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4061b0
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x4061c1
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4061d4
test al, 0x10
jne 0x4061d4
mov al, 1
ret
xor al, al
ret
Function at 0x406247
Capabilities:
Get common file path

Disassembly:
push 0x39c
mov eax, 0x439efb
call fcn.00438b4c
mov esi, ecx
mov dword [ebp - 0x244], esi
xor edi, edi
mov dword [ebp - 0x248], edi
call fcn.004061d7
test al, al
je 0x4062ed
push 0x20a
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.00420070
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push edi
push edi
push 5
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4062e4
push ecx
push ecx
lea ecx, [ebp - 0x3a8]
call fcn.0040d74d
lea eax, [ebp - 0x3a8]
mov dword [ebp - 4], edi
test eax, eax
je 0x4062c4
mov edx, str.Cant_get_path
lea ecx, [ebp - 0x398]
call fcn.004076fa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3a8]
call fcn.0040d4e2
push 0x447490
mov ecx, esi
call fcn.00404015
jmp 0x40649a
lea eax, [ebp - 0x220]
push eax
jmp 0x4062d8
mov dword [ebp - 0x23c], edi
lea eax, [ebp - 0x23c]
xor ebx, ebx
push eax
push 0x447fec
inc ebx
push ebx
push edi
push 0x43c500
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x406441
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x406441
mov dword [ebp - 0x240], edi
lea edx, [ebp - 0x240]
mov byte [ebp - 4], 3
mov ecx, dword [eax]
push edx
push 0x43c4c0
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x406418
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x406418
lea edx, [ebp - 0x244]
mov dword [ebp - 0x244], edi
mov ecx, dword [eax]
push edx
push 0x8000
push eax
call dword [ecx + 0x18]
test eax, eax
jns 0x4063d8
push ecx
push ecx
lea ecx, [ebp - 0x2f8]
call fcn.0040d74d
lea eax, [ebp - 0x2f8]
mov byte [ebp - 4], 5
test eax, eax
je 0x4063a1
mov edx, str.Cant_get_folder_path
lea ecx, [ebp - 0x2e8]
call fcn.004076fa
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 3
call fcn.0040d4e2
push 0x447490
mov ecx, esi
call fcn.00404015
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x406486
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x406486
push dword [ebp - 0x244]
lea ecx, [ebp - 0x238]
call fcn.00404015
push dword [ebp - 0x244]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x238]
mov dword [ebp - 0x244], edi
push eax
mov ecx, esi
call fcn.00403ff0
push edi
push ebx
lea ecx, [ebp - 0x238]
call fcn.004040a2
jmp 0x4063bc
push ecx
push ecx
lea ecx, [ebp - 0x2f8]
call fcn.0040d74d
lea eax, [ebp - 0x2f8]
mov byte [ebp - 4], 4
test eax, eax
je 0x4063a1
mov edx, str.Cant_get_path
jmp 0x406396
push ecx
push ecx
lea ecx, [ebp - 0x2f8]
call fcn.0040d74d
lea eax, [ebp - 0x2f8]
mov byte [ebp - 4], 2
test eax, eax
je 0x40646c
mov edx, str.Cant_get_path_manager
lea ecx, [ebp - 0x2e8]
call fcn.004076fa
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], bl
call fcn.0040d4e2
push 0x447490
mov ecx, esi
call fcn.00404015
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x40649a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.00438b07
ret
Function at 0x4064df
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 0x264
mov eax, 0x439f54
call fcn.00438b4c
mov esi, ecx
mov dword [ebp - 0x26c], esi
xor ebx, ebx
lea eax, [ebp - 0x220]
push 0x20a
push ebx
push eax
mov dword [ebp - 0x270], ebx
call fcn.00420070
add esp, 0xc
call fcn.004061d7
test al, al
je 0x4065df
lea eax, [ebp - 0x220]
push eax
push ebx
push ebx
push 0x24
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x406540
push 0x447490
jmp 0x406600
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x250]
call fcn.00404015
push str._temp
mov edx, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x238]
call fcn.0040531a
pop ecx
cmp dword [eax + 0x14], 8
jb 0x406570
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406582
test al, 0x10
je 0x406582
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x238]
call fcn.004040a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
push 0
push 1
call fcn.004040a2
test bl, bl
je 0x4065df
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x268]
call fcn.00404015
xor ebx, ebx
mov edx, eax
inc ebx
mov ecx, esi
push str._temp
mov dword [ebp - 4], ebx
call fcn.0040531a
pop ecx
push 0
push ebx
lea ecx, [ebp - 0x268]
call fcn.004040a2
jmp 0x406607
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x406536
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call fcn.00404015
mov eax, esi
call fcn.00438b07
ret
Function at 0x40660f
Capabilities:
Get common file path

Disassembly:
push 0x2ec
mov eax, 0x439fb3
call fcn.00438b4c
mov esi, ecx
mov dword [ebp - 0x244], esi
xor ebx, ebx
mov dword [ebp - 0x248], ebx
call fcn.004061d7
test al, al
je 0x40667c
push 0x20a
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.00420070
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
test eax, eax
je 0x406673
push 0x447490
call fcn.00404015
jmp 0x406828
lea eax, [ebp - 0x220]
push eax
jmp 0x406669
mov dword [ebp - 0x23c], ebx
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], ebx
push eax
push 0x447fec
push 1
push ebx
push 0x43c500
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4067cf
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x4067cf
mov dword [ebp - 0x240], ebx
lea edx, [ebp - 0x240]
mov byte [ebp - 4], 2
mov ecx, dword [eax]
push edx
push 0x43c4b0
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x4067a6
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x4067a6
lea edx, [ebp - 0x244]
mov dword [ebp - 0x244], ebx
mov ecx, dword [eax]
push edx
push 0x8000
push eax
call dword [ecx + 0x18]
test eax, eax
jns 0x406765
push ecx
push ecx
lea ecx, [ebp - 0x2f8]
call fcn.0040d74d
lea eax, [ebp - 0x2f8]
mov byte [ebp - 4], 4
test eax, eax
je 0x40672e
mov edx, str.Cant_get_folder_path
lea ecx, [ebp - 0x2e8]
call fcn.004076fa
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 2
call fcn.0040d4e2
push 0x447490
mov ecx, esi
call fcn.00404015
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x406814
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x406814
push dword [ebp - 0x244]
lea ecx, [ebp - 0x238]
call fcn.00404015
push dword [ebp - 0x244]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x238]
mov dword [ebp - 0x244], ebx
push eax
mov ecx, esi
call fcn.00403ff0
push ebx
push 1
lea ecx, [ebp - 0x238]
call fcn.004040a2
jmp 0x406749
push ecx
push ecx
lea ecx, [ebp - 0x2f8]
call fcn.0040d74d
lea eax, [ebp - 0x2f8]
mov byte [ebp - 4], 3
test eax, eax
je 0x40672e
mov edx, str.Cant_get_path
jmp 0x406723
push ecx
push ecx
lea ecx, [ebp - 0x2f8]
call fcn.0040d74d
lea eax, [ebp - 0x2f8]
mov byte [ebp - 4], 1
test eax, eax
je 0x4067fa
mov edx, str.Cant_get_path_manager
lea ecx, [ebp - 0x2e8]
call fcn.004076fa
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], bl
call fcn.0040d4e2
push 0x447490
mov ecx, esi
call fcn.00404015
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x406828
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.00438b07
ret
Function at 0x406990
Capabilities:
Create process on windows

Disassembly:
push 0x51c
mov eax, 0x43a03e
call fcn.00438b4c
mov esi, ecx
push esi
lea ecx, [ebp - 0x438]
call fcn.00404015
lea ecx, [ebp - 0x438]
call fcn.004061b9
mov bl, al
lea ecx, [ebp - 0x438]
neg bl
sbb bl, bl
xor edi, edi
push edi
push 1
call fcn.004040a2
add bl, 1
jne 0x406ad3
push str..torrent
push esi
call fcn.0041f443
pop ecx
pop ecx
test eax, eax
jne 0x406ad3
push str..tor
push esi
call fcn.0041f443
pop ecx
pop ecx
test eax, eax
jne 0x406ad3
push str.magnet:
push esi
call fcn.0041f443
pop ecx
pop ecx
test eax, eax
jne 0x406ad3
push 0x410
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.00420070
add esp, 0xc
lea eax, [ebp - 0x420]
push esi
push str._select___s_
push 0x208
push eax
call fcn.004081e9
add esp, 0x10
test eax, eax
jns 0x406a80
push ecx
push ecx
lea ecx, [ebp - 0x528]
call fcn.0040d74d
lea eax, [ebp - 0x528]
mov dword [ebp - 4], edi
test eax, eax
je 0x406a73
mov edx, str.Buffer_is_to_small
lea ecx, [ebp - 0x518]
call fcn.004076fa
lea ecx, [ebp - 0x528]
call fcn.0040d4e2
jmp 0x406ad3
push 0x38
lea eax, [ebp - 0x470]
push edi
push eax
call fcn.00420070
add esp, 0xc
mov dword [ebp - 0x474], 0x3c
lea eax, [ebp - 0x420]
mov dword [ebp - 0x464], str.explorer.exe
mov dword [ebp - 0x460], eax
lea eax, [ebp - 0x474]
mov dword [ebp - 0x468], str.open
push eax
mov dword [ebp - 0x458], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call fcn.00438b07
ret

Function at 0x406d6e
Capabilities:
Delete file

Disassembly:
push 0x208
mov eax, 0x43a0e9
call fcn.00438b4c
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x160], esi
and dword [ebp - 0x164], 0
xor edi, edi
push edi
push 0
push ebx
push str.ipartner_i__i__i.exe
lea eax, [ebp - 0x114]
push 0x80
push eax
call fcn.004081e9
add esp, 0x18
test eax, eax
js 0x406e7b
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x144]
call fcn.00404015
lea ecx, [ebp - 0x15c]
mov dword [ebp - 4], 1
call fcn.004064df
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x12c]
call fcn.00406830
pop ecx
push 0
push 1
lea ecx, [ebp - 0x15c]
call fcn.004040a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
push 0
push 1
call fcn.004040a2
lea ecx, [ebp - 0x12c]
call fcn.004061b9
test al, al
je 0x406e5c
cmp dword [ebp - 0x118], 8
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406e5c
push eax
push 1
lea ecx, [ebp - 0x12c]
call fcn.004040a2
inc edi
cmp edi, 0x64
jl 0x406d90
jmp 0x406eb5
lea eax, [ebp - 0x12c]
mov ecx, esi
push eax
call fcn.00403ff0
push 0
push 1
lea ecx, [ebp - 0x12c]
call fcn.004040a2
jmp 0x406ec1
push ecx
push ecx
lea ecx, [ebp - 0x214]
call fcn.0040d74d
and dword [ebp - 4], 0
lea eax, [ebp - 0x214]
test eax, eax
je 0x406ea6
mov edx, str.Too_small_buffer
lea ecx, [ebp - 0x204]
call fcn.004076fa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x214]
call fcn.0040d4e2
push 0x447490
mov ecx, esi
call fcn.00404015
mov eax, esi
call fcn.00438b07
ret
Function at 0x4071e3
Capabilities:
Move file

Disassembly:
push 0x284
mov eax, 0x43a1df
call fcn.00438b4c
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00420070
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x103
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40735d
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00404015
mov edi, 0x447ef0
mov esi, eax
push edi
call fcn.00403808
pop ecx
push eax
push ecx
push edi
mov ecx, esi
call fcn.00407524
push ebx
push 1
lea ecx, [ebp - 0x248]
mov edi, eax
call fcn.004040a2
cmp edi, 0xffffffff
je 0x40735d
xor esi, esi
inc esi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00404015
mov edx, esi
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x290]
call fcn.0040819b
push eax
mov edx, 0x447f08
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.004052e6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x260]
mov edx, eax
mov dword [esp], str._.exe
call fcn.0040531a
pop ecx
push 0xffffffffffffffff
push ebx
push eax
push 4
push edi
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.00404c4e
push ebx
push 1
lea ecx, [ebp - 0x260]
call fcn.004040a2
push ebx
push 1
lea ecx, [ebp - 0x278]
call fcn.004040a2
push ebx
push 1
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], bl
call fcn.004040a2
lea ecx, [ebp - 0x230]
call fcn.004061b9
test al, al
je 0x40732d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
push ebx
push 1
inc esi
call fcn.004040a2
cmp esi, 0x3e8
jl 0x40726a
jmp 0x40735d
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.004040a2
call fcn.00438b07
ret

Function at 0x407363
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x38
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
mov esi, edx
mov edi, ecx
call fcn.00420070
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x3c], 0x440
jb 0x407397
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x30], edi
jb 0x4073a2
mov esi, dword [esi]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2c], esi
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], str.open
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4073cb
xor al, al
jmp 0x4073ff
cmp dword [ebp - 8], ebx
je 0x4073c7
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4073c7
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4073c7
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407406
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x45100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x1c]
push esi
call fcn.00404015
lea ecx, [ebp - 0x1c]
call fcn.004061b9
mov bl, al
lea ecx, [ebp - 0x1c]
push 0
neg bl
push 1
sbb bl, bl
call fcn.004040a2
add bl, 1
jne 0x4074ad
push 0
push 0x80
push 3
push 0
xor ebx, ebx
inc ebx
push ebx
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4074ad
test esi, esi
je 0x4074ad
xor eax, eax
push eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 2
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4074a6
cmp dword [ebp - 0x24], 2
jne 0x4074a6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x20], 0x4d
jne 0x4074a0
cmp byte [ebp - 0x1f], 0x5a
je 0x4074a2
xor ebx, ebx
mov al, bl
jmp 0x4074af
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b97b
mov esp, ebp
pop ebp
ret

Function at 0x40854f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
lea eax, [ebp - 0x38]
mov esi, ecx
push 0
push eax
call fcn.00420070
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x3c]
and dword [ebp - 0x24], 0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], str.open
push eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x28], 0x448040
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b6e6
Capabilities:
Get graphical window text

Disassembly:
push 0x24c
mov eax, 0x43a545
call fcn.00438b4c
mov edi, ecx
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0x258], ebx
mov byte [eax], 1
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x40b7ec
sub eax, 1
je 0x40b786
sub eax, 1
jne 0x40b923
mov eax, dword [ebp + 0xc]
sub eax, ebx
je 0x40b765
dec eax
sub eax, 1
jne 0x40b923
mov ecx, dword [edi + 0x13c]
call fcn.00412e13
mov eax, dword [edi + 0x90]
push ebx
push 0x14
push dword [edi + 4]
mov dword [edi + 0x98], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call fcn.0040c3e4
jmp 0x40b923
mov esi, dword [edi + 0x13c]
mov dl, 1
mov ecx, 0x4499f8
mov dword [esi], ebx
call fcn.004051eb
mov ecx, dword [esi + 8]
call fcn.00405b27
jmp 0x40b923
mov eax, dword [ebp + 0xc]
sub eax, ebx
je 0x40b7e2
sub eax, 1
je 0x40b7c6
sub eax, 1
jne 0x40b923
mov esi, dword [edi + 0x13c]
mov dl, 1
mov ecx, 0x449a1c
call fcn.004051eb
mov ecx, dword [esi + 8]
push 0x449a24
call fcn.00405a91
mov ecx, edi
call fcn.0040c05f
jmp 0x40b923
mov eax, dword [edi + 0x148]
imul eax, dword [ebp + 0x10]
push ebx
push 0x64
pop ecx
cdq
idiv ecx
add eax, dword [edi + 0x150]
jmp 0x40b8ee
mov ecx, 0x449a28
jmp 0x40b90d
mov eax, dword [ebp + 0xc]
sub eax, ebx
je 0x40b908
sub eax, 1
je 0x40b8dd
sub eax, 1
jne 0x40b923
mov ecx, dword [edi + 0x13c]
push 0x449a18
mov ecx, dword [ecx + 8]
call fcn.00405a91
lea ecx, [ebp - 0x254]
call fcn.00406b6a
mov dword [ebp - 4], ebx
cmp dword [eax + 0x10], ebx
mov dword [ebp - 0x258], 1
sete al
test al, al
jne 0x40b849
call fcn.004074bf
test al, al
jne 0x40b849
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
xor esi, esi
push esi
push 1
call fcn.004040a2
test bl, bl
je 0x40b7ba
mov eax, dword [edi + 0x144]
push 0x20a
mov dword [edi + 0x150], eax
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.00420070
add esp, 0xc
lea eax, [ebp - 0x224]
push 0x105
push eax
push 0xa
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00404015
xor ebx, ebx
lea eax, [ebp - 0x23c]
inc ebx
mov dword [ebp - 4], ebx
mov ecx, dword [edi + 0x13c]
push eax
call fcn.00412d21
push esi
push ebx
lea ecx, [ebp - 0x23c]
call fcn.004040a2
jmp 0x40b923
mov eax, dword [edi + 0x144]
imul eax, dword [ebp + 0x10]
push 0x64
pop ecx
push ebx
cdq
idiv ecx
push eax
push 0x402
push 0x14
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40b923
mov ecx, 0x449a10
mov eax, dword [edi + 0x13c]
mov dl, 1
mov dword [eax], ebx
call fcn.004051eb
mov ecx, edi
call fcn.0040c22d
xor eax, eax
call fcn.00438b07
ret 0x10