joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49cfa0
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x560408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x5c2a74]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov ebp, dword [esp + 0x38]
lea ecx, [esp + 0x1c]
push ebp
mov dword [esp + 0x30], 0
call fcn.00542347
mov ebx, dword [esp + 0x3c]
lea ecx, [esp + 0x20]
push ebx
call fcn.00542347
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x38]
push eax
push ecx
mov ecx, edi
call fcn.00489ac0
mov esi, eax
test esi, esi
jne 0x49d04d
mov eax, dword [edi + 4]
test eax, eax
jne 0x49d01a
mov edx, dword [edi + 8]
push 1
push edx
mov ecx, edi
call fcn.00445550
mov ecx, edi
call fcn.0049e3b0
mov ecx, dword [esp + 0x34]
mov esi, eax
mov eax, dword [esp + 0x38]
push ecx
lea ecx, [esi + 8]
mov dword [esi + 4], eax
call fcn.00542347
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x38]
mov ecx, dword [edx + eax*4]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x38]
mov dword [edx + eax*4], esi
lea ecx, [esp + 0x1c]
add esi, 0xc
push ecx
mov ecx, esi
call fcn.005422f7
lea edx, [esp + 0x20]
lea ecx, [esi + 4]
push edx
call fcn.005422f7
push str.SoftwareDownloadManagerPasswords_
lea ecx, [esp + 0x18]
call fcn.0054222c
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x30], 1
call fcn.0054259a
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0x5c6ff0
push 0
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push ebp
push eax
push eax
push str.User
push ecx
call esi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebx
push eax
push eax
push str.Password
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call fcn.005421be
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 2
call fcn.005421be
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0xffffffff
call fcn.005421be
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
Function at 0x49d150
Capabilities:
Delete registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x560430
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x49d26d
mov ebp, dword [esp + 0x28]
push ebp
call fcn.0053b08b
xor edx, edx
div dword [edi + 8]
mov eax, dword [edi + 4]
mov esi, dword [eax + edx*4]
test esi, esi
lea ebx, [eax + edx*4]
je 0x49d26d
mov eax, dword [esi + 8]
push ebp
push eax
call fcn.00526f6c
add esp, 8
test eax, eax
je 0x49d1b7
mov ebx, esi
mov esi, dword [esi]
test esi, esi
jne 0x49d199
jmp 0x49d26d
mov ecx, dword [esi]
xor ebp, ebp
mov dword [ebx], ecx
lea ebx, [esi + 0xc]
mov dword [esp + 0x14], ebx
lea ecx, [ebx + 4]
mov dword [esp + 0x20], 0
call fcn.005421be
mov ecx, ebx
mov dword [esp + 0x20], 0xffffffff
call fcn.005421be
add ebx, 8
mov edx, ebp
dec ebp
mov dword [esp + 0x14], ebx
test edx, edx
jne 0x49d1c4
lea eax, [esi + 8]
push 1
push eax
call fcn.0053b067
mov ecx, dword [edi + 0x10]
mov dword [esi], ecx
mov eax, dword [edi + 0xc]
dec eax
mov dword [edi + 0x10], esi
mov dword [edi + 0xc], eax
jne 0x49d26d
mov eax, dword [edi + 4]
xor ebp, ebp
cmp eax, ebp
je 0x49d24d
mov eax, dword [edi + 8]
xor ebx, ebx
cmp eax, ebp
jbe 0x49d24d
mov edx, dword [edi + 4]
mov esi, dword [edx + ebx*4]
cmp esi, ebp
je 0x49d245
lea eax, [esi + 0xc]
push 1
push eax
call fcn.0049e380
lea ecx, [esi + 8]
push 1
push ecx
call fcn.0053b067
mov esi, dword [esi]
cmp esi, ebp
jne 0x49d229
mov eax, dword [edi + 8]
inc ebx
cmp ebx, eax
jb 0x49d21f
mov eax, dword [edi + 4]
push eax
call fcn.00542796
mov ecx, dword [edi + 0x14]
add esp, 4
mov dword [edi + 4], ebp
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], ebp
call fcn.0053d0f3
mov dword [edi + 0x14], ebp
push str.SoftwareDownloadManagerPasswords_
lea ecx, [esp + 0x14]
call fcn.0054222c
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push edx
mov dword [esp + 0x24], 1
call fcn.0054259a
mov eax, dword [esp + 0x10]
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.005421be
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x49dd80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5605d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x5c2a74]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0xc]
push 1
push eax
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
mov eax, dword [ebx + 0x24]
push ecx
mov ecx, dword [0x5c74cc]
push edx
push eax
mov dword [esp + 0x30], 0
call fcn.0049cb90
test eax, eax
je 0x49de95
mov eax, dword [ebx + 0xc]
mov esi, dword [esp + 0xc]
test eax, eax
je 0x49dded
push eax
call fcn.00542796
add esp, 4
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0054276d
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebx + 0xc], edx
jne 0x49de18
push str.URL::set_userName:_Not_enough_memory__n
mov ecx, ebx
call fcn.00507f00
jmp 0x49de37
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 eax, dword [ebx + 0x10]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x49de4b
push eax
call fcn.00542796
add esp, 4
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0054276d
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebx + 0x10], edx
jne 0x49de76
push str.URL::set_password:_Not_enough_memory__n
mov ecx, ebx
call fcn.00507f00
jmp 0x49de95
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]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 1
call fcn.005421be
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.005421be
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4a0a10
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x560ae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov esi, 1
or ebp, 0xffffffff
mov eax, dword [0x5c2a74]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push esi
push ecx
mov ecx, edi
mov dword [esp + 0x24], ebx
call fcn.004a0040
test eax, eax
je 0x4a0a73
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4a0a73
lea ecx, [esp + 0x10]
inc esi
mov dword [esp + 0x1c], ebp
call fcn.005421be
jmp 0x4a0a36
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], ebp
call fcn.005421be
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x18], ebx
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4a3b10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
mov esi, 0x56f7a0
mov eax, 0x56f5a0
sub esi, ecx
xor edx, edx
mov dx, word [eax]
and edx, 0x800000ff
jns 0x4a3b37
dec edx
or edx, 0xffffff00
inc edx
mov bl, byte [esi + ecx]
add eax, 2
xor dl, bl
mov byte [ecx], dl
inc ecx
cmp eax, 0x56f79e
jle 0x4a3b22
pop esi
pop ebx
ret 4

Function at 0x4a3cd0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov si, word [eax]
mov dx, word [eax + 2]
mov cx, word [eax + 4]
mov ax, word [eax + 6]
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edx
lea ebp, [edi + 0x7c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebp
mov di, ax
mov bx, cx
jmp 0x4a3d19
mov ebp, dword [esp + 0x20]
shl eax, 0xb
shr di, 5
or eax, edi
mov edi, ecx
not edi
and edi, esi
sub eax, edi
mov edi, ecx
and edi, edx
sub eax, edi
mov edi, edx
sub ax, word [ebp + 2]
shl ecx, 0xd
shr bx, 3
not edi
or ecx, ebx
and edi, eax
sub ecx, edi
mov edi, edx
and edi, esi
mov dword [esp + 0x10], eax
sub ecx, edi
mov edi, edx
mov dx, word [esp + 0x1c]
sub cx, word [ebp]
shl edi, 0xe
shr dx, 2
or edi, edx
mov edx, esi
not edx
and edx, ecx
mov dword [esp + 0x14], ecx
sub edi, edx
mov edx, eax
and edx, esi
sub edi, edx
sub di, word [ebp - 2]
mov edx, edi
mov edi, esi
mov si, word [esp + 0x18]
mov dword [esp + 0x1c], edx
shl edi, 0xf
shr si, 1
or edi, esi
mov esi, eax
not esi
and esi, edx
sub edi, esi
mov esi, eax
and esi, ecx
sub edi, esi
sub di, word [ebp - 4]
mov ebp, dword [esp + 0x24]
cmp ebp, 0xb
mov esi, edi
mov dword [esp + 0x18], esi
je 0x4a3db4
cmp ebp, 5
jne 0x4a3e08
mov di, word [esp + 0x10]
mov bx, word [esp + 0x14]
mov eax, ecx
mov ecx, dword [esp + 0x30]
and eax, 0x3f
and edx, 0x3f
and esi, 0x3f
sub di, word [ecx + eax*2]
sub bx, word [ecx + edx*2]
mov dx, word [ecx + esi*2]
sub word [esp + 0x1c], dx
mov word [esp + 0x10], di
mov eax, dword [esp + 0x10]
mov word [esp + 0x14], bx
mov edx, eax
and edx, 0x3f
mov cx, word [ecx + edx*2]
mov edx, dword [esp + 0x1c]
sub word [esp + 0x18], cx
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
jmp 0x4a3e12
mov di, word [esp + 0x10]
mov bx, word [esp + 0x14]
dec ebp
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x20]
sub ebp, 8
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x24]
test ebp, ebp
jge 0x4a3d15
mov eax, dword [esp + 0x2c]
mov dx, word [esp + 0x18]
mov cx, word [esp + 0x1c]
mov word [eax + 6], di
pop edi
pop esi
mov word [eax + 4], bx
pop ebp
mov word [eax], dx
mov word [eax + 2], cx
pop ebx
add esp, 0x18
ret 8
Function at 0x4a4330
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561210
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x5c2a74]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov ecx, dword [0x5c7498]
lea edx, [ebp - 0x14]
push ecx
push str._sScheduler_
push edx
mov byte [ebp - 4], 1
call fcn.0053afda
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4a4497
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, 2
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0x5c
call fcn.00542693
mov esi, eax
cmp esi, 0xffffffff
je 0x4a4497
lea ecx, [ebp - 0x18]
push esi
push ecx
lea ecx, [ebp - 0x14]
call fcn.0053abba
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x18]
sete bl
call fcn.005421be
test bl, bl
je 0x4a439d
lea edx, [ebp - 0x1c]
push esi
push edx
lea ecx, [ebp - 0x14]
call fcn.0053abba
mov eax, dword [eax]
push 0
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x1c]
sete bl
call fcn.005421be
test bl, bl
je 0x4a439d
mov al, byte [ebp + 8]
test al, al
je 0x4a4473
mov eax, dword [0x5c2a74]
mov dword [ebp + 8], eax
push 0
lea ecx, [ebp - 0x18]
push 0
push ecx
push 0x400
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x18]
mov eax, dword [0x5c8004]
push edx
lea ecx, [ebp + 8]
push eax
push ecx
call fcn.0053afda
mov edx, dword [ebp - 0x18]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
push 0x30
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.005421be
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
mov eax, 0x7546
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push edx
add eax, 8
push 0x5a3e24
push eax
call fcn.0053afda
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a7520
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov dword [ecx], 0x56fbdc
jmp 0x4a76b0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x561548
push eax
mov dword fs:[0], esp
sub esp, 0x10
lea eax, [esp + 0xc]
push ebx
mov ebx, ecx
push esi
lea ecx, [esp + 0xc]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push 0
push 0xf003f
push 0
push 0x5c6ff0
push 0
push str.SoftwareDownloadManagerGrabberSts
push reloc.WSOCK32.dll_accept
call esi
test eax, eax
jne 0x4a77b7
mov edx, dword [esp + 0xc]
push str.RecentProjects
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [esp + 0x14]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x5c6ff0
push 0
push str.RecentProjects
push edx
call esi
test eax, eax
jne 0x4a77b7
mov eax, dword [ebx + 0x14]
xor esi, esi
test eax, eax
jle 0x4a77a3
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
lea edi, [ebx + 4]
mov eax, dword [0x5c2a74]
mov dword [esp + 0x10], eax
inc esi
lea ecx, [esp + 0x10]
push esi
push 0x5a3e38
push ecx
mov dword [esp + 0x34], 0
call fcn.0053afda
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
add esp, 0xc
push 4
push edi
push 4
push 0
push edx
push eax
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.005421be
mov eax, dword [ebx + 0x14]
add edi, 4
cmp esi, eax
jl 0x4a774e
pop edi
pop ebp
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
mov ecx, dword [esp + 0x18]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x4a75a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x561528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x14]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x5c6ff0
push 0
push str.SoftwareDownloadManagerGrabberStsRecentProjects
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4a7690
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push edi
mov edi, 4
mov edx, dword [0x5c2a74]
mov dword [esp + 0xc], edx
push edi
lea eax, [esp + 0x10]
push 0x5a3e38
push eax
mov dword [esp + 0x38], 0
call fcn.0053afda
mov eax, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0
push 0
push eax
push ecx
mov dword [esp + 0x2c], 4
call ebx
test eax, eax
jne 0x4a7673
mov edx, dword [0x5c7484]
test edx, edx
jle 0x4a7673
mov ecx, dword [0x5c7480]
mov esi, dword [esp + 0x18]
cmp esi, dword [ecx]
je 0x4a7669
inc eax
add ecx, 0xc
cmp eax, edx
jl 0x4a765b
jmp 0x4a7673
mov ecx, dword [esp + 0x1c]
push esi
call fcn.004a7530
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.005421be
dec edi
test edi, edi
jg 0x4a75fc
pop edi
pop esi
pop ebx
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4a7bd0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x5c77f8]
sub esp, 0x14
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov esi, ecx
jne 0x4a7bfc
push str.Advapi32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x5c77f8], eax
je 0x4a7d69
mov ecx, dword [0x5c77fc]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp ecx, ebx
jne 0x4a7c21
push str.GetNamedSecurityInfoA
push eax
call ebp
mov ecx, eax
mov eax, dword [0x5c77f8]
mov dword [0x5c77fc], ecx
mov edx, dword [0x5c7800]
cmp edx, ebx
jne 0x4a7c41
push str.SetNamedSecurityInfoA
push eax
call ebp
mov ecx, dword [0x5c77fc]
mov edx, eax
mov dword [0x5c7800], edx
cmp ecx, ebx
je 0x4a7d69
cmp edx, ebx
je 0x4a7d69
lea eax, [esi + 8]
add esi, 4
push esi
push ebx
push eax
push ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
push ebx
push 4
push 4
push eax
call ecx
test eax, eax
jne 0x4a7d69
mov ecx, dword [0x5c77f8]
push str.AllocateAndInitializeSid
push ecx
call ebp
mov edi, eax
cmp edi, ebx
je 0x4a7d69
mov edx, dword [0x5c77f8]
push str.GetLengthSid
push edx
call ebp
mov esi, eax
cmp esi, ebx
je 0x4a7d69
mov eax, dword [0x5c77f8]
push str.InitializeAcl
push eax
call ebp
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x4a7d69
mov ecx, dword [0x5c77f8]
push str.AddAccessDeniedAce
push ecx
call ebp
mov ebp, eax
cmp ebp, ebx
je 0x4a7d69
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
push eax
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], bl
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], 1
call edi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov esi, eax
add esi, 0x10
push esi
call fcn.005275de
add esp, 4
mov edi, eax
push 2
push esi
push edi
call dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push edx
push 0x10000000
push 2
push edi
call ebp
mov eax, dword [esp + 0x28]
push ebx
push edi
push ebx
push ebx
push 4
push 4
push eax
call dword [0x5c7800]
test eax, eax
push edi
je 0x4a7d5b
call fcn.005274f5
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
call fcn.005274f5
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x4a9100
Capabilities:
Get hostname

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
lea esi, [ecx + 0x19c]
push eax
push esi
mov dword [esp + 0xc], 0x32
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x4a912e
push str.default
push esi
call fcn.00527718
add esp, 8
pop esi
pop ecx
ret

Function at 0x4a9140
Capabilities:
Get session user name

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
lea esi, [ecx + 0x2a8]
push eax
push esi
mov dword [esp + 0xc], 0x32
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4a916e
push str.default_user
push esi
call fcn.00527718
add esp, 8
pop esi
pop ecx
ret
Function at 0x4a9510
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5616b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esp
push str.POST_http:__
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0054222c
push str.www.internetdownloadmanager.com
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0054259a
push str._data_395012712_register.cgi
lea ecx, [ebp - 0x14]
call fcn.0054259a
push str._HTTP_1.1_r_n
lea ecx, [ebp - 0x14]
call fcn.0054259a
push str.Host:_www.internetdownloadmanager.com_r_nAccept:___r_nContent_Type:_text_html_r_nAuthorization:_Basic_dGNpZG06YXpjZmdwZWQ
lea ecx, [ebp - 0x14]
call fcn.0054259a
push str._r_nContent_length:_400_r_n
lea ecx, [ebp - 0x14]
call fcn.0054259a
mov esi, dword [ebp + 0xc]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4a9653
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4a95b5
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
jmp 0x4a95b7
xor edx, edx
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x55555556
lea esi, [ecx + edx + 1]
lea ecx, [esi + 2]
imul ecx
mov eax, edx
lea ecx, [esi + 1]
shr eax, 0x1f
add edx, eax
push ecx
shl edx, 2
mov ebx, edx
call fcn.0054276d
mov edi, eax
mov eax, dword [ebp + 0x10]
add esp, 4
test eax, eax
jne 0x4a95f7
mov eax, 0x5c6ff0
mov edx, dword [ebp + 0xc]
push eax
push edx
push str._s:_s
push edi
call fcn.00527718
inc ebx
push ebx
call fcn.0054276d
mov ecx, dword [ebp - 0x18]
add esp, 0x14
mov ebx, eax
push esi
push ebx
push edi
call fcn.004a96e0
push str.Proxy_Authorization:_Basic
lea ecx, [ebp - 0x14]
call fcn.0054259a
push ebx
lea ecx, [ebp - 0x14]
call fcn.0054259a
push 0x5a495c
lea ecx, [ebp - 0x14]
call fcn.0054259a
push edi
call fcn.00542796
add esp, 4
push ebx
call fcn.00542796
add esp, 4
push 0x5a495c
lea ecx, [ebp - 0x14]
call fcn.0054259a
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
push 0
mov ecx, dword [eax - 8]
push ecx
push eax
push esi
call sub.WSOCK32.dll_send
mov eax, dword [ebp - 0x18]
push 0
add eax, 0xc
push 0x190
push eax
push esi
call sub.WSOCK32.dll_send
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc