joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fa5c
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push 1
push dword [ebp + 8]
xor ebx, ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x42fa90
push esi
push 0x84000000
push esi
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp ebx, esi
je 0x42fa9d
push ebx
call edi
cmp dword [ebp - 4], esi
je 0x42faa7
push dword [ebp - 4]
call edi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401264
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401264
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4306cb
Capabilities:
Get geographical location

Disassembly:
push 8
mov eax, 0x485207
call fcn.004622a9
mov edi, ecx
mov esi, dword [ebp + 8]
push str.useriduser_idcountrycodecountry
xor ebx, ebx
push str.uidcc
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00407db6
lea eax, [ebp + 8]
push 0x92
push eax
call fcn.00426c9a
pop ecx
pop ecx
push dword [eax]
mov ecx, esi
push 0x48c91c
mov byte [ebp - 4], 1
call fcn.00407db6
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401264
lea eax, [ebp + 8]
push 0x91
push eax
call fcn.00426c9a
pop ecx
pop ecx
push dword [eax]
mov ecx, esi
push str.source
mov byte [ebp - 4], 2
call fcn.00407db6
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401264
lea eax, [ebp + 8]
push 0x95
push eax
call fcn.00426c9a
pop ecx
pop ecx
push dword [eax]
mov ecx, esi
push 0x48c904
mov byte [ebp - 4], 3
call fcn.00407db6
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401264
push dword [edi + 0x110]
mov ecx, esi
push str.accepted_offers
call fcn.00407db6
lea eax, [ebp - 0x14]
push 0x9c
push eax
call fcn.00426c9a
pop ecx
pop ecx
push dword [eax]
mov ecx, esi
push 0x48c8f4
mov byte [ebp - 4], 4
call fcn.00407db6
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401264
call fcn.0046234e
ret 4

Function at 0x4329fb
Capabilities:
Resume thread

Disassembly:
push 0
mov eax, 0x4857f0
call fcn.00462276
mov edi, ecx
push 0x28
mov dword [ebp - 4], 2
call fcn.0043dd3a
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x432a29
mov ecx, eax
call fcn.004305b1
mov esi, eax
jmp 0x432a2b
xor esi, esi
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.004039d8
lea eax, [ebp + 0x10]
push eax
lea ecx, [esi + 0x10]
call fcn.004039d8
mov eax, dword [edi + 0x140]
mov dword [esi + 4], eax
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 8]
call fcn.004039d8
mov eax, dword [edi + 0x20]
push ebx
push 4
push ebx
push ebx
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
push esi
push 0x432634
mov byte [esi + 0x1c], bl
mov byte [esi + 0x1d], bl
mov dword [esi + 0x14], eax
call fcn.00441fa5
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x432a91
mov dword [eax + 0x28], ebx
mov eax, dword [esi + 0x18]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x432ac2
mov esi, dword [ebp + 0x14]
imul esi, esi, 0x44
mov ebx, 0x48c3dc
push ebx
lea ecx, [esi + 0x4b5ba8]
call fcn.00403a25
push ebx
lea ecx, [esi + 0x4b5bac]
call fcn.00403a25
mov byte [edi + 0x165], 1
mov byte [edi + 0x166], 1
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401264
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401264
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00401264
call fcn.0046234e
ret 0x10
Function at 0x4364ef
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
je 0x436503
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov byte [esi + 8], 0
pop esi
ret

Function at 0x43663f
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 8], bl
jne 0x43665d
push ebx
push ebx
push esi
push 0x43661c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov dword [esi + 0x10], ebx
mov byte [esi + 8], 1
pop esi
pop ebx
ret

Function at 0x438f22
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00461bc0
add esp, 0xc
mov dword [ebp - 0x44], 0x44
cmp byte [ebp + 0x10], bl
je 0x438f54
push 0xb
pop eax
mov dword [ebp - 0x18], 1
mov word [ebp - 0x14], ax
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne al
pop ebx
leave
ret 0xc

Function at 0x438f79
Capabilities:
Create process on windows

Disassembly:
push 1
xor eax, eax
push eax
push eax
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test eax, eax
setne al
ret 8

Function at 0x438f96
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp + 8]
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x438fc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
ret 4
Function at 0x440a00
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x487577
call fcn.00462276
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x440a25
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x440a6b
lea ecx, [ebp - 0x10]
call fcn.004036bd
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043ded2
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401264
mov eax, esi
call fcn.0046234e
ret 8

Function at 0x442f11
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x442f59
call fcn.0043fcbb
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x442f59
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x442f9c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x442f85
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x442f85
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x442f99
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x444701
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x444725
cmp dword [edi + 0x54], 0
jne 0x444725
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0043fcbb
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004446c2
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x44af8f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x44afd6
call fcn.0043fcbb
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x44afd6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x44aff2
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0044ab09
mov esi, eax
test edi, edi
je 0x44aff0
test ebx, ebx
je 0x44aff0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x44f480
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x44f4ab
call fcn.0043fcbb
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x44f4ce
push eax
push dword [esi + 4]
call fcn.0044f406
push esi
push eax
mov ecx, 0x4b80c0
call fcn.0044f07a
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x44fd33
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x487e4d
call fcn.00462276
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0044fcf3
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.004036bd
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x44fd99
push eax
push dword [esi + 8]
call fcn.0044f406
push dword [esi + 0xc]
mov ecx, 0x4b80c0
push eax
call fcn.0044f07a
mov eax, esi
call fcn.0046234e
ret 0x18
Function at 0x462267
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b42dc]
jne 0x462271
repz ret
jmp fcn.0046c9ac

Function at 0x479c84
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0046a984
and dword [ebp - 4], 0
cmp dword [0x4b8e90], 0
mov ebx, eax
jne 0x479d35
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x479de6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x49d760
push edi
call esi
test eax, eax
je 0x479de6
push eax
call fcn.0046a912
mov dword [esp], 0x49d750
push edi
mov dword [0x4b8e90], eax
call esi
push eax
call fcn.0046a912
mov dword [esp], 0x49d73c
push edi
mov dword [0x4b8e94], eax
call esi
push eax
call fcn.0046a912
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4b8e98], eax
call esi
push eax
call fcn.0046a912
pop ecx
mov dword [0x4b8ea0], eax
test eax, eax
je 0x479d35
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046a912
pop ecx
mov dword [0x4b8e9c], eax
mov eax, dword [0x4b8e9c]
cmp eax, ebx
je 0x479d8d
cmp dword [0x4b8ea0], ebx
je 0x479d8d
push eax
call fcn.0046a98d
push dword [0x4b8ea0]
mov esi, eax
call fcn.0046a98d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x479d8d
test edi, edi
je 0x479d8d
call esi
test eax, eax
je 0x479d84
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x479d84
test byte [ebp - 0xc], 1
jne 0x479d8d
or dword [ebp + 0x10], 0x200000
jmp 0x479dc6
mov eax, dword [0x4b8e94]
cmp eax, ebx
je 0x479dc6
push eax
call fcn.0046a98d
pop ecx
test eax, eax
je 0x479dc6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x479dc6
mov eax, dword [0x4b8e98]
cmp eax, ebx
je 0x479dc6
push eax
call fcn.0046a98d
pop ecx
test eax, eax
je 0x479dc6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b8e90]
call fcn.0046a98d
pop ecx
test eax, eax
je 0x479de6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x479de8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402634
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
call esi
cmp eax, 0xffffffff
je 0x402655
push dword [ebp + 8]
call esi
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
pop esi
jne 0x402682
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x402682
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp dword [eax], 0
je 0x402682
push 4
push eax
lea eax, [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x402689
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
and dword [ebp - 4], 0
imul edx, edx, 0x9e3779b9
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
je 0x4026fe
mov esi, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp - 4]
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 4]
xor ebx, ecx
sub dword [ebp - 4], 0x61c88647
add ebx, eax
lea eax, [ebx + edi]
mov edi, eax
mov ebx, eax
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp - 4]
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 4]
xor ebx, eax
add ebx, ecx
cmp dword [ebp - 4], edx
lea ecx, [ebx + edi]
jne 0x4026ac
mov esi, dword [ebp + 0xc]
pop edi
pop ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
leave
ret

Function at 0x402706
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
imul eax, eax, 0x61c88647
mov esi, dword [esp + 0xc]
test eax, eax
mov edx, dword [esi]
mov ecx, dword [esi + 4]
je 0x40276e
mov esi, dword [esp + 8]
push ebx
push edi
mov edi, edx
mov ebx, edx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, edx
add eax, 0x61c88647
add edi, ebx
sub ecx, edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, ecx
add edi, ebx
sub edx, edi
test eax, eax
jne 0x402724
mov esi, dword [esp + 0x14]
pop edi
pop ebx
mov dword [esi], edx
mov dword [esi + 4], ecx
pop esi
ret

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x401090
Capabilities:
Move file

Disassembly:
push esi
push edi
push 1
mov esi, edx
mov edi, ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4010c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push edi
push str.do_move:_err_moving__s_____s___u_
call fcn.00401620
add esp, 0x10
mov eax, 1
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x4010d0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov ecx, str.br.dll.enc
xor ebx, ebx
call fcn.00401630
mov edi, eax
mov edx, edi
mov dword [ebp - 0x1c], edi
lea eax, [edx + 1]
nop
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x4010f0
sub edx, eax
xor eax, eax
add edx, 3
setb al
neg eax
or eax, edx
push eax
push 1
call fcn.00472df5
push 0x4bfdec
push edi
mov esi, eax
push 0x4bfdf0
push esi
mov dword [ebp - 0x10], esi
call fcn.00472d39
add esp, 0x18
mov ecx, str.logo.png
call fcn.00401630
mov edi, eax
mov edx, edi
mov dword [ebp - 0x14], edi
lea eax, [edx + 1]
lea ebx, [ebx]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x401140
sub edx, eax
xor eax, eax
add edx, 3
setb al
neg eax
or eax, edx
push eax
push 1
call fcn.00472df5
push 0x4bfdec
push edi
push 0x4bfdf0
push eax
mov dword [ebp - 4], eax
call fcn.00472d39
add esp, 0x18
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call esi
push dword [ebp - 4]
mov edi, eax
call esi
mov ecx, eax
cmp edi, 0xffffffff
jne 0x4011c0
cmp ecx, edi
jne 0x401195
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x10]
push dword [ebp - 0x1c]
call fcn.00472dbd
push edi
call fcn.00472dbd
push dword [ebp - 0x14]
call fcn.00472dbd
push dword [ebp - 4]
call fcn.00472dbd
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp ecx, 0xffffffff
mov ecx, dword [ebp - 4]
setne al
sub esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
lea eax, [ebp - 0xc]
push eax
jne 0x4011dc
mov ecx, dword [ebp - 0x14]
call fcn.004016f0
lea edx, [ebp - 8]
mov ecx, eax
call fcn.004013d0
mov ecx, dword [ebp - 8]
add esp, 0xc
mov edx, 0x20
call fcn.004017d0
push eax
push str.handle_update___key:__s_n
call fcn.00401620
mov ecx, dword [ebp - 0xc]
mov edx, 0x10
call fcn.004017d0
push eax
push str.handle_update___iv:__s_n
call fcn.00401620
mov edi, dword [ebp - 0x10]
lea edx, [ebp - 0x20]
mov ecx, edi
call fcn.00401750
mov esi, eax
push edi
push esi
push str.Read__u_bytes_from__s...
call fcn.00401620
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov edx, esi
push dword [ebp - 8]
call fcn.00401560
add esp, 0x24
test eax, eax
jne 0x401275
cmp dword [ebp - 0x18], ebx
mov ecx, 0x4bfe54
mov eax, 0x4bfe50
cmove eax, ecx
push eax
push str.handle_update:_Unable_to_map_new_dll_with__s_enc_key
call fcn.00401620
add esp, 8
mov ebx, 1
jmp 0x4012c4
mov ecx, eax
call fcn.004021f0
mov esi, dword [ebp - 0x1c]
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4012aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push edi
push str.do_move:_err_moving__s_____s___u_
call fcn.00401620
add esp, 0x10
mov ebx, 1
jmp 0x4012c4
cmp dword [ebp - 0x18], ebx
je 0x4012c4
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
call fcn.00401090
test eax, eax
mov ecx, 1
cmovne ebx, ecx
push dword [ebp - 8]
call fcn.00472dbd
push dword [ebp - 0xc]
call fcn.00472dbd
add esp, 8
test ebx, ebx
je 0x401198
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call esi
push dword [ebp - 4]
call esi
jmp 0x401198
Function at 0x401750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
push 0x4bff70
push esi
call fcn.00473268
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x401785
push esi
push str.Unable_to_open__s
call fcn.00401620
add esp, 8
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 2
push 0
push ebx
call fcn.00473ab2
push ebx
call fcn.004739b7
push 0
push 0
push ebx
mov esi, eax
call fcn.00473ab2
push esi
push 1
call fcn.00472df5
push ebx
push esi
mov edi, eax
push 1
push edi
call fcn.00473442
push ebx
mov esi, eax
call fcn.00473ba1
mov eax, dword [ebp - 4]
add esp, 0x38
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408860
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x408885
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
dec esi
jne 0x408876
pop edi
movzx eax, dl
pop esi
ret

Function at 0x4089d0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.00474020
mov eax, dword [0x4c5cb0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x408a57
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x408a57
lea eax, [esp + 0x114]
push eax
push dword [esp + 0x114]
lea eax, [esp + 0x10]
push 0x100
push eax
call fcn.004756f5
add esp, 0x10
lea ecx, [esp + 4]
test eax, eax
push 0
push ecx
mov ecx, 0x100
cmovs eax, ecx
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00472d2a
add esp, 0x108
ret
lea eax, [esp + 0x114]
push eax
push dword [esp + 0x114]
lea eax, [esp + 0x10]
push 0xff
push eax
call fcn.004756f5
add esp, 0x10
mov byte [esp + 0x107], 0
call fcn.00408890
test eax, eax
jle 0x408adb
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x408aef
push 0
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00472d2a
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.00472d2a
add esp, 0x108
ret