joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406f10
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
ret 0x10

Function at 0x40703b
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x417e14
call fcn.004170b0
push ecx
mov eax, dword [0x41f020]
push edi
mov dword [ebp - 0x10], eax
push dword [0x420370]
and dword [ebp - 4], 0
call fcn.0040aeac
mov edi, eax
pop ecx
movzx eax, word [ebp + 0xc]
add eax, 0x267b
lea ecx, [ebp - 0x10]
push eax
call fcn.00403854
push edi
call fcn.0040aeac
pop ecx
push 5
push 0
push dword [ebp - 0x10]
push str.iexplore.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403a04
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x40837e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
neg esi
lea eax, [ecx - 0x24]
sbb esi, esi
and esi, eax
cmp byte [ecx + 0x1c], 0
je 0x4083c1
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 0xc], 2
jne 0x4083b2
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4083c7
cmp dword [ebp + 0xc], 0
jne 0x4083c1
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0xc], 1
je 0x4083de
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0x24]
shr eax, 0x10
movsx eax, ax
push eax
movsx eax, word [ebp + 0x10]
push eax
call fcn.004089df
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x40b0d4
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x418240
call fcn.004170b0
sub esp, 0x418
and word [ebp - 0x21c], 0
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21a]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
rep stosd dword es:[edi], eax
mov ebx, 0x104
lea ecx, [ebp - 0x21c]
stosw word es:[edi], ax
mov eax, dword [0x4202e4]
push ebx
push ecx
push eax
call esi
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x10]
push eax
call fcn.00403631
mov eax, dword [ebp - 0x10]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push dword [eax - 8]
call fcn.0040392f
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004039a1
and word [ebp - 0x424], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x422]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x424]
push ebx
push eax
push dword [0x420370]
call esi
mov eax, dword [0x41f020]
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x14]
push str.__s____d_
push eax
call fcn.00405cba
add esp, 0x10
lea eax, [ebp - 0x21c]
push 1
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00403a04
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403a04
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40b1e0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x41826b
call fcn.004170b0
sub esp, 0x10
mov eax, dword [0x41f020]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], eax
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x40b2bb
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
mov dword [ebp - 0x14], edi
je 0x40b2b2
lea eax, [ebp + 0xc]
push ebx
push eax
push esi
push edi
mov byte [edi + esi], bl
push dword [ebp - 0x18]
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b264
cmp dword [ebp + 0xc], esi
je 0x40b2ab
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004172d0
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push dword [ebp - 0x14]
mov word [edi], bx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp edi, ebx
jne 0x40b297
xor eax, eax
jmp 0x40b29e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.00403a71
mov edi, dword [ebp - 0x14]
push edi
call fcn.00417036
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.0040b34f
lea ecx, [ebp - 0x10]
call fcn.0040b2fe
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004035eb
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00403a04
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
lea esp, [ebp - 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x412094
pop edi
pop esi
xor al, al
pop ebp
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
jne 0x4120a8
pop edi
pop esi
xor al, al
pop ebp
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4120c3
pop edi
pop esi
xor al, al
pop ebp
ret
push ebx
push ebp
push 2
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x412182
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41217b
mov ecx, ebp
mov edi, eax
mov edx, ecx
lea eax, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor ebp, ebp
and ecx, 3
push eax
push ebp
push ebx
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x28], ebp
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x412166
mov edi, dword [esp + 0x1c]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebp
je 0x412146
lea ecx, [esp + 0x20]
mov dword [esi], 0x41a294
push ecx
push edi
mov dword [esp + 0x28], ebp
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov edx, dword [esp + 0x20]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
jmp 0x412148
xor esi, esi
mov eax, dword [esp + 0x14]
cmp esi, ebp
mov dword [eax], esi
je 0x412161
mov eax, dword [esi + 8]
mov dword [esi + 8], ebp
cmp eax, ebp
mov byte [esp + 0x20], 1
je 0x412166
mov byte [esp + 0x20], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x41217b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, byte [esp + 0x20]
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x413310
Capabilities:
Get common file path

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
neg eax
sbb eax, eax
inc eax
je 0x413472
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov eax, dword [ebx]
push edi
mov edi, 0x104
mov ecx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp ecx, 1
jg 0x413352
cmp dword [eax - 4], edi
jge 0x4133b0
mov esi, dword [eax - 8]
cmp esi, edi
mov dword [esp + 0x18], esi
jle 0x41335f
mov edi, esi
push edi
mov ecx, ebx
call fcn.00403a30
test eax, eax
je 0x4133b6
lea ecx, [esi + esi + 2]
lea edx, [edi + edi + 2]
cmp edx, ecx
jb 0x41338e
mov edi, dword [ebx]
mov eax, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov ecx, dword [ebx]
mov dword [ecx - 8], esi
mov eax, dword [0x41f024]
cmp ebp, eax
je 0x4133b0
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4133b0
push ebp
call fcn.00417036
add esp, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4133ba
xor eax, eax
jmp 0x4133ce
mov dword [eax - 8], 0x104
mov edx, dword [ebx]
mov word [edx + 0x208], 0
mov eax, dword [ebx]
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ebp, eax
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jle 0x41344b
mov ecx, dword [0x41f024]
add eax, 0xfffffff4
cmp eax, ecx
je 0x413417
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41340f
mov ecx, dword [ebx]
sub ecx, 0xc
push ecx
call fcn.00417036
add esp, 4
mov edx, dword [0x41f020]
mov dword [ebx], edx
mov eax, dword [esi + 4]
mov ecx, ebx
push eax
call fcn.00403a30
test eax, eax
je 0x41344b
mov edi, dword [ebx]
mov ecx, dword [esi + 4]
mov edx, dword [edi - 4]
lea ecx, [ecx + ecx + 2]
lea eax, [edx + edx + 2]
cmp eax, ecx
jb 0x41344b
mov edx, ecx
add esi, 0xc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebx]
mov dword [ecx - 8], eax
mov edx, dword [ebx]
mov word [edx + eax*2], 0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x413760
Capabilities:
Enumerate internet cache

Disassembly:
sub esp, 0x58
push esi
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, 0x50
lea ecx, [esp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
push ecx
push str.visited:
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
je 0x413811
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x4137eb
push str.Wininet.dll
call edi
mov esi, eax
push 0x41ff90
push esi
call ebx
mov ecx, dword [esp + 0x1c]
push ecx
call eax
add esp, 4
push esi
call ebp
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push esi
mov dword [esp + 0x1c], 0x50
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
je 0x4137b2
push esi
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x58
ret
Function at 0x4143b0
Capabilities:
Get mac address on windows

Disassembly:
push 0xffffffffffffffff
push 0x418ad0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x41f020]
push ebx
push ebp
push esi
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
xor ebx, ebx
push ecx
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x414497
lea eax, [esp + 0x10]
push eax
push ebp
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x414497
push edi
mov edi, ebp
mov eax, dword [edi + 0x190]
xor esi, esi
cmp eax, ebx
jbe 0x414490
cmp esi, 8
jae 0x414490
mov cl, byte [esi + edi + 0x194]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00413f60
add esp, 8
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x28], 1
mov eax, dword [eax - 8]
push eax
call fcn.00403ab0
mov eax, dword [esp + 0x18]
mov edx, dword [0x41f024]
mov byte [esp + 0x24], bl
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x414485
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x414485
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00417036
add esp, 4
mov eax, dword [edi + 0x190]
inc esi
cmp esi, eax
jb 0x414423
mov edi, dword [edi]
cmp edi, ebx
jne 0x414417
pop edi
push ebp
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x10]
add esp, 4
mov ecx, dword [eax - 8]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ecx, dword [0x41f024]
mov esi, eax
mov eax, dword [esp + 0xc]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4144e1
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4144e1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
push eax
call fcn.00417036
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x414c40
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x414c56
push ebx
push eax
call dword [0x420570]
mov eax, dword [esi + 0x48]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, ebx
je 0x414c69
push eax
call edi
mov dword [esi + 0x48], ebx
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x414c76
push eax
call edi
mov dword [esi + 0x44], ebx
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x414c8c
cmp eax, 0xffffffff
je 0x414c8c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3c], ebx
cmp byte [esp + 0x10], bl
jne 0x414caf
cmp byte [esi + 0x38], bl
je 0x414caf
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414caf
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x414cc9
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [esi + 0x90], ebx
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x414cd6
push eax
call edi
mov dword [esi + 0x40], ebx
pop edi
pop esi
pop ebx
ret 4
Function at 0x416050
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esi + 4], 1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x416086
mov cl, byte [esi + 5]
test cl, cl
je 0x416086
push eax
mov byte [esi + 5], 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
ret
Function at 0x401460
Capabilities:
Get common file path

Disassembly:
mov edx, dword [0x41282c]
sub esp, 0x104
test edx, edx
push ebx
push esi
push edi
jne 0x401539
push 0x104
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x41282c], eax
jne 0x4014a1
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x104
ret
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [0x41282c]
lea edx, [esp + 0xc]
push ecx
push 0
push 0x40f0d0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [0x41282c]
push eax
call fcn.004050d4
mov edx, dword [0x41282c]
add esp, 4
cmp byte [edx], 0
je 0x401539
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx - 1], 0x5c
je 0x401539
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx - 1], 0x3a
je 0x401539
mov edi, 0x40f038
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x41282c]
lea esi, [esp + 0xc]
mov eax, edx
sub esi, edx
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x401541
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [esp + 0x114]
repne scasb al, byte es:[edi]
mov al, byte [esi]
not ecx
dec ecx
test al, al
mov edi, ecx
je 0x4015c8
lea ebx, [esp + 0xc]
dec ebx
mov cl, byte [ebx + edi]
lea edx, [esp + 0xc]
mov byte [esp + 0x10f], cl
push edx
mov byte [ebx + edi], 0
call fcn.004050df
mov al, byte [esp + 0x113]
add esp, 4
mov byte [ebx + edi], al
cmp edi, 0x102
jae 0x401494
cmp byte [esi], 0x2f
jne 0x4015a6
mov byte [esi], 0x5c
movzx cx, byte [esi]
mov al, byte [esi + 1]
mov word [esp + edi + 0xc], cx
inc edi
inc esi
test al, al
je 0x4015c8
mov al, byte [esi - 1]
cmp al, 0x5c
je 0x4015c3
cmp al, 0x2f
jne 0x401592
cmp byte [esi], 0
jne 0x40156d
lea edx, [esp + 0xc]
push edx
call section..text
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x4079dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40f958
cmp edx, dword [eax]
je 0x4079ff
add eax, 8
inc ecx
cmp eax, 0x40f9e8
jl 0x4079f0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40f958]
jne 0x407b2d
mov eax, dword [0x4124bc]
cmp eax, 1
je 0x407b07
test eax, eax
jne 0x407a30
cmp dword [0x40f484], 1
je 0x407b07
cmp edx, 0xfc
je 0x407b2d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407a67
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409350
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409780
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407aaa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409780
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d59c
push edi
call fcn.0040a9a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409350
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409360
lea eax, [ebp - 0xa0]
push 0x40d57c
push eax
call fcn.00409360
push dword [esi + 0x40f95c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409360
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a90f
add esp, 0x2c
pop edi
jmp 0x407b2d
lea eax, [ebp + 8]
lea esi, [esi + 0x40f95c]
push 0
push eax
push dword [esi]
call fcn.00409780
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x44ef30
Capabilities:
Get geographical location

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov dword [esp], str.Name
mov ecx, esi
call fcn.005bcb50
sub esp, 4
test eax, eax
je 0x44ef67
mov dword [esp], str.CommonName
mov ecx, esi
call fcn.005bcb50
sub esp, 4
test eax, eax
jne 0x44ef90
lea eax, [ebx + 8]
mov ecx, ebx
mov dword [ebx], eax
mov dword [esp + 4], 0x6924cd
mov dword [esp], str.X520.CommonName
call fcn.00433380
sub esp, 8
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
ret
mov dword [esp], str.SerialNumber
mov ecx, esi
call fcn.005bcb50
sub esp, 4
test eax, eax
jne 0x44efc0
mov dword [esp], str.X520.SerialNumber
mov ecx, ebx
call fcn.00433440
sub esp, 4
jmp 0x44ef85
mov dword [esp], 0x6924f8
mov ecx, esi
call fcn.005bcb50
sub esp, 4
test eax, eax
je 0x44f000
mov dword [esp], str.Organization
mov ecx, esi
call fcn.005bcb50
sub esp, 4
test eax, eax
jne 0x44f020
mov dword [esp], str.X520.Organization
mov ecx, ebx
call fcn.00433440
sub esp, 4
jmp 0x44ef85
mov dword [esp], str.X520.Country
mov ecx, ebx
call fcn.00433440
sub esp, 4
jmp 0x44ef85
mov dword [esp], str.Organizational_Unit
mov ecx, esi
call fcn.005bcb50
sub esp, 4
test eax, eax
je 0x44f04a
mov dword [esp], str.OrgUnit
mov ecx, esi
call fcn.005bcb50
sub esp, 4
test eax, eax
jne 0x44f060
mov dword [esp], str.X520.OrganizationalUnit
mov ecx, ebx
call fcn.00433440
sub esp, 4
jmp 0x44ef85
mov dword [esp], str.Locality
mov ecx, esi
call fcn.005bcb50
sub esp, 4
test eax, eax
jne 0x44f08b
mov dword [esp], str.X520.Locality
mov ecx, ebx
call fcn.00433440
sub esp, 4
jmp 0x44ef85
mov dword [esp], str.State
mov ecx, esi
call fcn.005bcb50
sub esp, 4
test eax, eax
je 0x44f0b3
mov dword [esp], str.Province
mov ecx, esi
call fcn.005bcb50
push edx
test eax, eax
jne 0x44f0c9
mov dword [esp], str.X520.State
mov ecx, ebx
call fcn.00433440
sub esp, 4
jmp 0x44ef85
mov dword [esp], 0x692586
mov ecx, esi
call fcn.005bcb50
push ecx
test eax, eax
jne 0x44f0f0
mov dword [esp], str.RFC822
mov ecx, ebx
call fcn.00433440
push edx
jmp 0x44ef85
lea eax, [ebx + 8]
mov ecx, ebx
mov dword [ebx], eax
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp], eax
add edx, eax
mov dword [esp + 4], edx
call fcn.0042d440
push eax
push eax
jmp 0x44ef85
Function at 0x468530
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
sub eax, 1
cmp eax, 0x36
ja 0x468667
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x4686ea
cmp dword [ebp + 0x14], 0x12
ja 0x4686b5
mov eax, dword [ecx]
mov ebx, ecx
mov eax, dword [eax]
cmp eax, 0x40f8e0
jne 0x468660
mov ecx, dword [ecx + 0x14]
mov eax, dword [0x6b6d40]
mov esi, 0x6b6d40
mov dword [ecx], eax
lea edi, [ecx + 4]
mov eax, dword [0x6b6d84]
and edi, 0xfffffffc
mov dword [ecx + 0x44], eax
sub ecx, edi
mov eax, dword [0x6b5d40]
sub esi, ecx
add ecx, 0x48
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov esi, 0x6b5d40
mov ecx, dword [ebx + 4]
mov dword [ecx], eax
lea edi, [ecx + 4]
mov eax, dword [0x6b6d3c]
and edi, 0xfffffffc
mov dword [ecx + 0xffc], eax
sub ecx, edi
sub esi, ecx
add ecx, 0x1000
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebp - 0x30], 0
lea esi, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov edi, 1
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], 0
mov dword [esp], eax
call fcn.0044f290
movzx ecx, byte [ebp + 0x14]
sub esp, 0xc
shl edi, cl
mov dword [ebp - 0x3c], edi
xor edi, edi
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], esi
mov ecx, ebx
add edi, 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0044f290
mov eax, dword [ebp + 0x10]
mov ecx, ebx
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 0x10
mov dword [esp], eax
call fcn.0044f290
sub esp, 0xc
cmp dword [ebp - 0x3c], edi
jne 0x468613
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
call eax
jmp 0x4685c6
mov dword [esp], 8
lea esi, [ebp - 0x30]
call fcn.00647f70
mov dword [esp], str.EKSBlowfish
mov ecx, esi
mov edi, eax
call fcn.00433440
push eax
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00594f10
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
push esi
push esi
cmp eax, edx
je 0x64c4e4
mov dword [esp], eax
call fcn.00647d50
jmp 0x64c4e4
mov dword [esp], 8
call fcn.00647f70
mov dword [esp], str.Requested_Bcrypt_work_factor_too_large
mov ecx, eax
mov ebx, eax
call fcn.0060f810
push eax
mov dword [esp + 8], fcn.0060f8c0
mov dword [esp + 4], 0x70d588
mov dword [esp], ebx
call fcn.00648660
mov dword [esp], 8
call fcn.00647f70
mov dword [esp], str.Bcrypt_work_factor_must_be_at_least_1
mov ecx, eax
mov ebx, eax
call fcn.0060f810
push edx
mov dword [esp + 8], fcn.0060f8c0
mov dword [esp + 4], 0x70d588
mov dword [esp], ebx
call fcn.00648660
mov ebx, eax
jmp 0x64c4fc