joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413334
Capabilities:
Identify system language via api
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x422728]
movzx ecx, byte [eax + 0x26]
movzx edx, byte [eax + 0x24]
push ebx
push esi
add ecx, eax
xor ebx, ebx
push edi
mov byte [ebp - 5], bl
lea esi, [edx + ecx + 0x12c]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
mov eax, dword [0x422728]
mov al, byte [eax + 0x25]
xor cl, cl
cmp al, bl
jbe 0x413387
movzx edx, cl
cmp word [esi + edx*2], di
je 0x413383
inc cl
cmp cl, al
jb 0x413372
jmp 0x413387
mov byte [ebp - 5], 1
call fcn.004030f6
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4213a8
call esi
inc dword [0x422710]
mov edi, 0x421422
push edi
push 0x40351a
call fcn.004148d3
cmp byte [ebp - 5], bl
jne 0x413474
call fcn.004131e5
lea eax, [ebp - 0x19c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
inc dword [0x422710]
push ebx
push 0x410504
call fcn.004148d3
mov eax, dword [0x422714]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.0040ea97
inc dword [0x422710]
push edi
push 0x410b58
call fcn.004148d3
inc dword [0x422710]
push 0x42220c
call esi
inc dword [0x422710]
push 0x401c1c
push ebx
lea eax, [ebp + 8]
mov dword [0x422228], ebx
mov dword [0x422224], ebx
mov dword [ebp + 8], ebx
call fcn.0040e108
cmp eax, ebx
je 0x41344a
push eax
mov eax, dword [ebp + 8]
call fcn.0040baff
push dword [ebp + 8]
call fcn.00403dc8
push 0x422710
push 0x40ba34
call fcn.004148d3
test eax, eax
je 0x413463
dec dword [0x422710]
inc dword [0x422710]
push ebx
push 0x413125
call fcn.004148d3
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x413bd0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
call fcn.00413a30
push 0x14
pop eax
call fcn.00403db0
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x413c00
xor eax, eax
jmp 0x413c9a
push 0x4213e8
push edi
mov eax, 0x200
push eax
push eax
push 0xff
push 6
push 3
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x413c32
push esi
call fcn.00403dc8
jmp 0x413bf9
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 4], eax
call ebx
push dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
or eax, 0xffffffff
call fcn.0040403e
push esi
push 0x413a51
mov dword [esi + 0x10], eax
call fcn.004148d3
pop ebx
test eax, eax
jne 0x413c8d
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 4]
call edi
push dword [esi + 8]
call edi
push dword [esi + 0x10]
call fcn.00403dc8
jmp 0x413c2a
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop edi
pop esi
leave
ret 8
Function at 0x413cef
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x214]
mov byte [ebp - 1], 1
call fcn.00413a30
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebx, ebx
mov edi, 0xc0000000
jmp 0x413d3b
cmp byte [ebp - 1], bl
je 0x413e53
push 0xffffffffffffffff
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
mov byte [ebp - 1], bl
push ebx
push ebx
push 3
push ebx
push 3
push edi
lea eax, [ebp - 0x214]
push eax
call esi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x413d20
push ebx
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
mov dword [ebp + 8], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x413e4a
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp + 8]
push eax
push 4
pop edi
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 8]
call esi
test eax, eax
je 0x413e4a
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 8]
call esi
test eax, eax
je 0x413e4a
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 8]
call esi
test eax, eax
je 0x413e4a
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call esi
test eax, eax
je 0x413e4a
cmp dword [ebp + 8], edi
jne 0x413e4a
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push dword [ebp - 8]
mov dword [ebp + 0x18], ebx
call esi
test eax, eax
je 0x413e46
cmp dword [ebp + 8], edi
jne 0x413e46
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jbe 0x413e4a
call fcn.00403db0
mov edi, eax
cmp edi, ebx
je 0x413e3a
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x18]
push edi
push dword [ebp - 8]
call esi
test eax, eax
je 0x413e3a
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp + 8]
jne 0x413e3a
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x413e3e
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x413e3e
mov dword [ecx], edi
mov dword [eax], edx
jmp 0x413e4a
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.00403dc8
jmp 0x413e4a
or dword [ebp - 0xc], 0xffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x413eb6
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
xor ebx, ebx
mov eax, 0x148
mov dword [0x42272c], ebx
call fcn.00403db0
mov dword [0x422724], eax
cmp eax, ebx
jne 0x413ee2
xor al, al
jmp 0x41401f
push esi
mov dword [ebp - 8], ebx
push edi
movzx esi, word [ebp - 8]
shl esi, 2
mov eax, dword [esi + 0x41c150]
movzx eax, byte [eax]
inc eax
call fcn.00403db0
mov edi, eax
cmp edi, ebx
je 0x413f68
mov ecx, dword [esi + 0x41c150]
cmp byte [ecx], bl
mov byte [ebp - 1], bl
jle 0x413f30
xor eax, eax
mov dl, 0xba
mov bl, byte [eax + ecx + 1]
add bl, dl
inc byte [ebp - 1]
mov byte [eax + edi], bl
movzx eax, byte [ebp - 1]
movsx ebx, byte [ecx]
add dl, 2
cmp eax, ebx
jl 0x413f14
xor ebx, ebx
movzx eax, byte [ebp - 1]
mov byte [eax + edi], bl
cmp byte [edi], 0x57
jne 0x413f6f
mov eax, dword [esi + 0x41c150]
movzx eax, byte [eax]
lea ecx, [edi + 1]
dec eax
push ecx
call fcn.004044a0
mov ecx, dword [0x422724]
push edi
mov dword [esi + ecx], eax
call fcn.00403dc8
mov eax, dword [0x422724]
cmp dword [esi + eax], ebx
jne 0x413f78
xor al, al
jmp 0x41401d
mov eax, dword [0x422724]
inc edi
mov dword [esi + eax], edi
inc dword [ebp - 8]
cmp word [ebp - 8], 0x52
jb 0x413ee7
mov ecx, dword [0x4213c4]
mov eax, dword [ecx + 0x3c]
add eax, ecx
movzx edx, word [eax + 6]
xor esi, esi
cmp dx, bx
jbe 0x413fc4
push 3
pop edi
cmp di, dx
jae 0x413fc4
movzx edx, word [eax + 0x14]
lea eax, [edx + eax + 0x90]
mov esi, dword [eax + 0xc]
push dword [eax + 8]
add esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x413fc4
xor esi, esi
cmp byte [0x42140c], 3
mov dword [0x422728], esi
jae 0x413fda
or dword [0x42272c], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 8], 0x103
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x414011
mov eax, dword [ebp - 8]
add eax, eax
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00403e1b
mov dword [0x422720], eax
cmp eax, ebx
jne 0x41401b
mov dword [0x422720], 0x402dd0
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x414022
Capabilities:
Get common file path

Disassembly:
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [0x42272c]
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
push 1
and ecx, 0xfffffff5
add ecx, 0x25
push ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
ret
Function at 0x4141f4
Capabilities:
Enumerate processes
Get common file path
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc5c
push esi
xor esi, esi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x414217
xor eax, eax
jmp 0x4143ac
test byte [0x42272c], 1
mov dword [ebp - 4], 0x103
je 0x414245
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x414257
mov word [ebp - 0x644], ax
jmp 0x414257
push 0x402dd4
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x42272c]
push ebx
not eax
push edi
and eax, 1
push 1
or eax, 0x24
push eax
lea eax, [ebp - 0xc5c]
push eax
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x43c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4143a2
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push dword [ebp + 8]
lea eax, [ebp - 0x418]
push eax
call edi
test eax, eax
jne 0x41438b
push dword [ebp - 0x434]
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x41438b
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x414388
push dword [ebp + 8]
lea eax, [ebp - 0xc5c]
push eax
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp word [ebp - 0x210], 0x5c
jne 0x414341
cmp word [ebp - 0x20e], 0x3f
jne 0x414341
cmp word [ebp - 0x20c], 0x3f
jne 0x414341
cmp word [ebp - 0x20a], 0x5c
jne 0x414341
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x208]
jmp 0x41434e
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
test eax, eax
jne 0x414388
cmp dword [ebp - 4], eax
jne 0x414363
mov eax, dword [ebp - 0x434]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa54]
push eax
push ebx
call fcn.00414837
test al, al
je 0x414388
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0xa54]
push eax
call edi
test eax, eax
je 0x4143b1
push ebx
call esi
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4142a7
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret 4
push ebx
call esi
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0x434]
jmp 0x4143aa

Function at 0x4143c1
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
call fcn.00414022
mov eax, dword [0x422724]
push dword [eax]
lea eax, [ebp - 0x208]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 6
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
lea eax, [ebp - 0x208]
push eax
call fcn.004068db
leave
ret
Function at 0x414418
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
xor bl, bl
call fcn.004044c0
xor esi, esi
push esi
mov edi, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [0x422724]
push esi
push 3
push esi
push esi
push esi
push dword [eax + 0x38]
mov dword [ebp - 0xc], edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x414556
lea eax, [ebp - 4]
push eax
mov eax, dword [0x422724]
push esi
push esi
push esi
push dword [eax + 0x40]
mov dword [ebp - 4], esi
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
mov eax, dword [ebp - 4]
lea eax, [eax + edi*2 + 0xa]
mov dword [ebp - 4], eax
call fcn.00403db0
mov edi, eax
test edi, edi
je 0x414546
lea eax, [ebp - 4]
push eax
mov eax, dword [0x422724]
push edi
push 0
push 0
push dword [eax + 0x40]
push dword [ebp - 8]
call esi
mov esi, edi
mov ecx, edi
movzx eax, word [esi]
test ax, ax
je 0x4144b6
cmp ax, 0x2c
jne 0x4144d5
mov eax, esi
sub eax, ecx
sar eax, 1
cmp eax, dword [ebp - 0xc]
jne 0x4144d2
push dword [ebp - 0xc]
push dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x4144df
lea ecx, [esi + 2]
cmp word [esi], 0
je 0x4144e3
inc esi
inc esi
jmp 0x4144a8
mov bl, 1
jmp 0x414540
mov ecx, edi
call fcn.004044c0
mov esi, eax
test esi, esi
jbe 0x414500
cmp word [edi + esi*2 - 2], 0x2c
je 0x414500
push 0x2c
pop eax
mov word [edi + esi*2], ax
inc esi
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [edi + esi*2]
push eax
call ebx
add esi, dword [ebp - 0xc]
push 0x402de4
lea eax, [edi + esi*2]
push eax
call ebx
lea eax, [esi + esi + 4]
push eax
mov eax, dword [0x422724]
push edi
push 1
push 0
push dword [eax + 0x40]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
push edi
call fcn.00403dc8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x414577
mov edi, dword [ebp - 0xc]
lea eax, [edi + edi + 2]
push eax
push dword [ebp + 8]
mov eax, dword [0x422724]
push 1
push dword [eax + 0x40]
push dword [eax + 0x3c]
push 0x80000001
call fcn.0040dd84
mov bl, al
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
Function at 0x4147d3
Capabilities:
Delete registry key

Disassembly:
push esi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x422724]
push dword [eax + 0x44]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push 0x80000001
call esi
mov eax, dword [0x422724]
push dword [eax + 0x44]
mov edi, 0x80000002
push edi
call esi
mov eax, dword [0x422724]
push dword [eax + 0x48]
push edi
call esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
push eax
push eax
push eax
push eax
mov eax, dword [0x422724]
push 0xe
push dword [eax + 0x28]
call fcn.00413cef
pop edi
pop esi
ret

Function at 0x4148d3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x4148fd
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edi
push 0x401718
mov edi, ecx
push edi
lea eax, [esp + 0x270]
push eax
mov dword [esp + 0x20], edx
call esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
and dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4149ec
cmp word [esp + 0x44], 0x2e
jne 0x41496d
cmp word [esp + 0x46], 0
je 0x4149cb
cmp word [esp + 0x46], 0x2e
jne 0x41496d
cmp word [esp + 0x48], 0
je 0x4149cb
mov ebx, dword [esp + 0x18]
shr ebx, 4
and bl, 1
jne 0x41498c
push dword [esp + 0x14]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x4149cb
lea eax, [esp + 0x44]
push eax
push edi
lea eax, [esp + 0x270]
push eax
call esi
test bl, bl
je 0x4149b6
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x268]
call fcn.004148fd
add dword [esp + 0xc], eax
jmp 0x4149cb
lea eax, [esp + 0x268]
push eax
call fcn.00404ea5
test al, al
je 0x4149cb
inc dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41494d
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415087
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [ebp + 0xc], 0
push esi
mov esi, eax
je 0x4150a2
push dword [0x421410]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov byte [ebp - 1], 1
test esi, esi
jbe 0x41512e
push ebx
push edi
mov edi, dword [ebp + 8]
add edi, 8
mov dword [ebp - 0xc], esi
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x415124
mov esi, dword [edi - 8]
movzx ebx, byte [edi + 4]
mov eax, esi
mov byte [ebp + 0xb], 0
call fcn.00407b08
cmp eax, 0x1e
jb 0x415120
lea eax, [ebp - 8]
push eax
push 0x40
push 0x1e
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x415120
push 0
add ebx, 0xfffffffb
push ebx
push dword [ebp - 0x10]
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x415108
mov byte [ebp + 0xb], 1
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x1e
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp byte [ebp + 0xb], 0
jne 0x415124
mov byte [ebp - 1], 0
add edi, 0x10
dec dword [ebp - 0xc]
jne 0x4150b9
pop edi
pop ebx
cmp byte [ebp + 0xc], 0
pop esi
je 0x415141
push dword [0x421410]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, byte [ebp - 1]
leave
ret 8
Function at 0x415148
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, eax
xor esi, esi
xor ecx, ecx
cmp ebx, esi
jbe 0x415176
mov eax, dword [ebp + 8]
add eax, 0xc
cmp dword [eax - 0xc], esi
je 0x415218
mov dword [eax - 4], esi
mov byte [eax], 0
inc ecx
add eax, 0x10
cmp ecx, ebx
jb 0x41515f
mov eax, ebx
imul eax, eax, 0x23
push edi
push 0x40
push 0x3000
push eax
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
cmp edi, esi
je 0x415290
push dword [0x421410]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebp - 4], esi
cmp ebx, esi
jbe 0x4151d4
mov esi, dword [ebp + 8]
add esi, 8
mov eax, dword [esi - 4]
push edi
push dword [esi - 8]
call fcn.00407b4d
test eax, eax
je 0x4151d2
mov dword [esi], edi
add edi, eax
inc dword [ebp - 4]
mov byte [esi + 4], al
add esi, 0x10
cmp dword [ebp - 4], ebx
jb 0x4151b0
xor esi, esi
cmp dword [ebp - 4], ebx
jne 0x415279
cmp ebx, esi
jbe 0x415269
mov edx, dword [ebp + 8]
mov dword [ebp + 8], ebx
mov eax, dword [edx + 8]
mov dword [ebp - 8], eax
mov eax, dword [edx]
mov dword [ebp - 4], eax
mov eax, dword [0x4213c4]
mov ecx, dword [eax + 0x3c]
lea ecx, [ecx + eax + 0x80]
mov esi, dword [ecx]
mov edi, eax
test esi, esi
jbe 0x415246
cmp dword [ecx + 4], 0x14
jbe 0x415246
lea ecx, [esi + eax]
jmp 0x415240
xor al, al
jmp 0x415293
lea esi, [eax + edi]
mov eax, dword [ecx + 0x10]
add eax, edi
jmp 0x415238
mov ebx, dword [ebp - 4]
cmp ebx, dword [eax]
jne 0x415232
mov ebx, dword [ebp - 8]
mov dword [eax], ebx
add esi, 4
add eax, 4
cmp dword [esi], 0
jne 0x415226
add ecx, 0x14
mov eax, dword [ecx]
test eax, eax
jne 0x41521c
mov edi, dword [edx + 8]
mov ecx, dword [edx]
xor esi, esi
lea eax, [esi + 0x4213d0]
cmp dword [eax], ecx
jne 0x415259
mov dword [eax], edi
add esi, 4
cmp esi, 0x18
jb 0x41524d
add edx, 0x10
dec dword [ebp + 8]
jne 0x4151eb
push dword [0x421410]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
jmp 0x415292
push esi
push dword [ebp + 8]
mov eax, ebx
call fcn.00415087
push dword [0x421410]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x416f19
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, 0x42276c
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 0xc]
call fcn.004159f7
mov esi, eax
cmp esi, 0xffffffff
je 0x416fe3
mov edi, esi
imul edi, edi, 0x30
add edi, dword [0x422760]
mov eax, dword [edi]
test al, 1
je 0x416fa5
mov edi, dword [edi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp byte [ebp + 8], 0
jne 0x416f6c
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
jmp 0x416f87
cmp byte [ebp + 8], 1
jne 0x416f80
mov ecx, dword [ebp + 0x10]
lea eax, [ecx + 0x18]
push eax
push dword [eax]
push dword [ecx + 0x14]
jmp 0x416f87
push dword [ebp + 0x18]
push 0
push 0
mov eax, esi
call fcn.00416a49
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x41702a
test al, 2
je 0x416fe3
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x2d
push dword [ebp + 0xc]
mov dword [ebp - 4], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
test eax, eax
je 0x416fdd
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push 0x2d
push dword [edi + 0x10]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov eax, dword [edi + 0x10]
mov dword [ebp + 0xc], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp + 8], 0
jne 0x417004
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x41702a
cmp byte [ebp + 8], 1
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
jne 0x41701e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
jmp 0x41702a
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x4174ec
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
push esi
push edi
lea eax, [ebp - 0x460]
xor ebx, ebx
push eax
mov byte [ebp - 1], bl
call fcn.004174cb
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x460]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, 0xffffffff
je 0x417550
push eax
call edi
cmp dword [ebp - 0x238], ebx
jbe 0x417544
cmp dword [ebp - 0x23c], ebx
jne 0x417544
mov al, 1
jmp 0x417608
lea eax, [ebp - 0x460]
push eax
call fcn.00404ea5
lea eax, [ebp - 0x258]
push eax
push str.C:Windows_system32lowsecuser.ds
call esi
cmp eax, 0xffffffff
je 0x417605
push eax
call edi
cmp dword [ebp - 0x238], ebx
ja 0x41757e
cmp dword [ebp - 0x23c], ebx
jbe 0x417605
mov eax, dword [0x422724]
push dword [eax + 0x1c]
push ebx
push 0x4213e8
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
je 0x4175a1
mov esi, eax
call fcn.00406953
mov esi, eax
jmp 0x4175a3
xor esi, esi
mov eax, dword [0x422724]
push ebx
push ebx
push ebx
push ebx
push 8
push dword [eax + 0x28]
call fcn.00413cef
cmp dword [ebp - 0x23c], ebx
jbe 0x4175ca
push str.C:Windows_system32lowsecuser.ds
call fcn.00404ea5
jmp 0x4175ec
cmp dword [ebp - 0x238], ebx
jbe 0x4175ec
push 3
lea eax, [ebp - 0x460]
push eax
push str.C:Windows_system32lowsecuser.ds
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne byte [ebp - 1]
mov eax, dword [0x422724]
push ebx
push ebx
push ebx
push ebx
push 7
push dword [eax + 0x28]
call fcn.00413cef
push esi
call fcn.00406974
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret