joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410b64
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x410bdf
push ebp
push edi
lea edi, [esi + 4]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x410ca0
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
jne 0x410bbb
push str.CreateThread_failed
push 0x440f50
call fcn.00406e68
pop ecx
pop ecx
mov ecx, 0x440f50
call fcn.00407002
push 2
mov ecx, 0x440f50
call fcn.00406e63
mov dword [edi], ebp
inc dword [esi + 0x104]
mov eax, dword [0x4481d8]
test eax, eax
je 0x410bd5
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x410b74
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x419878
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [esp + 0x14]
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, ecx
push esi
push 0
push ebp
mov dword [ebx + 8], ebp
mov byte [ebx + 0x26], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x20]
mov ecx, ebx
call fcn.00419594
cmp dword [ebx + 0x1c], 0
je 0x4198b1
push dword [ebx + 0x1c]
call fcn.0042389e
pop ecx
cmp dword [esp + 0x28], 0
jne 0x4198bc
xor eax, eax
jmp 0x4198c6
push dword [esp + 0x28]
call fcn.004273f7
pop ecx
cmp dword [esp + 0x2c], 0
mov dword [ebx + 0x1c], eax
jne 0x4198d4
xor eax, eax
jmp 0x4198de
push dword [esp + 0x2c]
call fcn.004273f7
pop ecx
mov dword [ebx + 0x20], eax
lea eax, [esp + 0xc]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
cmp dword [ebx + 4], 0
je 0x419913
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
push edi
push ebx
push dword [ebx]
sub esi, eax
lea edi, [eax + 1]
push 0
push ebp
sub esi, 2
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
push esi
push dword [esp + 0x2c]
xor esi, esi
push edi
push 0x40000000
push esi
push 0x434484
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 4], eax
pop edi
cmp dword [ebx + 0x10], esi
jne 0x419995
test ebp, ebp
je 0x4199ab
cmp dword [ebx + 0x20], esi
jne 0x4199ab
cmp dword [ebx + 0x1c], esi
je 0x4199ab
push dword [ebx + 0x1c]
mov ecx, ebx
call fcn.0041968c
mov esi, eax
test esi, esi
je 0x4199ab
push 5
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0042389e
pop ecx
jmp 0x4199ab
test eax, eax
je 0x4199ab
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14
Function at 0x419e3c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x43536c
push 1
push ebx
push 0x43545c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x419f71
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push esi
push ecx
push 0x43544c
mov esi, dword [eax]
push eax
mov ecx, dword [esi]
call dword [0x433260]
call dword [esi]
test eax, eax
js 0x419f5d
cmp byte [ebp + 8], bl
je 0x419ea2
mov eax, dword [ebp - 8]
push 2
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x433260]
call esi
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x433260]
call esi
cmp dword [ebp + 0x18], ebx
je 0x419ed3
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x433260]
call esi
mov eax, dword [ebp - 4]
push ebx
mov ecx, dword [eax]
mov esi, dword [ecx + 0x44]
mov ecx, esi
cmp dword [ebp + 0x1c], ebx
jne 0x419eea
push 0x4335b4
jmp 0x419eed
push dword [ebp + 0x1c]
push eax
call dword [0x433260]
call esi
cmp dword [ebp + 0x20], ebx
je 0x419f11
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x2c]
mov ecx, esi
call dword [0x433260]
call esi
cmp dword [ebp + 0x14], ebx
je 0x419f2c
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x433260]
call esi
mov eax, dword [ebp - 8]
push 1
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x433260]
call esi
test eax, eax
js 0x419f4a
mov bl, 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x433260]
call esi
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x433260]
call esi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x41a004
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x41a07c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push esi
push 0x434694
push dword [esp + 0x14]
push dword [0x440ed0]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41a18f
push edi
push esi
push dword [0x440ed0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x41a0d0
push esi
push dword [0x440ed0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41a0d0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x41a0d7
xor eax, eax
jmp 0x41a18e
push ebx
push ebp
push edi
xor ebp, ebp
push 2
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41a188
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41a181
push edi
push esi
push eax
call fcn.0041f750
add esp, 0xc
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41a17a
push ebp
push dword [esp + 0x14]
call fcn.00419fdb
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x433260]
call esi
test edi, edi
je 0x41a17a
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
test eax, eax
jne 0x41a168
push 0xffffff
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x41a168
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x433260]
mov ecx, edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 4

Function at 0x41a7d4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0041e630
cmp word [0x44946a], 0
je 0x41a870
push esi
push 6
push dword [0x43e5f8]
mov esi, 0x44946a
push esi
call fcn.0040be89
push eax
call fcn.00411ae6
test eax, eax
jne 0x41a86f
push 0x448468
call fcn.0041a5b3
push 0x800
push esi
lea eax, [ebp - 0x1024]
push eax
call fcn.00410131
lea eax, [ebp - 0x1024]
push eax
call fcn.00423883
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x1022], cx
lea eax, [ebp - 0x20]
push eax
call fcn.0041f5f0
add esp, 0x10
mov dword [ebp - 0x1c], 3
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a8cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x43e610], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x41a917
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x45eca8], ax
xor eax, eax
mov word [0x45ecaa], ax
mov dword [0x43e610], 0x45eca8
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00410000
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x43e600
mov word [edi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
mov word [edi + esi*2 - 2], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41ab60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0041e630
cmp byte [0x44a470], 0
je 0x41ac0e
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.0041c040
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41ac0e
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1000
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41ac05
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x41abe9
mov eax, ecx
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00410131
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x41acc6
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.0041e630
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x41ace1
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x41acee
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x41adb1
movzx eax, word [esi]
test ax, ax
je 0x41adb1
push ebp
mov ebp, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
mov dword [esp + 0x10], ebx
movzx eax, ax
add esi, 2
cmp eax, 0x3d
jne 0x41ad3b
test edi, edi
je 0x41ad45
test ebx, ebx
jne 0x41ad45
test ecx, ecx
je 0x41ad37
mov byte [ecx], 1
mov ebx, ebp
jmp 0x41ad5c
cmp eax, 0xd
je 0x41ad6f
cmp eax, 0xa
je 0x41ad72
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0x41ad6a
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0x41ad1d
jmp 0x41ad72
mov byte [edx], 1
jmp 0x41ad72
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0x41adab
mov word [edi], ax
test ebx, ebx
je 0x41adab
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esp + 0x202c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00410131
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x41adb3
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0x41adbe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov ebx, eax
neg ebx
sbb bl, bl
add bl, 1
je 0x41ae19
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
dec eax
neg eax
sbb al, al
lea ebx, [eax + 1]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x433260]
call esi
pop esi
jmp 0x41ae21
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41d353
Capabilities:
Hide graphical window

Disassembly:
and dword [0x448454], 0
push 1
push dword [esp + 8]
mov byte [0x448451], 1
mov byte [0x448452], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.004012c8
cmp dword [0x44843c], 0
jne 0x41d393
cmp byte [0x448463], 0
je 0x41d39c
cmp dword [0x44845c], 0
jne 0x41d3af
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x41d4af
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041e630
cmp byte [0x44a470], 0
je 0x41d53e
cmp word [0x44a472], 0
je 0x41d53e
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x44a472
call fcn.0041c040
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41d53d
push dword [ebp + 8]
call fcn.00423883
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41d544
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041e630
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.0040feb3
mov esi, eax
test esi, esi
je 0x41d59c
movzx ecx, word [esi]
push ecx
jmp 0x41d587
add esi, 2
movzx eax, word [esi]
push eax
call fcn.0040ffcc
test al, al
jne 0x41d580
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x402810
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
cmp dword [ebp + 0x14], 0
push ebx
push esi
push edi
lea esi, [ebp - 0x24c]
je 0x402855
push dword [ebp + 0x14]
mov eax, esi
push eax
call fcn.0040a450
mov eax, esi
push eax
call fcn.0040a35d
push dword [ebp + 0x14]
lea esi, [ebp + eax - 0x24b]
push esi
call fcn.0040a450
push esi
call fcn.0040a35d
lea esi, [esi + eax + 1]
push 0x85
call fcn.004098d0
push eax
push esi
call fcn.0040a450
push esi
call fcn.0040a35d
lea esi, [esi + eax + 1]
push 0x4122e4
push esi
call fcn.0040a450
push esi
call fcn.0040a35d
push 0x4c
mov byte [eax + esi + 1], 0
pop esi
push esi
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.0040a262
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [0x414c78]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov edi, 0x400
push esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], eax
call fcn.004073b4
cmp eax, esi
jne 0x4028e4
lea eax, [ebp - 0x64c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x20], eax
cmp byte [ebp + 0x18], 0
mov ebx, dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], 0x1080c
push eax
je 0x402903
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x402905
call ebx
mov edi, eax
test edi, edi
jne 0x402933
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
cmp eax, 0x3002
jne 0x402931
cmp byte [ebp + 0x18], 0
lea eax, [ebp - 0x4c]
mov byte [esi], 0
push eax
je 0x40292d
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x40292f
call ebx
mov edi, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
leave
ret 0x14

Function at 0x402c81
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4141c4], 0
jne 0x402c8f
call fcn.00402c57
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402cbc
test cl, 7
je 0x402cbc
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec esi
inc ecx
jmp 0x402c9d
cmp esi, 8
jb 0x402d40
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4141c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec edi
jne 0x402cc6
xor edx, edx
test esi, esi
jbe 0x402d60
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4141c0]
inc edx
cmp edx, esi
jb 0x402d47
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x404b10
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24c0
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x24c0]
call fcn.00403517
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x24c0]
push eax
push dword [ebp + 0xc]
push edi
call fcn.00406007
test al, al
je 0x404ca9
cmp byte [ebp - 0x24c0], bl
je 0x404ca9
cmp byte [ebp - 0x1840], bl
je 0x404ca9
lea eax, [ebp - 0x1840]
push eax
lea eax, [ebp - 0x24c0]
push eax
call fcn.004073b4
push eax
call fcn.0040dae4
test eax, eax
je 0x404ca9
lea eax, [ebp - 0x1840]
push eax
push edi
call fcn.004073b4
push eax
call fcn.0040dae4
test eax, eax
jne 0x404ca9
mov esi, 0x400
push esi
push edi
lea eax, [ebp - 0x400]
push eax
call fcn.0040dbc0
push ebx
push str.rtmp_d
lea eax, [ebp - 0x400]
push eax
call fcn.004073b4
push eax
call fcn.0040a5e9
add esp, 0xc
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.0040572e
test al, al
je 0x404be8
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x404ba2
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.0040572e
test al, al
jne 0x404ca9
push esi
push edi
lea eax, [ebp - 0x800]
push eax
call fcn.0040dbc0
lea eax, [ebp - 0x24c0]
push eax
call fcn.004073b4
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.004073b4
push eax
call fcn.0040a450
mov esi, dword [sym.imp.KERNEL32.DLL_MoveFileA]
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test eax, eax
je 0x404ca9
lea ecx, [ebp - 0x1420]
call fcn.00404e8a
push 0
push edi
xor bl, bl
call fcn.0040572e
test al, al
jne 0x404c70
push 1
push 0
push edi
lea ecx, [ebp - 0x1420]
call fcn.0040519f
mov bl, al
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x400]
push eax
call esi
test bl, bl
je 0x404c9a
lea ecx, [ebp - 0x1420]
call fcn.00404ef5
lea ecx, [ebp - 0x1420]
call fcn.00404f73
lea ecx, [ebp - 0x1420]
call fcn.0040503b
mov al, 1
jmp 0x404cab
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40505e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc18], ebx
cmp byte [esi + 0x16], bl
je 0x405078
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x40508b
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x40509e
mov dword [ebp + 0x14], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.00406e67
test eax, eax
je 0x4050d7
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4050d7
cmp word [eax], bx
je 0x4050d7
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
jmp 0x4050eb
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405107
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x405107
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x405169
mov dword [esi + 4], edi
cmp dword [ebp + 0xc], ebx
je 0x405135
push dword [ebp + 0xc]
lea eax, [esi + 0x418]
push eax
call fcn.0040e40c
jmp 0x40513e
xor eax, eax
mov word [esi + 0x418], ax
lea eax, [esi + 0x17]
cmp dword [ebp + 8], ebx
je 0x405151
push dword [ebp + 8]
push eax
call fcn.0040a450
jmp 0x40515f
push 0x1000000
push eax
push dword [ebp + 0xc]
call fcn.0040e1e9
push dword [esi + 4]
mov ecx, esi
call fcn.00404ece
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x405299
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x4052bf
cmp dword [ebp + 0xc], esi
jbe 0x4052b4
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x40530f
mov ecx, edi
call fcn.00405018
test al, al
je 0x4052f5
cmp dword [ebp + 0xc], esi
jbe 0x4052f5
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00405299
jmp 0x405312
cmp dword [edi + 0xc], 1
jne 0x40530a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
jne 0x40530a
xor eax, eax
jmp 0x405312
or eax, 0xffffffff
jmp 0x405312
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x40554c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x40564c
mov eax, dword [esi + 0xc]
test eax, eax
je 0x405579
dec eax
je 0x40556e
dec eax
jne 0x405579
push 0xfffffffffffffff4
jmp 0x405570
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xc], edi
je 0x4055c8
cmp dword [ebp + 0xc], edi
jbe 0x4055e3
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x4055a0
mov eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
je 0x4055e3
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x405590
jmp 0x4055df
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x405646
cmp byte [esi + 0x14], 0
je 0x405646
cmp dword [esi + 0xc], 0
jne 0x405646
push 0
lea eax, [esi + 0x17]
mov edi, 0x414c7c
push eax
mov ecx, edi
call fcn.004032c5
test al, al
je 0x405639
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x405581
test eax, eax
jbe 0x405581
push 0
mov ecx, esi
call fcn.00404fa3
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.004054b4
jmp 0x405581
lea eax, [esi + 0x17]
push eax
push 0
mov ecx, edi
call fcn.00403432
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

Function at 0x40572e
Capabilities:
Get file attributes

Disassembly:
call fcn.00406e67
test eax, eax
je 0x40574e
mov eax, dword [esp + 8]
test eax, eax
je 0x40574e
cmp word [eax], 0
je 0x40574e
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
jmp 0x405758
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret 8

Function at 0x40577d
Capabilities:
Get file attributes

Disassembly:
call fcn.00406e67
test eax, eax
je 0x40579d
mov eax, dword [esp + 8]
test eax, eax
je 0x40579d
cmp word [eax], 0
je 0x40579d
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
jmp 0x4057a7
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
ret 8

Function at 0x4057aa
Capabilities:
Set file attributes

Disassembly:
call fcn.00406e67
test eax, eax
je 0x4057ce
mov eax, dword [esp + 8]
test eax, eax
je 0x4057ce
cmp word [eax], 0
je 0x4057ce
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
jmp 0x4057dc
push dword [esp + 0xc]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
setne al
ret 0xc