joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c6d4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4ce040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49c71f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049cb96
test al, al
jne 0x49c719
sub edx, 2
cmp edx, edi
jne 0x49c6ff
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49c741
lea eax, [edi + 2]
cmp edx, eax
je 0x49c741
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049c2cd
add esp, 0x10
jmp 0x49c83b
push esi
lea ecx, [ebp - 0x255]
call fcn.0049cb96
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49c784
push dword [ebp - 0x25c]
jmp 0x49c731
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49c7c1
cmp word [ebp - 0x226], 0
je 0x49c7e2
cmp word [ebp - 0x226], ax
jne 0x49c7c1
cmp word [ebp - 0x224], 0
je 0x49c7e2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049c2cd
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49c82e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49c79b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49c816
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49c83b
push 0x49bcb5
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405439
add esp, 0x10
jmp 0x49c80b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402fef
leave
ret
Function at 0x401a20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4728c8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x49e850]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
lea eax, [ebp - 0x71]
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.004025e0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.00401670
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x401a73
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [ebp - 0x48]
lea edi, [ebp - 0x48]
mov eax, dword [eax + 4]
add edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push dword [ebp - 0x54]
call fcn.00443624
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4c]
call edi
cmp dword [ebp - 0x58], 8
jb 0x401ac2
push dword [ebp - 0x6c]
call edi
xor eax, eax
mov word [ebp - 0x6c], ax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x70]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x4a7ab1], 0
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jne 0x401b6d
push 0
push 0
push 0
push esi
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
call eax
push 0
lea eax, [ebp - 0x7c]
push eax
push 2
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401b3b
cmp dword [ebp - 0x7c], 2
jne 0x401b3b
mov eax, 0xfeff
cmp word [ebp - 0x78], ax
sete al
mov byte [0x4a7ab1], al
jmp 0x401b40
mov al, byte [0x4a7ab1]
test al, al
jne 0x401b61
push 0
lea eax, [ebp - 0x84]
push eax
push 2
lea eax, [ebp - 0x80]
push eax
push esi
mov dword [ebp - 0x80], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [0x4a7ab1], 1
push 2
push 0
push 0
push esi
call eax
cmp dword [ebp - 0x28], 8
push 0
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x3c]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x401ba8
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401ba8
push esi
call eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x18]
mov eax, dword [eax + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push dword [ebp - 0x24]
call fcn.00443624
add esp, 4
push dword [ebp - 0x1c]
call edi
cmp dword [ebp - 0x28], 8
jb 0x401bd6
push dword [ebp - 0x3c]
call edi
xor eax, eax
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x40]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004426a3
mov esp, ebp
pop ebp
ret
Function at 0x4065c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x472d4b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x8054
call fcn.00444560
mov eax, dword [0x49e850]
xor eax, esp
mov dword [esp + 0x8050], eax
push ebx
push esi
push edi
mov eax, dword [0x49e850]
xor eax, esp
push eax
lea eax, [esp + 0x8068]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
mov dword [esp + 0x20], eax
xor edi, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x8070], edi
test eax, eax
jne 0x40662f
lea eax, [edi + 0x57]
jmp 0x4067d9
sub esp, 8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
call fcn.00406a20
add esp, 8
test eax, eax
jne 0x4067d9
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x406679
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
je 0x4067d3
mov esi, ebx
mov dword [esp + 0x1c], esi
jmp 0x4066b0
mov eax, dword [esp + 0x18]
push dword [eax + 4]
lea eax, [esp + 0x2c]
push eax
push 0x4000
lea eax, [esp + 0x68]
push eax
call dword [esp + 0x30]
test eax, eax
je 0x4067ca
cmp dword [esp + 0x28], 0
je 0x40675f
lea eax, [esp + 0x5c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x405c]
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], 0x4000
mov dword [esp + 0x30], eax
call fcn.00406bb0
mov edi, eax
cmp edi, 2
je 0x4067ba
cmp edi, 0xfffffffb
jbe 0x40671a
cmp edi, 0xfffffffd
jbe 0x4067bf
push 0
mov ebx, 0x4000
sub ebx, dword [esp + 0x38]
lea eax, [esp + 0x18]
push eax
push ebx
lea eax, [esp + 0x4068]
push eax
push dword [esp + 0x20]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4067a7
cmp dword [esp + 0x14], ebx
jne 0x406799
cmp dword [esp + 0x34], 0
je 0x4066e5
cmp edi, 1
jne 0x4066b0
lea ecx, [esp + 0x24]
call fcn.004082f0
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp edi, 1
jne 0x40678f
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 8]
push eax
lea eax, [ecx + 0x18]
push eax
lea eax, [ecx + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
dec edi
neg edi
sbb edi, edi
and edi, 0xfffffffd
jmp 0x4067db
lea ecx, [esp + 0x24]
or edi, 0xffffffff
call fcn.004082f0
jmp 0x4067db
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x24]
mov edi, eax
call fcn.004082f0
jmp 0x4067db
mov edi, 0xfffffffd
lea ecx, [esp + 0x24]
call fcn.004082f0
jmp 0x4067db
lea ecx, [esp + 0x24]
call fcn.004082f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x4067ec
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4067ec
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x8068]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8050]
xor ecx, esp
call fcn.004426a3
mov esp, ebp
pop ebp
ret 8
Function at 0x409bd0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x409bdb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00409bf0
Function at 0x40bda2
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x40bdff
push edi
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x40bdf7
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
call fcn.0040bd14
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40be46
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 4], 0x7863513
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.00442345
mov edx, eax
pop ecx
test edx, edx
je 0x40be8c
push edi
xor edi, edi
test ebx, ebx
je 0x40be8b
sub esi, edx
mov eax, edi
and eax, 3
lea ecx, [edi + edx]
mov al, byte [ebp + eax - 4]
xor al, byte [esi + ecx]
inc edi
mov byte [ecx], al
cmp edi, ebx
jb 0x40be75
pop edi
pop esi
mov eax, edx
pop ebx
leave
ret

Function at 0x40e5c3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x40e5d2
mov esi, dword [esi]
push esi
call fcn.00416f8b
pop ecx
push 0
push dword [ebp + 0x10]
add eax, eax
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebp
ret 0x10
Function at 0x410222
Capabilities:
Get common file path

Disassembly:
push 0x7c
mov eax, 0x4633eb
call fcn.004436e9
and dword [ebp - 0x84], 0
mov esi, dword [ebp + 8]
push 0
lea eax, [ebp - 0x71]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x70], 0x477ab0
mov dword [ebp - 0x48], 0x478490
call fcn.00402580
mov dword [ebp - 4], 3
mov edi, 0x104
lea eax, [ebp - 0x80]
push edi
lea ecx, [ebp - 0x70]
push eax
call fcn.0040f5d4
cmp dword [ebp + 0xc], 1
jne 0x4102e2
mov byte [ebp - 4], 4
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.0040f579
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
sbb bl, bl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.0040cd3a
inc bl
je 0x4102bd
lea ecx, [ebp - 0x2c]
call fcn.0041045e
push 0x48bd30
lea eax, [ebp - 0x2c]
push eax
call fcn.00443629
push 1
lea eax, [ebp - 0x71]
push eax
push 0x477ab8
lea ecx, [ebp - 0x40]
call fcn.0040ca90
mov byte [ebp - 4], 5
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.0041055a
jmp 0x410339
cmp dword [ebp + 0xc], 2
jne 0x410347
mov byte [ebp - 4], 7
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.0040f579
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
sbb bl, bl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.0040cd3a
inc bl
jne 0x4102a7
push 1
lea eax, [ebp - 0x71]
push eax
push str.syswow64
lea ecx, [ebp - 0x40]
call fcn.0040ca90
mov byte [ebp - 4], 8
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.0041055a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.00401580
jmp 0x410379
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.0040f579
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
neg ebx
sbb bl, bl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.0040cd3a
inc bl
jne 0x4102a7
push 1
push 0x477aa0
lea ecx, [ebp - 0x70]
call fcn.00410503
push eax
mov ecx, esi
call fcn.004103ae
mov dword [ebp - 0x84], 1
and dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00401580
mov eax, esi
call fcn.00443698
ret
Function at 0x4105b4
Capabilities:
Check if file exists
Create process on windows
Self delete

Disassembly:
push 0x158
mov eax, 0x4634be
call fcn.004436e9
xor esi, esi
push esi
lea eax, [ebp - 0x101]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x477ab0
mov dword [ebp - 0x18], 0x478490
call fcn.00402580
mov dword [ebp - 4], 1
mov edi, 0x400
push edi
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x40]
call fcn.00402910
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.004035c0
push edi
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, eax
neg ebx
sbb bl, bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.00403460
inc bl
jne 0x4107f1
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4107f1
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x40]
call fcn.00402d40
mov byte [ebp - 4], 5
push ebx
lea eax, [ebp - 0x101]
push eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x477ab0
mov dword [ebp - 0x78], 0x478490
call fcn.00402580
mov byte [ebp - 4], 7
push 0x40
lea eax, [ebp - 0x160]
push ebx
push eax
mov dword [ebp - 0x164], ebx
call fcn.004426c0
xor eax, eax
mov dword [ebp - 0x114], ebx
lea edi, [ebp - 0x110]
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop esi
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x164]
push ebx
push eax
call fcn.004426c0
xor eax, eax
mov word [ebp - 0x134], ax
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x138], 1
call fcn.00410222
add esp, 0x20
mov byte [ebp - 4], 8
push 1
lea eax, [ebp - 0x101]
push eax
push str.cmd.exe
lea ecx, [ebp - 0x100]
call fcn.0040ca90
mov byte [ebp - 4], 9
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x70]
call fcn.00410a3f
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x100]
call fcn.00401580
lea eax, [ebp - 0x6c]
cmp byte [ebp + 8], bl
je 0x410757
cmp dword [ebp - 0xb8], 8
lea ecx, [ebp - 0xcc]
cmovae ecx, dword [ebp - 0xcc]
cmp dword [ebp - 0x58], 8
push ecx
cmovae eax, dword [ebp - 0x6c]
push eax
push str.__s___c_rmdir__s__q___s_
jmp 0x410771
cmp dword [ebp - 0x28], 8
lea ecx, [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x3c]
cmp dword [ebp - 0x58], 8
push ecx
cmovae eax, dword [ebp - 0x6c]
push eax
push str.__s___c_del___s_
lea eax, [ebp - 0xa0]
push eax
call fcn.004033b0
add esp, 0x10
lea ecx, [ebp - 0xa0]
call fcn.004035c0
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x164]
push ecx
push ebx
push ebx
push 0x40
push ebx
push ebx
push ebx
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4107c5
push dword [ebp - 0x110]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x114]
call esi
mov bl, 1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x70]
call fcn.00401580
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa0]
call fcn.00401580
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd0]
call fcn.00401580
jmp 0x4107f3
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401580
mov al, bl
call fcn.00443698
ret
Function at 0x41545b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4154de
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x415493
push 0
push 0
jmp 0x4154e0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 4], eax
test eax, eax
je 0x41548d
lea edi, [eax + 0x40]
push edi
call fcn.00442345
pop ecx
mov dword [esi], eax
test eax, eax
je 0x41548d
push edi
push 0
push eax
call fcn.004426c0
add esp, 0xc
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.00442990
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push ebx
push ebx
call fcn.00443629
int3
Function at 0x415b76
Capabilities:
Copy file
Create thread

Disassembly:
push 0x830
mov eax, 0x46460e
call fcn.004436e9
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push edi
call fcn.00415e31
test al, al
je 0x415ba6
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x415d3d
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.004426c0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push edi
mov ecx, esi
call fcn.00415d45
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [esi + 0xf4]
call fcn.004044b0
mov eax, 0x485168
test ebx, ebx
cmovne eax, ebx
lea ecx, [esi + 0x124]
push eax
call fcn.004044b0
push 0x2c
call fcn.00444151
mov edi, eax
pop ecx
mov dword [ebp - 0x81c], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
test edi, edi
je 0x415c2d
lea ecx, [esi + 0xf4]
call fcn.004035c0
push 4
push esi
push dword [eax]
mov ecx, edi
call fcn.0041587d
jmp 0x415c2f
mov eax, ebx
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x154], eax
lea eax, [ebp - 0x820]
push eax
push ebx
push esi
push 0x415ff8
push ebx
push ebx
mov dword [ebp - 0x820], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
push 4
mov dword [ebp - 0x81c], ebx
call fcn.00442345
mov dword [esp], 0x4ff
push 0xffffffffffffffff
push 0
push eax
push 1
mov dword [ebp - 0x818], eax
mov dword [eax], ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, eax
cmp edi, 1
jne 0x415ce9
mov ebx, dword [ebp - 0x818]
xor edi, edi
jmp 0x415cb5
cmp dword [ebp - 0x838], 0x8032
jne 0x415ca8
mov ecx, dword [esi + 0x154]
call fcn.004167ed
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x415c91
push 0x4ff
push 0xffffffffffffffff
push edi
push ebx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, eax
cmp edi, 1
je 0x415c8d
mov ebx, dword [ebp - 0x81c]
push dword [ebp - 0x818]
call fcn.00443624
mov esi, dword [esi + 0x154]
pop ecx
test esi, esi
je 0x415d0d
mov ecx, esi
call fcn.00415a67
push esi
call fcn.00442436
pop ecx
cmp edi, 0xffffffff
jne 0x415d16
xor eax, eax
jmp 0x415d3d
and dword [ebp - 0x814], 0
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x814], eax
setge al
call fcn.00443698
ret 8

Function at 0x417d6d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x28
mov eax, 0x464e42
call fcn.004436e9
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x28], 0x74736e49
mov dword [ebp - 0x24], 0x536c6c61
mov dword [ebp - 0x20], 0x6c656968
mov word [ebp - 0x1c], 0x64
cmp byte [ebp + 0xc], bl
je 0x417db2
mov dword [ebp - 0x1b], 0x7a695720
mov dword [ebp - 0x17], 0x647261
push 1
lea eax, [ebp - 0x29]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.0040c97a
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], 1
mov eax, esi
call fcn.00443698
ret 8
Function at 0x4182ea
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x5c
mov eax, 0x465058
call fcn.00443755
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
push 1
lea eax, [ebp - 0x49]
push eax
lea ecx, [ebp - 0x44]
call fcn.00402580
mov byte [ebp - 4], 1
mov ecx, 0x485168
mov eax, ecx
test esi, esi
cmovne eax, esi
test eax, eax
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.00405190
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
test eax, eax
jne 0x41837c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403440
mov byte [ebp - 4], 3
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
call fcn.00401580
jmp 0x4184af
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.00442345
pop ecx
mov esi, eax
xor ebx, ebx
test esi, esi
setne bl
mov byte [ebp - 0x64], bl
mov dword [ebp - 0x60], esi
mov byte [ebp - 4], 4
push 0
lea eax, [ebp - 0x68]
push eax
push edi
push esi
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4183dd
mov byte [ebp - 4], 2
test bl, bl
je 0x4183c7
push esi
call fcn.00442436
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403440
mov byte [ebp - 4], 5
mov byte [ebp - 4], 0
jmp 0x41836f
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 6
mov eax, dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0xffffffffffffffff
push ecx
push 4
push edi
push esi
push ecx
call dword [sym.imp.CRYPT32.dll_CertAddSerializedElementToStore]
test eax, eax
jne 0x418431
mov byte [ebp - 4], 8
mov byte [ebp - 4], 2
test bl, bl
je 0x41841f
push esi
call fcn.00442436
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403440
mov byte [ebp - 4], 9
jmp 0x4183d7
cmp dword [ebp - 0x5c], 0
jne 0x41845f
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 2
test bl, bl
je 0x41844a
push esi
call fcn.00442436
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403440
mov byte [ebp - 4], 0xb
jmp 0x4183d7
push dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
push dword [eax + 0xc]
push 1
call dword [sym.imp.CRYPT32.dll_CertCompareCertificate]
mov edi, eax
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 2
test bl, bl
je 0x418485
push esi
call fcn.00442436
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403440
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00401580
mov eax, edi
jmp 0x4184b1
xor eax, eax
call fcn.004436a7
ret 8