joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x42900c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403394
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403374
xor eax, eax
push ebp
push 0x40336d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4033b0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403374
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x42900c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x42900c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404048
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42a044], 0
je 0x4040a9
cmp word [0x42a218], 0xd7b2
jne 0x404071
cmp dword [0x42a220], 0
jbe 0x404071
mov eax, 0x42a214
call dword [0x42a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x429054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4040d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x42901c], 0
jne 0x4040c5
push 0
push 0x429074
push 0x429054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4041fc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026d8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x42a045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4041c4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40a4dc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a515
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404338
jmp 0x40a51e
mov eax, ebx
mov edx, esi
call fcn.0040429c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a528
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a549
mov al, byte [esp]
jmp 0x40a54b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40abd0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40aa48
mov eax, dword [0x42979c]
cmp byte [eax], 0
je 0x40ac3d
mov eax, dword [0x429694]
call fcn.00402c4c
call fcn.00402820
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407f0c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40ac84
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ac73
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x429670]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x42a710]
call fcn.0040583c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40b8f4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b958
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004044b0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407b50
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b95f
lea eax, [ebp - 0xc]
call fcn.00404248
ret

Function at 0x41f344
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041f1c8
dec esi
jne 0x41f366
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41fc14
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x42aa1c
cmp dword [edi], 0
jne 0x41fc90
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x42aa18]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4295b4
mov ecx, 2
call fcn.004028b4
mov edx, 0x41fbec
lea eax, [esi + 5]
call fcn.0041fc0c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041fc0c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41fc65
mov dword [0x42aa18], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4202ac
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x420415
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004042e0
mov eax, dword [ebp - 0x10]
call fcn.00420014
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4202fe
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404798
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0042072c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4203d3
xor eax, eax
push ebp
push 0x4203cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00420184
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00420444
test al, al
je 0x4203aa
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404338
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4203aa
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004046f8
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x4203a4
mov eax, dword [ebp - 0x14]
call fcn.004046f8
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404438
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.004202ac
dec ebx
cmp ebx, 0xffffffff
jne 0x42035d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4203d3
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00420184
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.004046f8
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00420170
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42041c
lea eax, [ebp - 0x3c]
call fcn.00404248
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040426c
ret
Function at 0x4203d3
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x420415
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004042e0
mov eax, dword [ebp - 0x10]
call fcn.00420014
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4202fe
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404798
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0042072c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4203d3
xor eax, eax
push ebp
push 0x4203cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00420184
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00420444
test al, al
je 0x4203aa
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404338
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4203aa
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004046f8
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x4203a4
mov eax, dword [ebp - 0x14]
call fcn.004046f8
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404438
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.004202ac
dec ebx
cmp ebx, 0xffffffff
jne 0x42035d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4203d3
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00420184
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.004046f8
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00420170
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42041c
lea eax, [ebp - 0x3c]
call fcn.00404248
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040426c
ret

Function at 0x420444
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00402d68
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x42983c]
cmp byte [edx + 0xc], 0
je 0x4204a8
mov edx, dword [0x429834]
cmp dword [edx], 2
jne 0x4204a8
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x420640
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00420028
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004046f8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x42069e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x42971c]
mov dl, 1
mov eax, dword [0x41ff20]
call fcn.0040ad80
call fcn.00403c24
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4206a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004046f8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x420700
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x429848]
mov dl, 1
mov eax, dword [0x41ff20]
call fcn.0040ad80
call fcn.00403c24
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00420058
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x421034
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.004046e8
mov eax, dword [ebp - 8]
call fcn.004046e8
mov eax, dword [ebp + 0xc]
call fcn.004046e8
xor eax, eax
push ebp
push 0x421122
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004042e0
mov esi, 0x15
mov edx, dword [ebp - 0xc]
mov eax, 0x42113c
call fcn.004047e0
mov ebx, eax
test ebx, ebx
je 0x4210c8
lea eax, [ebp - 0x10]
push eax
lea edx, [ebx + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 0xc]
call fcn.00404758
mov eax, dword [ebp - 0x10]
call fcn.00407b14
mov esi, eax
lea eax, [ebp - 0xc]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00404758
push 0
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 0xc]
call fcn.004046f8
push eax
mov eax, dword [ebp - 8]
call fcn.004046f8
push eax
push esi
mov eax, dword [ebp - 0xc]
call fcn.004046f8
push eax
push edi
call sub.wininet.dll_InternetConnectA
mov ebx, eax
push 0x421140
push ebx
call sub.wininet.dll_FtpSetCurrentDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421129
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040426c
lea eax, [ebp + 0xc]
call fcn.00404248
ret
Function at 0x421144
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004046e8
mov eax, dword [ebp - 8]
call fcn.004046e8
mov eax, dword [ebp - 0xc]
call fcn.004046e8
mov eax, dword [ebp + 0xc]
call fcn.004046e8
xor eax, eax
push ebp
push 0x4212ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004046f8
mov edi, eax
mov eax, edi
mov dl, 0x2f
call fcn.0040800c
mov ebx, eax
lea eax, [ebp - 0x1c]
lea edx, [ebx + 1]
call fcn.00404438
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
sub ecx, edi
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404758
xor eax, eax
mov dword [ebp - 0x10], eax
push 0
push 0x4212e4
push 0x4212e4
push 1
push 0x4212e8
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42129e
xor eax, eax
push ebp
push 0x42121b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
push eax
push esi
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.00421034
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x421235
test ebx, ebx
jne 0x421244
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x42129e
push 0
push 2
push 0x80
push 0
mov eax, dword [ebp - 8]
call fcn.004046f8
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004046f8
push eax
push ebx
call sub.wininet.dll_FtpGetFileA
mov dword [ebp - 0x10], eax
push ebx
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp dword [ebp - 0x10], 0
jne 0x42129e
cmp esi, 0x8000000
jne 0x42129e
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00421144
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4212d5
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040426c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040426c
lea eax, [ebp + 0xc]
call fcn.00404248
ret
Function at 0x421be8
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004046e8
mov eax, dword [ebp + 0xc]
call fcn.004046e8
xor eax, eax
push ebp
push 0x421d4b
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004215ec
mov ecx, dword [ebp - 4]
mov edx, 0x421d68
mov edi, dword [eax]
call dword [edi]
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
call fcn.004042e0
cmp dword [ebp - 0xc], 0
jne 0x421c58
lea edx, [ebp - 0x64]
mov eax, dword [0x42a710]
call fcn.0040becc
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0xc]
call fcn.00407de4
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00402d68
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d68
mov dword [ebp - 0x50], 0x44
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004046f8
push eax
push 0
push ebx
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004046f8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x421d1d
test esi, esi
je 0x421d03
push esi
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
sete byte [ebp - 5]
xor eax, eax
push ebp
push 0x421cf9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 5], 0
jne 0x421cef
cmp dword [ebp + 8], 0
je 0x421cef
push 0
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x421d03
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x421d10
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x421d1d
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421d52
lea eax, [ebp - 0x64]
call fcn.00404248
lea eax, [ebp - 0xc]
call fcn.00404248
lea eax, [ebp - 4]
call fcn.00404248
lea eax, [ebp + 0xc]
call fcn.00404248
ret

Function at 0x421e24
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x421eca
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x429604], 0
jne 0x421ea7
mov eax, 0x429604
mov edx, 0xc8
call fcn.00404828
push 0xc8
mov eax, dword [0x429604]
call fcn.004046f8
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, dword [0x429604]
call fcn.004046f8
mov edx, eax
lea eax, [ebp - 0x104]
call fcn.00402f68
lea edx, [ebp - 0x104]
lea eax, [ebp - 4]
call fcn.004044a4
mov edx, dword [ebp - 4]
mov eax, 0x429604
mov ecx, 0x421ee0
call fcn.0040454c
mov eax, ebx
mov edx, dword [0x429604]
call fcn.0040429c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421ed1
lea eax, [ebp - 4]
call fcn.00404248
ret
Function at 0x4241ec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, ecx
mov ebx, edx
mov esi, eax
mov eax, edi
call fcn.00404248
test ebx, ebx
je 0x42427c
cmp byte [esi], 0xff
je 0x424224
mov eax, edi
mov edx, ebx
call fcn.00404828
mov eax, edi
call fcn.00404750
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.004028b4
jmp 0x42427c
cmp ebx, 2
jle 0x42427c
mov edx, ebx
sub edx, 2
mov eax, edi
call fcn.00404828
inc esi
mov bl, byte [esi]
mov eax, dword [edi]
call fcn.00404500
mov ebp, eax
test ebp, ebp
jle 0x42426c
mov dword [esp], 1
inc esi
lea eax, [ebx + ebx*4]
sub al, 3
mov ebx, eax
mov eax, edi
call fcn.00404750
mov edx, dword [esp]
mov cl, byte [esi]
xor cl, bl
mov byte [eax + edx - 1], cl
inc dword [esp]
dec ebp
jne 0x42424c
mov eax, dword [edi]
call fcn.004046f8
mov edx, eax
mov eax, edi
call fcn.00404438
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x424520
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x424529
mov eax, dword [ebp - 4]
add esp, 0xfffff800
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004046e8
xor eax, eax
push ebp
push 0x4245ee
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0xffffffff
cmp dword [ebx + 4], 0xffffffff
je 0x4245d8
test edi, edi
je 0x42459d
lea edx, [ebp - 0x1404]
mov ecx, 0x1400
mov eax, dword [ebp - 4]
call fcn.00424134
test eax, eax
je 0x4245d8
push 0x10
lea edx, [ebx + 0x18]
push edx
push 0
push eax
lea eax, [ebp - 0x1404]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_sendto
mov esi, eax
jmp 0x4245d8
mov eax, dword [ebp - 4]
call fcn.004046f8
mov edx, eax
lea eax, [ebp - 0x2804]
call fcn.00407f48
lea eax, [ebp - 0x2804]
call fcn.00407f0c
push 0x10
lea edx, [ebx + 0x18]
push edx
push 0
push eax
lea eax, [ebp - 0x2804]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_sendto
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4245f5
lea eax, [ebp - 4]
call fcn.00404248
ret

Function at 0x424600
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffbf4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x140c], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4246b3
push dword fs:[eax]
mov dword fs:[eax], esp
or ebx, 0xffffffff
cmp dword [esi + 4], 0xffffffff
je 0x42469a
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x18]
push eax
push 0
push 0x1400
lea eax, [ebp - 0x1408]
push eax
mov eax, dword [esi + 4]
push eax
call sub.wsock32.dll_recvfrom
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42469a
push dword [esi + 0x1c]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00404438
lea ecx, [ebp - 0x140c]
lea eax, [ebp - 0x1408]
mov edx, ebx
call fcn.004241ec
mov edx, dword [ebp - 0x140c]
mov eax, edi
call fcn.0040429c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4246ba
lea eax, [ebp - 0x140c]
call fcn.00404248
ret