joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4013bb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4013f2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4013ee
jmp 0x4013e0
cmp esi, eax
jae 0x4013f2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4013e0
cmp esi, eax
jb 0x4013f9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402e30
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487278
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x59134c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x48]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x402ed3
mov edx, dword [0x5912cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x5912cc
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push ecx
push edx
lea eax, [ebp - 0x10]
push str._s:_d
push eax
mov dword [ebp - 4], 0
call fcn.00402d00
mov ebx, dword [ebp - 0x10]
mov eax, dword [esi + 0x38]
add esp, 0x10
push 0
push 0
push ebx
push 3
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ee7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x402ee7
mov eax, dword [esi + 0x38]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov ecx, dword [esi + 0x50]
cmp dword [ecx - 0xc], 0
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionA]
je 0x402f02
mov eax, ecx
mov edx, dword [eax - 0xc]
push edx
push eax
push 0x2b
push edi
call ebx
mov eax, dword [esi + 0x54]
cmp dword [eax - 0xc], 0
je 0x402f17
mov esi, eax
mov ecx, dword [esi - 0xc]
push ecx
push esi
push 0x2c
push edi
call ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403670
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487370
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x59134c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x3c
xor ebx, ebx
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.0046bb90
mov ecx, dword [edi + 0x20]
mov esi, dword [ecx - 0xc]
add esp, 0xc
lea edx, [ebp - 0xd]
push edx
add esi, 8
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00408700
lea eax, [ebp - 0xd]
push eax
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.00408700
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
mov edi, dword [edi + 0x20]
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x6c], 0x3c
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], esi
mov ecx, dword [edi - 0xc]
push ebx
push ecx
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov edi, dword [ebp - 0x20]
cmp edi, ebx
jne 0x403724
xor eax, eax
jmp 0x403739
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403730
sub eax, edx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.00402340
mov esi, dword [ebp - 0x30]
cmp esi, ebx
jne 0x40374e
xor eax, eax
jmp 0x40375c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403753
sub eax, edx
mov ecx, dword [ebp + 0xc]
push eax
push esi
call fcn.00402340
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x60]
mov dword [edx], eax
cmp esi, ebx
je 0x40377b
push esi
call fcn.0046afbc
add esp, 4
cmp edi, ebx
je 0x403788
push edi
call fcn.0046afbc
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x404260
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x59134c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x3ff
lea eax, [ebp - 0x403]
mov dword [ebp - 0x408], 0
push 0
push eax
mov dword [ebp - 0x408], 0x400
mov byte [ebp - 0x404], 0
call fcn.0046bb90
add esp, 0xc
lea ecx, [ebp - 0x408]
push ecx
lea edx, [ebp - 0x404]
push edx
push 0
call sub.urlmon.dll_ObtainUserAgentString
lea eax, [ebp - 0x404]
push eax
mov ecx, esi
call fcn.004037a0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046afc7
mov esp, ebp
pop ebp
ret
Function at 0x404420
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48758b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x59134c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
lea ecx, [esi + 0x10]
push ebx
mov dword [esi], vtable.FCHttpRequest.0
call fcn.004042e0
mov eax, dword [0x5912cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x5912cc
mov dword [ebp - 4], ebx
call edx
add eax, 0x10
mov dword [esi + 0x64], eax
mov eax, dword [0x5912cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x5912cc
mov byte [ebp - 4], 1
call edx
add eax, 0x10
mov dword [esi + 0x68], eax
mov eax, dword [0x5912cc]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x6c]
mov ecx, 0x5912cc
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi + 8], eax
mov eax, dword [0x5912cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x5912cc
mov byte [ebp - 4], 3
call edx
add eax, 0x10
mov dword [edi + 0xc], eax
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 0x14], ebx
lea eax, [esi + 0x88]
push eax
mov dword [esi + 0x84], vtable.inner::FCAutoCSec.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x84], vtable.inner::CReceiveBuffer.0
mov dword [esi + 0xb4], 0xf
mov dword [esi + 0xb0], ebx
mov byte [esi + 0xa0], bl
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [esi + 8], ecx
push eax
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 0xa
mov dword [esi + 0xc], edx
call fcn.00403090
lea ecx, [esi + 0x60]
push ecx
lea eax, [esi + 0x68]
push eax
lea eax, [esi + 0x64]
push eax
lea ecx, [esi + 0x10]
call fcn.00403670
mov ecx, esi
call fcn.00402e30
push ebx
push ebx
push esi
push 0x401760
push ebx
push ebx
mov dword [esi + 0xc0], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xcc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x44]
mov dword [esi + 0x5c], ebx
cmp eax, ebx
je 0x4045a0
mov edx, dword [esi + 8]
push ebx
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x405860
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x405879
lea eax, [esi + 0xd]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x405883
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x405ef0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x59134c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push edi
or ecx, 0x2001f
push ecx
xor ebx, ebx
push eax
push edx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x108], ebx
call fcn.00405740
mov edi, eax
cmp edi, ebx
je 0x405f6a
mov eax, dword [ebp - 0x110]
cmp eax, ebx
je 0x405f55
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046afc7
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x110]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x104]
push edx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [ebp - 0x114], 0x100
call ebx
test eax, eax
jne 0x405fe8
lea ecx, [ebp - 0x104]
push ecx
lea ecx, [ebp - 0x110]
call fcn.00405ef0
mov edi, eax
test edi, edi
jne 0x406021
lea edx, [ebp - 0x120]
push edx
mov edx, dword [ebp - 0x110]
push eax
push eax
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
push edx
mov dword [ebp - 0x114], 0x100
call ebx
test eax, eax
je 0x405fa0
mov eax, dword [ebp - 0x110]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp eax, edi
je 0x406003
push eax
call ebx
mov dword [ebp - 0x110], edi
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x10c], edi
push eax
cmp ecx, edi
je 0x40604b
mov edx, dword [esi]
push edx
call fcn.00405510
jmp 0x406054
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x405f55
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046afc7
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [ebp - 0x110]
cmp eax, edi
je 0x406063
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046afc7
mov esp, ebp
pop ebp
ret 4
Function at 0x40a8d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x40a8e8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xcc], 0
cmp dword [esi + 0x60], 4
jne 0x40a8ff
or dword [esi + 0x40], 0x800000
push edi
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 0x10]
call fcn.0040a6f0
mov edi, dword [esi + 0x40]
mov ecx, dword [esi + 0x68]
mov eax, dword [eax]
mov edx, dword [esi + 0xc4]
push 0
push edi
push 0
push 0
push 0
push ecx
push eax
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0xc8], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
test edx, edx
jg 0x40a952
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push esi
push 0x409f70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xd0], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41cd90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x5906dc]
cmp byte [eax + 0x50], 0
push edi
mov edi, ecx
je 0x41cda5
mov eax, 0x1020304
pop edi
ret
push esi
xor esi, esi
push 0
call fcn.0046eefc
add esp, 4
xor esi, eax
call fcn.0046ed31
shl eax, 0xc
xor esi, eax
mov eax, dword [edi + 8]
movzx ecx, word [eax + 0x24]
xor ecx, dword [eax + 0x38]
xor esi, ecx
call fcn.0046ed10
xor esi, eax
je 0x41cda8
mov eax, esi
pop esi
pop edi
ret
Function at 0x421260
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x59134c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov dword [esi + 0x104], 0
xor edi, edi
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov edx, dword [esi + 0x104]
mov eax, dword [eax + 0x24]
push 0
push edx
call eax
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push 0x40
lea eax, [ebp - 0x44]
push eax
call edx
cmp dword [esi + 0x104], 0
jne 0x4212ba
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.0044cd30
add esp, 8
mov cx, word [ebp - 0x44]
mov edx, 0x5a4d
cmp cx, dx
jne 0x421378
mov ax, word [ebp - 0x2c]
cmp ax, 0x40
jb 0x4212e1
mov ecx, dword [ebp - 8]
add dword [esi + 0x104], ecx
jmp 0x421306
movzx eax, word [ebp - 0x40]
mov cx, word [ebp - 0x42]
movzx edx, word [ebp - 0x42]
shl eax, 9
sub eax, edx
movzx ecx, cx
add eax, ecx
neg eax
sbb eax, eax
and eax, 0x200
add dword [esi + 0x104], eax
inc edi
cmp edi, 0x14
jl 0x421280
cmp edi, 0x14
je 0x421382
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov eax, dword [esi + 0x104]
mov edx, dword [edx + 0x24]
push 0
push eax
call edx
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
push 0xf8
lea edx, [esi + 0x160]
push edx
call eax
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
push 0
push 0x200
call eax
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push 6
lea eax, [ebp - 0x44]
push eax
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046afc7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x44]
cmp eax, 0x4550
je 0x421310
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0046afc7
mov esp, ebp
pop ebp
ret
Function at 0x4244e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x59134c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov dword [esi + 0x104], 0
xor edi, edi
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov edx, dword [esi + 0x104]
mov eax, dword [eax + 0x24]
push 0
push edx
call eax
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push 0x40
lea eax, [ebp - 0x44]
push eax
call edx
mov ax, word [ebp - 0x44]
mov ecx, 0x5a4d
cmp ax, cx
jne 0x4245d7
mov dx, word [ebp - 0x2c]
cmp dx, 0x40
jb 0x424544
mov eax, dword [ebp - 8]
jmp 0x424563
mov cx, word [ebp - 0x40]
movzx eax, cx
movzx ecx, word [ebp - 0x42]
movzx edx, word [ebp - 0x42]
shl eax, 9
sub eax, edx
add eax, ecx
neg eax
sbb eax, eax
and eax, 0x200
add dword [esi + 0x104], eax
inc edi
cmp edi, 0x14
jl 0x424500
cmp edi, 0x14
je 0x4245e1
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov eax, dword [esi + 0x104]
mov edx, dword [edx + 0x24]
push 0
push eax
call edx
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
push 0x108
lea edx, [esi + 0x160]
push edx
call eax
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
push 0
push 0x200
call eax
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push 6
lea eax, [ebp - 0x44]
push eax
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046afc7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x44]
cmp eax, 0x4550
je 0x42456f
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0046afc7
mov esp, ebp
pop ebp
ret
Function at 0x432ec0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov cl, byte [edx]
mov eax, 0x1505
test cl, cl
je 0x432ee7
push esi
mov esi, eax
shl esi, 5
add esi, eax
movzx eax, cl
mov cl, byte [edx + 1]
inc edx
add eax, esi
test cl, cl
jne 0x432ed2
pop esi
pop ebp
ret

Function at 0x432ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov dl, byte [esi]
xor eax, eax
test dl, dl
je 0x432f23
nop
mov ecx, eax
movsx eax, dl
shl ecx, 4
add ecx, eax
mov eax, ecx
and eax, 0xf0000000
mov edx, eax
not edx
and edx, ecx
shr eax, 0x18
inc esi
xor eax, edx
mov dl, byte [esi]
test dl, dl
jne 0x432f00
pop esi
pop ebp
ret

Function at 0x436eb0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488458
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x59134c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x4ae
lea ecx, [ebp - 0x14]
call fcn.0041b960
mov edi, dword [ebp - 0x14]
mov ecx, 0x12b
mov esi, 0x515d50
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 0
push 0
mov ecx, ebx
mov dword [ebp - 4], 0
movsw word es:[edi], word [esi]
call fcn.0041d0d0
mov eax, dword [ebx + 0x204]
mov ecx, dword [ebp - 0x14]
push eax
push 0x502f28
push 0x4ae
push ecx
mov ecx, ebx
call fcn.0041d190
mov edx, dword [ebx + 0x200]
mov eax, dword [ebp - 0x14]
push edx
push 0x4973b4
push 0x4ae
push eax
mov ecx, ebx
call fcn.0041d190
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x30]
mov esi, eax
mov ecx, 0xe
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0xc]
push ecx
push edx
lea ecx, [ebp - 0x54]
call fcn.0040dfe0
mov esi, dword [ebp + 8]
movzx eax, byte [esi + 0x14]
mov edx, dword [ebx]
mov edx, dword [edx + 0xb4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push 0x4ae
mov dword [ebp - 0x44], ecx
push eax
lea ecx, [ebp - 0x54]
push ecx
or edi, 0xffffffff
mov ecx, ebx
mov dword [ebp - 0x18], edi
call edx
mov ecx, dword [ebx + 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
add edx, 0x2c
push edx
call eax
mov ecx, dword [ebp - 0x14]
add eax, 2
shl eax, 5
mov edx, dword [ecx + eax]
test edx, edx
jne 0x436fc1
cmp eax, 0x80
jae 0x436fc1
mov eax, 0x80
mov edx, dword [ebp - 0x14]
mov ecx, 0x4ae
sub ecx, eax
push ecx
add edx, eax
push edx
lea ecx, [ebp - 0x54]
call fcn.0040e020
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebx]
mov edx, dword [eax + 0x100]
push esi
push 0x4ae
push ecx
push 0x74e9
push 0x50e860
mov ecx, ebx
call edx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.0041bbc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44cd30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0x40
jae 0x44cd3d
xor al, al
pop ebp
ret
mov ecx, dword [ebp + 8]
xor eax, eax
xor byte [eax + ecx], 0x68
inc eax
cmp eax, 0x40
jb 0x44cd42
mov al, 1
pop ebp
ret
Function at 0x458ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
call fcn.0046d8b9
mov ebx, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
test ebx, ebx
jle 0x458f4b
lea esp, [esp]
call fcn.0046d8b9
mov edx, dword [ebp + 8]
mov ecx, ebx
sub ecx, esi
push ecx
push edi
push edx
mov dword [eax], 0
call fcn.0047b8c2
add esp, 0xc
test eax, eax
je 0x458f4b
jns 0x458f43
call fcn.0046d8b9
cmp dword [eax], 0xb
je 0x458f47
call fcn.0046d8b9
cmp dword [eax], 4
je 0x458f47
call fcn.0046d8b9
cmp dword [eax], 0
jne 0x458f55
call fcn.0046d8b9
pop edi
mov dword [eax], 1
mov eax, esi
pop esi
pop ebx
pop ebp
ret
add edi, eax
add esi, eax
cmp esi, ebx
jl 0x458ef0
call fcn.0046d8b9
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x45c090
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, eax
mov eax, dword [ecx]
sub eax, edi
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x5c], edx
test edi, edi
je 0x45c104
push ebx
push esi
mov esi, dword [ecx + 0x60]
movzx ebx, byte [esi + edx]
movzx eax, byte [esi + edx + 1]
movzx esi, byte [esi + edx + 2]
shl ebx, 5
xor eax, ebx
mov ebx, dword [ecx + 0x68]
shl eax, 5
xor eax, esi
mov esi, dword [ecx + 0x64]
imul eax, eax, 0x9f5f
shr eax, 5
and eax, 0xffff
mov esi, dword [esi + eax*4]
mov dword [ebx + edx*4], esi
mov esi, dword [ecx + 0x64]
mov dword [esi + eax*4], edx
mov esi, dword [ecx + 4]
mov ebx, dword [ecx + 0x6c]
inc esi
mov dword [ebx + edx*4], esi
mov esi, dword [ecx + 0x70]
inc dword [esi + eax*4]
lea eax, [esi + eax*4]
mov eax, dword [ecx + 0x60]
movzx eax, word [eax + edx]
mov esi, dword [ecx + 0x74]
mov dword [esi + eax*4], edx
inc edx
dec edi
jne 0x45c0a3
pop esi
pop ebx
pop edi
ret
Function at 0x45ecc0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x45ecdc
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x45eddb
jmp 0x45ecf0
mov eax, ebx
cmp ebx, 0x15b0
jb 0x45ecff
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x45ed9e
lea ebx, [ebx]
movzx edx, byte [esi]
add ecx, edx
movzx edx, byte [esi + 1]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 2]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 3]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 4]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 5]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 6]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 7]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 8]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 9]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xa]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xb]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xc]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xd]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xe]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xf]
add edi, ecx
add ecx, edx
sub eax, 0x10
add edi, ecx
add esi, 0x10
cmp eax, 0x10
jge 0x45ed10
test eax, eax
je 0x45edaf
movzx edx, byte [esi]
add ecx, edx
dec eax
inc esi
add edi, ecx
test eax, eax
jg 0x45eda2
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
jne 0x45ecf0
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
pop ebp
ret

Function at 0x463d00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov dword [esi], 0
lea esp, [esp]
mov eax, dword [esi]
mov ecx, edi
sub ecx, eax
add eax, dword [ebp + 8]
push ecx
push eax
mov eax, dword [ebx + 0x14]
push eax
call fcn.0047b8c2
add esp, 0xc
test eax, eax
jle 0x463d33
add dword [esi], eax
cmp dword [esi], edi
jb 0x463d10
test eax, eax
jns 0x463d53
call fcn.0046d8b9
mov ecx, dword [eax]
push ecx
call fcn.0046ee15
push eax
push 0xffffffffffffffff
push ebx
call fcn.00464340
add esp, 0x10
or eax, 0xffffffff
pop ebp
ret
test eax, eax
jne 0x463d5e
mov dword [ebx + 0x40], 1
xor eax, eax
pop ebp
ret
Function at 0x46aa60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x59340c], 0
push esi
push edi
jne 0x46a9d6
call fcn.0046a942
test eax, eax
je 0x46aa1b
mov eax, dword [0x59340c]
cmp eax, 1
jne 0x46a9f7
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x46aa1b
jmp 0x46aa5d
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x46aa5d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x46aa1f
xor eax, eax
jmp 0x46aa5d
mov eax, dword [esi]
push dword [0x59340c]
call edi
mov edi, eax
test edi, edi
je 0x46aa41
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x46aa5d
lea edi, [esi + 0xff0]
push esi
push dword [0x59340c]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x46aa47
mov eax, esi
pop edi
pop esi
ret
jmp 0x46a9c2

Function at 0x46afc7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x59134c]
jne 0x46afd1
repz ret
jmp fcn.0047125c