joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402410
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
lea edi, [ebp - 0x10]
push ebx
mov ebx, eax
sub esp, 0x3c
mov eax, dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [esp], 0xfffffff5
mov dword [ebp - 0x14], eax
call eax
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
je 0x402460
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [sym.imp.kernel32.dll_GetOEMCP]
mov dword [ebp - 0x28], edx
call edx
mov dword [esp + 0x1c], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [ebp - 0x20], eax
call eax
sub esp, 0x20
mov dword [ebp - 0x18], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
sub esp, 0xc
test eax, eax
je 0x402458
mov edx, dword [ebp - 0x28]
call edx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov ebx, dword [ebp - 0x20]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call ebx
mov esi, dword [ebp - 0x14]
sub esp, 0x20
mov dword [esp], 0xfffffff5
call esi
mov edx, dword [ebp - 0x18]
sub esp, 4
mov dword [esp + 0xc], edi
mov edi, dword [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp + 0x10], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov ecx, dword [ebp - 0x24]
sub esp, 0x14
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4031b0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
Function at 0x42bbf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b000]
push edi
or ebp, 0xffffffff
jmp 0x42bc12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42bc19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42bc08
mov eax, 1
add ebx, ebx
jne 0x42bc2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42bc20
jne 0x42bc3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42bc20
xor ecx, ecx
sub eax, 3
jb 0x42bc50
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42bcc2
mov ebp, eax
add ebx, ebx
jne 0x42bc5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42bc68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42bc8c
inc ecx
add ebx, ebx
jne 0x42bc78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42bc6d
jne 0x42bc89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42bc6d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42bcac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42bc9d
jmp 0x42bc0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42bcac
add edi, ecx
jmp 0x42bc0e
pop esi
mov edi, esi
mov ecx, 0xac
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42bcca
cmp byte [edi], 3
jne 0x42bcca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42bccf
lea edi, [esi + 0x29000]
mov eax, dword [edi]
or eax, eax
je 0x42bd47
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2bc48]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2bc84]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42bcfc
mov ecx, edi
jns 0x42bd2b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2bc88]
or eax, eax
je 0x42bd41
mov dword [ebx], eax
add ebx, 4
jmp 0x42bd19
call dword [esi + 0x2bc98]
mov ebp, dword [esi + 0x2bc8c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42bd7b
sub esp, 0xffffff80
jmp 0x401d20
Function at 0x40c2e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40a015
lea edi, [esi - 0x9015]
push edi
or ebp, 0xffffffff
jmp 0x40c302
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c309
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c2f8
mov eax, 1
add ebx, ebx
jne 0x40c31b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c310
jne 0x40c32c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c310
xor ecx, ecx
sub eax, 3
jb 0x40c340
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c3b2
mov ebp, eax
add ebx, ebx
jne 0x40c34b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c358
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c37c
inc ecx
add ebx, ebx
jne 0x40c368
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c35d
jne 0x40c379
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c35d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c39c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c38d
jmp 0x40c2fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c39c
add edi, ecx
jmp 0x40c2fe
pop esi
mov edi, esi
mov ecx, 0x1a6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c3ba
cmp byte [edi], 0
jne 0x40c3ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40c3bf
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c42e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc788]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc7d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c3ec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc7dc]
or eax, eax
je 0x40c428
mov dword [ebx], eax
add ebx, 4
jmp 0x40c409
call dword [esi + 0xc7e0]
popal
jmp 0x403f94
Function at 0x40a15a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
mov esi, ecx
push 0x4e3288
push str.hiscores.dat
mov dword [ebp - 0x38], esi
call fcn.004c2ab9
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x40a33d
lea eax, [esi + 0xd8]
mov dword [ebp - 4], eax
lea eax, [esi + 0x1f0]
push edi
mov dword [ebp - 0x14], eax
lea eax, [esi + 0xd0]
add esi, 0x98
xor edi, edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], 2
inc edi
push ebx
push 4
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.004c35d1
push ebx
push 2
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.004c35d1
movsx eax, word [ebp - 0xc]
push ebx
push edi
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.004c35d1
movsx eax, word [ebp - 0xc]
and byte [ebp + eax - 0x138], 0
push ebx
push 4
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.004c35d1
add esp, 0x40
push ebx
push 4
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.004c35d1
movsx eax, word [ebp - 0xc]
mov esi, dword [ebp - 0x24]
add esp, 0x10
xor esi, 0x42beef
xor ecx, ecx
test eax, eax
jle 0x40a232
movsx edx, byte [ebp + ecx - 0x138]
imul edx, edx, 0x11
xor esi, edx
inc ecx
cmp ecx, eax
jl 0x40a220
mov ecx, dword [ebp - 0x38]
call fcn.00409e60
cmp dword [ebp - 0x2c], eax
jne 0x40a25b
cmp dword [ebp - 0x30], esi
jne 0x40a25b
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x138]
push eax
call fcn.00402695
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 5
push ebx
push 2
lea eax, [ebp - 8]
push edi
push eax
call fcn.004c35d1
movsx eax, word [ebp - 8]
push ebx
push edi
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.004c35d1
movsx eax, word [ebp - 8]
and byte [ebp + eax - 0x138], 0
push ebx
push 4
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.004c35d1
push ebx
push 4
lea eax, [ebp - 0x34]
push edi
push eax
call fcn.004c35d1
movsx eax, word [ebp - 8]
mov esi, dword [ebp - 0x18]
add esp, 0x40
xor esi, 0x42beef
xor ecx, ecx
test eax, eax
jle 0x40a2dc
movsx edx, byte [ebp + ecx - 0x138]
imul edx, edx, 0x11
xor esi, edx
inc ecx
cmp ecx, eax
jl 0x40a2ca
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x138]
push eax
call fcn.00402695
cmp dword [ebp - 0x34], esi
mov eax, dword [ebp - 0x18]
jne 0x40a2fa
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x40a307
cdq
mov ecx, 0x100
idiv ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
add dword [ebp - 4], 0x1c
add dword [ebp - 0x10], 4
dec dword [ebp - 0x14]
jne 0x40a26e
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 0x1c
dec dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 4], eax
jne 0x40a1b4
push ebx
call fcn.004c2a0c
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c1b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8926
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x30]
mov ecx, edi
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.Sexy::WidgetManager.0
call fcn.0041fdd0
xor ebx, ebx
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov eax, dword [ebp + 8]
mov dword [esi + 0x68], ebx
push 0x5c
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], eax
mov byte [esi + 0x2c], bl
mov byte [esi + 0x50], bl
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov byte [esi + 0x18], bl
mov dword [esi + 0x14], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov byte [esi + 0x3c], 1
call fcn.004b18e0
add esp, 4
mov dword [ebp + 8], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x41c23e
mov ecx, eax
call fcn.0041bf10
jmp 0x41c240
xor eax, eax
mov dword [esi + 0x28], eax
mov dword [esi + 4], ebx
mov dword [esi + 0x16c], ebx
mov dword [esi + 0x5c], ebx
xor eax, eax
lea edi, [esi + 0x6c]
mov ecx, 0x3f
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xc]
stosw word es:[edi], ax
stosb byte es:[edi], al
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x41d720
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x514eb8]
xor eax, dword [ebp + 4]
push str.IMAGEHLP.DLL
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x5173d4], eax
jne 0x41d759
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004c478a
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SymInitialize
push eax
call esi
test eax, eax
mov dword [0x5173d8], eax
jne 0x41d783
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004c478a
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5173d4]
push str.SymSetOptions
push eax
call esi
test eax, eax
mov dword [0x5173dc], eax
je 0x41d771
mov ecx, dword [0x5173d4]
push str.SymCleanup
push ecx
call esi
test eax, eax
mov dword [0x5173e4], eax
je 0x41d771
mov edx, dword [0x5173d4]
push str.UnDecorateSymbolName
push edx
call esi
test eax, eax
mov dword [0x5173e0], eax
je 0x41d771
mov eax, dword [0x5173d4]
push str.StackWalk
push eax
call esi
test eax, eax
mov dword [0x5173e8], eax
je 0x41d771
mov ecx, dword [0x5173d4]
push str.SymFunctionTableAccess
push ecx
call esi
test eax, eax
mov dword [0x5173ec], eax
je 0x41d771
mov edx, dword [0x5173d4]
push str.SymGetModuleBase
push edx
call esi
test eax, eax
mov dword [0x5173f0], eax
je 0x41d771
mov eax, dword [0x5173d4]
push str.SymGetSymFromAddr
push eax
call esi
test eax, eax
mov dword [0x5173f4], eax
je 0x41d771
push 4
call dword [0x5173dc]
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x10c]
push 0x2f
push edx
call fcn.004c4810
add esp, 8
test eax, eax
jne 0x41d873
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call fcn.004c4810
add esp, 8
test eax, eax
je 0x41d876
mov byte [eax], 0
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x10c]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d885
sub eax, esi
mov dword [ebp - 8], eax
jne 0x41d895
xor edx, edx
push 1
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x5173d8]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, dword [ebp + 4]
pop esi
call fcn.004c478a
mov esp, ebp
pop ebp
ret
Function at 0x41d8e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, dword [ebp + 8]
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x41d902
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp - 0x1c]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x41d963
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
lea ecx, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
sub edi, esi
xor ebx, ebx
test eax, eax
mov dword [ebp - 4], eax
jbe 0x41d963
lea eax, [ecx + 0x10]
lea ebx, [ebx]
mov ecx, dword [eax]
mov edx, dword [eax - 8]
cmp ecx, edx
mov esi, dword [eax - 4]
ja 0x41d94e
mov ecx, edx
cmp edi, esi
jb 0x41d958
add ecx, esi
cmp edi, ecx
jbe 0x41d96c
mov ecx, dword [ebp - 4]
inc ebx
add eax, 0x28
cmp ebx, ecx
jb 0x41d940
pop esi
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
inc ebx
sub edi, esi
pop esi
mov dword [edx], ebx
mov dword [eax], edi
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x41d990
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 2
mov dword [ebp - 8], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x41d9c9
xor edx, edx
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 0x10]
push ecx
call edi
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push 0
push 0x64
push edx
push eax
call fcn.004c4880
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
adc eax, edx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
mov ebx, dword [ebp - 4]
rdtsc
mov dword [ebx], eax
mov dword [ebx + 4], edx
lea edx, [ebp - 0x20]
push edx
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xc]
jl 0x41da08
jg 0x41da20
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x10]
jb 0x41da08
lea edx, [ebp - 0x18]
mov dword [ebp - 4], edx
mov ebx, dword [ebp - 4]
rdtsc
sub eax, dword [ebx]
sbb edx, dword [ebx + 4]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov eax, dword [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push 0x64
push ecx
push edx
call fcn.004c4840
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41dd20
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
push esi
mov esi, ecx
mov al, byte [esi + 0xf2]
xor ebx, ebx
cmp al, bl
jne 0x41de06
lea ecx, [ecx]
cmp byte [ebp + 8], bl
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x210], ebx
je 0x41dd67
mov eax, dword [esi + 8]
mov dword [ebp - 0x108], eax
mov eax, 1
mov dword [ebp - 0x10c], eax
jmp 0x41dd6c
mov eax, 1
cmp byte [ebp + 0xc], bl
je 0x41dd80
mov ecx, dword [esi + 8]
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x210], eax
mov edx, dword [esi + 8]
mov dword [ebp - 0x314], eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x314]
push ecx
mov dword [ebp - 0x310], edx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x10c]
push eax
push 0x40
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0x186a0
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
je 0x41de10
mov edx, dword [esi + 8]
lea ecx, [ebp - 0x314]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x41de10
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x10c]
push eax
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x41de06
mov eax, dword [esi + 8]
lea edx, [ebp - 0x210]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x41de06
cmp byte [esi + 0xf2], bl
je 0x41dd40
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push 6
mov ecx, esi
call fcn.0041dd00
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41eb00
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [ecx + 0x9c0], 0x270
jl 0x41dcc3
xor eax, eax
push esi
mov esi, dword [ecx + eax*4]
mov edx, dword [ecx + eax*4 + 4]
xor edx, esi
and edx, 0x7fffffff
xor edx, esi
mov esi, edx
and esi, 1
mov esi, dword [esi*4 + 0x511e1c]
shr edx, 1
xor esi, edx
xor esi, dword [ecx + eax*4 + 0x634]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, 0xe3
jl 0x41dc13
cmp eax, 0x26f
jge 0x41dc83
lea ecx, [ecx]
mov esi, dword [ecx + eax*4]
mov edx, dword [ecx + eax*4 + 4]
xor edx, esi
and edx, 0x7fffffff
xor edx, esi
mov esi, edx
and esi, 1
mov esi, dword [esi*4 + 0x511e1c]
shr edx, 1
xor esi, edx
xor esi, dword [ecx + eax*4 - 0x38c]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, 0x26f
jl 0x41dc50
mov eax, dword [ecx + 0x9bc]
mov edx, dword [ecx]
mov esi, dword [ecx + 0x630]
xor eax, edx
mov edx, dword [ecx + 0x9bc]
and eax, 0x7fffffff
xor eax, edx
mov edx, eax
and edx, 1
mov edx, dword [edx*4 + 0x511e1c]
xor edx, esi
shr eax, 1
xor edx, eax
mov dword [ecx + 0x9bc], edx
mov dword [ecx + 0x9c0], 0
pop esi
mov eax, dword [ecx + 0x9c0]
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ecx + 0x9c0], eax
mov eax, edx
shr eax, 0xb
xor edx, eax
mov ecx, edx
and ecx, 0xff3a58ad
shl ecx, 7
xor edx, ecx
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
and eax, 0x7fffffff
ret
jmp 0x41dc00

Function at 0x41eb10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov ecx, 0x517460
jmp fcn.0041eb00
Function at 0x41f930
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov cl, byte [eax + 0x549]
test cl, cl
jne 0x41f9e4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0x4e6748
push 0
push str.SoftwarePopCapBeta
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41f9e4
cmp dword [esi + 0x15c], 0x10
mov ecx, dword [esi + 0x158]
jb 0x41f98d
mov eax, dword [esi + 0x148]
jmp 0x41f993
lea eax, [esi + 0x148]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
push eax
mov eax, dword [ebp - 4]
push 1
push 0
push str.Name
push eax
call edi
cmp dword [esi + 0x178], 0x10
mov eax, dword [esi + 0x174]
jb 0x41f9c2
mov esi, dword [esi + 0x164]
jmp 0x41f9c8
add esi, 0x164
mov ecx, dword [ebp - 4]
push eax
push esi
push 1
push 0
push str.Password
push ecx
call edi
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4286d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x514eb8]
xor eax, dword [ebp + 4]
push esi
mov esi, ecx
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
mov cl, byte [eax + 0x549]
test cl, cl
jne 0x4287c6
lea ecx, [ebp - 8]
push ecx
push 0x20019
push 0
push str.SoftwarePopCapBeta
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4287c6
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push str.Name
push edx
mov dword [ebp - 0xc], 0x100
call edi
test eax, eax
jne 0x42876e
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428752
sub eax, edx
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [esi + 0x144]
call fcn.004025c3
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.Password
push ecx
mov dword [ebp - 0xc], 0x100
call edi
test eax, eax
pop edi
jne 0x4287bc
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4287a0
sub eax, edx
push eax
lea edx, [ebp - 0x110]
push edx
lea ecx, [esi + 0x160]
call fcn.004025c3
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.004c478a
mov esp, ebp
pop ebp
ret
Function at 0x42acd0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
rdtsc
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov eax, dword [0x517424]
xor edi, edi
test eax, eax
jle 0x42ad1b
xor esi, esi
jmp 0x42ad00
mov ecx, dword [0x517448]
lea eax, [esi + ecx]
call fcn.0042ac30
mov eax, dword [0x517424]
inc edi
add esi, 0x18
cmp edi, eax
jl 0x42ad00
lea edx, [ebp - 0xc]
mov dword [0x517424], 0
mov dword [ebp - 4], edx
mov ebx, dword [ebp - 4]
rdtsc
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, dword [0x516fb0]
sub eax, edi
sbb ecx, esi
add edx, eax
mov eax, dword [0x516fb4]
pop edi
adc eax, ecx
pop esi
mov dword [0x516fb0], edx
mov dword [0x516fb4], eax
pop ebx
mov esp, ebp
pop ebp
ret