joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cabda
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5a195b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.00502d60
xor ebx, ebx
lea ecx, [esi + 0xf0]
mov dword [esp + 0x28], ebx
call fcn.005498c0
lea ecx, [esi + 0x138]
call fcn.005498c0
lea ecx, [esi + 0x180]
call fcn.005498c0
lea ecx, [esi + 0x1c8]
call fcn.005498c0
lea ecx, [esi + 0x210]
call fcn.005498c0
lea ecx, [esi + 0x258]
call fcn.005498c0
lea ecx, [esi + 0x2a0]
call fcn.005498c0
lea edi, [esi + 0x2e8]
push 8
mov ecx, edi
mov dword [esp + 0x1c], edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call fcn.004608a0
mov ecx, edi
mov byte [esp + 0x28], 1
call fcn.00402a70
lea edi, [esi + 0x2f4]
push 8
mov ecx, edi
mov byte [esp + 0x2c], 2
mov dword [esp + 0x1c], edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call fcn.004608a0
mov ecx, edi
mov byte [esp + 0x28], 3
call fcn.00402a70
lea ecx, [esi + 0x300]
mov byte [esp + 0x28], 4
call fcn.005498c0
lea edi, [esi + 0x3d4]
push 0x18
mov dword [esp + 0x1c], edi
mov dword [edi + 4], ebx
call fcn.00402bf0
mov cl, byte [esp + 0x17]
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov byte [edi + 0xc], cl
mov byte [eax], bl
mov edx, dword [edi + 4]
mov dword [edx + 4], ebx
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov eax, dword [edi + 4]
mov dword [eax + 0xc], eax
lea ebp, [edi + 0x10]
push 0x18
mov byte [esp + 0x30], 5
mov dword [esp + 0x24], ebp
mov dword [ebp], ebx
call fcn.00402bf0
add esp, 8
mov dword [ebp], eax
mov byte [esp + 0x28], 6
mov al, byte [esp + 0x13]
mov ecx, ebp
mov dword [ebp + 4], ebx
mov byte [ebp + 8], al
call fcn.004b4a30
lea ebp, [edi + 0x1c]
mov byte [esp + 0x28], 7
lea ecx, [ebp + 8]
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
call fcn.00502310
lea ecx, [ebp + 0x18]
call fcn.00502310
push ebx
mov ecx, ebp
call fcn.004d21d0
mov ecx, edi
mov byte [esp + 0x28], 8
mov dword [edi], 0x5aa88c
call fcn.004d0e00
mov ecx, esi
mov byte [esp + 0x28], 9
mov dword [esi], 0x5aa6a8
call fcn.004cafa0
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x4d28a0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4d28e1
push esi
mov esi, dword [esp + 0x14]
mov ecx, 0x2800
sub ecx, eax
add eax, esi
push ecx
push eax
push esi
call fcn.005092a0
mov eax, dword [edi]
mov edx, dword [esp + 0x18]
sub esi, eax
push eax
add esi, 0x2800
push esi
push edx
call fcn.0050b977
add esp, 0x18
mov dword [edi], 0
pop esi
pop edi
ret 0xc
Function at 0x4dc990
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5a27d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push 0xc
mov dword [esp + 0x10], esi
call fcn.00402bf0
mov dword [esi + 0x10], eax
mov dword [eax], eax
mov eax, dword [esi + 0x10]
add esp, 4
mov dword [eax + 4], eax
mov dword [esi + 4], 0x5aaae8
mov dword [esi + 0xc], 0x1869f
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov ecx, 0x5d59e8
mov byte [esp + 0x18], 2
mov dword [esi + 0x34], ebx
call fcn.00402330
mov eax, dword [0x5d59b0]
mov byte [esp + 0x18], 3
cmp eax, ebx
jne 0x4dca17
push 0x18
call fcn.00403290
add esp, 4
jmp 0x4dca1f
mov ecx, dword [eax]
mov dword [0x5d59b0], ecx
mov dl, byte [esp + 0xb]
mov dword [0x5d59e8], ebx
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ebx
mov byte [esi + 0x3c], dl
mov byte [eax], bl
mov eax, dword [esi + 0x34]
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x34]
mov dword [eax + 8], eax
mov eax, dword [esi + 0x34]
mov dword [eax + 0xc], eax
mov dword [esi], 0x5aaa78
mov dword [esi + 0x18], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4fea30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a3e5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
mov ebx, dword [esp + 0x144]
mov eax, ebx
push ebp
mov ebp, ecx
push esi
mov edx, dword [eax]
push edi
mov dword [ecx], edx
lea edi, [ebp + 0x10]
mov edx, dword [eax + 4]
xor esi, esi
mov dword [ecx + 4], edx
mov dword [esp + 0x30], ebp
mov eax, dword [eax + 8]
mov dword [esp + 0x20], edi
mov dword [ecx + 8], eax
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], ecx
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x18], eax
sub eax, ecx
mov dword [esp + 0x148], esi
mov dword [esp + 0x14], ecx
lea edx, [eax + 1]
mov dword [esp + 0x1c], eax
cmp edx, 0xfffffffe
ja 0x4febdd
cmp edx, esi
je 0x4feac3
push edx
call fcn.00402bf0
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 4
push eax
lea edx, [esi + eax + 1]
push ecx
push esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], edx
call fcn.005092a0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub esi, eax
add esp, 0xc
add esi, edx
mov ecx, edi
mov dword [edi + 4], esi
call fcn.00402a70
lea esi, [ebp + 0x1c]
xor edi, edi
mov dword [esp + 0x148], 2
mov dword [esp + 0x20], esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x1c]
mov dword [esp + 0x1c], eax
sub eax, edx
mov byte [esp + 0x148], 3
mov dword [esp + 0x14], edx
lea ecx, [eax + 1]
mov dword [esp + 0x18], eax
cmp ecx, 0xfffffffe
ja 0x4feb9d
cmp ecx, edi
je 0x4feb47
push ecx
call fcn.00402bf0
mov edx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
lea ecx, [edi + eax + 1]
push edx
push edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
call fcn.005092a0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
sub edi, ecx
add esp, 0xc
add edi, eax
mov ecx, esi
mov dword [esi + 4], edi
call fcn.00402a70
mov edx, dword [ebx + 0x28]
mov ecx, dword [esp + 0x140]
mov dword [ebp + 0x28], edx
mov eax, dword [ebx + 0x2c]
mov dword [ebp + 0x2c], eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x13c
ret 4
lea ecx, [esp + 0x13]
push ecx
push str.basic_string
lea ecx, [esp + 0x2c]
call fcn.00402570
lea edx, [esp + 0x24]
lea ecx, [esp + 0x34]
push edx
mov byte [esp + 0x14c], 4
call fcn.00402850
lea eax, [esp + 0x34]
push 0x5b3c50
push eax
mov dword [esp + 0x3c], 0x5a83c0
call fcn.00509146
lea ecx, [esp + 0x13]
push ecx
push str.basic_string
lea ecx, [esp + 0x2c]
call fcn.00402570
lea edx, [esp + 0x24]
lea ecx, [esp + 0x34]
push edx
mov byte [esp + 0x14c], 1
call fcn.00402850
lea eax, [esp + 0x34]
push 0x5b3c50
push eax
mov dword [esp + 0x3c], 0x5a83c0
call fcn.00509146
nop
nop
nop
Function at 0x50fec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5ccd68
cmp edx, dword [eax]
je 0x50fee2
add eax, 8
inc ecx
cmp eax, 0x5ccdf8
jl 0x50fed3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5ccd68]
jne 0x510010
mov eax, dword [0x66763c]
cmp eax, 1
je 0x50ffea
test eax, eax
jne 0x50ff13
cmp dword [0x5ca6c4], 1
je 0x50ffea
cmp edx, 0xfc
je 0x510010
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x50ff4a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0050f6f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0050c660
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x50ff8d
lea eax, [ebp - 0x1a4]
push eax
call fcn.0050c660
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5ac95c
push edi
call fcn.00509710
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0050f6f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0050f700
lea eax, [ebp - 0xa0]
push 0x5ac93c
push eax
call fcn.0050f700
push dword [esi + 0x5ccd6c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0050f700
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00512e67
add esp, 0x2c
pop edi
jmp 0x510010
lea eax, [ebp + 8]
lea esi, [esi + 0x5ccd6c]
push 0
push eax
push dword [esi]
call fcn.0050c660
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x518d6a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x518dc2
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x518dc2
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x518dc2
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x518ea3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
push ebx
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
xor bl, bl
and byte [ebp + 0x73], bl
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x518eda
inc bl
mov byte [ebp + 0x73], 1
cmp dword [ebp - 0x14], 1
jne 0x518efc
cmp dword [ebp - 0x20], 4
ja 0x518f06
jne 0x518ef6
cmp dword [ebp - 0x1c], 0xa
jb 0x518ef6
cmp word [ebp - 0x18], 0x55d
jae 0x518f06
mov byte [ebp + 0x73], 1
jmp 0x518f06
cmp dword [ebp - 0x14], 2
jne 0x518f1c
test bl, bl
je 0x518f37
mov eax, dword [ebp + 0x7c]
sub eax, 6
je 0x518f27
dec eax
je 0x518f20
sub eax, 3
jne 0x518f1c
cmp byte [ebp + 0x73], 0
je 0x518f48
xor eax, eax
jmp 0x518f50
call fcn.00518dc6
jmp 0x518f50
cmp byte [ebp + 0x73], 0
jne 0x518f1c
call fcn.00518dfe
and eax, 4
jmp 0x518f50
cmp dword [ebp + 0x7c], 0xa
je 0x518f48
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
jmp 0x518f50
call fcn.00518dfe
and eax, 8
pop edi
pop ebx
add ebp, 0x74
leave
ret

Function at 0x523780
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x667a0c]
cmp eax, ecx
push esi
jne 0x523796
mov eax, 1
pop esi
ret
cmp eax, 0x1c
ja 0x52388b
je 0x5237ef
dec eax
je 0x5237db
sub eax, 2
jne 0x5238cf
mov eax, dword [esp + 0x10]
mov edx, dword [0x5d5a0c]
mov ecx, eax
pop esi
and ecx, 0xffff
mov dword [edx + 0x684], ecx
mov ecx, dword [0x5d5a0c]
shr eax, 0x10
mov dword [ecx + 0x688], eax
mov eax, 1
ret
push str.QueryCancelAutoPlay
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x667a0c], eax
xor eax, eax
pop esi
ret
mov eax, dword [0x5d5a04]
mov esi, dword [esp + 0xc]
test eax, eax
je 0x52384d
cmp esi, 1
jne 0x523808
call fcn.0041ac40
jmp 0x523852
mov eax, dword [0x5d5a0c]
mov ecx, dword [eax + 0x6ec]
test ecx, ecx
jne 0x52381e
mov eax, 1
pop esi
ret
mov eax, dword [eax + 0x6f8]
test eax, eax
je 0x523833
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x80]
mov eax, dword [0x5d5a0c]
mov eax, dword [eax + 0x6f4]
test eax, eax
je 0x52384d
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x80]
cmp esi, 1
jne 0x523884
mov eax, dword [0x5d5a18]
test eax, eax
je 0x523884
mov edx, dword [0x5d5a0c]
xor esi, esi
mov eax, dword [edx + 0x45c]
test eax, eax
jle 0x523884
push esi
call fcn.00412120
mov eax, dword [0x5d5a0c]
add esp, 4
inc esi
cmp esi, dword [eax + 0x45c]
jl 0x52386d
mov eax, 1
pop esi
ret
sub eax, 0x100
je 0x523897
sub eax, 4
jne 0x5238cf
cmp dword [esp + 0xc], 0x75
jne 0x5238cf
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
push 0x10
mov si, ax
call edi
and esi, eax
pop edi
and esi, 0xffffff00
test si, si
mov word [0x667a00], si
je 0x5238cf
mov dword [0x667a04], 1
xor eax, eax
pop esi
ret
Function at 0x528370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub esp, 0x60
mov dword [eax], 0x1101
mov eax, dword [esp + 0x78]
push ebp
mov ebp, dword [esp + 0x70]
push esi
mov dword [ebp], 0
mov dword [ecx], 0
mov dword [edx], 0x5622
mov byte [eax], 0
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x5285af
push 0x5c4580
push eax
call fcn.00509f6f
mov esi, eax
add esp, 8
test esi, esi
je 0x5285af
push ebx
push edi
push esi
mov ebx, 1
push 0xc
lea ecx, [esp + 0x20]
push ebx
push ecx
call fcn.0050a0f8
mov edx, dword [esp + 0x2c]
add esp, 0x10
inc edx
and edx, 0xfffffffe
sub edx, 4
mov dword [esp + 0x1c], edx
je 0x5285a4
mov edi, 8
push esi
push edi
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.0050a0f8
add esp, 0x10
test eax, eax
je 0x5285a4
lea edx, [esp + 0x10]
mov ecx, str.fmt
mov eax, dword [edx]
mov edx, dword [ecx]
cmp eax, edx
jne 0x5284ae
push esi
push 0x10
lea ecx, [esp + 0x2c]
push ebx
push ecx
call fcn.0050a0f8
add esp, 0x10
cmp word [esp + 0x24], bx
jne 0x528486
xor eax, eax
cmp word [esp + 0x26], bx
jne 0x528458
cmp word [esp + 0x32], di
setne al
add eax, 0x1100
jmp 0x528465
cmp word [esp + 0x32], di
setne al
add eax, 0x1102
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x84]
push ebx
mov dword [edx], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
add edx, 0xfffffff0
mov dword [ecx], eax
push edx
jmp 0x52856c
push esi
push 4
lea eax, [esp + 0x84]
push ebx
push eax
call fcn.0050a0f8
mov ecx, dword [esp + 0x24]
push ebx
add ecx, 0xffffffec
push ecx
push esi
call fcn.0050a2b3
add esp, 0x1c
jmp 0x528575
lea eax, [esp + 0x10]
mov edx, str.data
mov ecx, dword [eax]
mov eax, dword [edx]
cmp ecx, eax
jne 0x528521
cmp word [esp + 0x24], bx
jne 0x528575
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x14]
mov dword [edx], eax
add eax, 0x1f
push eax
call fcn.005095d5
mov ecx, eax
add esp, 4
test ecx, ecx
mov dword [ebp], ecx
je 0x52850a
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
and edi, 0xffff
xor edx, edx
div edi
push esi
push eax
push edi
push ecx
call fcn.0050a0f8
add esp, 0x10
mov edi, dword [ebp]
mov edx, dword [esp + 0x14]
xor eax, eax
mov ecx, 7
add edi, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jmp 0x528575
lea ecx, [esp + 0x10]
mov eax, str.smpl
mov edx, dword [ecx]
mov ecx, dword [eax]
cmp edx, ecx
jne 0x528566
push esi
push 0x3c
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.0050a0f8
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x98]
test eax, eax
mov eax, dword [esp + 0x24]
push ebx
setne cl
add eax, 0xffffffc4
mov byte [edx], cl
push eax
push esi
call fcn.0050a2b3
add esp, 0x1c
jmp 0x528575
mov ecx, dword [esp + 0x14]
push ebx
push ecx
push esi
call fcn.0050a2b3
add esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
and edx, ebx
push edx
push esi
call fcn.0050a2b3
mov eax, dword [esp + 0x20]
add esp, 0xc
inc eax
mov ecx, 0xfffffff8
and al, 0xfe
sub ecx, eax
mov eax, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x1c], eax
jne 0x5283f6
push esi
call fcn.00509e37
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x60
ret
Function at 0x53e360
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x53e390
push esi
call fcn.0053fb40
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x53e389
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x53e413
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x53e3ff
mov eax, dword [esi + 8]
test eax, eax
je 0x53e3b4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x53e3fb
cmp eax, 2
je 0x53e3ff
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x53e3a7
cmp eax, 3
je 0x53e3da
cmp eax, 1
jne 0x53e3a7
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x53e3a7
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x53e3a7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0053e440
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x53e433
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0053e440
add esp, 4
pop esi
ret
Function at 0x54c510
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5a4688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [esp + 0x34]
push edi
mov ebx, ecx
mov ecx, 6
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x24]
mov edi, dword [ebx]
mov ecx, dword [ebx + 4]
sub eax, edi
sar eax, 2
sub ecx, eax
mov dword [esp + 0x30], 0
cmp ecx, 2
jae 0x54c563
push 0
push 1
mov ecx, ebx
call fcn.0054cc30
push 0x1f8
call fcn.005095d5
add esp, 4
test eax, eax
jne 0x54c581
push 0x1f8
call fcn.00403440
add esp, 4
mov edx, dword [ebx + 0x24]
mov dword [edx + 4], eax
mov edi, dword [ebx + 0x18]
test edi, edi
je 0x54c599
mov ecx, 6
lea esi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x24]
lea ecx, [esp + 0xc]
add eax, 4
mov dword [esp + 0x30], 0xffffffff
mov dword [ebx + 0x24], eax
mov eax, dword [eax]
mov dword [ebx + 0x1c], eax
add eax, 0x1f8
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x18], eax
call fcn.004e84f0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x550b00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [0x725b00]
lea eax, [esp]
push ebx
push eax
push 1
push 0
push ecx
push reloc.WS2_32.dll_bind
xor bl, bl
mov dword [esp + 0x1c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x550bf2
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x7259f0
push eax
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x550be7
push esi
push edi
mov edi, 0x7259f0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x1c]
mov esi, 0x7259f0
not ecx
mov edi, dword [ebx]
dec ecx
mov edx, ecx
mov ecx, dword [ebx + 4]
add edx, 0x7259f0
sub ecx, edi
mov eax, edx
sub eax, 0x7259f0
cmp eax, ecx
ja 0x550bbe
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
add esi, eax
cmp esi, edi
je 0x550be3
mov eax, edi
sub eax, edi
inc eax
push eax
push edi
push esi
call fcn.005092a0
mov eax, dword [ebx + 4]
sub esi, edi
add esp, 0xc
add eax, esi
mov dword [ebx + 4], eax
jmp 0x550be3
mov eax, ecx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx]
mov edx, dword [ebx + 4]
mov ecx, 0x7259f0
sub ecx, esi
add ecx, edx
push ecx
mov ecx, ebx
call fcn.00403490
pop edi
mov bl, 1
pop esi
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 8
ret
Function at 0x553a10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, eax
and edx, 0x800000ff
jns 0x553a28
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + ecx + 0xc], dl
cdq
and edx, 0xff
add eax, edx
sar eax, 8
inc ecx
cmp ecx, 4
jl 0x553a16
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
jle 0x553a6f
mov ecx, dword [esp + 8]
push ebx
mov edx, eax
and edx, reloc.WS2_32.dll_closesocket
jns 0x553a5d
dec edx
or edx, 0xfffffffc
inc edx
mov dl, byte [esp + edx + 0x14]
mov bl, byte [eax + ecx]
xor bl, dl
mov byte [eax + ecx], bl
inc eax
cmp eax, esi
jl 0x553a4e
pop ebx
pop esi
ret
Function at 0x5542f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x2c]
cmp eax, ecx
je 0x554493
call sub.WINMM.dll_timeGetTime
mov edx, dword [esi + 0x18]
mov dword [esp + 0x18], eax
sub eax, edx
cmp eax, 0x1f4
jbe 0x554493
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0x48]
mov ebp, dword [esi + 0x38]
sub eax, ebp
sar eax, 2
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x2c]
lea ebx, [ecx + ecx*2]
mov ecx, dword [esi + 0x34]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [esi + 0x3c]
mov eax, 0x2aaaaaab
sar edx, 2
mov ebp, edx
add edx, ebx
shr ebp, 0x1f
add ebp, edx
mov edx, dword [esi + 0x40]
sub ecx, edx
imul ecx
sar edx, 2
mov ecx, edx
add edx, ebp
shr ecx, 0x1f
lea edx, [ecx + edx - 0x15]
cmp edi, edx
jae 0x554493
mov ebx, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
mov ecx, ebx
mov ebp, dword [esi + 0x38]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
add edx, edi
mov edi, edx
js 0x5543b0
cmp edi, 0x15
jge 0x5543b0
add ebx, dword [esp + 0x10]
jmp 0x5543fb
test edi, edi
jle 0x5543c9
mov eax, 0x30c30c31
imul edi
mov eax, edx
sar eax, 2
mov ecx, eax
shr ecx, 0x1f
add eax, ecx
jmp 0x5543e3
or ecx, 0xffffffff
mov eax, 0x86186187
sub ecx, edi
mul ecx
sub ecx, edx
or eax, 0xffffffff
shr ecx, 1
add ecx, edx
shr ecx, 4
sub eax, ecx
mov edx, dword [ebp + eax*4]
lea ecx, [eax*8]
sub ecx, eax
lea eax, [ecx + ecx*2]
sub edi, eax
lea ecx, [edi + edi*2]
lea ebx, [edx + ecx*8]
mov edi, dword [esp + 0x18]
mov ecx, dword [ebx + 0xc]
mov eax, dword [esp + 0x20]
mov edx, edi
sub edx, ecx
cmp edx, eax
jb 0x554493
mov edx, dword [esi + 0x74]
mov ecx, dword [esi + 0x78]
fld dword [esi + 0x20]
fcomp dword [0x5a83e4]
inc edx
xor eax, eax
mov dword [esi + 0x74], edx
mov ax, word [ebx + 0x10]
add ecx, eax
fnstsw ax
mov dword [esi + 0x78], ecx
and eax, 0x4100
jne 0x55445a
call fcn.0050a8be
cdq
fld dword [esi + 0x20]
mov ecx, 0x3e8
idiv ecx
fmul dword [0x5a9bac]
mov ebp, edx
call fcn.00509960
cmp ebp, eax
jl 0x554478
mov ecx, dword [ebx + 0x14]
xor eax, eax
mov ax, word [ebx + 0x10]
lea edx, [ebx + 4]
push edx
push eax
push ecx
mov ecx, dword [esi + 4]
call fcn.005547a0
test eax, eax
jle 0x554493
mov dword [esi + 0x18], edi
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ecx
add eax, 0x18
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov edi, ecx
jmp 0x55432a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4

Function at 0x5546c0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
je 0x5546cd
call fcn.00554970
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x5546ec
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
mov byte [esi + 4], 0
pop esi
ret 4
cmp eax, 2
jne 0x5546fe
push 0
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
mov byte [esi + 4], 0
pop esi
ret 4