joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f005f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push dword [ebp + 0x10]
xor ebx, ebx
push ebx
push 0x410
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x4f008e
xor eax, eax
jmp 0x4f01a7
mov eax, dword [ebp + 0x18]
push esi
mov dword [eax], ebx
push edi
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, ecx
jae 0x4f019a
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x1c
lea ecx, [ebp - 0x30]
push ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x4f013b
test dword [ebp - 0x20], 0x1000
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
je 0x4f0141
test dword [ebp - 0x1c], 0x100
jne 0x4f0141
push eax
push 8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x10], ebx
push esi
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4f0132
push dword [ebp + 8]
push esi
call fcn.005a8679
pop ecx
pop ecx
test eax, eax
jne 0x4f0132
push dword [ebp + 0xc]
lea eax, [esi + 0x400]
push eax
call fcn.005a8679
pop ecx
pop ecx
test eax, eax
je 0x4f0155
push esi
push ebx
push dword [ebp - 4]
call edi
jmp 0x4f0141
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
cmp eax, dword [ebp - 0x14]
jb 0x4f00b9
jmp 0x4f019a
lea ecx, [esi + 0x800]
xor eax, eax
mov edx, ecx
cmp byte [ecx], bl
je 0x4f017a
cmp byte [edx + 1], bl
je 0x4f016f
inc eax
inc edx
inc edx
cmp byte [edx], bl
jne 0x4f0163
mov edx, 0xff
cmp eax, edx
jbe 0x4f017a
mov eax, edx
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
lea eax, [eax + eax + 2]
push eax
push ecx
push dword [ebp + 0x14]
call fcn.0059d730
add esp, 0xc
push esi
push ebx
push dword [ebp - 4]
call edi
xor ebx, ebx
inc ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0x14
Function at 0x4f0350
Capabilities:
Acquire debug privileges
Get session user name

Disassembly:
push ebp
sub esp, 0x694
lea ebp, [esp - 4]
mov eax, dword [0x665ebc]
xor eax, ebp
mov dword [ebp + 0x694], eax
push 0x20
mov eax, 0x5e9fcb
call fcn.0059ca24
mov esi, dword [ebp + 0x6a0]
mov edi, ecx
lea ecx, [ebp]
call fcn.004759dd
lea ecx, [ebp - 0x2c]
call fcn.0048f7c7
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [0x67c518], ebx
je 0x4f03cc
lea ecx, [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
call fcn.0048ea4e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x694]
xor ecx, ebp
call fcn.0059ca15
add ebp, 0x698
leave
ret 4
mov eax, 0x200
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x494]
push ebx
push eax
mov dword [0x67c518], 1
call fcn.0059cb30
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x494]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ecx, [ebp - 0x2c]
test eax, eax
je 0x4f039c
push ebx
push str.SeDebugPrivilege
call fcn.0048f0bd
mov ecx, edi
call fcn.004efb7c
test eax, eax
je 0x4f0399
mov ecx, edi
call fcn.004f01ac
cmp eax, ebx
jne 0x4f0441
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0048ea4e
mov eax, esi
jmp 0x4f03a7
cmp dword [ebp + 0x10], 2
mov dword [ebp - 0x10], ebx
jne 0x4f0474
cmp dword [ebp + 4], 5
jb 0x4f0474
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 0x94]
push ecx
push eax
mov ecx, edi
call fcn.004efc16
push eax
lea eax, [ebp + 0x494]
push eax
mov ecx, edi
call fcn.004f005f
jmp 0x4f049a
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 0x94]
push ecx
push eax
mov ecx, edi
call fcn.004efc16
push eax
lea eax, [ebp + 0x494]
push eax
mov ecx, edi
call fcn.004efed4
cmp eax, ebx
je 0x4f042c
cmp dword [ebp - 0x10], ebx
jne 0x4f04aa
mov byte [esi], bl
xor esi, esi
inc esi
jmp 0x4f042e
cmp dword [ebp + 0x10], 2
jne 0x4f04d4
cmp dword [ebp + 4], 5
jb 0x4f04d4
push 0x100
push esi
push dword [ebp - 0x10]
lea eax, [ebp + 0x94]
push eax
mov ecx, edi
call fcn.004efd70
mov esi, eax
jmp 0x4f042e
push 0x100
push esi
push dword [ebp - 0x10]
lea eax, [ebp + 0x94]
push eax
push dword [ebp - 0x14]
mov ecx, edi
call fcn.004efe6b
jmp 0x4f04cd

Function at 0x4f12d5
Capabilities:
Check for sandbox and av modules

Disassembly:
push 4
mov eax, 0x5ea20a
call fcn.0059ca57
mov esi, ecx
xor ebx, ebx
mov byte [esi + 8], bl
mov dword [ebp - 4], ebx
call fcn.004f06ef
mov edi, str.pstorec.dll
push edi
mov dword [esi + 0x40c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x4f1317
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x4f1348
push str.PStoreCreateInstance
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x4f1348
push ebx
push ebx
push ebx
lea ecx, [esi + 0x410]
call fcn.004f117f
push eax
call edi
cmp eax, ebx
jge 0x4f1350
push eax
mov ecx, esi
call fcn.004f05d1
xor eax, eax
call fcn.0059cafc
ret
xor eax, eax
inc eax
mov dword [esi + 0x40c], eax
jmp 0x4f134a
Function at 0x4f1b39
Capabilities:
Encode data using xor

Disassembly:
push 0xc4
mov eax, 0x5ea3a5
call fcn.0059ca8d
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xd0], eax
call fcn.004b0c41
and dword [ebp - 4], 0
push 0x10
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.0059cb30
push 8
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.0059d730
push 0x10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0059d730
add esp, 0x24
xor eax, eax
xor dword [ebp + eax - 0x20], 0x36363636
xor dword [ebp + eax - 0x30], 0x5c5c5c5c
add eax, 4
cmp eax, 0x10
jl 0x4f1b93
lea ecx, [ebp - 0xcc]
call fcn.004b0fa6
push dword [ebp + 0x10]
lea ecx, [ebp - 0xcc]
push ebx
call fcn.004b0fd5
push 0x10
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0xcc]
call fcn.004b0fd5
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xcc]
call fcn.004b10b9
push 0x10
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0059d730
push 0x14
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0059d730
add esp, 0x18
push dword [ebp - 0xd0]
lea eax, [ebp - 0x68]
push 0x24
push eax
lea ecx, [ebp - 0xcc]
call fcn.004b119a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.004b0c4a
xor eax, eax
inc eax
call fcn.0059cb10
ret 0x10
Function at 0x4f4ff3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x665ebc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
and dword [ebp + 0xc], 0x7f
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x80
push esi
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x84]
push 0
push eax
mov dword [ebp - 0x14c], ecx
call fcn.0059cb30
push esi
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.0059cb30
push dword [ebp + 0xc]
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.0059d730
push dword [ebp + 0xc]
lea eax, [ebp - 0x144]
push edi
push eax
call fcn.0059d730
add esp, 0x30
push 0x20
xor eax, eax
pop ecx
xor dword [ebp + eax - 0x84], 0x36363636
xor dword [ebp + eax - 0x144], 0x5c5c5c5c
add eax, 4
dec ecx
jne 0x4f506d
mov edi, dword [ebp - 0x14c]
mov ecx, edi
call fcn.004f4d50
push esi
lea eax, [ebp - 0x84]
push eax
mov ecx, edi
call fcn.004f4d73
push dword [ebp + 0x14]
mov ecx, edi
push ebx
call fcn.004f4d73
lea eax, [ebp - 0xc4]
push eax
mov ecx, edi
call fcn.004f4eaf
push dword [ebp - 0x148]
lea eax, [ebp - 0x144]
push 0xc0
push eax
mov ecx, edi
call fcn.004f4fcd
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059ca15
leave
ret 0x14
Function at 0x4f8be0
Capabilities:
Contain obfuscated stackstrings
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x665ebc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x14], 0x30
mov byte [ebp - 0x13], 0x31
mov byte [ebp - 0x12], 0x32
mov byte [ebp - 0x11], 0x33
mov byte [ebp - 0x10], 0x34
mov byte [ebp - 0xf], 0x35
mov byte [ebp - 0xe], 0x36
mov byte [ebp - 0xd], 0x37
mov byte [ebp - 0xc], 0x38
mov byte [ebp - 0xb], 0x39
mov byte [ebp - 0xa], 0x41
mov byte [ebp - 9], 0x42
mov byte [ebp - 8], 0x43
mov byte [ebp - 7], 0x44
mov byte [ebp - 6], 0x45
mov byte [ebp - 5], 0x46
cmp edi, ebx
je 0x4f8de4
cmp eax, ebx
je 0x4f8de4
mov ecx, dword [esi + 0x84]
push eax
mov byte [ecx], bl
call fcn.0059bf90
push dword [esi + 0x84]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ebx
call fcn.0059bf90
cmp byte [edi], bl
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
pop ecx
je 0x4f8dcd
cmp dword [ebp - 0x18], 0
je 0x4f8c8f
push 0x47
pop ecx
sub ecx, dword [ebp - 0x20]
cmp ebx, ecx
jl 0x4f8ceb
cmp dword [ebp - 0x18], 0
mov ecx, dword [esi + 0x84]
mov byte [eax + ecx], 0
je 0x4f8cac
push str.__r_n
push dword [esi + 0x84]
call edi
push 0x61122c
push dword [esi + 0x84]
call edi
push dword [ebp - 0x1c]
push dword [esi + 0x84]
call edi
push 0x611234
push dword [esi + 0x84]
call edi
push dword [ebp - 0x1c]
call fcn.0059bf90
push dword [esi + 0x84]
mov ebx, eax
add ebx, 5
call fcn.0059bf90
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, ecx
mov cl, byte [edx]
cmp cl, 0x21
mov dword [ebp - 0x24], edx
jl 0x4f8d02
cmp cl, 0x3c
jle 0x4f8d0c
cmp cl, 0x3e
jl 0x4f8d77
cmp cl, 0x7e
jg 0x4f8d77
cmp cl, 0x20
je 0x4f8d77
cmp cl, 0x2c
je 0x4f8d77
cmp cl, 0x3b
je 0x4f8d77
cmp cl, 9
je 0x4f8d77
cmp cl, 0x3d
je 0x4f8d77
cmp cl, 0x3f
je 0x4f8d77
cmp cl, 0x5f
je 0x4f8d77
cmp cl, 0x21
je 0x4f8d77
cmp cl, 0x22
je 0x4f8d77
cmp cl, 0x40
je 0x4f8d77
cmp cl, 0x5b
je 0x4f8d77
cmp cl, 0x5d
je 0x4f8d77
cmp cl, 0x5c
je 0x4f8d77
cmp cl, 0x5e
je 0x4f8d77
cmp cl, 0x27
je 0x4f8d77
cmp cl, 0x7b
je 0x4f8d77
cmp cl, 0x7d
je 0x4f8d77
cmp cl, 0x7c
je 0x4f8d77
cmp cl, 0x7e
je 0x4f8d77
mov edx, dword [esi + 0x84]
mov byte [eax + edx], cl
inc eax
jmp 0x4f8db9
mov ecx, dword [esi + 0x84]
mov byte [eax + ecx], 0x3d
movzx ecx, byte [edx]
mov edx, dword [esi + 0x84]
shr ecx, 4
mov cl, byte [ebp + ecx - 0x14]
inc eax
mov byte [eax + edx], cl
mov ecx, dword [ebp - 0x24]
movzx ecx, byte [ecx]
inc eax
and ecx, reloc.OLEAUT32.dll_SafeArrayDestroy
jns 0x4f8da9
dec ecx
or ecx, 0xfffffff0
inc ecx
mov edx, dword [esi + 0x84]
mov cl, byte [ebp + ecx - 0x14]
mov byte [eax + edx], cl
inc eax
inc ebx
inc ebx
inc dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
inc ebx
cmp byte [edx + ecx], 0
jne 0x4f8c7f
mov ecx, dword [esi + 0x84]
push 0x611224
mov byte [eax + ecx], 0
push dword [esi + 0x84]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059ca15
leave
ret 8
Function at 0x4f91e7
Capabilities:
Parse credit card information

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x1a4
mov eax, dword [0x665ebc]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x7c]
push esi
push edi
mov edi, dword [ebp + 0x78]
mov esi, ecx
mov dword [ebp - 0x130], eax
test edi, edi
jne 0x4f9221
mov dword [esi + 0x90], 0x6a
xor eax, eax
jmp 0x4f93fe
push ebx
push dword [esi + 0x88]
call fcn.00564e55
push dword [esi + 0x8c]
call fcn.00564e55
push edi
call fcn.0059bf90
add eax, 0xa
push eax
call fcn.00564e4a
push 0x29
mov dword [esi + 0x88], eax
call fcn.00564e4a
mov dword [esi + 0x8c], eax
mov eax, dword [esi + 0x88]
mov byte [eax], 0
mov eax, dword [esi + 0x8c]
mov byte [eax], 0
mov eax, dword [esi + 0x88]
add esp, 0x14
jmp 0x4f93e5
mov cl, byte [edi]
cmp cl, 0x3d
jne 0x4f93e1
cmp byte [edi + 1], 0x3f
jne 0x4f93e1
inc edi
inc edi
xor ecx, ecx
jmp 0x4f92a9
mov edx, dword [esi + 0x8c]
mov byte [ecx + edx], al
inc ecx
inc edi
cmp ecx, 0x28
jg 0x4f9411
mov al, byte [edi]
cmp al, 0x3f
jne 0x4f9295
mov eax, dword [esi + 0x8c]
mov byte [ecx + eax], 0
push dword [esi + 0x8c]
push dword [ebp - 0x130]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
inc edi
cmp byte [edi + 1], 0x3f
mov al, byte [edi]
mov byte [ebp - 0x125], al
jne 0x4f9431
inc edi
inc edi
push edi
mov dword [ebp - 0x134], edi
xor ebx, ebx
call fcn.0059bf90
pop ecx
cmp eax, 2
jb 0x4f9431
mov al, byte [edi]
test al, al
je 0x4f9431
cmp al, 0x3f
jne 0x4f930c
cmp byte [edi + 1], 0x3d
je 0x4f9310
inc edi
inc ebx
jmp 0x4f92f8
inc edi
inc edi
test ebx, ebx
jl 0x4f9431
cmp ebx, 0xc7
ja 0x4f9431
push ebx
push dword [ebp - 0x134]
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
mov byte [ebp + ebx - 0x124], 0
call fcn.0059bf90
pop ecx
cmp eax, 3
jb 0x4f9367
cmp byte [edi], 0xd
jne 0x4f9367
cmp byte [edi + 1], 0xa
jne 0x4f9367
mov al, byte [edi + 2]
cmp al, 0x20
je 0x4f9364
cmp al, 9
jne 0x4f9367
add edi, 3
mov al, byte [ebp - 0x125]
mov byte [ebp - 0x5c], 0
cmp al, 0x51
je 0x4f939e
cmp al, 0x71
je 0x4f939e
cmp al, 0x42
je 0x4f9385
cmp al, 0x62
jne 0x4f941d
push 0xc8
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x124]
push eax
mov ecx, esi
call fcn.004f90e3
jmp 0x4f93b5
push 0xc8
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x124]
push eax
mov ecx, esi
call fcn.004f9177
test eax, eax
jne 0x4f9429
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x5c]
push eax
call fcn.0059bf90
add dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
pop ecx
jmp 0x4f93eb
mov byte [eax], cl
inc eax
inc edi
mov dword [ebp - 0x12c], eax
cmp byte [edi], 0
jne 0x4f927a
mov byte [eax], 0
mov eax, dword [esi + 0x88]
pop ebx
mov ecx, dword [ebp + 0x6c]
pop edi
xor ecx, ebp
pop esi
call fcn.0059ca15
add ebp, 0x70
leave
ret 8
mov dword [esi + 0x90], 0x96
jmp 0x4f943b
mov dword [esi + 0x90], 0x94
jmp 0x4f943b
mov dword [esi + 0x90], eax
jmp 0x4f943b
mov dword [esi + 0x90], 0x97
xor eax, eax
jmp 0x4f93fd
Function at 0x4f9b8c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x665ebc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
or dword [esi + 0x210], 0xffffffff
mov dword [esi + 0x224], eax
lea eax, [esi + 0x220]
mov dword [eax], edx
mov eax, dword [eax + 4]
xor ebx, ebx
mov dword [esi + 0x234], eax
lea eax, [esi + 0x109]
push edi
mov dword [esi], vtable.CUT_MapFileDataSource.0
mov dword [esi + 0x214], ebx
mov dword [esi + 0x218], ebx
mov dword [esi + 0x244], 1
mov dword [esi + 0x230], edx
mov byte [eax], bl
mov edi, 0x104
cmp ecx, ebx
je 0x4f9c18
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov byte [esi + 0x20d], bl
lea eax, [esi + 4]
mov byte [eax], bl
cmp dword [ebp - 0x110], ebx
je 0x4f9c43
push edi
push dword [ebp - 0x110]
mov dword [esi + 0x244], ebx
push eax
call fcn.005a8a98
add esp, 0xc
mov byte [esi + 0x108], bl
jmp 0x4f9c68
lea eax, [ebp - 0x10c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esi + 4]
push eax
push ebx
push 0x6112c4
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059ca15
leave
ret 0x10
Function at 0x4fa599
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
jne 0x4fa5ab
or eax, 0xffffffff
jmp 0x4fa5da
cmp dword [esi + 8], 0
je 0x4fa5ba
mov eax, dword [esi]
push 2
push 0
call dword [eax + 0x14]
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4fa5a6
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x5035e1
Capabilities:
Query environment variable

Disassembly:
push 0x850
mov eax, 0x5eb3b6
call fcn.0059cac3
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x420]
mov dword [esi + 4], ebx
mov dword [ebp - 4], ebx
call fcn.004aafa5
mov eax, dword [esi + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x50361a
push eax
call fcn.00564e3f
pop ecx
mov dword [esi + 8], ebx
lea eax, [esi + 0x10]
mov dword [ebp - 0x85c], eax
mov byte [eax], bl
mov eax, dword [ebp + 8]
push SysReAllocStringLen
lea ecx, [ebp - 0x420]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x810], eax
call fcn.004aafcd
mov eax, str.SoftwareMicrosoftWindows_Live_Mail
cmp dword [esi + 0x810], ebx
jne 0x503653
mov eax, str.SoftwareMicrosoftWindows_Mail
push eax
lea ecx, [ebp - 0x420]
call fcn.004ab3d4
lea ecx, [ebp - 0x420]
cmp eax, ebx
jne 0x503682
mov dword [esi + 4], 3
mov byte [ebp - 4], bl
call fcn.004ac1a5
xor eax, eax
call fcn.0059cb1f
ret 4
mov edi, str.Salt
push edi
call fcn.004ab0a5
cmp eax, ebx
mov dword [esi + 0xc], eax
jge 0x5036a3
mov dword [esi + 4], 3
lea ecx, [ebp - 0x420]
jmp 0x503670
push eax
call fcn.00564e4a
pop ecx
mov dword [esi + 8], eax
lea ecx, [ebp - 0x420]
cmp eax, ebx
jne 0x5036c0
mov dword [esi + 4], 2
jmp 0x503670
push dword [esi + 0xc]
push eax
push edi
call fcn.004ab993
cmp eax, ebx
jne 0x5036d7
mov dword [esi + 4], 1
jmp 0x50369b
lea ecx, [ebp - 0x858]
call fcn.00427139
push ebx
push str.Store_Root
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.004ab69a
mov edi, eax
cmp edi, ebx
je 0x503718
push 0x400
push dword [ebp - 0x85c]
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push edi
call fcn.00564e3f
pop ecx
jmp 0x503764
lea ecx, [ebp - 0x858]
call fcn.00499c2d
mov eax, str.MicrosoftWindows_Live_Mail
cmp dword [esi + 0x810], ebx
jne 0x503735
mov eax, str.MicrosoftWindows_Mail
push eax
push ebx
lea ecx, [ebp - 0x858]
call fcn.00499340
lea ecx, [ebp - 0x858]
call fcn.004992e9
cmp eax, ebx
je 0x503764
lea eax, [ebp - 0x858]
push eax
push dword [ebp - 0x85c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x858]
mov byte [ebp - 4], 1
call fcn.0042719c
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], bl
call fcn.004ac1a5
xor eax, eax
inc eax
jmp 0x50367a
Function at 0x506db2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 2], bl
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
cmp eax, ebx
je 0x506dda
mov dword [eax], ebx
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x506f68
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0xc]
jge 0x506f68
mov ecx, dword [esi + 0x14]
imul eax, eax, 0x70
mov eax, dword [eax + ecx]
push edi
mov dword [ebp + 8], eax
push ebx
add eax, 4
push eax
push dword [esi]
call fcn.005a4c1b
push dword [esi]
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x1c]
push 4
push eax
call fcn.005a54a5
push edi
push 2
push dword [esi]
call fcn.005a4c1b
push dword [esi]
lea eax, [ebp - 2]
push edi
push edi
push eax
call fcn.005a54a5
push edi
push edi
push dword [esi]
call fcn.005a4c1b
add esp, 0x44
cmp byte [ebp - 2], bl
mov dword [ebp - 8], ebx
jle 0x506e8a
push dword [esi]
lea eax, [ebp - 1]
push edi
push edi
push eax
mov byte [ebp - 1], bl
call fcn.005a54a5
push dword [esi]
lea eax, [ebp - 0xc]
push edi
push 3
push eax
mov dword [ebp - 0xc], ebx
call fcn.005a54a5
add esp, 0x20
cmp byte [ebp - 1], 0x84
je 0x506f4e
cmp byte [ebp - 1], 4
movsx eax, byte [ebp - 2]
je 0x506f59
inc dword [ebp - 8]
cmp dword [ebp - 8], eax
jl 0x506e46
mov eax, ebx
cmp dword [ebp - 0x10], ebx
jne 0x506eaf
cmp eax, ebx
je 0x506eaf
push ebx
push eax
push dword [esi]
call fcn.005a4c1b
push dword [esi]
lea eax, [ebp - 0x10]
push edi
push 4
push eax
call fcn.005a54a5
add esp, 0x1c
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], ebx
mov dword [ebp - 8], eax
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x506f3c
mov eax, dword [ebp - 8]
push ebx
add eax, 8
push eax
push dword [esi]
call fcn.005a4c1b
push dword [esi]
lea eax, [ebp - 0x14]
push edi
push 2
push eax
mov dword [ebp - 0x14], ebx
call fcn.005a54a5
push edi
push 2
push dword [esi]
call fcn.005a4c1b
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.005a54a5
movsx eax, word [ebp - 0x14]
add dword [ebp + 8], eax
mov eax, dword [ebp + 8]
inc eax
push eax
push dword [ebp + 0xc]
call fcn.005a8d26
add esp, 0x40
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x506f3c
movsx eax, word [ebp - 0x14]
push dword [esi]
mov ecx, dword [ebp + 0xc]
sub ecx, eax
add ecx, dword [ebp + 8]
push edi
push eax
push ecx
call fcn.005a54a5
add esp, 0x10
cmp dword [ebp - 8], ebx
jne 0x506ebf
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov byte [eax + ecx], bl
mov eax, dword [ebp + 0x10]
pop edi
cmp eax, ebx
je 0x506f49
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
jmp 0x506f6a
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x506e8a
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax*4 + 0xc]
add eax, dword [ebp + 8]
jmp 0x506e8c
xor eax, eax
pop esi
pop ebx
leave
ret 0xc
Function at 0x506f70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0xc], ecx
mov byte [ebp - 1], 0
test ebx, ebx
jl 0x5070c3
mov esi, dword [ebp + 8]
cmp ebx, dword [esi + 4]
jge 0x5070c3
push 0
lea eax, [ebx + 8]
push eax
push dword [esi]
call fcn.005a4c1b
push dword [esi]
xor edi, edi
inc edi
push edi
lea eax, [ebp + 8]
push 4
push eax
call fcn.005a54a5
push edi
push 5
push dword [esi]
call fcn.005a4c1b
push dword [esi]
lea eax, [ebp - 1]
push edi
push edi
push eax
call fcn.005a54a5
push edi
push 2
push dword [esi]
call fcn.005a4c1b
add esp, 0x44
push dword [esi]
lea eax, [ebp + 0xc]
push edi
push 4
push eax
call fcn.005a54a5
add esp, 0x10
cmp dword [ebp + 0xc], 0
jle 0x507004
push dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
push esi
call fcn.00506f70
test eax, eax
je 0x5070c3
movsx eax, byte [ebp - 1]
add eax, dword [esi + 0x10]
add ebx, 0x18
imul eax, eax, 0x70
push eax
push dword [esi + 0x14]
call fcn.005a8d26
pop ecx
pop ecx
mov dword [esi + 0x14], eax
test eax, eax
je 0x5070c3
movsx eax, byte [ebp - 1]
add dword [esi + 0x10], eax
and dword [ebp - 8], 0
test eax, eax
jle 0x5070bf
push 0
push ebx
push dword [esi]
call fcn.005a4c1b
push dword [esi]
lea eax, [ebp - 0x10]
push edi
push 4
push eax
call fcn.005a54a5
push dword [esi]
lea eax, [ebp + 8]
push edi
push 4
push eax
call fcn.005a54a5
push dword [esi]
lea eax, [ebp + 0xc]
push edi
push 4
push eax
call fcn.005a54a5
mov eax, dword [esi + 0xc]
imul eax, eax, 0x70
add eax, dword [esi + 0x14]
push 0x70
push 0
push eax
call fcn.0059cb30
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
imul eax, eax, 0x70
mov edx, dword [ebp - 0x10]
add esp, 0x48
mov dword [eax + ecx], edx
inc dword [esi + 0xc]
add ebx, 0xc
cmp dword [ebp + 0xc], 0
jle 0x5070af
push dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
push esi
call fcn.00506f70
test eax, eax
je 0x5070c3
movsx eax, byte [ebp - 1]
inc dword [ebp - 8]
cmp dword [ebp - 8], eax
jl 0x50703a
mov eax, edi
jmp 0x5070c5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x5070cc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push 0
push 0xe4
push dword [esi]
mov ebx, ecx
call fcn.005a4c1b
push dword [esi]
lea eax, [ebp - 4]
push 1
push 4
push eax
call fcn.005a54a5
push 0
push 0xc4
push dword [esi]
call fcn.005a4c1b
push dword [esi]
lea eax, [ebp + 8]
push 1
push 4
push eax
call fcn.005a54a5
add esp, 0x38
cmp dword [ebp + 8], 0
jle 0x507127
push dword [ebp - 4]
mov ecx, ebx
push esi
call fcn.00506f70
jmp 0x507129
xor eax, eax
pop esi
pop ebx
leave
ret 4