joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4da258
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
add ebp, 0xc
mov dword [esp + 0x28], 0
mov ebx, dword [ebp + 0xc]
cmp ebx, dword [ebp + 0x10]
jbe 0x477273
call fcn.004b3c6c
mov edi, dword [ebp]
mov esi, ebx
mov ebx, dword [ebp + 0x10]
cmp dword [ebp + 0xc], ebx
jbe 0x477285
call fcn.004b3c6c
mov eax, dword [ebp]
test edi, edi
je 0x477290
cmp edi, eax
je 0x477295
call fcn.004b3c6c
cmp esi, ebx
je 0x47734a
mov ebx, dword [esp + 0x34]
test edi, edi
jne 0x4772da
call fcn.004b3c6c
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4772b6
call fcn.004b3c6c
mov eax, dword [esi]
cmp dword [eax + 0xd0], ebx
je 0x4772e2
test edi, edi
jne 0x4772de
call fcn.004b3c6c
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4772d5
call fcn.004b3c6c
add esi, 4
jmp 0x477278
mov eax, dword [edi]
jmp 0x4772ac
mov eax, dword [edi]
jmp 0x4772cb
test edi, edi
jne 0x477377
call fcn.004b3c6c
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4772fb
call fcn.004b3c6c
mov ebx, dword [esi]
push esi
push edi
lea edi, [esp + 0x20]
mov esi, ebp
call fcn.00477800
mov ecx, ebx
call fcn.0047a7f0
mov esi, ebx
call fcn.0047f570
mov eax, dword [ebx + 0x48]
xor esi, esi
mov dword [ebx + 0x90], esi
cmp eax, esi
je 0x47733f
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47733f
mov ecx, dword [ebx + 0x48]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [ebx + 0x48], esi
mov edx, dword [ebx]
mov eax, dword [edx + 0x1c]
push 1
mov ecx, ebx
call eax
mov dword [esp + 0x28], 0xffffffff
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x477361
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
mov eax, dword [edi]
jmp 0x4772f1
Function at 0x4786e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dc929
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 0
push eax
mov dword [esp + 0x18], 0
call fcn.00408670
push 4
push str.http
push edi
mov dword [esp + 0x30], 1
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x478783
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
call fcn.00478850
add esp, 4
lea edi, [esp + 0xc]
mov byte [esp + 0x24], 2
call fcn.0040a150
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x478783
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x50e150]
mov eax, dword [edx + 0xc]
mov ecx, 0x50e150
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x18], 0x824
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x824
or eax, ecx
mov dword [esp + 0x14], 1
jge 0x4787c8
mov ecx, 0x824
mov eax, esi
call fcn.00408a80
mov eax, dword [esi]
mov edx, dword [esp + 0xc]
push 0x2000000
lea ecx, [esp + 0x1c]
push ecx
push eax
push edx
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4787f7
push ecx
push eax
call fcn.004b8fc1
add esp, 8
test eax, eax
jl 0x478841
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x478841
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov byte [esp + 0x24], dl
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47882d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret
push 0x80070057
call fcn.00403da0
int3
Function at 0x4799e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x228], eax
push esi
test edi, edi
je 0x479ae3
cmp word [edi], 0
je 0x479ae3
push 0
lea eax, [esp + 0x24]
push eax
push 0x4f4a0c
push 0
push edi
call dword [sym.imp.WININET.dll_CreateUrlCacheEntryW]
cmp eax, 1
jne 0x479ae3
push 0
push 0
push 5
push 0
push 2
push 0xc0000000
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x479ae3
push 0
lea edx, [esp + 8]
push edx
push str._html__body___body___html_
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str._html__body___body___html_
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edx, dword [esp + 8]
mov esi, dword [esp + 0xc]
push 0
push 0
push 0x14
push str.HTTP_1.0_200_OK_r_n_r_n
push 1
push esi
mov eax, edx
add eax, 0x1312d00
push edx
mov ecx, esi
adc ecx, 0
push ecx
push eax
lea eax, [esp + 0x44]
push eax
push edi
call dword [sym.imp.WININET.dll_CommitUrlCacheEntryW]
test eax, eax
je 0x479ae3
mov al, 1
pop esi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004b3721
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x22c]
pop esi
xor ecx, esp
xor al, al
call fcn.004b3721
mov esp, ebp
pop ebp
ret
Function at 0x47dc20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 8]
sub esp, 8
lea edx, [esp + 4]
push edx
push 0x40
sub ecx, esi
push 0xd
sub ecx, 0xd
push esi
mov dword [esi], 0x42444c7
mov dword [esi + 4], eax
mov byte [esi + 8], 0xe9
mov dword [esi + 9], ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
mov esp, ebp
pop ebp
ret 8

Function at 0x481a10
Capabilities:
Get disk information

Disassembly:
sub esp, 0x41c
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x424]
push ebx
push ebp
mov ebp, dword [esp + 0x428]
push esi
push edi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [esp + 0x14], eax
xor edi, edi
lea esp, [esp]
mov eax, dword [esp + 0x14]
mov edx, 1
mov ecx, edi
shl edx, cl
test eax, edx
je 0x481afd
mov ecx, dword [0x4f5208]
mov dx, word [0x4f520c]
push 0x202
lea eax, [esp + 0x22]
push 0
push eax
mov dword [esp + 0x24], ecx
mov word [esp + 0x28], dx
call fcn.004b4970
add word [esp + 0x24], di
add esp, 0xc
push 0x104
lea ecx, [esp + 0x224]
push ecx
lea edx, [esp + 0x20]
push edx
call ebx
test eax, eax
jle 0x481afd
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp word [esp + esi*2 + 0x21e], 0x5c
je 0x481ae9
xor edx, edx
xor eax, eax
mov ecx, 0x5c
mov word [esp + esi*2 + 0x220], cx
mov word [esp + esi*2 + 0x222], dx
mov word [esp + esi*2 + 0x224], ax
inc esi
push esi
push ebp
lea ecx, [esp + 0x228]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x481b22
inc edi
cmp edi, 0x20
jl 0x481a50
xor al, al
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b3721
add esp, 0x41c
ret
push 0x102
lea edx, [ebp + esi*2 - 2]
push edx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
mov ecx, dword [esp + 0x10]
push 0x400
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov al, 1
jmp 0x481b09
Function at 0x482c30
Capabilities:
Parse url

Disassembly:
push 0xffffffffffffffff
push 0x4d93cb
mov eax, dword fs:[0]
push eax
sub esp, 0x4d4
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x4d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0x4e8]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp esi, edi
je 0x482e35
cmp word [esi], di
je 0x482e35
push 0x200
call fcn.004a2026
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push 0x38
lea eax, [esp + 0x30]
push edi
push eax
mov dword [esp + 0x500], edi
call fcn.004b4970
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
push edi
push esi
mov dword [esp + 0x30], 0x3c
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0x100
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x482cee
push ebx
call fcn.004b3716
add esp, 4
jmp 0x482e35
mov ebp, dword [sym.imp.WININET.dll_InternetGetCookieExW]
push edi
push 0x2000
lea edx, [esp + 0x1c]
push edx
push edi
push edi
push esi
mov dword [esp + 0x2c], edi
call ebp
test eax, eax
je 0x482ce0
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x482ce0
add eax, 4
xor ecx, ecx
mov dword [esp + 0x14], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a2026
add esp, 4
push 0
mov edi, eax
push 0x2000
lea eax, [esp + 0x1c]
push eax
push edi
push 0
push esi
mov dword [esp + 0x38], edi
call ebp
test eax, eax
je 0x482e26
mov esi, edi
test edi, edi
je 0x482e26
mov ebx, dword [sym.imp.SHLWAPI.dll_StrChrW]
mov ebp, dword [sym.imp.WININET.dll_InternetSetCookieExW]
lea ebx, [ebx]
cmp word [esi], 0
je 0x482e22
push 0x3d
push esi
call ebx
mov dword [esp + 0x1c], eax
test eax, eax
je 0x482e22
sub eax, esi
sar eax, 1
cmp eax, 0x1000
jg 0x482e1a
inc eax
push eax
push esi
lea ecx, [esp + 0x280]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
mov edi, dword [esp + 0x18]
push 0x2e
mov edx, edi
push edx
call ebx
mov esi, eax
test esi, esi
je 0x482e06
lea esp, [esp]
push edi
push str.http:___s
push 0x10b
lea eax, [esp + 0x6c]
push 0x10c
push eax
call fcn.004d7ec4
add esp, 0x14
push 0
push 0x2000
push str.1__expiresThu__01_Jan_1900_00:00:01_GMT
lea ecx, [esp + 0x284]
push ecx
lea edx, [esp + 0x70]
push edx
call ebp
push 0x2e
lea edi, [esi + 2]
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x482dc0
mov eax, dword [esp + 0x1c]
push 0x3b
push eax
call ebx
mov edi, dword [esp + 0x20]
test eax, eax
je 0x482e22
lea esi, [eax + 2]
test esi, esi
jne 0x482d70
mov ebx, dword [esp + 0x18]
push edi
call fcn.004b3716
push ebx
call fcn.004b3716
add esp, 8
mov ecx, dword [esp + 0x4e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4d0]
xor ecx, esp
call fcn.004b3721
add esp, 0x4e0
ret
Function at 0x482e60
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
push esi
lea eax, [esp + 8]
push eax
xor ebx, ebx
push str.mshtml.dll
mov dword [esp + 0x10], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x482ee4
push edi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x482edb
mov ecx, dword [esp + 0xc]
push edi
push esi
push ecx
push str.mshtml.dll
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x482ed4
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push 0x4ef58c
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x482ed4
cmp dword [esp + 0x10], ebx
je 0x482ed4
mov ecx, dword [esp + 0x14]
movzx ebx, word [ecx + 0xa]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret

Function at 0x4841a0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x278c
call fcn.004b75d0
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x2788], eax
mov eax, dword [esp + 0x2790]
push ebx
push ebp
push esi
push edi
push 0x64
xor ebx, ebx
push ebx
push eax
mov dword [esp + 0x1c], eax
call fcn.004b4970
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0xc
xor edi, edi
lea ecx, [ecx]
push edi
push 0x4f5378
lea eax, [esp + 0x2c]
push 0x64
push eax
call fcn.004b4cc3
add esp, 0x10
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea ecx, [esp + 0x3c]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x484295
xor eax, eax
push 0x2710
lea edx, [esp + 0x8c]
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.004b4970
add esp, 0xc
push ebx
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x94]
push ecx
push 0xc
lea edx, [esp + 0x2c]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x484286
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xa0]
push eax
push ecx
lea edx, [esp + 0x90]
push edx
call fcn.00483f60
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
cmp byte [eax], bl
jne 0x4842ba
inc edi
cmp edi, 3
jl 0x4841e0
xor al, al
mov ecx, dword [esp + 0x2798]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b3721
add esp, 0x278c
ret
mov al, 1
jmp 0x4842a1
Function at 0x484960
Capabilities:
Get mac address on windows

Disassembly:
push ecx
xor eax, eax
mov dword [ebx], eax
push edi
mov dword [ebx + 4], eax
lea eax, [esp + 4]
xor edi, edi
push eax
push edi
mov dword [esp + 0xc], edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
je 0x484984
xor eax, eax
pop edi
pop ecx
ret
mov ecx, dword [esp + 4]
push ebp
push ecx
call fcn.004b3d9e
mov ebp, eax
add esp, 4
cmp ebp, edi
jne 0x48499e
pop ebp
xor eax, eax
pop edi
pop ecx
ret
push esi
lea edx, [esp + 0xc]
push edx
push ebp
mov esi, ebp
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x4849c0
push ebp
call fcn.004b3730
add esp, 4
pop esi
pop ebp
xor eax, eax
pop edi
pop ecx
ret
mov eax, dword [esi + 0x190]
cmp eax, 6
jb 0x4849f4
cmp eax, 8
ja 0x4849f4
push eax
lea eax, [esi + 0x194]
push eax
push ebx
call fcn.004b50e0
mov edi, dword [esi + 0x190]
lea ecx, [esi + 8]
push ecx
call fcn.00484710
add esp, 0x10
test al, 4
jne 0x4849fa
mov esi, dword [esi]
test esi, esi
jne 0x4849c0
push ebp
call fcn.004b3730
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ecx
ret

Function at 0x484c80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4db039
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x30], eax
push edi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x10], 0
mov eax, dword [0x50e150]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x50e150
mov dword [esp + 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x44], 0
push eax
mov dword [esp + 0x14], 1
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x484d1b
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
push str._08X_08X_08X_08X
call fcn.0040a310
add esp, 0x14
jmp 0x484d72
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edx, dword [esp + 8]
push edx
call fcn.004b6c15
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add esp, 4
push eax
push ecx
call fcn.004b6c27
push eax
call fcn.004b6c27
push eax
call fcn.004b6c27
push eax
call fcn.004b6c27
push eax
push str._04X_04X_04X_04X_08X_08X
call fcn.0040a310
add esp, 0x1c
mov eax, edi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004b3721
add esp, 0x40
ret

Function at 0x484fa0
Capabilities:
Encode data using xor

Disassembly:
call fcn.00484ef0
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jle 0x484fcf
push ebx
push edi
movzx edi, byte [ecx + esi]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x50f0a8]
inc ecx
cmp ecx, edx
jl 0x484fb0
pop edi
pop ebx
not eax
ret
Function at 0x484fe0
Capabilities:
Encode data using base64 via winapi

Disassembly:
push 0xffffffffffffffff
push 0x4dc4b6
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov eax, dword [esp + 0xbc]
xor esi, esi
mov edi, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
cmp eax, esi
je 0x485176
cmp word [eax], si
je 0x485176
push 3
lea ecx, [esp + 0x2c]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], ecx
call fcn.0040efe0
mov dword [esp + 0xb4], esi
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea esi, [edi + 4]
push esi
call fcn.004a2026
mov ebp, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], esi
push eax
lea ebx, [esp + 0x24]
mov esi, ebp
call fcn.00484ea0
mov edx, dword [0x50e150]
mov eax, dword [edx + 0xc]
add esp, 8
mov ecx, 0x50e150
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x18]
push ecx
push 0
mov byte [esp + 0xbc], 1
mov edi, dword [esp + 0x24]
mov ebx, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
push 1
push edi
push ebp
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
je 0x485122
mov eax, dword [esp + 0x18]
add eax, 4
mov dword [esp + 0x18], eax
lea ecx, [eax + 4]
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x4850f7
lea eax, [esp + 0x14]
call fcn.00408a80
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push esi
push 1
push edi
push ebp
call ebx
lea esi, [esp + 0x14]
call fcn.0041b530
push 0x4ed9d8
push 0x4f55b4
mov eax, esi
push eax
call fcn.004243a0
mov esi, dword [esp + 0x14]
push ebp
call fcn.004b3716
add esi, 0xfffffff0
add esp, 4
mov eax, esi
call fcn.0040a2a0
mov edi, dword [esp + 0x20]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0xb4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48515f
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x485181
push eax
call fcn.004b3730
add esp, 4
jmp 0x485181
push edi
mov ecx, 0x4ed9d8
call fcn.00408670
mov eax, edi
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004b3721
add esp, 0xa4
ret

Function at 0x485b50
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x485b57
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.00485b60
Function at 0x488190
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4f9430
push 0x4b4d30
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x504f68]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], dx
jne 0x488232
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x488232
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x488232
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x488232
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4882d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x50fd0c]
test esi, esi
je 0x4882fa
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x4882e3
pop edi
pop esi
pop ecx
ret
Function at 0x4886e0
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x50fd18], eax
je 0x4886f6
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x50fd28]
xor ebp, ebp
push edi
cmp esi, ebp
je 0x488771
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [esp]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
movzx eax, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
cmp dword [esi + 4], ebp
jne 0x488760
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x488760
mov edx, eax
and edx, 0xffff0000
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 0x18], ecx
mov dword [edx + 8], eax
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.004b3716
add esp, 4
mov esi, edi
cmp edi, ebp
jne 0x488710
mov dword [0x50fd28], ebp
call fcn.00488300
mov esi, dword [0x50fd24]
cmp esi, ebp
je 0x4887a7
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esp, [esp]
mov edx, dword [esi + 4]
push edx
call ebx
mov edi, dword [esi]
push esi
call fcn.004b3716
add esp, 4
mov esi, edi
cmp edi, ebp
jne 0x488790
pop edi
pop esi
mov dword [0x50fd24], ebp
mov dword [0x50fd18], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x488a90
Capabilities:
Suspend thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [0x50fd1c]
test eax, eax
jne 0x488b05
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp edi, eax
jne 0x488aaa
xor eax, eax
pop edi
ret
push esi
push 8
call fcn.004b383b
mov esi, eax
add esp, 4
test esi, esi
jne 0x488ac0
lea edi, [eax + 8]
jmp 0x488add
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x488af2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.004b3716
add esp, 4
pop esi
mov dword [0x50fd1c], edi
mov eax, edi
mov dword [0x50fd20], 0
pop edi
ret
mov eax, dword [0x50fd24]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x50fd24], esi
xor eax, eax
pop esi
pop edi
ret