joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4819ec
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
call fcn.0046ee4c
push 0x14
call fcn.004fb25b
mov edi, eax
pop ecx
test edi, edi
je 0x481b9f
mov esi, edi
mov dword [edi], ebx
neg esi
lea eax, [esp + 0x14]
push eax
sbb esi, esi
mov ecx, edi
and esi, 0x7ff8fff2
add esi, 0x8007000e
call fcn.00481ed4
mov eax, dword [ebp + 0xc]
push ebx
push ebx
push 1
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x481acd
mov ecx, dword [section..data]
mov ebx, 0x80070000
cmp ecx, section..data
je 0x481b42
test byte [ecx + 0x1c], 8
je 0x481b42
cmp byte [ecx + 0x19], 2
jb 0x481b42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x481aa4
movzx esi, si
or esi, ebx
call fcn.0042386b
push esi
push 0x412b08
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xb
jmp 0x481b37
movzx esi, si
or esi, ebx
mov ebx, dword [esp + 0x10]
jmp 0x481b66
mov dword [edi + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push 0x481990
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x481b57
mov ecx, dword [section..data]
mov ebx, 0x80070000
cmp ecx, section..data
je 0x481b42
test byte [ecx + 0x1c], 8
je 0x481b42
cmp byte [ecx + 0x19], 2
jb 0x481b42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x481b1e
movzx esi, si
or esi, ebx
call fcn.0042386b
push esi
push 0x412b10
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xc
mov edx, 0x412b68
pop ecx
call fcn.0042371b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jg 0x481abf
jmp 0x481ac4
push 0x2710
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
jns 0x481b83
mov eax, dword [edi]
test eax, eax
je 0x481b7c
and dword [edi], 0
add eax, 0x1c
push eax
call fcn.0043e9b0
push edi
call fcn.004fb234
pop ecx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x481b92
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x481be0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x481be0
mov esi, 0x8007000e
mov eax, dword [section..data]
cmp eax, section..data
je 0x481be0
test byte [eax + 0x1c], 8
je 0x481be0
cmp byte [eax + 0x19], 2
jb 0x481be0
call fcn.0042386b
push esi
push 0x412b00
push eax
mov eax, dword [section..data]
mov edx, 0x412b68
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.0042371b
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x481bf1
add ecx, 0x1c
push ecx
call fcn.0043e9b0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4824d8
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
mov eax, dword [0x500144]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0xc]
push edi
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, 0xc9
mul dword [edi + 8]
push esi
mov ecx, eax
mov eax, 0x2a69c000
mul dword [edi + 8]
push 0x40ad94
add ecx, edx
sub dword [esp + 0x18], eax
push ecx
sbb dword [esp + 0x20], ecx
lea eax, [esp + 0x274]
push eax
mov ecx, edi
call fcn.00482a94
test eax, eax
js 0x4825f0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4825f0
mov ebx, 0x208
test byte [esp + 0x18], 0x10
jne 0x4825d5
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x14]
ja 0x4825d5
jb 0x482581
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x10]
jae 0x4825d5
lea eax, [edi + 0x20]
cmp word [eax], 0
je 0x4825a8
lea ecx, [esp + 0x44]
push ecx
push eax
push 0x409520
lea eax, [esp + 0x274]
push ebx
push eax
call fcn.0046444a
add esp, 0x14
jmp 0x4825c3
lea eax, [esp + 0x44]
push eax
push 0x40e370
lea eax, [esp + 0x270]
push ebx
push eax
call fcn.0046444a
add esp, 0x10
test eax, eax
js 0x4825e9
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x482564
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x474]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004fb5e0
mov esp, ebp
pop ebp
ret 4
Function at 0x482c13
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x208
push eax
push dword [ebp + 8]
push 0
push 2
push 0x412f6c
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x482c4e
mov ecx, dword [ebp + 8]
mov edx, 0x208
push 0x412b78
call fcn.0044f2df
leave
ret 0xc

Function at 0x483ae9
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x500144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x198]
mov ebx, ecx
push eax
push 2
xor esi, esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, eax
test edi, edi
je 0x483b64
mov eax, dword [section..data]
cmp eax, section..data
je 0x483b51
test byte [eax + 0x1c], 1
je 0x483b51
cmp byte [eax + 0x19], 2
jb 0x483b51
call fcn.0042386b
push edi
push eax
mov eax, dword [section..data]
mov edx, 0x413390
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xf
pop ecx
call fcn.00421fda
test edi, edi
jg 0x483b59
mov esi, edi
jmp 0x483b6b
movzx esi, di
or esi, 0x80070000
jmp 0x483b6b
mov dword [ebx + 0x10], 1
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fb5e0
leave
ret

Function at 0x48a524
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
cmp dword [ebp - 0x10], 1
setne al
mov dword [esi + 0xc], eax
mov eax, esi
pop esi
leave
ret
Function at 0x48b40b
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x500144]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x90], 0x80
push eax
lea eax, [ebp - 0x8c]
push eax
push ecx
test edx, edx
je 0x48b468
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x48b470
call fcn.0048b320
mov esi, eax
jmp 0x48b545
call dword [sym.imp.WS2_32.dll_getpeername]
jmp 0x48b457
mov cx, word [ebp - 0x8c]
test edi, edi
je 0x48b480
movzx eax, cx
mov dword [edi], eax
cmp dword [ebp - 0x94], esi
je 0x48b4ed
mov edi, esi
cmp cx, 2
je 0x48b496
cmp cx, 0x17
jne 0x48b4a7
push dword [ebp - 0x8a]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
jmp 0x48b4ac
mov edi, 0x8000ffff
mov ecx, dword [ebp - 0x94]
mov dword [ecx], esi
mov esi, edi
test edi, edi
jns 0x48b4ed
mov eax, dword [section..data]
cmp eax, section..data
je 0x48b545
test byte [eax + 0x1c], 8
je 0x48b545
cmp byte [eax + 0x19], 2
jb 0x48b545
call fcn.0042386b
push edi
push 0x414cc8
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xb
jmp 0x48b53a
test ebx, ebx
je 0x48b545
mov edx, dword [ebp - 0x90]
lea ecx, [ebp - 0x8c]
push ebx
call fcn.0048b339
mov esi, eax
test esi, esi
jns 0x48b545
mov eax, dword [section..data]
cmp eax, section..data
je 0x48b545
test byte [eax + 0x1c], 8
je 0x48b545
cmp byte [eax + 0x19], 2
jb 0x48b545
call fcn.0042386b
push esi
push 0x414ce8
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xc
mov edx, 0x414d0c
pop ecx
call fcn.0042371b
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fb5e0
leave
ret 0xc
Function at 0x48f401
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov eax, edx
mov edx, ecx
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], esi
push edi
test ecx, ecx
jne 0x48f45c
mov eax, dword [section..data]
cmp eax, section..data
je 0x48f452
test byte [eax + 0x1c], 8
je 0x48f452
cmp byte [eax + 0x19], 2
jb 0x48f452
push 0x415368
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x21
mov edx, 0x4154b8
pop ecx
call fcn.0044fb0f
mov esi, 0x80070057
jmp 0x48f59a
mov ebx, dword [ebp + 8]
mov dword [ecx], esi
test ebx, ebx
jne 0x48f48c
mov eax, dword [section..data]
cmp eax, section..data
je 0x48f452
test byte [eax + 0x1c], 8
je 0x48f452
cmp byte [eax + 0x19], 2
jb 0x48f452
push 0x415380
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x22
jmp 0x48f447
mov dword [ebx], esi
test eax, eax
jne 0x48f4b9
mov eax, dword [section..data]
cmp eax, section..data
je 0x48f452
test byte [eax + 0x1c], 8
je 0x48f452
cmp byte [eax + 0x19], 2
jb 0x48f452
push 0x415350
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x23
jmp 0x48f447
mov dword [eax], esi
test edx, edx
jne 0x48f4ed
mov eax, dword [section..data]
cmp eax, section..data
je 0x48f452
test byte [eax + 0x1c], 8
je 0x48f452
cmp byte [eax + 0x19], 2
jb 0x48f452
push 0x4153a0
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x24
jmp 0x48f447
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x4153b0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x48f55a
mov eax, dword [section..data]
cmp eax, section..data
je 0x48f547
test byte [eax + 0x1c], 1
je 0x48f547
cmp byte [eax + 0x19], 3
jb 0x48f547
call fcn.0042386b
push edi
push eax
mov eax, dword [section..data]
mov edx, 0x4154b8
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x25
pop ecx
call fcn.00421fda
test edi, edi
jg 0x48f54f
mov esi, edi
jmp 0x48f59a
movzx esi, di
or esi, 0x80070000
jmp 0x48f59a
cmp dword [ebp - 4], esi
je 0x48f59a
mov eax, dword [ebp - 0xc]
xor edi, edi
inc edi
mov dword [ebp - 8], 4
mov dword [eax], 2
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x4153c4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48f598
cmp dword [ebp - 4], esi
jne 0x48f59a
mov dword [ebx], edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x48f5a9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], esi
push edi
test eax, eax
jne 0x48f5fd
mov eax, dword [section..data]
cmp eax, section..data
je 0x48f5f3
test byte [eax + 0x1c], 8
je 0x48f5f3
cmp byte [eax + 0x19], 2
jb 0x48f5f3
push 0x415368
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x26
mov edx, 0x4154b8
pop ecx
call fcn.0044fb0f
mov esi, 0x80070057
jmp 0x48f773
mov ebx, dword [ebp + 0xc]
mov dword [eax], esi
test ebx, ebx
jne 0x48f62d
mov eax, dword [section..data]
cmp eax, section..data
je 0x48f5f3
test byte [eax + 0x1c], 8
je 0x48f5f3
cmp byte [eax + 0x19], 2
jb 0x48f5f3
push 0x415380
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x27
jmp 0x48f5e8
mov dword [ebx], esi
test edx, edx
jne 0x48f65a
mov eax, dword [section..data]
cmp eax, section..data
je 0x48f5f3
test byte [eax + 0x1c], 8
je 0x48f5f3
cmp byte [eax + 0x19], 2
jb 0x48f5f3
push 0x4153f0
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x28
jmp 0x48f5e8
xor eax, eax
mov word [edx], ax
test ecx, ecx
jne 0x48f695
mov eax, dword [section..data]
cmp eax, section..data
je 0x48f5f3
test byte [eax + 0x1c], 8
je 0x48f5f3
cmp byte [eax + 0x19], 2
jb 0x48f5f3
push 0x4153a0
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x29
jmp 0x48f5e8
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x208
push eax
push edx
lea eax, [ebp - 0xc]
push eax
push esi
push 0x41540c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x48f702
mov eax, dword [section..data]
cmp eax, section..data
je 0x48f6ef
test byte [eax + 0x1c], 1
je 0x48f6ef
cmp byte [eax + 0x19], 3
jb 0x48f6ef
call fcn.0042386b
push edi
push eax
mov eax, dword [section..data]
mov edx, 0x4154b8
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x2a
pop ecx
call fcn.00421fda
test edi, edi
jg 0x48f6f7
mov esi, edi
jmp 0x48f773
movzx esi, di
or esi, 0x80070000
jmp 0x48f773
xor edi, edi
inc edi
cmp dword [ebp - 0xc], edi
jne 0x48f73b
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 4
mov dword [eax], edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x415420
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48f737
cmp dword [ebp - 8], esi
jne 0x48f773
mov dword [ebx], edi
jmp 0x48f773
mov eax, dword [section..data]
cmp eax, section..data
je 0x48f773
test byte [eax + 0x1c], 1
je 0x48f773
cmp byte [eax + 0x19], 2
jb 0x48f773
call fcn.0042386b
mov ecx, dword [section..data]
mov edx, 0x4154b8
push esi
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x2b
pop ecx
call fcn.00421fda
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x48f782
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov eax, edx
mov edx, ecx
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], esi
push edi
test ecx, ecx
jne 0x48f7dd
mov eax, dword [section..data]
cmp eax, section..data
je 0x48f7d3
test byte [eax + 0x1c], 8
je 0x48f7d3
cmp byte [eax + 0x19], 2
jb 0x48f7d3
push 0x415368
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x2c
mov edx, 0x4154b8
pop ecx
call fcn.0044fb0f
mov esi, 0x80070057
jmp 0x48f91d
mov ebx, dword [ebp + 8]
mov dword [ecx], esi
test ebx, ebx
jne 0x48f80d
mov eax, dword [section..data]
cmp eax, section..data
je 0x48f7d3
test byte [eax + 0x1c], 8
je 0x48f7d3
cmp byte [eax + 0x19], 2
jb 0x48f7d3
push 0x415380
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x2d
jmp 0x48f7c8
mov dword [ebx], esi
test eax, eax
jne 0x48f83a
mov eax, dword [section..data]
cmp eax, section..data
je 0x48f7d3
test byte [eax + 0x1c], 8
je 0x48f7d3
cmp byte [eax + 0x19], 2
jb 0x48f7d3
push 0x415450
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x2e
jmp 0x48f7c8
mov dword [eax], 6
test edx, edx
jne 0x48f876
mov eax, dword [section..data]
cmp eax, section..data
je 0x48f7d3
test byte [eax + 0x1c], 8
je 0x48f7d3
cmp byte [eax + 0x19], 2
jb 0x48f7d3
push 0x4153a0
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x2f
jmp 0x48f7c8
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x41546c
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x48f8e3
mov eax, dword [section..data]
cmp eax, section..data
je 0x48f8d0
test byte [eax + 0x1c], 1
je 0x48f8d0
cmp byte [eax + 0x19], 3
jb 0x48f8d0
call fcn.0042386b
push edi
push eax
mov eax, dword [section..data]
mov edx, 0x4154b8
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x30
pop ecx
call fcn.00421fda
test edi, edi
jg 0x48f8d8
mov esi, edi
jmp 0x48f91d
movzx esi, di
or esi, 0x80070000
jmp 0x48f91d
mov ecx, dword [ebp - 0xc]
xor edi, edi
mov eax, dword [ebp - 4]
inc edi
mov dword [ebp - 8], 4
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x415484
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48f91b
cmp dword [ebp - 4], esi
jne 0x48f91d
mov dword [ebx], edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x48fdde
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x41551c
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov ebx, section..data
test edi, edi
je 0x48fe8b
push 0x415534
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x34], eax
test eax, eax
jne 0x48fe45
mov eax, dword [section..data]
cmp eax, ebx
je 0x48fe45
test byte [eax + 0x1c], 1
je 0x48fe45
cmp byte [eax + 0x19], 3
jb 0x48fe45
call fcn.0042386b
push eax
mov eax, dword [section..data]
mov edx, 0x415704
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x10
pop ecx
call fcn.004238e7
push 0x415548
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x38], eax
test eax, eax
jne 0x48fe8b
mov eax, dword [section..data]
cmp eax, ebx
je 0x48fe8b
test byte [eax + 0x1c], 1
je 0x48fe8b
cmp byte [eax + 0x19], 3
jb 0x48fe8b
call fcn.0042386b
push eax
mov eax, dword [section..data]
mov edx, 0x415704
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x11
pop ecx
call fcn.004238e7
xor ebx, ebx
cmp dword [esi + 0x34], ebx
je 0x48fe9b
cmp dword [esi + 0x38], ebx
jne 0x48ff5d
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
test edi, edi
je 0x48feac
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x407b54
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x48ff53
push 0x415560
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x2c], eax
test eax, eax
jne 0x48ff0a
mov eax, dword [section..data]
cmp eax, section..data
je 0x48ff0a
test byte [eax + 0x1c], 1
je 0x48ff0a
cmp byte [eax + 0x19], 3
jb 0x48ff0a
call fcn.0042386b
push eax
mov eax, dword [section..data]
mov edx, 0x415704
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x12
pop ecx
call fcn.004238e7
push 0x415574
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x48ff53
mov eax, dword [section..data]
cmp eax, section..data
je 0x48ff53
test byte [eax + 0x1c], 1
je 0x48ff53
cmp byte [eax + 0x19], 3
jb 0x48ff53
call fcn.0042386b
push eax
mov eax, dword [section..data]
mov edx, 0x415704
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x13
pop ecx
call fcn.004238e7
cmp dword [esi + 0x2c], ebx
je 0x48ff69
cmp dword [esi + 0x30], ebx
je 0x48ff69
mov dword [esi + 0x3c], 1
mov dword [esi + 0x40], edi
jmp 0x48ff7a
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
test edi, edi
je 0x48ff7a
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x3c]
pop edi
pop esi
pop ebx
ret
Function at 0x492275
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov eax, ecx
mov ebx, edx
xor ecx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
push esi
push edi
test eax, eax
je 0x49231a
test ebx, ebx
je 0x49231a
mov edi, dword [ebp + 8]
test edi, edi
je 0x49231a
mov dword [ebx], ecx
mov dword [edi], ecx
lea ecx, [ebp - 4]
push ecx
push 0xfffffffffffffffe
pop edx
mov ecx, eax
call fcn.00426552
mov esi, eax
test esi, esi
js 0x49232e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], eax
add ecx, 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], ecx
push eax
push 1
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x49231f
mov esi, dword [ebp - 0x10]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
test eax, eax
jne 0x492302
mov esi, 0x8007000e
jmp 0x49231f
push esi
push dword [ebp - 0xc]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [edi], esi
xor esi, esi
mov dword [ebx], eax
jmp 0x49231f
mov esi, 0x80070057
cmp dword [ebp - 0xc], 0
je 0x49232e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x49233d
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x80004001
push edi
test ecx, ecx
je 0x4923d1
test edx, edx
je 0x4923d1
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4923d1
mov dword [ebx], eax
xor edi, edi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
push 1
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edx
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x4923b6
mov esi, dword [ebp - 8]
cmp esi, 2
jb 0x4923cf
mov eax, dword [ebp - 4]
mov ecx, esi
shr ecx, 1
cmp word [eax + ecx*2 - 2], di
jne 0x4923cf
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x4923ba
mov esi, 0x8007000e
xor eax, eax
jmp 0x4923d6
push esi
push dword [ebp - 4]
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [ebx], edi
xor eax, eax
mov esi, eax
jmp 0x4923d6
xor eax, eax
mov esi, 0x80070057
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4923f5
mov edx, dword [ebp - 8]
test edx, edx
je 0x4923ec
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4923e4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x492404
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edi
mov eax, edx
mov dword [ebp - 8], eax
mov esi, 0x80004005
test ecx, ecx
je 0x49248c
test eax, eax
je 0x49248c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x49248c
lea edx, [ebp - 4]
mov dword [ebx], edi
push edx
push edi
push 0x40000001
push eax
push ecx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x492491
mov eax, dword [ebp - 4]
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x492463
mov esi, 0x8007000e
jmp 0x492491
lea eax, [ebp - 4]
push eax
push edi
push 0x40000001
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x492483
mov dword [ebx], edi
xor esi, esi
jmp 0x492491
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x492491
mov esi, 0x80070057
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x4924a0
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov eax, edx
mov dword [ebp - 8], ecx
push esi
xor edx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov esi, 0x80004005
push edi
test ecx, ecx
je 0x49252d
test eax, eax
je 0x49252d
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x49252d
push edx
push edx
mov dword [eax], edx
lea eax, [ebp - 4]
push eax
push edx
push 1
push edx
push ecx
mov dword [ebx], edx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x492532
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x4924fd
mov esi, 0x8007000e
jmp 0x492532
xor ecx, ecx
lea eax, [ebp - 4]
push ecx
push ecx
push eax
push edi
push 1
push ecx
push dword [ebp - 8]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x492524
mov eax, dword [ebp - 0xc]
xor esi, esi
mov dword [eax], edi
mov eax, dword [ebp - 4]
mov dword [ebx], eax
jmp 0x492532
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x492532
mov esi, 0x80070057
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4