joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f2530
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404700
mov eax, dword [ebp - 8]
call fcn.00404700
mov eax, dword [ebp - 0xc]
call fcn.00404700
mov eax, dword [ebp + 0xc]
call fcn.00404700
xor eax, eax
push ebp
push 0x4f269a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ebx, 0x14
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 8]
call fcn.00404710
mov esi, eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], 3
mov eax, 0x4f26ac
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00404710
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4f2677
xor edx, edx
push ebp
push 0x4f2670
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 3
mov eax, dword [ebp + 0xc]
call fcn.00404710
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404710
push eax
mov ax, word [ebp + 8]
push eax
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetConnectA
test eax, eax
je 0x4f2659
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x4b
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4f2650
push 0
push 0
push 0x25
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionA
test eax, eax
jne 0x4f2654
xor eax, eax
jmp 0x4f2656
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2677
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f26a1
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404274
lea eax, [ebp + 0xc]
call fcn.00404250
ret
Function at 0x4f26b4
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
mov byte [ebp - 1], 0
mov ebx, 0x14
mov dword [ebp - 0x1c], 0x14
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x34], 2
mov eax, 0x4f277c
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 3
mov eax, 0x4f2780
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 1
push 0x4f277c
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4f2773
xor eax, eax
push ebp
push 0x4f276c
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x4b
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2773
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f29ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f2c00
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0x105
mov eax, dword [ebp - 0x18]
call fcn.0040281c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4f2a6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
je 0x4f2a54
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00404448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2a71
mov eax, dword [ebp - 8]
call fcn.0040283c
ret

Function at 0x4f3fcc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov bl, 2
lea eax, [ebp - 0xa]
xor ecx, ecx
mov edx, 0xa
call fcn.00402e48
push 0xa
lea eax, [ebp - 0xa]
push eax
push 0xd
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
je 0x4f4006
cmp byte [ebp - 0xa], 0x31
jne 0x4f4004
mov bl, 1
jmp 0x4f4006
xor ebx, ebx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f572c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.00451450
test al, al
je 0x4f57ea
mov byte [ebp - 9], 0
xor ebx, ebx
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 8], eax
jmp 0x4f57c8
cmp word [esi + 0x5f2], 0
je 0x4f577d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [esi + 0x5f4]
call dword [esi + 0x5f0]
mov al, byte [esi + 0x5e8]
or al, byte [ebp - 9]
jne 0x4f579f
cmp dword [ebp - 4], 0
jbe 0x4f579b
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
ja 0x4f579f
xor ebx, ebx
jmp 0x4f57a1
mov bl, 1
test bl, bl
jne 0x4f57ea
mov eax, dword [0x4fff28]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
jne 0x4f57ea
mov eax, dword [0x4fff28]
mov eax, dword [eax]
call fcn.0046a59c
push 1
call sub.kernel32.dll_Sleep_1
test esi, esi
je 0x4f57ea
cmp byte [esi + 0x588], 0
jne 0x4f57ea
mov edx, 0xfffffdf3
mov eax, esi
call fcn.0049b5c4
cmp eax, 4
jne 0x4f575a
mov byte [esi + 0x5e8], 0
test bl, bl
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f6be4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f6c53
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.004044c0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040e02c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6c5a
lea eax, [ebp - 0x10c]
call fcn.00404250
ret

Function at 0x4f85d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
mov dword [esp + 4], 1
push esp
push 0xf003f
push 0
push 0x4f8658
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [esp + 8], pe_nt_image_headers32
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0x4f869c
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4f863a
mov eax, ebx
lea edx, [esp + 0xc]
mov ecx, pe_nt_image_headers32
call fcn.004044c0
jmp 0x4f8646
mov eax, ebx
mov edx, 0x4f86a8
call fcn.004042a4
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
add esp, 0x10c
pop ebx
ret
Function at 0x4f86d8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404700
xor eax, eax
push ebp
push 0x4f8766
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4f8741
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404710
push eax
lea eax, [ebp - 8]
call fcn.004f85d4
mov eax, dword [ebp - 8]
call fcn.00404710
push eax
push 0x4f8774
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f874b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f876d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404274
ret

Function at 0x484cfa
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x484a08
or edx, edx
mov edi, edi
call fcn.00484d34
mov edx, edi
dec edi
sub edi, edx
xor dword [eax], ebx
and edx, edi
inc edx
mov edx, 0x9e124ed0
add eax, 2
sub edx, edx
add edx, edi
cmp eax, esi
jl fcn.00484cfa
mov edx, 0xdaaf51e3
add edx, edi
ret
Function at 0x30001113
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push 0
push dword [ebp + 8]
push 0
push 0x8000040
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x3000115b
push 0
push 0
push 0
push 0xf001f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jne 0x30001176
push 0x40
push 0x101000
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x30001197
push 0
push 0
push 0x3000119c
push 0x3000119c
push 0x80030008
call fcn.300010a1
add esp, 0x14
mov eax, dword [ebp - 4]
leave
ret
Function at 0x4011b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4011dd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4011fe
cmp esi, eax
jae 0x4011d7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011f0
cmp esi, eax
jae 0x4011d7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40ec20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x442418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0042fe37
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esi], method.CWnd.virtual_0
lea edi, [esi + 0x6c]
call fcn.004334c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1c], 1
lea ebp, [esi + 0x70]
call fcn.004334c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp], eax
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xa4], vtable.CFont.0
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xac], 0x444a94
lea ecx, [esi + 0xbc]
mov byte [esp + 0x1c], 4
call fcn.0042d6da
mov ecx, esi
mov byte [esp + 0x1c], 5
call fcn.0040d6d0
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov dword [esi + 0x128], eax
mov eax, dword [esp + 0x34]
test eax, eax
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov edx, eax
jne 0x40ece4
mov edx, 0x4449f8
test edx, edx
jne 0x40ecec
xor eax, eax
jmp 0x40ed00
mov eax, edx
lea ecx, [eax + 1]
mov dword [esp + 0x2c], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ecf5
sub eax, dword [esp + 0x2c]
push eax
push edx
mov ecx, edi
call fcn.00403000
mov edi, dword [esp + 0x38]
test edi, edi
mov edx, edi
jne 0x40ed18
mov edx, 0x4449f8
test edx, edx
jne 0x40ed20
xor eax, eax
jmp 0x40ed3b
mov eax, edx
lea ecx, [eax + 1]
mov dword [esp + 0x2c], ecx
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ed30
sub eax, dword [esp + 0x2c]
push eax
push edx
mov ecx, ebp
call fcn.00403000
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
push edi
push edx
mov edx, dword [esp + 0x2c]
push eax
push ebx
push ecx
push edx
mov ecx, esi
call fcn.0040ead0
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18
Function at 0x410050
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x442597
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], ebx
lea edi, [esi + 8]
mov dword [esi], 0x446748
mov dword [esp + 0x16c], ebx
mov dword [edi + 4], ebx
mov dword [edi], vtable.CFont.0
lea ecx, [esi + 0x3c]
mov byte [esp + 0x16c], 1
call fcn.004364b9
push ebx
lea eax, [esp + 0x14]
push eax
push 0x154
push 0x29
mov byte [esp + 0x17c], 2
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, edi
call fcn.00436c12
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 4
call edi
push 0xd
mov dword [esi + 0x10], eax
call edi
push 0xe
mov dword [esi + 0x14], eax
call edi
push 7
mov dword [esi + 0x1c], eax
call edi
push 0x11
mov dword [esi + 0x18], eax
call edi
mov edx, dword [esi + 0x10]
mov ecx, dword [esp + 0x164]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
pop edi
mov dword [esi + 0x2c], edx
mov dword [esi + 0x24], 0xc00000
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret

Function at 0x412100
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4427d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00412070
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004106f0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x412192
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4124a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], edi
call fcn.00433371
mov dword [ebp - 4], edi
push 0x4449f8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00403190
mov bl, 2
push 0x4449f8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00403190
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
push esi
mov byte [ebp - 4], 3
call fcn.004121b0
add esp, 0xc
cmp eax, edi
jne 0x412525
push esi
push 0x3eb
call fcn.0040f9c0
add esp, 8
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
push edx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x41254a
push esi
push 0x3ed
call fcn.0040f9c0
add esp, 8
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
push eax
push edi
push ecx
push edx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x412581
push esi
push 0x3f1
call fcn.0040f9c0
add esp, 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4125a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4125ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4125ea
mov dword [ebp - 4], 0xffffffff
call fcn.00433387
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x412604
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412620
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442878
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
xor esi, esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], esp
mov edi, 1
mov dword [ebp - 0x1c], esi
call fcn.00433371
mov dword [ebp - 4], esi
push 0x4449f8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00403190
mov bl, 2
push 0x4449f8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00403190
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
push esi
mov byte [ebp - 4], 3
call fcn.004121b0
add esp, 0xc
test eax, eax
jne 0x4126a3
push esi
push 0x3eb
call fcn.0040f9c0
add esp, 8
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4126d9
push esi
push 0x3f0
call fcn.0040f9c0
add esp, 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x412703
push esi
push 0x3f4
call fcn.0040f9c0
add esp, 8
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412723
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412768
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x412768
mov dword [ebp - 4], 0xffffffff
call fcn.00433387
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x412782
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x4173b3
call fcn.0043dfd1
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4173b3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4173a9
xor eax, eax
jmp 0x4174cc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x4173e3
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x4173e3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4174c9
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x417410
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00415ed0
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4174c9
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x417459
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x417459
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x417453
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00415ed0
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4174b9
and dword [ebp + 0xc], 0
jmp 0x4174b9
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4174b9
push 0xc
call fcn.004333bc
mov esi, eax
test esi, esi
pop ecx
je 0x41749b
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x41749d
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4174b4
push dword [ebp - 8]
call fcn.0042df44
jmp 0x4174b9
call fcn.0042df1b
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x41741e
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42026d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00420460
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x420308
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4595a8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x420308
cmp eax, 1
je 0x420329
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x420308
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4202d5
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x420304
xor eax, eax
inc eax
jmp 0x420348
cmp edi, eax
jae 0x42030c
xor eax, eax
jmp 0x420348
cmp eax, esi
jae 0x420313
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4595a8]
jmp 0x42032c
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42178f
Capabilities:
Terminate process

Disassembly:
push 8
push 0x44acc8
call fcn.004213d8
push 8
call fcn.0042368f
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4595e8], esi
jne 0x4217c3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4595e4], esi
mov al, byte [ebp + 0x10]
mov byte [0x4595e0], al
cmp dword [ebp + 0xc], edi
jne 0x42180d
cmp dword [0x45ae88], edi
je 0x4217fd
mov eax, dword [0x45ae84]
sub eax, 4
mov dword [0x45ae84], eax
cmp eax, dword [0x45ae88]
jb 0x4217fd
mov eax, dword [eax]
cmp eax, edi
je 0x4217de
call eax
jmp 0x4217de
push 0x4550b8
mov eax, 0x4550b0
call fcn.0042170d
pop ecx
push 0x4550c4
mov eax, 0x4550bc
call fcn.0042170d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x42183e
cmp dword [ebp + 0x10], edi
jne 0x42184c
mov dword [0x4595e8], esi
push dword [ebp + 8]
call fcn.004216cb
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x42184b
push 8
call fcn.004235da
pop ecx
ret
call fcn.00421413
ret