joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bac10
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4badce
push 0x3d
push edi
call fcn.004ac930
mov esi, eax
add esp, 8
test esi, esi
je 0x4badce
cmp edi, esi
je 0x4badce
mov dl, byte [esi + 1]
mov ecx, dword [0x552a28]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x552a24]
cmp eax, ecx
jne 0x4bac67
push eax
call fcn.004baea0
add esp, 4
mov dword [0x552a24], eax
test eax, eax
jne 0x4bace2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4bac8e
mov eax, dword [0x552a2c]
test eax, eax
je 0x4bac8e
call fcn.004ba2d0
test eax, eax
je 0x4bacdd
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4bac9a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.004ac430
add esp, 4
mov dword [0x552a24], eax
test eax, eax
je 0x4badce
mov dword [eax], 0
mov eax, dword [0x552a2c]
test eax, eax
jne 0x4bacdd
push 4
call fcn.004ac430
add esp, 4
mov dword [0x552a2c], eax
test eax, eax
je 0x4badce
mov dword [eax], 0
mov eax, dword [0x552a24]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.004bae20
mov esi, eax
add esp, 8
test esi, esi
jl 0x4baddf
cmp dword [ebx], 0
je 0x4baddf
test ebp, ebp
je 0x4badd7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.004ac500
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x4bad39
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x4bad28
lea eax, [esi*4]
push eax
push ebx
call fcn.004b0d60
add esp, 8
test eax, eax
je 0x4bad53
mov dword [0x552a24], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4badc6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.004ac430
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4badc6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.004ac500
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x4bad57
test ebp, ebp
jne 0x4badc6
test esi, esi
jge 0x4bade9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.004b0d60
add esp, 8
test eax, eax
je 0x4badce
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x552a24], eax
jmp 0x4bad57
Function at 0x4bdd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
push esi
test eax, eax
push edi
je 0x4bddac
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4bddac
test ebx, ebx
je 0x4bddac
cmp dword [ebp], 0
jbe 0x4bddac
push ebp
lea edx, [esp + 0x20]
push ebx
push edx
push 0
push eax
mov eax, dword [ecx + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4bddac
cmp dword [esp + 0x1c], 1
jne 0x4bddac
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4bdde7
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ebx
mov dword [ebp], ecx
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
pop edi
mov dword [ebp], 0
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10

Function at 0x4bde00
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx]
sub esp, 8
test eax, eax
je 0x4bde46
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4bde46
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 4
push edx
lea edx, [esp + 8]
push edx
lea edx, [esp + 8]
push edx
push 0
push eax
mov eax, dword [ecx + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4bde46
mov eax, dword [esp]
cmp eax, 4
mov eax, dword [esp + 4]
je 0x4bde4a
mov eax, dword [esp + 0x10]
add esp, 8
ret 8

Function at 0x4be4d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x515706
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
mov ebx, ecx
push esi
push edi
xor ebp, ebp
push 5
lea ecx, [ebx + 0x3c]
mov dword [esp + 0x14], ebx
mov dword [ebx + 0x24], 0x520f84
mov dword [ebx + 0x38], ebp
call fcn.004f7780
push 9
lea ecx, [ebx + 0x44]
mov dword [esp + 0x20], ebp
call fcn.004f7780
mov esi, dword [esp + 0x2c]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov byte [esp + 0x20], 1
call fcn.00501a4d
mov edx, eax
add esp, 4
cmp edx, ebp
mov dword [ebx], edx
je 0x4be558
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 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 ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x14], ecx
mov ecx, dword [esp + 0x24]
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x28]
mov dword [ebx + 0x18], ecx
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ebx + 4], eax
mov dword [ebx + 0x10], ebp
mov dword [ebx + 0xc], ebp
mov dword [ebx + 0x20], ebp
mov dword [ebx + 0x1c], edx
pop esi
mov dword [ebx + 0x38], ebx
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0x18
Function at 0x4be930
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x51575b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
call fcn.004bf2e0
mov edx, dword [esp + 0x24]
mov ebx, eax
push edx
lea ecx, [ebx + 0x1c]
mov dword [esp + 0x30], ecx
call fcn.004c0870
test eax, eax
je 0x4be974
xor eax, eax
jmp 0x4bea1e
mov edi, dword [esp + 0x28]
lea ecx, [ebx + 0x24]
push 1
push edi
mov dword [esp + 0x18], ecx
call fcn.004c0780
test eax, eax
je 0x4be992
xor eax, eax
jmp 0x4bea1e
push 0x64
call fcn.00501a4d
mov ebp, eax
add esp, 4
mov dword [esp + 0x28], ebp
test ebp, ebp
mov dword [esp + 0x1c], 0
je 0x4be9d8
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x1c]
push eax
push 0
push 0
call fcn.004c0480
mov ecx, dword [esp + 0x30]
push eax
push 0
push 0
push 0
push ebx
push ecx
push edi
push esi
mov ecx, ebp
call fcn.004bdec0
mov ebx, eax
jmp 0x4be9da
xor ebx, ebx
test ebx, ebx
mov dword [esp + 0x1c], 0xffffffff
jne 0x4be9ea
xor eax, eax
jmp 0x4bea1e
mov ecx, dword [esp + 0x2c]
lea edx, [ebx + 0x48]
push edx
call fcn.004f7830
mov ecx, dword [esp + 0x10]
lea eax, [ebx + 0x30]
push eax
call fcn.004f7830
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [esi + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x58]
not ecx
dec ecx
cmp eax, ecx
ja 0x4bea1c
inc ecx
mov dword [esi + 0x58], ecx
mov eax, ebx
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0xc

Function at 0x4bf3f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5157db
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
mov dword [esi], method.CClawDialog.virtual_536
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x1c], ebx
je 0x4bf429
push ebx
call fcn.004bfd80
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x4bf452
lea ebp, [esi + 0xc]
push edi
mov ecx, ebp
call fcn.004f7920
mov eax, dword [esi + 0x18]
push edi
dec eax
mov dword [esi + 0x18], eax
call fcn.00501a89
mov edi, dword [esi + 0x10]
add esp, 4
cmp edi, ebx
jne 0x4bf433
mov edi, dword [esi + 0x40]
cmp edi, ebx
je 0x4bf46c
mov ecx, edi
call fcn.004be5a0
push edi
call fcn.00501a89
add esp, 4
mov dword [esi + 0x40], ebx
mov eax, dword [esi + 0x60]
cmp eax, ebx
je 0x4bf47f
push eax
call fcn.00501a89
add esp, 4
mov dword [esi + 0x60], ebx
mov ecx, dword [esp + 0x14]
mov eax, 1
mov dword [esi + 8], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 4], eax
mov dword [esi + 0x60], ebx
mov dword [esi + 0xc], 0x520f98
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret
Function at 0x4c48b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x400
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [0x583410]
push str.PALETTE
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
xor ebx, ebx
cmp eax, ebx
jne 0x4c48e6
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0xc
mov edx, dword [0x583410]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
jne 0x4c4906
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
jne 0x4c491f
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0xc
lea ecx, [esp + 0xd]
mov esi, 0x100
mov dl, byte [eax]
inc eax
mov byte [ecx - 1], dl
add ecx, 4
mov dl, byte [eax]
inc eax
mov byte [ecx - 4], dl
mov dl, byte [eax]
inc eax
mov byte [ecx - 3], dl
mov byte [ecx - 2], bl
dec esi
jne 0x4c4928
mov eax, dword [esp + 0x418]
mov edx, dword [esp + 0x410]
lea ecx, [esp + 0xc]
push eax
push ecx
push edx
mov ecx, edi
call fcn.004c4260
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0xc
Function at 0x4c4ce0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x4c4cf2
xor eax, eax
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [esi + 0x24]
mov edi, eax
mov eax, dword [esi + 0x20]
sub edi, ecx
cmp edi, eax
jb 0x4c4d13
mov ecx, esi
call fcn.004c4e90
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x14]
test eax, eax
mov eax, dword [esi + 0x28]
je 0x4c4dce
cmp edi, eax
je 0x4c4e7b
mov ecx, dword [esi + 0x2c]
mov ebx, dword [esi + 0x30]
mov eax, ecx
add eax, ebx
cmp ecx, eax
jge 0x4c4e61
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
mov bl, byte [edx + ecx*4]
xor edx, edx
mov dl, byte [eax + ecx*4]
mov eax, edx
mov edx, ebx
and edx, 0xff
sub eax, edx
imul eax, edi
cdq
idiv dword [esi + 0x20]
mov edx, dword [esi + 0xc]
add al, bl
mov byte [edx + ecx*4], al
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
mov bl, byte [eax + ecx*4 + 1]
xor eax, eax
mov al, byte [edx + ecx*4 + 1]
mov edx, ebx
and edx, 0xff
sub eax, edx
imul eax, edi
cdq
idiv dword [esi + 0x20]
mov edx, dword [esi + 0xc]
add al, bl
mov byte [edx + ecx*4 + 1], al
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
mov bl, byte [eax + ecx*4 + 2]
xor eax, eax
mov al, byte [edx + ecx*4 + 2]
mov edx, ebx
and edx, 0xff
sub eax, edx
imul eax, edi
cdq
idiv dword [esi + 0x20]
mov edx, dword [esi + 0xc]
add al, bl
mov byte [edx + ecx*4 + 2], al
mov eax, dword [esi + 0x2c]
mov ebx, dword [esi + 0x30]
inc ecx
add eax, ebx
cmp ecx, eax
jl 0x4c4d3b
jmp 0x4c4e61
cmp edi, eax
je 0x4c4e7b
mov ecx, dword [esi + 0x2c]
mov ebx, dword [esi + 0x30]
mov eax, ecx
add eax, ebx
cmp ecx, eax
jge 0x4c4e61
mov edx, dword [esi + 0x18]
xor eax, eax
mov al, byte [esi + 0x1c]
mov bl, byte [edx + ecx*4]
mov edx, ebx
and edx, 0xff
sub eax, edx
imul eax, edi
cdq
idiv dword [esi + 0x20]
mov edx, dword [esi + 0xc]
add al, bl
mov byte [edx + ecx*4], al
mov eax, dword [esi + 0x18]
mov bl, byte [eax + ecx*4 + 1]
xor eax, eax
mov al, byte [esi + 0x1d]
mov edx, ebx
and edx, 0xff
sub eax, edx
imul eax, edi
cdq
idiv dword [esi + 0x20]
mov edx, dword [esi + 0xc]
add al, bl
mov byte [edx + ecx*4 + 1], al
mov eax, dword [esi + 0x18]
mov bl, byte [eax + ecx*4 + 2]
xor eax, eax
mov al, byte [esi + 0x1e]
mov edx, ebx
and edx, 0xff
sub eax, edx
imul eax, edi
cdq
idiv dword [esi + 0x20]
mov edx, dword [esi + 0xc]
add al, bl
mov byte [edx + ecx*4 + 2], al
mov eax, dword [esi + 0x2c]
mov ebx, dword [esi + 0x30]
inc ecx
add eax, ebx
cmp ecx, eax
jl 0x4c4de4
mov ecx, dword [esi + 0x2c]
mov ebx, dword [esi + 0xc]
mov eax, dword [esi + 4]
lea ebx, [ebx + ecx*4]
mov edx, dword [eax]
push ebx
mov ebx, dword [esi + 0x30]
push ebx
push ecx
push 0
push eax
call dword [edx + 0x18]
mov dword [esi + 0x28], edi
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4c6160
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x515a7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push ebx
mov ebx, ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x18]
push esi
push edi
xor edi, edi
mov eax, dword [ecx + 8]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], edi
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x30]
cmp eax, edi
je 0x4c61cd
push eax
push 0x6ad
push str.C:ProjDDrawMgrDDRAWMGR.CPP
call fcn.004c6430
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
push 0xc0
call fcn.00501a4d
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
cmp esi, edi
mov dword [esp + 0x18], edi
je 0x4c6213
lea ecx, [esi + 0x94]
call fcn.00500901
mov dword [esi], 0x521020
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 4], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xb8], edi
jmp 0x4c6215
xor esi, esi
mov eax, dword [esp + 0xc]
mov edx, dword [esi]
push eax
mov ecx, esi
mov dword [esp + 0x1c], 0xffffffff
call dword [edx + 4]
test eax, eax
jne 0x4c624f
cmp esi, edi
je 0x4c6239
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
push esi
mov ecx, ebx
call fcn.004c5650
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 8

Function at 0x4c7226
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [0x583410]
push 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4c7245
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov edx, dword [0x583410]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4c725e
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4c7272
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [ebx + 8]
cmp word [ebx + 0xe], 8
mov ebp, dword [ebx + 4]
mov dword [esp + 0x18], eax
je 0x4c728c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
lea edx, [esi + 0x10]
mov ecx, 0x1b
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
or ecx, 0x40
mov dword [edx], 0x6c
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x78], ecx
push eax
mov ecx, esi
mov dword [esi + 0x14], 7
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x18], edx
call fcn.004c1fa0
test eax, eax
jne 0x4c72d3
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ecx, dword [ebx]
push 2
lea edx, [ecx + ebx + 0x400]
mov ecx, esi
push edx
call fcn.004c29a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
Function at 0x4d0bb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x515d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
mov esi, ecx
push edi
push 0x400
lea ecx, [esp + 0xc]
call fcn.0050ac9c
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push 0
push eax
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.0050ace8
lea edx, [esp + 8]
mov ecx, esi
push edx
call fcn.004d0a90
mov edi, eax
lea ecx, [esp + 8]
mov dword [esi], edi
mov dword [esp + 0x38], 0xffffffff
call fcn.0050ad25
mov ecx, dword [esp + 0x30]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x34
ret 8
Function at 0x4e04c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x516708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], method.CObject.virtual_0
mov eax, dword [esi + 0x30]
mov dword [esp + 0x10], 0
test eax, eax
je 0x4e04fb
push eax
call fcn.00501a89
add esp, 4
mov ecx, dword [esp + 8]
mov dword [esi + 0xc], 0xffff
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi], vtable.CObject.0
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret

Function at 0x4e3580
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4e35ec
call fcn.004e2d40
push eax
mov ecx, esi
call fcn.004e2d10
mov edi, eax
test edi, edi
je 0x4e3645
mov ebx, dword [edi + 0x68]
call ebp
sub eax, dword [esi + 0x28]
cmp eax, ebx
jbe 0x4e35ec
mov ecx, edi
mov dword [esi + 0x24], 0
call fcn.004e4460
test al, 0x20
jne 0x4e35e0
mov ecx, edi
call fcn.004e4460
test al, 0x10
je 0x4e35d7
push 0x15
jmp 0x4e35d9
push 5
mov ecx, edi
call fcn.004e4470
call ebp
mov dword [esi + 0x2c], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
call ebp
mov ebx, eax
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x4e3645
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
mov ecx, ebx
sub ecx, edx
cmp ecx, eax
jbe 0x4e3645
mov ecx, esi
call fcn.004e2d40
push eax
mov ecx, esi
call fcn.004e2d10
mov edi, eax
test edi, edi
je 0x4e3645
mov ecx, edi
call fcn.004e4460
test al, 0x10
je 0x4e3638
sub eax, 0x10
mov ecx, edi
push eax
call fcn.004e4470
mov dword [esi + 0x2c], ebx
pop edi
pop esi
pop ebp
pop ebx
ret
or al, 0x10
mov ecx, edi
push eax
call fcn.004e4470
mov dword [esi + 0x2c], ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4e7840
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x516d72
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov edi, 0x521e70
mov dword [esp + 0xc], esi
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xcc], edi
lea ecx, [esi + 0xd4]
mov dword [esp + 0x18], ebx
call fcn.005085c8
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xe4], edi
lea ecx, [esi + 0xec]
mov byte [esp + 0x18], 2
call fcn.005085c8
mov dword [esi + 0x108], ebx
mov dword [esi + 0x104], edi
mov eax, 0x521e58
mov dword [esi + 0x110], ebx
mov dword [esi + 0x10c], eax
mov dword [esi + 0x118], ebx
mov dword [esi + 0x114], eax
mov eax, dword [esp + 0x20]
lea edx, [esi + 0xc]
xor ecx, ecx
mov dword [esi], 0x521c90
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
mov dword [edx], ecx
mov eax, dword [esp + 0x24]
mov byte [esp + 0x18], 6
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov word [edx + 0x10], cx
lea ecx, [esi + 0xbc]
push ecx
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 word [esi + 0x34], bx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
call dword [sym.imp.USER32.dll_SetRectEmpty]
lea edx, [esi + 0x124]
push ebx
mov ecx, 0x55
xor eax, eax
mov edi, edx
push edx
mov dword [esi + 0xfc], ebx
mov dword [esi + 0x100], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], ebx
push ebx
push 0x29
rep stosd dword es:[edi], eax
mov dword [edx], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x278], ebx
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 8
Function at 0x4f2580
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
xor ebx, ebx
mov eax, dword [edi]
call dword [eax + 8]
mov ebp, eax
cmp ebp, 1
mov dword [esp + 0x10], ebp
jl 0x4f26b1
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xc]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, edi
call fcn.004f2550
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [esp + 0x1c], eax
cmp ebp, ecx
jl 0x4f2664
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
fild qword [esp + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
fild qword [esp + 0x14]
fild dword [esp + 0x10]
fxch st(2)
fstp dword [esp + 0x2c]
fstp dword [esp + 0x10]
fstp dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
fild qword [esp + 0x20]
fsub dword [esp + 0x2c]
fdiv dword [esp + 0x10]
fmul dword [esp + 0x14]
call fcn.004aab10
mov esi, eax
cmp ebx, esi
je 0x4f265e
cmp esi, ebp
jg 0x4f265e
test esi, esi
jle 0x4f265e
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4f2652
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x4f2652
mov eax, dword [eax]
push 0
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 4]
inc dword [esp + 0x30]
cmp esi, ebp
mov ebx, esi
jle 0x4f2602
cmp esi, ebp
je 0x4f2674
mov eax, dword [edi]
push ebp
mov ecx, edi
call dword [eax + 4]
inc dword [esp + 0x30]
fild dword [esp + 0x30]
fstp dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], 0
sub eax, ecx
mov dword [esp + 0x20], eax
fild qword [esp + 0x20]
fmul dword [0x521eb4]
fdivr dword [esp + 0x30]
call fcn.004aab10
mov edx, dword [edi]
mov ecx, edi
mov dword [edi + 0x34], eax
call dword [edx + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc

Function at 0x4f7340
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x100
lea eax, [esp]
push 0xff
push eax
call sub.WSOCK32.dll_gethostname
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0x108]
call fcn.00501d2d
lea edx, [esp]
push edx
call sub.WSOCK32.dll_gethostbyname
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
push eax
call sub.WSOCK32.dll_inet_ntoa
mov ecx, dword [esp + 0x108]
push eax
call fcn.00501d2d
add esp, 0x100
ret

Function at 0x4f7cb0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4f7ccc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4f7cce
xor eax, eax
test eax, eax
je 0x4f7cdf
push eax
call fcn.004ae360
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x4f7cf0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4f7d07
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4f7d09
xor eax, eax
test eax, eax
je 0x4f7d1a
push eax
call fcn.004ae360
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret