joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fb60
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x320
push ebx
push ebp
push esi
mov ebp, 0x42f60c
push edi
mov edi, dword [sym.imp.ntdll.dll__snprintf]
mov esi, ecx
mov dword [esp + 0x20], 8
mov byte [esp + 0x128], 0
mov byte [esp + 0x24], 0
mov dword [esp + 0x10], ebp
mov ebx, 0x104
mov ecx, dword [ebp]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects
push ecx
call dword [esi + 0x98]
test eax, eax
jne 0x40fc6c
xor ebp, ebp
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push ebx
push edx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40fc5d
cmp byte [esp + 0x24], 0x7b
jne 0x40fc57
lea ecx, [esp + 0x24]
lea edx, [esp + 0x22c]
push ecx
push str.CLSID_sInprocServer32
push ebx
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x18]
lea ecx, [esp + 0x22c]
push eax
push 0x20019
push 0
push ecx
push connect
call dword [esi + 0x98]
test eax, eax
jne 0x40fc57
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x128]
push edx
push eax
push 0
push 0
push 0
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40fc4c
lea edx, [esp + 0x20]
lea eax, [esi + 0x34]
push edx
push eax
mov ecx, esi
call fcn.00410260
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
jmp 0x40fbba
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x10]
add ebp, 4
cmp ebp, 0x42f614
mov dword [esp + 0x10], ebp
jb 0x40fb95
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x40fc91
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x320
ret
mov esi, dword [esi + 0x3c]
pop edi
sub esi, eax
mov eax, 0x3e88cb3d
imul esi
sar edx, 7
mov eax, edx
pop esi
shr eax, 0x1f
add edx, eax
pop ebp
mov eax, edx
pop ebx
add esp, 0x320
ret
Function at 0x40fcc0
Capabilities:
Get common file path
Get file attributes
Persist via appinit_dlls registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x52c
push ebx
lea eax, [esp + 4]
push ebp
push eax
push 0x20019
push 0
mov ebp, ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push connect
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], 0x40
mov byte [esp + 0x34], 0
mov byte [esp + 0x138], 0
call dword [ebp + 0x98]
test eax, eax
jne 0x40fe4f
push esi
lea ecx, [esp + 0x10]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x334]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
xor ebx, ebx
push edx
push eax
push ebx
push str.AppInit_DLLs
push ecx
mov dword [esp + 0x2c], 0x208
mov dword [esp + 0x30], ebx
mov byte [esp + 0x34c], bl
call edi
mov esi, eax
cmp esi, 0xea
jne 0x40fd7c
mov edx, dword [esp + 0x14]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
mov dword [esp + 0x18], eax
push ecx
push eax
mov eax, dword [esp + 0x18]
push edx
push ebx
push str.AppInit_DLLs
push eax
call edi
mov ebx, dword [esp + 0x18]
mov esi, eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40fe40
lea edx, [esp + 0x230]
push 0x104
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test ebx, ebx
lea esi, [esp + 0x334]
je 0x40fdaf
mov esi, ebx
test esi, esi
je 0x40fe40
mov ebp, dword [sym.imp.ntdll.dll__snprintf]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp byte [esi], 0
je 0x40fe38
push 0x2c
push esi
call dword [sym.imp.MSVCRT.dll__mbschr]
mov edi, eax
add esp, 8
test edi, edi
je 0x40fdde
mov byte [edi], 0
inc edi
lea eax, [esp + 0x230]
push esi
push eax
push 0x437c14
lea ecx, [esp + 0x138]
push 0x104
push ecx
call ebp
add esp, 0x14
lea edx, [esp + 0x12c]
push edx
call ebx
test al, 0x10
jne 0x40fe32
push 0x104
lea eax, [esp + 0x2c]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [ecx + 0x64]
push edx
call fcn.00410260
test edi, edi
mov esi, edi
jne 0x40fdc3
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
pop edi
pop esi
test ebx, ebx
je 0x40fe4f
push ebx
call fcn.0042d5f4
add esp, 4
mov eax, dword [ebp + 0x68]
test eax, eax
jne 0x40fe5f
pop ebp
pop ebx
add esp, 0x52c
ret
mov ecx, dword [ebp + 0x6c]
pop ebp
sub ecx, eax
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov eax, edx
pop ebx
shr eax, 0x1f
add edx, eax
mov eax, edx
add esp, 0x52c
ret
Function at 0x40fe80
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x320
lea eax, [esp + 4]
push esi
push eax
push 0x20019
push 0
mov esi, ecx
push 0x437f24
push connect
mov dword [esp + 0x28], 0x20
mov byte [esp + 0x2c], 0
mov byte [esp + 0x130], 0
call dword [esi + 0x98]
test eax, eax
jne 0x40ff8f
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, dword [sym.imp.ntdll.dll__snprintf]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push 0x104
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40ff82
lea ecx, [esp + 0x20]
lea edx, [esp + 0x228]
push ecx
push str.SYSTEMCurrentControlSetServices_s
push 0x104
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x228]
push eax
push 0x20019
push 0
push ecx
push connect
call dword [esi + 0x98]
test eax, eax
jne 0x40ff79
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x124]
push edx
push eax
push 0
push 0
push str.ImagePath
push ecx
mov dword [esp + 0x30], 0x104
call ebx
test eax, eax
jne 0x40ff6e
lea edx, [esp + 0x1c]
lea eax, [esi + 0x54]
push edx
push eax
mov ecx, esi
call fcn.00410260
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 0xc]
jmp 0x40fed4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x40ff9e
pop esi
add esp, 0x320
ret
mov ecx, dword [esi + 0x5c]
pop esi
sub ecx, eax
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
add esp, 0x320
ret
Function at 0x410820
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x50
mov ecx, 0x10
mov eax, dword [esp + 0x60]
push esi
push edi
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x64]
lea eax, [eax + eax*2 + 3]
movsb byte es:[edi], byte [esi]
lea edx, [ecx*4]
cmp edx, eax
jle 0x41085a
pop edi
mov eax, 1
pop esi
add esp, 0x50
ret 0x10
mov eax, 0x55555556
push ebx
imul ecx
mov eax, edx
push ebp
shr eax, 0x1f
mov ebp, dword [esp + 0x68]
add edx, eax
mov edi, edx
test edi, edi
lea esi, [edi*4]
mov dword [esp + 0x18], esi
jle 0x410924
mov ecx, dword [esp + 0x64]
lea edx, [ebp + 2]
mov dword [esp + 0x10], edi
lea esi, [ecx + 2]
mov al, byte [esi - 2]
add esi, 3
mov byte [esp + 0x70], al
and al, 3
mov ecx, dword [esp + 0x70]
add edx, 4
and ecx, 0xff
shr ecx, 2
shl al, 4
mov cl, byte [esp + ecx + 0x1c]
and eax, 0xff
mov byte [edx - 6], cl
mov cl, byte [esi - 4]
mov byte [esp + 0x68], cl
and cl, 0xf
mov ebx, dword [esp + 0x68]
and ebx, 0xff
shr ebx, 4
or eax, ebx
shl cl, 2
mov al, byte [esp + eax + 0x1c]
and ecx, 0xff
mov byte [edx - 5], al
mov al, byte [esi - 3]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
and eax, 0xff
mov ebx, eax
and eax, 0x3f
shr ebx, 6
mov al, byte [esp + eax + 0x1c]
or ecx, ebx
mov cl, byte [esp + ecx + 0x1c]
mov byte [edx - 4], cl
mov byte [edx - 3], al
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x410891
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x18]
mov eax, ecx
mov ecx, 3
cdq
idiv ecx
test edx, edx
jle 0x4109c7
mov eax, dword [esp + 0x64]
add esi, 4
lea ecx, [eax + edi*2]
mov al, byte [ecx + edi]
add ecx, edi
mov byte [esp + 0x70], al
mov ebx, dword [esp + 0x70]
and ebx, 0xff
shr ebx, 2
cmp edi, 1
mov bl, byte [esp + ebx + 0x1c]
mov byte [ebp + edi*4], bl
jne 0x41097a
and al, 3
shl al, 4
and eax, 0xff
mov dl, byte [esp + eax + 0x1c]
mov byte [ebp + 5], dl
mov byte [ebp + 6], 0x3d
jmp 0x4109c2
mov cl, byte [ecx + 1]
and al, 3
mov byte [esp + 0x68], cl
mov ebx, dword [esp + 0x68]
shl al, 4
and ebx, 0xff
and eax, 0xff
shr ebx, 4
or eax, ebx
cmp edx, 1
mov al, byte [esp + eax + 0x1c]
mov byte [ebp + edi*4 + 1], al
jne 0x4109ae
mov byte [ebp + edi*4 + 2], 0x3d
jmp 0x4109c2
and cl, 0xf
shl cl, 2
and ecx, 0xff
mov cl, byte [esp + ecx + 0x1c]
mov byte [ebp + edi*4 + 2], cl
mov byte [ebp + edi*4 + 3], 0x3d
mov byte [esi + ebp], 0
pop ebp
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 0x50
ret 0x10

Function at 0x410bb0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x410bdb
xor eax, eax
pop esi
ret 4
lea ecx, [esp + 8]
push 0
push ecx
push 0x12000
push 0x43802c
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
push esi
jne 0x410c04
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop esi
ret 4
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
pop esi
ret 4
Function at 0x410c20
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x45efac]
sub esp, 0x104
test eax, eax
push ebx
push esi
mov ebx, ecx
je 0x410c43
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret 8
push ebp
lea eax, [esp + 0xc]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov edi, str.AntiRk.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00410bb0
pop edi
pop ebp
test eax, eax
jne 0x410ca0
pop esi
pop ebx
add esp, 0x104
ret 8
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
mov dword [ebx + 0x10], eax
jne 0x410cbd
pop esi
pop ebx
add esp, 0x104
ret 8
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x437ffc
push eax
call esi
test eax, eax
mov dword [ebx], eax
jne 0x410cdc
pop esi
pop ebx
add esp, 0x104
ret 8
mov edx, dword [ebx + 0x10]
push 0x437fec
push edx
call esi
test eax, eax
mov dword [ebx + 4], eax
jne 0x410cf9
pop esi
pop ebx
add esp, 0x104
ret 8
mov eax, dword [ebx + 0x10]
push 0x437fd8
push eax
call esi
test eax, eax
mov dword [ebx + 8], eax
jne 0x410d16
pop esi
pop ebx
add esp, 0x104
ret 8
mov ecx, dword [ebx + 0x10]
push 0x437fc8
push ecx
call esi
test eax, eax
mov dword [ebx + 0xc], eax
jne 0x410d33
pop esi
pop ebx
add esp, 0x104
ret 8
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 0x110]
push edx
push eax
call dword [ebx + 8]
add esp, 8
test eax, eax
jne 0x410d58
pop esi
pop ebx
add esp, 0x104
ret 8
mov eax, 1
pop esi
mov dword [ebx + 0x14], eax
mov dword [0x45efac], eax
pop ebx
add esp, 0x104
ret 8

Function at 0x410d80
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push ebx
push esi
mov esi, dword [esp + 0x40c]
mov ebx, ecx
push esi
call fcn.00419080
add esp, 4
test eax, eax
je 0x410dab
pop esi
xor eax, eax
pop ebx
add esp, 0x400
ret 0xc
push 1
push 0
mov ecx, ebx
call fcn.00410c20
test eax, eax
jne 0x410dc8
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x400
ret 0xc
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push str.TFW_222__s
push eax
call dword [sym.imp.ntdll.dll_sprintf]
push esi
call fcn.0042b630
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov edx, dword [esp + 0x418]
mov eax, dword [esp + 0x414]
push edx
push eax
push esi
call dword [ebx]
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0xc
Function at 0x410e30
Capabilities:
Delete file
Move file
Print debug messages
Set file attributes

Disassembly:
sub esp, 0x400
push ebx
push esi
mov esi, dword [esp + 0x40c]
push edi
mov ebx, ecx
push esi
call fcn.00419080
add esp, 4
test eax, eax
jne 0x410f9d
mov ecx, 0xff
lea edi, [esp + 0xd]
mov byte [esp + 0xc], al
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push str.TFW_333__s
push eax
call dword [sym.imp.ntdll.dll_sprintf]
push esi
call fcn.0042b630
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
push esi
call fcn.00410fb0
mov eax, dword [esp + 0x418]
add esp, 4
cmp eax, 1
jne 0x410eb3
push esi
mov ecx, ebx
call fcn.00410ff0
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8
cmp eax, 2
jne 0x410ee1
push 0x80
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
neg eax
sbb eax, eax
pop edi
pop esi
and al, 0xfe
pop ebx
add esp, 0x400
ret 8
cmp eax, 3
je 0x410f09
cmp eax, 4
jne 0x410ef9
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
push 1
jmp 0x410f16
cmp eax, 6
jne 0x410f3a
push 4
push esi
call fcn.00415d80
add esp, 8
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
push 0
push 1
push esi
mov ecx, ebx
call fcn.00410d80
push esi
call fcn.004117b0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8
cmp eax, 5
jne 0x410f9d
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
push 1
push 1
push esi
mov ecx, ebx
call fcn.00410d80
push esi
call fcn.004117b0
add esp, 4
call fcn.0040ee50
mov edi, eax
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.00410660
test eax, eax
je 0x410f8c
push 0
push eax
mov ecx, edi
call fcn.0040f430
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.00410660
test eax, eax
jne 0x410f74
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x400
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x400
ret 8

Function at 0x410ff0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00419080
add esp, 4
test eax, eax
je 0x411008
xor eax, eax
pop esi
ret 4
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
je 0x41101c
mov eax, 1
pop esi
ret 4
push 1
push esi
call fcn.004175b0
add esp, 8
test eax, eax
je 0x411034
mov eax, 1
pop esi
ret 4
push esi
call fcn.004117b0
add esp, 4
mov eax, 0xfffffffe
pop esi
ret 4

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

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
mov cl, byte [edx]
test cl, cl
je 0x411082
push esi
mov esi, eax
and ecx, 0xff
and esi, 0xff
xor esi, ecx
shr eax, 8
mov ecx, dword [esi*4 + 0x42f61c]
xor eax, ecx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x41105d
pop esi
ret
Function at 0x411540
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push 0x104
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov ecx, dword [esp + 0x10c]
movsx eax, byte [ecx]
sub eax, 0x31
je 0x411588
dec eax
je 0x411578
xor eax, eax
pop esi
add esp, 0x104
ret
add ecx, 2
push ecx
lea ecx, [esp + 8]
push ecx
push str._s_system32_s
jmp 0x411596
add ecx, 2
push ecx
lea ecx, [esp + 8]
push ecx
push 0x437c14
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
push edx
push eax
call fcn.004073a0
add esp, 0x14
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x4115c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fa40
push 0x42d2ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
cmp word [ecx], 0x5a4d
jne 0x411637
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x411637
cmp word [eax + 6], 0
je 0x411637
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4116e0
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [esp + 0x114]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push 0x80
push esi
call edi
mov ebp, dword [esp + 0x11c]
push 0x80
push ebp
call edi
mov ebx, dword [sym.imp.KERNEL32.DLL_MoveFileExA]
push 1
push esi
push ebp
call ebx
test eax, eax
je 0x411733
push 1
push esi
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
push esi
push str._s.tmp2
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.004073a0
add esp, 0x10
lea ecx, [esp + 0x10]
push 0x80
push ecx
call edi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea eax, [esp + 0x10]
push 1
push eax
push esi
call ebx
test eax, eax
je 0x411799
push 4
lea ecx, [esp + 0x14]
push 0
push ecx
call ebx
test eax, eax
je 0x411799
push 1
push esi
push ebp
call ebx
test eax, eax
je 0x411799
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x104
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret

Function at 0x4117b0
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push esi
call edi
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
push esi
call edi
pop edi
pop esi
ret
Function at 0x4117e0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x140
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x411939
mov ecx, dword [esp + 0x160]
test ecx, ecx
je 0x411939
mov ebp, dword [esp + 0x164]
test ebp, ebp
je 0x411939
push 0
push 0
push 3
push 0
push 1
push connect
push eax
call dword [0x45f0b4]
mov esi, eax
cmp esi, 0xffffffff
je 0x411939
mov ebx, dword [esp + 0x158]
test ebx, ebx
jne 0x411844
lea ebx, [esp + 0x18]
mov edi, dword [esp + 0x15c]
test edi, edi
jne 0x411853
lea edi, [esp + 0x58]
lea eax, [esp + 0x10]
push 0
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x411932
cmp dword [esp + 0x10], 0x40
jne 0x411932
cmp word [ebx], 0x5a4d
jne 0x411932
mov ecx, dword [ebx + 0x3c]
push 0
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, dword [ebx + 0x3c]
jne 0x411932
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
lea edx, [esp + 0x10]
push 0
push edx
push 0xf8
push edi
push esi
call ebx
test eax, eax
je 0x411932
cmp dword [esp + 0x10], 0xf8
jne 0x411932
cmp dword [edi], 0x4550
jne 0x411932
cmp word [edi + 6], 0
je 0x411932
xor eax, eax
push 1
mov ax, word [edi + 0x14]
push 0
sub eax, 0xe0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
xor eax, eax
mov ax, word [edi + 6]
cmp ebp, eax
jbe 0x4118f0
mov ebp, eax
mov edx, dword [esp + 0x160]
lea eax, [ebp + ebp*4]
lea ecx, [esp + 0x14]
push 0
shl eax, 3
push ecx
push eax
push edx
push esi
mov dword [esp + 0x28], eax
call ebx
test eax, eax
je 0x411932
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 0xcccccccd
pop edi
mul dword [esp + 0x10]
mov eax, edx
pop esi
pop ebp
pop ebx
shr eax, 5
add esp, 0x140
ret
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
Function at 0x411e00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x140
push esi
mov esi, dword [esp + 0x148]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x411e21
pop esi
add esp, 0x140
ret
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x411e53
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x411e48
xor eax, eax
pop esi
add esp, 0x140
ret
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 4]
not al
and eax, 0xff
pop esi
shr eax, 4
and eax, 1
add esp, 0x140
ret

Function at 0x411ea0
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov esi, ebp
cmp byte [ebp], 0
je 0x411f1e
mov ebx, dword [sym.imp.ntdll.dll_strchr]
push 0x5c
push esi
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x411f1e
sub eax, ebp
lea ecx, [esp + 0x10]
push eax
push ebp
push ecx
call fcn.00411e70
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jne 0x411ef8
cmp byte [esp + 0x11], 0x3a
je 0x411f16
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x411f16
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x411f2e
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x411ebf
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret

Function at 0x411fe0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x411ffd
mov eax, connect
mov esi, 2
mov ebp, 4
jmp 0x41200c
mov eax, 0xc0000000
mov esi, 4
mov ebp, 6
push 0
push 0
push 3
push 0
push 1
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x412075
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x41203c
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebx], eax
push 0
push 0
push 0
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
mov esi, eax
call ebx
test esi, esi
je 0x412075
push 0
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push esi
mov edi, eax
call ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x412090
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x412109
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
push 4
push 0x1000
lea ecx, [esi + 0x100]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x412102
lea edx, [esp + 0x10]
push 0
push edx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4120f5
mov dword [eax], esi
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret