joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a7fd0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x108
mov eax, dword [eax]
push ebp
push esi
push 0xf003f
mov esi, ecx
push eax
call fcn.0041e3a0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4a80af
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0
push str.01020fff
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a80a8
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.004a7f40
mov edx, eax
test edx, edx
jle 0x4a80af
mov ecx, 0x104
push ebx
sub ecx, edx
lea ebx, [esp + edx + 0x10]
mov esi, ecx
push edi
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x11c]
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, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ecx + edx + 1]
lea ecx, [esp + 0x14]
push edx
push ecx
push 3
push eax
push str.01020fff
push ebp
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
test eax, eax
jne 0x4a80af
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x108
ret 8
Function at 0x4afd30
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x54c1c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00512659
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0
push ecx
call fcn.0041f9c0
add esp, 4
lea edx, [esp + 0x18]
lea eax, [esp + 4]
push str.Apps_machine.txt
push edx
push eax
call fcn.00512b79
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
lea ecx, [esp + 4]
call fcn.005128e4
lea ecx, [esp + 0x18]
push str.Users_machine.txt
lea edx, [esp + 8]
push ecx
push edx
call fcn.00512b79
mov eax, dword [eax]
push eax
call esi
lea ecx, [esp + 4]
call fcn.005128e4
lea eax, [esp + 0x18]
push str.Drives_machine.txt
lea ecx, [esp + 8]
push eax
push ecx
call fcn.00512b79
mov eax, dword [eax]
push eax
call esi
lea ecx, [esp + 4]
call fcn.005128e4
lea edx, [esp + 0x18]
push str.Files_Dirs_machine.txt
lea eax, [esp + 8]
push edx
push eax
call fcn.00512b79
mov eax, dword [eax]
push eax
call esi
lea ecx, [esp + 4]
call fcn.005128e4
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4b0e90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54c5dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x5ab980]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x28], ebx
je 0x4b0ff7
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
cmp eax, ebx
mov dword [esp + 8], eax
je 0x4b0ff7
push esi
push edi
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, ebp
call fcn.005125ee
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x4b0feb
mov edi, esi
mov dword [esp + 0x20], edi
add esi, 0x8c
mov dword [esp + 0x24], esi
mov dword [esi], method.CCommandLineInfo.virtual_0
mov eax, dword [esi + 4]
mov byte [esp + 0x30], 7
cmp eax, ebx
je 0x4b0f61
mov ecx, dword [esi + 8]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x38], eax
jbe 0x4b0f61
mov ecx, dword [esi + 4]
mov ebp, dword [ecx + eax*4]
cmp ebp, ebx
je 0x4b0f51
lea edx, [ebp + 8]
push 1
push edx
call fcn.0050e92f
mov ebp, dword [ebp]
cmp ebp, ebx
jne 0x4b0f3b
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
jb 0x4b0f31
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi + 4]
push eax
call fcn.00516a3e
mov ecx, dword [esi + 0x14]
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.005115f0
mov dword [esi + 0x14], ebx
lea esi, [edi + 0x40]
mov dword [esp + 0x38], esi
lea ecx, [esi + 0x2c]
mov byte [esp + 0x30], 8
call fcn.00510e5f
lea ecx, [esi + 0x10]
mov byte [esp + 0x30], 5
call fcn.00510e5f
lea ecx, [edi + 0x20]
mov byte [esp + 0x30], 4
call fcn.005114b2
lea ecx, [edi + 0x10]
mov byte [esp + 0x30], 3
call fcn.005128e4
lea ecx, [edi + 0xc]
mov byte [esp + 0x30], 2
call fcn.005128e4
lea ecx, [edi + 8]
mov byte [esp + 0x30], 1
call fcn.005128e4
lea ecx, [edi + 4]
mov byte [esp + 0x30], bl
call fcn.005128e4
push edi
call fcn.00516a3e
add esp, 4
cmp dword [esp + 0x10], ebx
jne 0x4b0ee0
pop edi
pop esi
mov ecx, ebp
call fcn.00511fc9
lea ecx, [ebp + 0x1c]
call fcn.00511492
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x20]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x4b9650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x54e063
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcd0
push esi
mov esi, ecx
lea ecx, [esp + 8]
call fcn.004b6e20
mov esi, dword [esi + 4]
mov dword [esp + 0xcdc], 0
test esi, esi
je 0x4b96c2
push edi
mov edi, dword [esp + 0xce8]
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0xc]
push eax
call fcn.004b70f0
cmp word [esp + 0xcd0], 0
je 0x4b96bd
lea eax, [esp + 0xc]
mov ecx, 0x5bc7a4
push eax
push edi
call fcn.004e9170
test esi, esi
jne 0x4b9691
pop edi
mov dword [esp + 0xcdc], 1
lea ecx, [esp + 0x668]
mov dword [esp + 4], ecx
lea ecx, [esp + 0xc88]
mov byte [esp + 0xcdc], 0xc
call fcn.00467880
lea ecx, [esp + 0x6d4]
mov byte [esp + 0xcdc], 0xb
call fcn.00510e5f
lea ecx, [esp + 0x6b8]
mov byte [esp + 0xcdc], 0xa
call fcn.0048ba80
lea ecx, [esp + 0x69c]
mov byte [esp + 0xcdc], 9
call fcn.00511c40
lea ecx, [esp + 0x698]
mov byte [esp + 0xcdc], 8
call fcn.005128e4
lea ecx, [esp + 0x694]
mov byte [esp + 0xcdc], 7
call fcn.005128e4
lea ecx, [esp + 0x678]
mov byte [esp + 0xcdc], 6
call fcn.005128e4
lea ecx, [esp + 0x674]
mov byte [esp + 0xcdc], 5
call fcn.005128e4
lea ecx, [esp + 0x670]
mov byte [esp + 0xcdc], 4
call fcn.005128e4
lea ecx, [esp + 0x66c]
mov byte [esp + 0xcdc], 3
call fcn.005128e4
lea edx, [esp + 0xc]
mov dword [esp + 4], edx
lea ecx, [esp + 0x62c]
mov byte [esp + 0xcdc], 0x16
call fcn.00467880
lea ecx, [esp + 0x78]
mov byte [esp + 0xcdc], 0x15
call fcn.00510e5f
lea ecx, [esp + 0x5c]
mov byte [esp + 0xcdc], 0x14
call fcn.0048ba80
lea ecx, [esp + 0x40]
mov byte [esp + 0xcdc], 0x13
call fcn.00511c40
lea ecx, [esp + 0x3c]
mov byte [esp + 0xcdc], 0x12
call fcn.005128e4
lea ecx, [esp + 0x38]
mov byte [esp + 0xcdc], 0x11
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0xcdc], 0x10
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0xcdc], 0xf
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0xcdc], 0xe
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0xcdc], 0xd
call fcn.005128e4
mov ecx, dword [esp + 0xcd4]
pop esi
mov dword fs:[0], ecx
add esp, 0xcdc
ret 4
Function at 0x4bba30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54e408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x5ab980]
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x28], 0
call fcn.00422640
add esp, 8
mov eax, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x144
push eax
mov byte [esp + 0x30], 1
mov dword [esp + 0x38], 0
call edi
test eax, eax
jle 0x4bbaa9
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x144
push ecx
call edi
test eax, eax
jg 0x4bba96
mov eax, dword [esp + 0x28]
or ebp, 0xffffffff
cmp eax, ebp
je 0x4bbb09
lea edx, [esp + 0x28]
push 0xa
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.004229b0
add esp, 0x10
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.00512a1d
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.005128e4
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4bbb03
mov edx, dword [esi + 0x1c]
push eax
push 0
push 0x143
push edx
call edi
cmp dword [esp + 0x28], ebp
jne 0x4bbab4
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0x14e
push eax
call edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.005128e4
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], ebp
call fcn.005128e4
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x4bdaf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54e5db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov eax, dword [0x5ab980]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x20], eax
mov ecx, dword [0x5ab980]
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 2
call fcn.004967b0
push 0xa
lea ecx, [esi + 0x50]
mov byte [esp + 0x1c], 3
call fcn.00510deb
push 0xa
lea ecx, [esi + 0x6c]
mov byte [esp + 0x1c], 4
call fcn.00510deb
push 0xa
lea ecx, [esi + 0x88]
mov byte [esp + 0x1c], 5
call fcn.00510deb
lea ebx, [esi + 0xa4]
mov byte [esp + 0x18], 6
mov ecx, ebx
call fcn.00443080
mov dword [ebx], 0x55ff98
lea ebx, [esi + 0xc8]
push 0xa
mov ecx, ebx
mov byte [esp + 0x1c], 7
call fcn.00510c14
mov ecx, dword [esp + 0x10]
mov dword [ebx], method.CObList.virtual_0
mov dword [esi + 0x28], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi], method.CCommandLineInfo.virtual_0
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4bdc80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x54e673
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0xc8]
mov dword [esp + 0x18], 7
call fcn.00510c53
lea edi, [esi + 0xa4]
mov dword [esp + 0xc], edi
mov dword [edi], 0x55ff98
mov ecx, edi
mov byte [esp + 0x18], 8
call fcn.00511492
mov ecx, edi
mov byte [esp + 0x18], 6
call fcn.004430c0
lea ecx, [esi + 0x88]
mov byte [esp + 0x18], 5
call fcn.00510e5f
lea ecx, [esi + 0x6c]
mov byte [esp + 0x18], 4
call fcn.00510e5f
lea ecx, [esi + 0x50]
mov byte [esp + 0x18], 3
call fcn.00510e5f
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 2
call fcn.004967f0
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 1
call fcn.005128e4
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 0
call fcn.005128e4
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4bf100
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x54e788
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x5ab980]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.00516fef
push str.C:ABTXLOG
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.00512a6d
mov eax, dword [esp + 0x10]
push ebx
push 0x20
push eax
lea ecx, [esp + 0x24]
call fcn.005171a1
test eax, eax
je 0x4bf1d1
lea ecx, [esp + 0x18]
call fcn.005173bc
mov ecx, dword [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x1c]
push str._s._03i
push edx
xor esi, esi
call fcn.0050e6c7
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileA]
add esp, 0x10
push eax
push ecx
call ebp
test eax, eax
jne 0x4bf1d1
cmp esi, 0x3e7
jge 0x4bf1e9
mov edx, dword [esp + 0x10]
inc esi
push esi
push edx
lea eax, [esp + 0x1c]
push str._s._03i
push eax
call fcn.0050e6c7
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add esp, 0x10
push ecx
push edx
call ebp
test eax, eax
je 0x4bf1a0
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
push ebx
push 0x1011
push edx
call dword [eax + 0x20]
test eax, eax
jne 0x4bf22b
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.005170e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call fcn.005128e4
or esi, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], esi
call fcn.005128e4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov eax, dword [esp + 0x38]
or esi, 0xffffffff
push eax
mov ecx, edi
mov dword [edi + 0x18], esi
call fcn.00512a1d
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [edi + 4]
call fcn.00512a1d
lea ecx, [esp + 0x18]
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov byte [esp + 0x30], 1
call fcn.005170e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], esi
call fcn.005128e4
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x4bfef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54e8e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
push edi
push fcn.005128e4
push 0x432ae0
push 6
lea eax, [esp + 0x14]
push 4
mov esi, ecx
push eax
call fcn.004fa7f1
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x48], 0
push ecx
lea ecx, [esp + 0x10]
call fcn.00512a1d
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4bff4c
push eax
lea ecx, [esp + 0xc]
call fcn.00512a6d
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x20]
push 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x58]
mov byte [esp + 0x2d], al
mov edi, dword [esi + 0x1c]
mov byte [esp + 0x2c], 3
mov edx, dword [ecx + 0xb8]
mov eax, dword [ecx + 0xc0]
mov cl, byte [ecx + 0xc0]
shl edx, 0xe
shr eax, 5
and ecx, 0xf
and eax, 1
sar edx, 0x18
shl ecx, 1
mov byte [esp + 0x2e], dl
mov edx, dword [esp + 0x30]
or eax, ecx
mov cl, byte [esp + 0x5c]
shl eax, 2
and edx, 0xff83
or eax, edx
mov dl, al
mov word [esp + 0x30], ax
xor cl, dl
mov edx, dword [esp + 0x60]
and ecx, 3
mov dword [esp + 0x34], edx
xor ax, cx
lea ecx, [esp + 0x24]
mov word [esp + 0x30], ax
lea eax, [esp + 0xc]
push eax
inc edi
push ecx
mov ecx, esi
mov dword [esi + 0x1c], edi
call fcn.004bf4d0
push fcn.005128e4
push 6
lea edx, [esp + 0x10]
push 4
push edx
mov esi, eax
mov dword [esp + 0x58], 0xffffffff
call fcn.004fa713
mov ecx, dword [esp + 0x40]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret 0x14

Function at 0x4c0150
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
lea esi, [eax + 0x14]
mov ecx, edi
call fcn.0051286f
mov ax, word [esi]
test ax, ax
jbe 0x4c01a7
and eax, 0xffff
mov ecx, edi
push eax
call fcn.00512d8b
xor edx, edx
lea ecx, [esp + 0x1c]
mov dx, word [esi]
push 0
push ecx
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov cx, word [esi]
cmp edx, ecx
jne 0x4c01bf
test eax, eax
je 0x4c01bf
inc ebx
add esi, 2
add edi, 4
cmp ebx, 6
jl 0x4c0165
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xfffffff1
pop ebx
ret 0xc
Function at 0x4c02a0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x10]
push 0
push eax
push 0x20
push ebx
push esi
call edi
cmp dword [esp + 0x10], 0x20
jb 0x4c0385
test eax, eax
je 0x4c0385
cmp word [ebx], 0x112
je 0x4c037a
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 2
push edx
push esi
call edi
cmp dword [esp + 0x10], 2
jb 0x4c0319
test eax, eax
je 0x4c0319
cmp word [esp + 0x14], 0x112
push 0
je 0x4c0324
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push 2
push ecx
push esi
call edi
cmp dword [esp + 0x10], 2
jae 0x4c02f4
pop edi
pop esi
mov eax, 0xfffffffa
pop ebx
ret 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
push 0
push 0xfffffffffffffffe
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4c034c
pop edi
pop esi
mov eax, 0xfffffff5
pop ebx
ret 8
lea edx, [esp + 0x10]
push 0
push edx
push 0x20
push ebx
push esi
call edi
cmp dword [esp + 0x10], 0x20
jb 0x4c036f
test eax, eax
je 0x4c036f
pop edi
pop esi
mov eax, 2
pop ebx
ret 8
pop edi
pop esi
mov eax, 0xfffffff9
pop ebx
ret 8
pop edi
pop esi
mov eax, 1
pop ebx
ret 8
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
ret 8
Function at 0x4c2960
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push esi
push edi
push 0
push eax
mov esi, ecx
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x4c298f
mov dword [esi + 4], 0
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov edi, dword [esp + 0x20]
xor ecx, ecx
mov dword [esp + 0xa], ecx
push edi
mov dword [esp + 0x12], ecx
mov word [esp + 0xc], 2
mov dword [esp + 0x16], ecx
mov word [esp + 0x1a], cx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0xa], ax
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push 0x10
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x4c29e1
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov dword [esi + 8], edi
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret 8

Function at 0x4c2a00
Capabilities:
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
mov esi, dword [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
mov edi, ecx
test esi, esi
mov dword [esp + 0x14], eax
mov word [esp + 8], 2
jne 0x4c2a6c
push 0xffffffffffffffff
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esp + 0x20]
mov word [esp + 0xa], ax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 8]
push 0x10
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [edi + 4]
push ecx
push edx
push eax
call dword [sym.imp.WSOCK32.dll_sendto]
pop edi
pop esi
add esp, 0x10
ret 0x14
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4c2a34
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x4c2a90
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
jmp 0x4c2a30
push 0x2726
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret 0x14
Function at 0x4c2ed0
Capabilities:
Access peb ldr_data
Connect to http server
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x54ecd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x5ab980]
push ebx
push ebp
push esi
mov dword [esp + 0xc], eax
lea esi, [ecx + 4]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x1c], ebx
call fcn.0051286f
mov ebp, dword [esp + 0x30]
cmp ebp, ebx
je 0x4c2f2c
push ebx
mov ecx, ebp
call fcn.0042d910
push str.Retrieving_Update_File
mov ecx, ebp
call fcn.0042d700
push str.Connecting_to_update_server...
mov ecx, ebp
call fcn.0042d7a0
push ebx
push ebx
push ebx
push 1
push str.PCR_Update
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x4c2f7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.004226f0
add esp, 8
push eax
mov ecx, esi
mov byte [esp + 0x20], 1
call fcn.00512a1d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], bl
call fcn.005128e4
mov esi, 0xfffffff6
jmp 0x4c3081
push edi
mov edi, dword [esp + 0x28]
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push edi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [esp + 0x34], eax
jne 0x4c2fda
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x30]
push eax
push edx
call fcn.004226f0
add esp, 8
mov eax, dword [eax]
mov byte [esp + 0x20], 2
push eax
push edi
push str.Unable_to_connect_to__s.___s
push esi
call fcn.0050e6c7
add esp, 0x10
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.005128e4
mov esi, 0xfffffff5
jmp 0x4c3068
cmp ebp, ebx
je 0x4c3005
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x10]
push ecx
push str.Downloading_file_to__s...
push edx
call fcn.0050e6c7
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebp
push eax
call fcn.0042d7a0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
push ebx
push 2
push bind
push ebx
push ecx
push ebp
push eax
call dword [sym.imp.WININET.dll_FtpGetFileA]
test eax, eax
je 0x4c302a
mov esi, 1
jmp 0x4c3068
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x30]
push eax
push edx
call fcn.004226f0
add esp, 8
mov eax, dword [eax]
mov byte [esp + 0x20], 3
push eax
push edi
push ebp
push str.Could_not_retrieve_file__s_from__s.___s
push esi
call fcn.0050e6c7
add esp, 0x14
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.005128e4
mov esi, 0xfffffff4
mov eax, dword [esp + 0x34]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, ebx
je 0x4c3079
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call edi
pop edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
Function at 0x4c35f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54ee29
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 eax, dword [0x5ab980]
mov dword [esp + 0x10], 0
mov dword [esi + 4], eax
mov ecx, dword [0x5ab980]
mov dword [esi + 8], ecx
mov edx, dword [0x5ab980]
mov dword [esi + 0xc], edx
mov eax, dword [0x5ab980]
mov dword [esi + 0x10], eax
mov ecx, dword [0x5ab980]
mov dword [esi + 0x2c], ecx
mov edx, dword [0x5ab980]
mov dword [esi + 0x30], edx
push 0xa
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 6
call fcn.00511ba3
lea ecx, [esi + 0x50]
mov byte [esp + 0x10], 7
call fcn.0048ba40
push 0xa
lea ecx, [esi + 0x6c]
mov byte [esp + 0x14], 8
call fcn.00510deb
lea ecx, [esi + 0x620]
mov byte [esp + 0x10], 9
call fcn.004677f0
mov ecx, esi
mov byte [esp + 0x10], 0xa
mov dword [esi], 0x560058
call fcn.004c36d0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4c3ba0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x54eee9
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 eax, dword [0x5ab980]
mov dword [esp + 0x10], 0
mov dword [esi + 4], eax
mov ecx, dword [0x5ab980]
mov dword [esi + 8], ecx
mov edx, dword [0x5ab980]
mov dword [esi + 0xc], edx
mov eax, dword [0x5ab980]
mov dword [esi + 0x10], eax
mov ecx, dword [0x5ab980]
mov dword [esi + 0x2c], ecx
mov edx, dword [0x5ab980]
mov dword [esi + 0x30], edx
push 0xa
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 6
call fcn.00511ba3
lea ecx, [esi + 0x50]
mov byte [esp + 0x10], 7
call fcn.0048ba40
push 0xa
lea ecx, [esi + 0x6c]
mov byte [esp + 0x14], 8
call fcn.00510deb
lea ecx, [esi + 0x620]
mov byte [esp + 0x10], 9
call fcn.004677f0
mov eax, dword [esp + 0x18]
mov ecx, esi
push eax
mov byte [esp + 0x14], 0xa
mov dword [esi], 0x560058
call fcn.004c3a90
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4c5a20
Capabilities:
Enumerate pe sections

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
xor ecx, ecx
push ebx
mov ax, word [edx + 0x14]
mov cx, word [edx + 6]
push esi
xor esi, esi
test ecx, ecx
push edi
lea eax, [eax + edx + 0x18]
jbe 0x4c5a59
mov edi, dword [esp + 0x10]
mov edx, dword [eax + 0xc]
cmp edi, edx
jb 0x4c5a51
mov ebx, dword [eax + 8]
add ebx, edx
cmp edi, ebx
jb 0x4c5a5b
inc esi
add eax, 0x28
cmp esi, ecx
jb 0x4c5a41
xor eax, eax
pop edi
pop esi
pop ebx
ret