joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417cb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ca40
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x458320]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x45c1f8]
xor edi, edi
cmp ecx, edi
jne 0x417cfb
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x417d08
mov dword [ebp - 0x14], edi
jmp 0x417d20
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x417dbd
mov ecx, dword [0x45c1f8]
mov eax, dword [ecx]
cmp eax, edi
je 0x417ce7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x417ce7
mov dword [ebp - 4], edi
mov ebx, 0x45c1f8
call fcn.00417dd0
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x417d5e
mov dword [ebp - 0x18], 1
push 0x4559d0
lea eax, [ebp - 0x18]
push eax
call fcn.004291ae
mov ecx, esi
mov eax, dword [0x45c1f8]
call fcn.00418060
test eax, eax
jne 0x417d83
mov dword [ebp - 0x1c], 4
push 0x4559d0
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004291ae
mov dword [ebp - 4], 0xffffffff
jmp 0x417da8
mov edx, dword [0x45c1f8]
mov eax, dword [edx]
test eax, eax
je 0x417dbb
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417dd0
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x417dfd
xor ecx, ecx
jmp 0x417e09
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x417ebd
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x417e30
mov dword [esp + 0xc], esi
jmp 0x417e90
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x417e89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x417e7c
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x417e90
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x417e90
push 0x453ed0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x417e90
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x417eb3
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x417e22
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x417ed1
mov ecx, dword [ebx]
add ecx, 8
call fcn.00418160
test eax, eax
je 0x417ed1
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret
Function at 0x417ee0
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x44cacb
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x458320]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.004266b0
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x417f78
push 0x4559d0
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.004291ae
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [esp + 0x14], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x4198d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e4
mov eax, dword [0x458320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x104], 0
je 0x419903
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x104]
jmp 0x4199b9
xor eax, eax
mov word [ebp - 0x198], ax
push 0x18e
push 0
lea eax, [ebp - 0x196]
push eax
call fcn.004266b0
add esp, 0xc
mov dword [ebp - 0x19c], 0
mov eax, 0x202
mov word [ebp - 0x1a0], ax
mov dword [ebp - 0x1a4], 0
jmp 0x419953
mov eax, dword [ebp - 0x1a4]
add eax, 1
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], 5
jge 0x41998f
lea eax, [ebp - 0x198]
push eax
movzx ecx, word [ebp - 0x1a0]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
jne 0x419982
jmp 0x41998f
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x419944
cmp dword [ebp - 0x19c], 0
je 0x4199a3
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x104]
jmp 0x4199b9
mov eax, dword [ebp - 8]
mov dword [eax + 0x104], 1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x104]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042669e
mov esp, ebp
pop ebp
ret 8

Function at 0x419a10
Capabilities:
Receive data
Receive data on socket
Reference http user-agent string
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.00426e30
mov eax, dword [0x458320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0xffffffff
jne 0x419a3c
xor eax, eax
jmp 0x419ae2
mov byte [ebp - 0x808], 0
push 0x7ff
push 0
lea eax, [ebp - 0x807]
push eax
call fcn.004266b0
add esp, 0xc
mov eax, dword [ebp - 8]
add eax, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.GET__s_HTTP_1.1_r_nAccept:_text_html__application_xhtmlxml____r_nAccept_Language:_zh_CN_r_nUser_Agent:_Mozilla_5.0__Windows_NT_6.1__WOW64__Trident_7.0__rv:11.0__like_Gecko_r_nHost:__s_r_n_r_n
push 0x800
lea edx, [ebp - 0x808]
push edx
call fcn.00409610
add esp, 0x14
push 0
lea eax, [ebp - 0x808]
push eax
call fcn.00426da0
add esp, 4
push eax
lea ecx, [ebp - 0x808]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x419ad9
push 0x800
push 0
lea eax, [ebp - 0x1008]
push eax
call fcn.004266b0
add esp, 0xc
push 0
push 0x7ff
lea eax, [ebp - 0x1008]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x419add
xor eax, eax
jmp 0x419ae2
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042669e
mov esp, ebp
pop ebp
ret 4
Function at 0x419b60
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x458320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00426da0
add esp, 4
cmp eax, 0x100
jbe 0x419b90
xor eax, eax
jmp 0x419c34
mov eax, dword [ebp + 8]
push eax
push 0x100
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
call fcn.00409700
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x419bbe
xor eax, eax
jmp 0x419c34
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x419bdf
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x419c34
mov eax, 2
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
movzx eax, word [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
push 0x10
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x419c27
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x419c34
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042669e
mov esp, ebp
pop ebp
ret 8

Function at 0x41a370
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x458320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0x234], 0
push 0x228
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.004266b0
add esp, 0xc
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x41a436
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41a42c
mov eax, dword [ebp - 0x22c]
cmp eax, dword [ebp + 8]
jne 0x41a418
mov eax, dword [ebp + 0x10]
sub eax, 1
push eax
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004274b7
add esp, 0xc
mov dword [ebp - 0x238], 1
jmp 0x41a42c
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41a3e7
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042669e
mov esp, ebp
pop ebp
ret
Function at 0x41a450
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
push 1
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41a491
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x41a487
mov eax, 1
jmp 0x41a493
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41a4a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x458320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x238], 0
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.004266b0
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x41a548
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41a53e
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp + 8]
jne 0x41a52a
mov eax, dword [ebp - 0x220]
mov dword [ebp - 8], eax
jmp 0x41a53e
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41a514
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042669e
mov esp, ebp
pop ebp
ret

Function at 0x41a560
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41a5fb
cmp dword [ebp - 4], 2
jne 0x41a5fb
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0xc]
call fcn.00401860
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401860
lea ecx, [ebp - 0x10]
call fcn.00419270
movzx eax, al
test eax, eax
jne 0x41a5eb
push 0
push 0x44e560
lea ecx, [ebp - 0x10]
call fcn.00418fb0
test eax, eax
jl 0x41a5eb
mov dword [ebp - 0x54], 1
lea ecx, [ebp - 0x10]
call fcn.00401910
lea ecx, [ebp - 0xc]
call fcn.00401910
mov eax, dword [ebp - 0x54]
jmp 0x41a5fd
lea ecx, [ebp - 0x10]
call fcn.00401910
lea ecx, [ebp - 0xc]
call fcn.00401910
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a750
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 8
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xb7
je 0x41a793
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 5
jne 0x41a7b4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x41a7b0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax], 0
xor al, al
jmp 0x41a7b6
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41cba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x490
mov eax, dword [0x458320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
call fcn.00402500
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1c]
call fcn.0041f5a0
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041ce70
lea ecx, [ebp - 0x440]
call fcn.0041fa10
push 0x400
mov eax, dword [ebp + 8]
push eax
call fcn.0041c950
add esp, 8
mov dword [ebp - 0x444], eax
push 2
push 0
mov eax, dword [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x41cc1e
call fcn.0040d2e0
mov dword [ebp - 0x20], eax
jmp 0x41cd4f
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x41cc46
call fcn.0040d2e0
mov dword [ebp - 0x20], eax
jmp 0x41cd4f
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x41cc6a
call fcn.0040d2e0
mov dword [ebp - 0x20], eax
jmp 0x41cd4f
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
add eax, 1
cmp eax, dword [ebp - 0x38]
jae 0x41ccb4
mov dword [ebp - 0x490], 0x8007000e
lea ecx, [ebp - 0x440]
call fcn.0041fa30
lea ecx, [ebp - 0x1c]
call fcn.0041f5c0
mov eax, dword [ebp - 0x490]
jmp 0x41cd81
mov eax, dword [ebp - 0x38]
add eax, 1
push eax
lea ecx, [ebp - 0x440]
call fcn.0041fa80
lea ecx, [ebp - 0x440]
call fcn.0041fa60
test eax, eax
jne 0x41ccde
mov dword [ebp - 0x20], 0x8007000e
jmp 0x41cd4f
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x440]
call fcn.0041fa60
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
push 0
call fcn.00402500
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x41cd1d
call fcn.0040d2e0
mov dword [ebp - 0x20], eax
jmp 0x41cd4f
lea ecx, [ebp - 0x440]
call fcn.0041fa60
xor ecx, ecx
mov edx, dword [ebp - 0x448]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x440]
call fcn.0041fa60
push eax
lea ecx, [ebp - 0x28]
call fcn.0041cea0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x2c], 0
je 0x41cd5f
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48c], eax
lea ecx, [ebp - 0x440]
call fcn.0041fa30
lea ecx, [ebp - 0x1c]
call fcn.0041f5c0
mov eax, dword [ebp - 0x48c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042669e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41e6c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x458320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x10]
call fcn.004095d0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0041e650
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41e725
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x26c], eax
lea ecx, [ebp - 0x10]
call fcn.004095b0
mov eax, dword [ebp - 0x26c]
jmp 0x41e7b3
mov dword [ebp - 0x20], 0x100
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41e78b
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041e6c0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41e782
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x268], eax
lea ecx, [ebp - 0x10]
call fcn.004095b0
mov eax, dword [ebp - 0x268]
jmp 0x41e7b3
mov dword [ebp - 0x20], 0x100
jmp 0x41e72c
lea ecx, [ebp - 0x10]
call fcn.00409580
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.0041e510
mov dword [ebp - 0x264], eax
lea ecx, [ebp - 0x10]
call fcn.004095b0
mov eax, dword [ebp - 0x264]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042669e
mov esp, ebp
pop ebp
ret 4

Function at 0x41ed50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor eax, eax
jne 0x41ed5c
xor eax, eax
jne 0x41ed5c
xor eax, eax
cmp dword [ebp + 0xc], 0
setne al
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41ed7d
mov eax, 0xd
jmp 0x41edd8
xor eax, eax
jne 0x41ed64
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax*2]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x10], 1
jne 0x41ed8e
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4209a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x458320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 4
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.004266b0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push str.jsflag__d
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.004213e0
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x218]
push eax
push 0x44ead4
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 0x21c], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042669e
mov esp, ebp
pop ebp
ret

Function at 0x420a40
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x458320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.004266b0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push str.jsflag__d
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004213e0
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push 0x44ead4
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042669e
mov esp, ebp
pop ebp
ret

Function at 0x421d20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00421cf0
test eax, eax
je 0x421d3c
xor eax, eax
jmp 0x421d7a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
jne 0x421d49
xor eax, eax
jmp 0x421d7a
mov eax, dword [ebp - 4]
add eax, 8
push eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
push 0
push 0
call fcn.00428452
add esp, 0x18
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
call fcn.00421cf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x423856
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x45a9b8], 0
push esi
jne 0x4237c4
call fcn.004236d8
test eax, eax
je 0x423807
mov eax, dword [0x45a9b8]
cmp eax, 1
jne 0x4237e5
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x423807
pop esi
ret
push eax
call dword [0x45a9c0]
test eax, eax
jne 0x42384f
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42380b
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x45a9b8]
call dword [0x45a9c0]
mov edi, eax
test edi, edi
je 0x423830
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x42384c
mov edi, esi
add esi, 0xff0
push edi
push dword [0x45a9b8]
call dword [0x45a9bc]
add edi, 0x10
cmp edi, esi
jb 0x423838
mov eax, edi
pop edi
pop esi
ret
jmp 0x4237b1
Function at 0x423c90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x458320]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
test ebx, ebx
jne 0x423cc8
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042669e
add esp, 0x20c
ret
push esi
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004266b0
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x423d93
mov ecx, ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x423d00
sub ecx, esi
sar ecx, 1
mov edx, 0x103
sub edx, ecx
cmp eax, edx
jae 0x423d93
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x423d22
mov eax, dword [0x453afc]
mov dword [edi], eax
mov eax, ebx
mov edx, ebx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x423d40
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x423d54
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042669e
add esp, 0x20c
ret
mov ecx, dword [esp + 0x210]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0042669e
add esp, 0x20c
ret