joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448cf0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5a53f4]
xor eax, esp
mov dword [esp + 0x208], eax
test edi, edi
je 0x448dd8
mov eax, 0x5c
cmp ax, word [edi + 2]
je 0x448dbc
mov ecx, eax
cmp cx, word [edi + 4]
je 0x448dbc
push ebx
push esi
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x12]
push eax
mov word [esp + 0x14], dx
call fcn.00534b20
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x58a008
lea edx, [esp + 0xc]
push edx
call esi
push edi
lea eax, [esp + 0xc]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [esp + 8]
push ecx
call ebx
test eax, eax
jne 0x448da5
push 0x58a01c
lea edx, [esp + 0xc]
push edx
call esi
push 0x58a01c
lea eax, [esp + 0xc]
push eax
call esi
push edi
lea ecx, [esp + 0xc]
push ecx
call esi
lea edx, [esp + 8]
push edx
call ebx
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.005308cb
add esp, 0x20c
ret
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.005308cb
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor eax, eax
call fcn.005308cb
add esp, 0x20c
ret

Function at 0x45d920
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebp
test eax, eax
je 0x45d935
mov eax, 1
pop ebp
ret
push ebx
push edi
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 0xffffffff
je 0x45d961
test al, 0x10
je 0x45d961
push esi
mov edi, 1
call ebx
test eax, eax
je 0x45d968
mov eax, edi
pop edi
pop ebx
pop ebp
ret
push esi
call ebp
test eax, eax
jne 0x45d983
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x45d992
push esi
test edi, edi
jne 0x45d98c
call ebp
test eax, eax
je 0x45d992
pop edi
pop ebx
mov eax, 1
pop ebp
ret
call ebx
test eax, eax
jne 0x45d983
cmp byte [esp + 0x10], 0
je 0x45d9af
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45d983
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop ebx
xor eax, eax
pop ebp
ret
Function at 0x45dce0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x2010
call fcn.005308e0
mov eax, dword [0x5a53f4]
xor eax, esp
mov dword [esp + 0x200c], eax
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x201c]
cmp esi, ebx
je 0x45dd9c
push 0x1fff
lea eax, [esp + 0x19]
push ebx
push eax
mov byte [esp + 0x20], bl
call fcn.00534b20
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push esi
mov dword [esp + 0x14], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x45dd9c
cmp eax, 0x1fff
ja 0x45dd9c
lea edx, [esp + 0x14]
push edx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x45dd83
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0x585ea8
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45dd83
mov eax, dword [esp + 8]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp], edx
mov bl, 1
pop ebp
mov al, bl
pop ebx
mov ecx, dword [esp + 0x200c]
xor ecx, esp
call fcn.005308cb
add esp, 0x2010
ret
mov ecx, dword [esp + 0x2014]
pop ebp
pop ebx
xor ecx, esp
xor al, al
call fcn.005308cb
add esp, 0x2010
ret

Function at 0x45ddc0
Capabilities:
Get disk information
Get storage device properties

Disassembly:
sub esp, 0x2c
mov eax, dword [0x5a53f4]
xor eax, esp
mov dword [esp + 0x28], eax
push ebp
push esi
mov esi, ecx
and esi, 0xffdf
lea eax, [esi - 0x41]
mov ebp, 1
cmp ax, 0x19
ja case.0x45de16.2
mov ecx, dword [0x58a76c]
mov edx, dword [0x58a770]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
push eax
mov dword [esp + 0x20], edx
mov word [esp + 0x1c], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
add eax, 0xfffffffe
cmp eax, 4
ja case.default.0x45de16
jmp dword [eax*4 + 0x45df18]
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.005308cb
add esp, 0x2c
ret
mov edx, dword [0x58a780]
mov ecx, dword [str..X:]
mov eax, dword [0x58a784]
push edi
push 0
push 0
push 3
push 0
push 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ecx
mov cx, word [0x58a788]
push SysReAllocString
lea edx, [esp + 0x3c]
mov dword [esp + 0x44], eax
push edx
mov word [esp + 0x4c], cx
mov word [esp + 0x48], si
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45def0
push 0x227
call fcn.0052f1ee
add esp, 4
push 0
mov esi, eax
mov dword [esi + 4], 0x227
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov ecx, dword [esi + 4]
push ecx
push esi
push 0xc
lea edx, [esp + 0x24]
push edx
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45dee0
mov eax, dword [esi + 0x1c]
cmp eax, 7
je 0x45dede
cmp eax, 4
jne 0x45dee0
xor ebp, ebp
push esi
call fcn.005342a6
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.005308cb
add esp, 0x2c
ret
mov ecx, dword [esp + 0x30]
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.005308cb
add esp, 0x2c
ret
Function at 0x45f0c0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x45f0e0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x45f0f4
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc
Function at 0x52dea6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5a9520], 0
push esi
jne 0x52de14
call fcn.0052dd28
test eax, eax
je 0x52de57
mov eax, dword [0x5a9520]
cmp eax, 1
jne 0x52de35
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x52de57
pop esi
ret
push eax
call dword [0x5a9528]
test eax, eax
jne 0x52de9f
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x52de5b
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x5a9520]
call dword [0x5a9528]
mov edi, eax
test edi, edi
je 0x52de80
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x52de9c
mov edi, esi
add esi, 0xff0
push edi
push dword [0x5a9520]
call dword [0x5a9524]
add edi, 0x10
cmp edi, esi
jb 0x52de88
mov eax, edi
pop edi
pop esi
ret
jmp 0x52de01

Function at 0x5308cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5a53f4]
jne 0x5308d5
repz ret
jmp fcn.0053f117

Function at 0x557060
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0053e77e
and dword [ebp - 4], 0
cmp dword [0x5aa358], 0
mov ebx, eax
jne 0x557111
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5571c2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x5571c2
push eax
call fcn.0053e70c
mov dword [esp], 0x580420
push edi
mov dword [0x5aa358], eax
call esi
push eax
call fcn.0053e70c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5aa35c], eax
call esi
push eax
call fcn.0053e70c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5aa360], eax
call esi
push eax
call fcn.0053e70c
pop ecx
mov dword [0x5aa368], eax
test eax, eax
je 0x557111
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0053e70c
pop ecx
mov dword [0x5aa364], eax
mov eax, dword [0x5aa364]
cmp eax, ebx
je 0x557169
cmp dword [0x5aa368], ebx
je 0x557169
push eax
call fcn.0053e787
push dword [0x5aa368]
mov esi, eax
call fcn.0053e787
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x557169
test edi, edi
je 0x557169
call esi
test eax, eax
je 0x557160
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x557160
test byte [ebp - 0xc], 1
jne 0x557169
or dword [ebp + 0x10], 0x200000
jmp 0x5571a2
mov eax, dword [0x5aa35c]
cmp eax, ebx
je 0x5571a2
push eax
call fcn.0053e787
pop ecx
test eax, eax
je 0x5571a2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5571a2
mov eax, dword [0x5aa360]
cmp eax, ebx
je 0x5571a2
push eax
call fcn.0053e787
pop ecx
test eax, eax
je 0x5571a2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5aa358]
call fcn.0053e787
pop ecx
test eax, eax
je 0x5571c2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5571c4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406371
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x238
mov eax, 0x40e86a
call fcn.0040d30f
mov dword [ebp - 0x21c], ecx
movzx eax, word [ebp + 8]
xor edi, edi
mov esi, dword [0x4166e8]
inc edi
push 0xf0
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x4064e2
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x4064e2
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4064e2
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4064e2
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x40645b
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call main
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x21c]
and dword [ebp - 4], 0
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x110]
cmove edi, ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x114], eax
je 0x4064d4
push dword [ebp - 0x114]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x4064d4
mov ecx, 0x1234
cmp cx, ax
jne 0x4064d4
or dword [ebp - 0x240], 0xffffffff
lea eax, [ebp - 0x214]
push 3
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x218], eax
call main
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x23c], eax
cmp eax, ecx
je 0x4064ae
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x4063c9
mov eax, edi
call fcn.0040d2ca
ret 4

Function at 0x40c739
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40c748
pop dword [ebp - 0x24]
mov eax, 0x80ee3bed
add eax, 0x7f528b5b
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x36a86
push 0
mov eax, 0x85cbb540
add eax, 0x7a753b50
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0xd4a27e51
add ecx, 0x2b5dc258
xor edi, edi
add edi, eax
mov ebx, 0x41aa00
add ebx, dword [ebp - 0x24]
mov esi, 0x8ead82bf
sub esi, 0xe7d6f0a4
mov dword [ebp - 0xc], 0x6ac3cd71
mov edx, dword [ebx]
sub dword [ebp - 0x14], 0xd77231cc
xor edx, esi
mov dword [edi], edx
mov dword [ebp - 0x10], 0x82024019
add edi, 4
add ebx, 0xb6835293
sub ebx, 0xb683528f
loop 0x40c7a3
add eax, 0xa9790ddf
add eax, 0x5687e798
xor ebx, ebx
add ebx, eax
add eax, 0xe01b6770
add eax, 0x1fe49895
mov ecx, 0x544b5099
add ecx, 0xabf4af67
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x10014362
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
movzx eax, word [eax + 0x14]
mov ecx, dword [ebp + 0x14]
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
jmp 0x1001438f
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
movzx eax, word [eax + 6]
cmp dword [ebp - 8], eax
jge 0x10014438
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x100143db
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x100143d9
push 4
push 0x1000
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
add ecx, dword [eax + 0xc]
push ecx
call fcn.10015dd4
call eax
mov dword [ebp - 0xc], eax
jmp 0x1001437f
push 4
push 0x1000
mov eax, dword [ebp - 4]
push dword [eax + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
add ecx, dword [eax + 0xc]
push ecx
call fcn.10015dd4
call eax
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x18], 0
je 0x1001440d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x10014416
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.100160b9
add esp, 0xc
jmp 0x1001437f
leave
ret

Function at 0x100177c1
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x18]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 4], eax
and dword [ebp - 0xc], 0
jmp 0x100177ee
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
movzx eax, word [eax + 6]
cmp dword [ebp - 0xc], eax
jge 0x10017829
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jb 0x1001781e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 8]
cmp dword [ebp + 8], eax
jae 0x1001781e
mov eax, dword [ebp - 4]
jmp 0x1001782b
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0x100177e7
xor eax, eax
leave
ret 4
Function at 0x10017d0b
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 8], ecx
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 8
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x40], 4
mov dword [ebp - 0x3c], 0x10
mov dword [ebp - 0x38], 0x80
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x30], 0x40
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x18]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 4], eax
and dword [ebp - 0xc], 0
jmp 0x10017d79
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
movzx eax, word [eax + 6]
cmp dword [ebp - 0xc], eax
jge 0x10017e5f
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10017e5a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x20000000
je 0x10017daf
mov dword [ebp - 0x14], 1
jmp 0x10017db3
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x40000000
je 0x10017dcf
mov dword [ebp - 0x18], 1
jmp 0x10017dd3
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x80000000
je 0x10017def
mov dword [ebp - 0x1c], 1
jmp 0x10017df3
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
shl eax, 4
lea eax, [ebp + eax - 0x4c]
mov ecx, dword [ebp - 0x24]
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 0x28]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x4000000
je 0x10017e2a
mov eax, dword [ebp - 0x10]
or eax, 0x200
mov dword [ebp - 0x10], eax
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
mov ecx, dword [ebp - 8]
call fcn.10017487
push eax
call fcn.1000a440
add esp, 0x10
test eax, eax
jne 0x10017e5a
xor al, al
jmp 0x10017e61
jmp 0x10017d69
mov al, 1
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x406744
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406769
mov eax, dword [0x40a8e8]
cmp eax, 0xffffffff
je 0x406760
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8e8], 0xffffffff
jmp 0x4067dc
cmp dword [0x43b9c0], ebx
je 0x4067dc
cmp byte [0x43b5c0], bl
je 0x4067a8
cmp dword [0x40a8e8], 0xffffffff
jne 0x4067b1
push 4
push 0x40000000
push 0x43b5c0
call fcn.0040610c
cmp eax, 0xffffffff
mov dword [0x40a8e8], eax
je 0x4067dc
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8e8], 0xffffffff
je 0x4067dc
push esi
mov esi, 0x43fa00
push 0x40aab8
push esi
call fcn.00406459
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.0040644c
push eax
push esi
push dword [0x40a8e8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
xor esi, esi
cmp dword [0x43b1bc], esi
push edi
jne 0x4068dc
mov ecx, 0x43b1b8
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4068b8
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x43b5b8
jl 0x4068b3
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406911
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43b1b8]
xor eax, esi
inc ecx
dec edx
jne 0x4068f4
pop edi
pop esi
not eax
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x436935
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x436944
pop dword [ebp - 0x28]
mov eax, 0x436944
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x53532
push 0
mov eax, 0x66155a7e
sub eax, 0x65d0a7c2
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0xf8ce432b
sub ecx, 0xf8cded6f
xor esi, esi
add esi, eax
mov edi, 0x487e00
add edi, dword [ebp - 0x28]
mov edx, 0x927ab577
xor dword [ebp - 0xc], 0x3976c943
mov ebx, dword [edi]
sub dword [ebp - 0x24], eax
sub ebx, edx
mov dword [ebp - 0x24], 0xafd86a6c
mov dword [esi], ebx
sub dword [ebp - 0x20], ebx
add esi, 0xe299ac58
sub esi, 0xe299ac54
add edi, 0x2fb8ddb7
add edi, 0xd047224d
loop 0x436994
add eax, 0xd8c32fe7
add eax, 0x273e19dc
xor ebx, ebx
add ebx, eax
add eax, 0xf3c606a8
sub eax, 0xf3c606a3
mov ecx, 0xf47c6adf
sub ecx, 0xf43c6adf
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40288e
pop dword [ebp - 0xc]
mov eax, 0x550e3421
add eax, 0xab31f46d
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xac1047ad
sub dword [ebp - 0x1c], 0x5dbe0262
mov dword [ebp - 0x18], 0x148a8457
sub dword [ebp - 0x18], 0xe2573812
mov dword [ebp - 0x14], 0x1a31c433
sub dword [ebp - 0x14], 0xcde58005
mov dword [ebp - 0x10], 0xa68e773f
sub dword [ebp - 0x10], 0xa68e773f
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xc9e99d35
sub eax, 0xc9a91ca9
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xe0b830fe
add dword [ebp - 0x1c], 0x93ba3858
mov dword [ebp - 0x18], 0x907ddccd
sub dword [ebp - 0x18], 0x4f117b58
mov dword [ebp - 0x14], 0x8b41284d
add dword [ebp - 0x14], 0xd82e441f
mov dword [ebp - 0x10], 0x4efcf284
add dword [ebp - 0x10], 0xb1030d7c
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xcd514886
sub eax, 0xcd10c7b2
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x394da
push 0
call eax
mov ecx, 0x52d4
xor ebx, ebx
add ebx, eax
mov edi, 0x26e76a14
sub edi, 0x26a65a14
add edi, dword [ebp - 0xc]
mov edx, 0xb7a940be
sub dword [ebp - 8], ebx
mov esi, dword [edi]
xor dword [ebp - 4], eax
xor esi, edx
sub dword [ebp - 8], 0xba4ddd27
mov dword [ebx], esi
sub dword [ebp - 4], edx
add ebx, 0x3be983de
add ebx, 0xc4167c26
add edi, 0x5261800a
add edi, 0xad9e7ffa
loop 0x4029a6
add eax, 0x441a45e1
add eax, 0xbbe6f842
mov ebx, eax
add eax, 0xae060abe
sub eax, 0xae060ab9
mov ecx, 0xe45f0f2b
add ecx, 0x1be0f0d5
add ecx, dword [ebp - 0xc]
call ebx
leave
ret