joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460e10
Capabilities:
Check if file exists
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4a5318
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4c36a0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c36a0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
lea eax, [esp + 0x30]
push eax
call fcn.00460910
push str._toolbar.dll
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x20]
xor edi, edi
push edx
mov dword [esp + 0x68], edi
call fcn.0040b3a0
mov ebp, 0x10
add esp, 0x10
cmp dword [eax + 0x18], ebp
jb 0x460e78
mov eax, dword [eax + 4]
jmp 0x460e7b
add eax, 4
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call ebx
cmp dword [esp + 0x2c], ebp
mov esi, eax
jb 0x460e99
mov eax, dword [esp + 0x18]
push eax
call fcn.0047528f
add esp, 4
cmp esi, edi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], edi
mov byte [esp + 0x18], 0
je 0x460f5b
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call edi
push str.update.dll
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0040b3a0
add esp, 0xc
cmp dword [eax + 0x18], ebp
jb 0x460edc
mov eax, dword [eax + 4]
jmp 0x460edf
add eax, 4
push eax
call ebx
cmp dword [esp + 0x2c], ebp
mov esi, eax
jb 0x460ef7
mov eax, dword [esp + 0x18]
push eax
call fcn.0047528f
add esp, 4
test esi, esi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
je 0x460f5b
push esi
call edi
push str.update.exe
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0040b3a0
add esp, 0xc
cmp dword [eax + 0x18], ebp
jb 0x460f34
mov eax, dword [eax + 4]
jmp 0x460f37
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
setne bl
cmp dword [esp + 0x2c], ebp
jb 0x460f57
mov eax, dword [esp + 0x18]
push eax
call fcn.0047528f
add esp, 4
test bl, bl
je 0x460f76
push ebp
push 0x4a8d68
push 0x4ab714
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [esp + 0x48], ebp
jb 0x460f89
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0047528f
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00476554
add esp, 0x48
ret
Function at 0x4625a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
call fcn.00428cd0
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push edi
push esi
mov dword [esp + 0x20], 0
call ebx
mov ebp, eax
test ebp, ebp
je 0x46267f
push 0xf0
push edi
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
test eax, eax
je 0x4625f4
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebp
push esi
mov dword [esp + 0x18], 0
call edi
test eax, eax
je 0x462658
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x462658
push ebx
push edi
call fcn.0042b8c0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add esp, 8
mov ebx, eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
push edx
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
mov esi, eax
test esi, esi
jne 0x462644
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x462666
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x462666
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x462675
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x4626c0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4a5512
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x4c36a0]
xor eax, esp
mov dword [esp + 0x130], eax
push edi
mov eax, dword [0x4c36a0]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push eax
push 2
mov dword [esp + 0x14c], eax
mov dword [esp + 0x10], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x462774
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x46276d
lea ecx, [esp + 0x34]
push ebx
push ecx
call fcn.00477895
add esp, 8
test eax, eax
jne 0x46275e
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00462490
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x462740
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00476554
add esp, 0x140
ret
Function at 0x462e80
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4a570d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c36a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
push 0x1e8
mov dword [esi + 0x20], vtable.WTL::CMessageFilter.0
lea edi, [esi + 0x2c]
push ebx
mov dword [esi + 0x24], vtable.WTLEx::CWtlTrayImp_class_CMainDlg__129_.0
mov dword [esi + 0x214], ebx
push edi
mov dword [esp + 0x28], ebx
mov dword [esi + 0x218], ebx
call fcn.00475820
add esp, 0xc
mov dword [edi], 0x1e8
mov dword [esi + 0x34], 0x81
mov dword [esi + 0x38], ebx
lea edi, [esi + 0x21c]
mov ecx, edi
mov byte [esp + 0x1c], 1
call fcn.004628f0
mov dword [esi], vtable.CMainDlg.3.0
mov dword [esi + 0x20], vtable.CMainDlg.2.0
mov dword [esi + 0x24], vtable.CMainDlg.1.0
mov dword [edi], vtable.CMainDlg.0
mov dword [esi + 0x248], ebx
mov dword [esi + 0x24c], ebx
mov dword [esi + 0x250], ebx
mov dword [esi + 0x27c], ebx
mov dword [esi + 0x280], ebx
mov dword [esi + 0x284], ebx
mov dword [esi + 0x288], ebx
mov edi, 0xf
mov dword [esi + 0x2a4], edi
mov dword [esi + 0x2a0], ebx
mov byte [esi + 0x290], bl
push 0x45a680
push 0x45b240
push 6
push 4
lea eax, [esi + 0x2a8]
push eax
mov byte [esp + 0x30], 5
call fcn.00477164
mov dword [esi + 0x2d8], edi
mov dword [esi + 0x2d4], ebx
mov byte [esi + 0x2c4], bl
mov dword [esi + 0x2dc], ebx
mov dword [esi + 0x2e0], ebx
mov dword [esi + 0x2e4], ebx
mov dword [esi + 0x2e8], ebx
mov dword [esi + 0x304], edi
mov dword [esi + 0x300], ebx
mov byte [esi + 0x2f0], bl
lea edi, [esi + 0x308]
mov ecx, edi
mov byte [esp + 0x1c], 8
call fcn.0045d6c0
mov dword [edi + 4], eax
mov byte [eax + 0x2d], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov byte [esp + 0x1c], 9
mov dword [esi + 0x314], ebx
push 0x41d500
push 0x45e6b0
push 3
push 0x48
lea ecx, [esi + 0x318]
push ecx
call fcn.00477164
lea edx, [esi + 0x254]
push edx
mov dword [esi + 0x3f0], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push str.toolbar.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x274], eax
jne 0x463054
push 0x10
push 0x4a8d68
push 0x4ab714
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x465e10
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1128
call fcn.00477d50
mov eax, dword [0x4c36a0]
xor eax, esp
mov dword [esp + 0x1124], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
lea eax, [esp + 0xc]
push eax
push 0x1000
lea ecx, [esp + 0x18]
push ecx
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x465f27
xor ebx, ebx
xor esi, esi
test dword [esp + 0xc], 0xfffffffc
jbe 0x465f27
jmp 0x465e70
mov eax, dword [esp + esi*4 + 0x10]
push 0x104
lea edx, [esp + 0x1030]
push edx
push eax
push edi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x465f15
lea eax, [esp + 0x102c]
mov dword [esp + 0x1028], 0xf
mov dword [esp + 0x1024], ebx
mov byte [esp + 0x1014], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x465eb3
sub eax, edx
push eax
lea ecx, [esp + 0x1030]
push ecx
lea ecx, [esp + 0x1018]
call fcn.0040b060
lea edx, [esp + 0x1010]
push edx
call fcn.00465d70
add esp, 4
push 0xa
push ebx
push str.HOOKDISKID
lea ecx, [esp + 0x101c]
call fcn.00405d90
test eax, eax
jge 0x465f4b
cmp dword [esp + 0x1028], 0x10
jb 0x465f15
mov eax, dword [esp + 0x1014]
push eax
call fcn.0047528f
add esp, 4
mov ecx, dword [esp + 0xc]
add esi, 1
shr ecx, 2
cmp esi, ecx
jb 0x465e70
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1124]
xor ecx, esp
call fcn.00476554
add esp, 0x1128
ret
cmp dword [esp + 0x1028], 0x10
jb 0x465f65
mov edx, dword [esp + 0x1014]
push edx
call fcn.0047528f
add esp, 4
mov ecx, dword [esp + 0x1130]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00476554
add esp, 0x1128
ret
Function at 0x466eb0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [0x4c36a0]
xor eax, esp
mov dword [esp + 8], eax
push esi
push edi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x14]
mov ecx, eax
mov edx, eax
shr eax, 8
shr ecx, 0x18
mov byte [esp + 0xd], al
mov al, byte [esi + 0x14]
mov byte [esp + 0xf], cl
shr edx, 0x10
mov byte [esp + 0xc], al
mov eax, dword [esi + 0x10]
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0xe], dl
mov edx, eax
mov byte [esp + 0xb], cl
shr edx, 0x10
mov ecx, eax
shr ecx, 8
mov byte [esp + 0xa], dl
mov dl, al
shr eax, 3
mov byte [esp + 9], cl
and eax, 0x3f
mov ecx, 0x40
sub ecx, eax
cmp ecx, 9
mov edi, dword [esp + 0x18]
mov byte [esp + 8], dl
jae 0x466f24
add ecx, 0x40
add ecx, 0xfffffff8
push ecx
push 0x4c34c0
push esi
call fcn.00466e00
push 8
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00466e00
add esp, 0x18
test edi, edi
je 0x466fbc
movzx ecx, byte [esi + 3]
mov byte [edi + 3], cl
movzx edx, byte [esi + 2]
mov byte [edi + 2], dl
mov eax, dword [esi]
shr eax, 8
mov byte [edi + 1], al
movzx ecx, byte [esi]
mov byte [edi], cl
movzx edx, byte [esi + 7]
mov byte [edi + 7], dl
movzx eax, byte [esi + 6]
mov byte [edi + 6], al
mov ecx, dword [esi + 4]
shr ecx, 8
mov byte [edi + 5], cl
movzx edx, byte [esi + 4]
mov byte [edi + 4], dl
movzx eax, byte [esi + 0xb]
mov byte [edi + 0xb], al
movzx ecx, byte [esi + 0xa]
mov byte [edi + 0xa], cl
mov edx, dword [esi + 8]
shr edx, 8
mov byte [edi + 9], dl
movzx eax, byte [esi + 8]
mov byte [edi + 8], al
movzx ecx, byte [esi + 0xf]
mov byte [edi + 0xf], cl
movzx edx, byte [esi + 0xe]
mov byte [edi + 0xe], dl
mov eax, dword [esi + 0xc]
shr eax, 8
mov byte [edi + 0xd], al
movzx ecx, byte [esi + 0xc]
mov byte [edi + 0xc], cl
push 0x58
push 0
push esi
call fcn.00475820
mov ecx, dword [esp + 0x1c]
add esp, 0xc
pop edi
pop esi
xor ecx, esp
call fcn.00476554
add esp, 0xc
ret

Function at 0x466fe0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4c36a0]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x64]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x6c]
push ecx
push eax
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
call fcn.00466e00
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00466eb0
mov ecx, dword [esp + 0x70]
add esp, 0x14
pop esi
xor ecx, esp
call fcn.00476554
add esp, 0x5c
ret

Function at 0x467060
Capabilities:
Write file on windows

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

Function at 0x4670e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 4]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
add eax, 1
ret 0xc
Function at 0x4671d0
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4671ef
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
pop ebx
add esp, 0x10
ret
push esi
push edi
push 1
lea esi, [esp + 0x10]
push esi
xor edx, edx
push edx
xor ecx, ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x46720f
xor esi, esi
xor edi, edi
jmp 0x467217
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp esi, dword [esp + 0x14]
jne 0x46723e
cmp edi, dword [esp + 0x18]
jne 0x46723e
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret

Function at 0x467250
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov ecx, dword [ecx + 4]
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 8
ret

Function at 0x4675c0
Capabilities:
Create directory

Disassembly:
sub esp, 0x204
mov eax, dword [0x4c36a0]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
push edi
mov edi, dword [esp + 0x214]
je 0x4675ee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x218]
cmp ebx, 4
je 0x467604
cmp ebx, 1
je 0x467604
cmp ebx, 2
jne 0x46762e
push 0x200
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00467340
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x46762e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x21c]
push 0
xor edx, edx
push 0x80
cmp eax, 0x80000000
sete dl
push ebx
push 0
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
sub ecx, 0xffffffff
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 4], ecx
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x208]
pop esi
pop ebx
xor ecx, esp
call fcn.00476554
add esp, 0x204
ret 0xc
Function at 0x4677c0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a5a32
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.00477d50
mov eax, dword [0x4c36a0]
xor eax, esp
mov dword [esp + 0x2018], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c36a0]
xor eax, esp
push eax
lea eax, [esp + 0x2030]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x2040]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ebx + 0x18], 0xf
mov dword [ebx + 0x14], edi
mov esi, ecx
mov dword [esp + 0x28], ebx
mov byte [ebx + 4], 0
mov eax, dword [esi + 4]
cmp eax, edi
mov dword [esp + 0x2038], edi
mov dword [esp + 0x1c], 1
mov byte [esp + 0x16], 0
jne 0x467845
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x467859
push 1
lea ebp, [esp + 0x24]
push ebp
xor edx, edx
push edx
xor ecx, ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, esi
call fcn.004671d0
test eax, eax
jne 0x46795a
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, edi
mov edx, dword [esi + 4]
push edi
lea eax, [esp + 0x1c]
push eax
push 1
lea ecx, [esp + 0x23]
push ecx
push edx
call ebp
mov al, byte [esp + 0x17]
cmp al, 0xd
je 0x46788f
cmp al, 0xa
jne 0x46789f
mov ecx, esi
call fcn.004671d0
test eax, eax
je 0x467870
jmp 0x46795a
mov edx, dword [esi + 4]
cmp edx, edi
jne 0x4678b0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4678c7
push 1
or eax, 0xffffffff
lea edi, [esp + 0x24]
push edi
or ecx, eax
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor edi, edi
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea ecx, [esp + 0x22]
push ecx
push edx
call ebp
mov eax, dword [esi + 4]
test eax, eax
jne 0x4678ec
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x467901
push 1
or ecx, 0xffffffff
lea ebp, [esp + 0x24]
push ebp
or edx, ecx
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov al, byte [esp + 0x16]
cmp al, 0xd
je 0x467949
lea esp, [esp]
cmp al, 0xa
je 0x467949
mov ecx, esi
call fcn.004671d0
test eax, eax
jne 0x467949
cmp edi, 0x1fff
jae 0x467949
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x1e]
push ecx
mov ecx, esi
call fcn.004670e0
mov al, byte [esp + 0x16]
mov byte [esp + edi + 0x2c], al
add edi, 1
cmp al, 0xd
jne 0x467910
lea edx, [esp + 0x2c]
push edx
mov ecx, ebx
mov byte [esp + edi + 0x30], 0
call fcn.0040bba0
mov eax, ebx
mov ecx, dword [esp + 0x2030]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2018]
xor ecx, esp
call fcn.00476554
add esp, 0x2028
ret 4
Function at 0x467d50
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a5aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x4c36a0]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c36a0]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x22c]
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x14], ebx
push 0x200
lea eax, [esp + 0x1c]
push ebx
push eax
mov dword [esp + 0x230], 2
call fcn.00475820
mov ebp, 0x10
add esp, 0xc
cmp dword [edi + 0x18], ebp
jb 0x467dc7
mov edi, dword [edi + 4]
jmp 0x467dca
add edi, 4
cmp dword [esp + 0x280], ebp
mov edx, dword [esp + 0x26c]
jae 0x467de1
lea edx, [esp + 0x26c]
cmp dword [esp + 0x264], ebp
mov ecx, dword [esp + 0x250]
jae 0x467df8
lea ecx, [esp + 0x250]
cmp dword [esp + 0x248], ebp
mov eax, dword [esp + 0x234]
jae 0x467e0f
lea eax, [esp + 0x234]
push edi
push 0x200
lea edi, [esp + 0x20]
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov edi, 0xf
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], edi
mov byte [esi + 4], bl
jne 0x467ec1
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x270]
push ecx
mov ecx, esi
call fcn.0040a8e0
cmp dword [esp + 0x248], ebp
jb 0x467e64
mov edx, dword [esp + 0x234]
push edx
call fcn.0047528f
add esp, 4
cmp dword [esp + 0x264], ebp
mov dword [esp + 0x248], edi
mov dword [esp + 0x244], ebx
mov byte [esp + 0x234], bl
jb 0x467e92
mov eax, dword [esp + 0x250]
push eax
call fcn.0047528f
add esp, 4
cmp dword [esp + 0x280], ebp
mov dword [esp + 0x264], edi
mov dword [esp + 0x260], ebx
mov byte [esp + 0x250], bl
jb 0x467f55
mov ecx, dword [esp + 0x26c]
push ecx
jmp 0x467f4d
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x467ec8
sub eax, edx
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.0040b060
cmp dword [esp + 0x248], ebp
jb 0x467ef9
mov eax, dword [esp + 0x234]
push eax
call fcn.0047528f
add esp, 4
cmp dword [esp + 0x264], ebp
mov dword [esp + 0x248], edi
mov dword [esp + 0x244], ebx
mov byte [esp + 0x234], bl
jb 0x467f27
mov ecx, dword [esp + 0x250]
push ecx
call fcn.0047528f
add esp, 4
cmp dword [esp + 0x280], ebp
mov dword [esp + 0x264], edi
mov dword [esp + 0x260], ebx
mov byte [esp + 0x250], bl
jb 0x467f55
mov edx, dword [esp + 0x26c]
push edx
call fcn.0047528f
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.00476554
add esp, 0x214
ret 0x58
Function at 0x46bbb0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x46bbbf
mov eax, 1
pop edi
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push esi
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0x4abb48
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x46bc42
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x46bc42
push 0x20
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x46bc42
push 0x28
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x46bc42
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0x4abb48
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x46bc42
mov eax, dword [edi]
test eax, eax
je 0x46bc4c
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [edi], esi
mov eax, esi
pop esi
pop ebx
pop edi
ret
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x46bc60
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x1c
push ebp
xor ebp, ebp
cmp dword [esp + 0x28], ebp
push esi
mov esi, ecx
jle 0x46bdeb
call fcn.0046bbb0
test eax, eax
je 0x46bdeb
lea eax, [esi + 4]
push edi
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x34]
cmp edi, ebp
je 0x46bd96
mov ecx, dword [esi]
lea eax, [esp + 0xc]
push eax
push ebp
push ebp
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x46bce1
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], str.CryptCreateHash_error
call fcn.00475a39
push 0x4bca44
lea eax, [esp + 0x20]
push eax
call fcn.00475563
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0xc]
push ebp
push ecx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x46bd1c
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], str.CryptHashData_error
call fcn.00475a39
push 0x4bca44
lea ecx, [esp + 0x20]
push ecx
call fcn.00475563
mov eax, dword [esp + 0xc]
mov ecx, dword [esi]
lea edx, [esp + 0x14]
push edx
push ebp
push eax
push 0x6801
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x46bd5e
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], str.CryptDeriveKey_error
call fcn.00475a39
push 0x4bca44
lea eax, [esp + 0x20]
push eax
call fcn.00475563
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x46bd92
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], str.CryptDestroyHash_error
call fcn.00475a39
push 0x4bca44
lea eax, [esp + 0x20]
push eax
call fcn.00475563
mov dword [esp + 0xc], ebp
push ebx
mov ebx, dword [esp + 0x30]
xor edi, edi
mov ebp, 0x3e8
mov eax, dword [esp + 0x34]
sub eax, edi
cmp eax, ebp
jbe 0x46bdb6
add edi, ebp
mov dword [esp + 0x14], ebp
xor esi, esi
jmp 0x46bdbf
mov dword [esp + 0x14], eax
mov esi, 1
mov edx, dword [esp + 0x18]
push ebp
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0
push esi
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test esi, esi
jne 0x46bdde
add ebx, ebp
jmp 0x46bda2
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 0x10