joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476ea0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x476eb7
add esp, 0xfffffff0
call fcn.0040469c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424ff8
mov eax, dword [0x5196e4]
cmp word [eax + 2], 0
jne 0x476edf
mov eax, dword [0x5196e4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00478ba8
mov eax, dword [0x5198a0]
cmp word [eax + 2], 0
jne 0x476ef9
mov eax, dword [0x5198a0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00478db4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4199dc]
call fcn.00404308
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4199dc]
call fcn.00404308
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4199dc]
call fcn.00404308
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x42afe4]
call fcn.004332f0
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4770b0
mov eax, dword [0x51950c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004336c4
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x479478
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x51950c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040f7d8
test eax, eax
je 0x477000
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040ab24
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040f80c
test eax, eax
je 0x477014
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405438
mov byte [ebx + 0xd4], 0
push ebx
push 0x47861c
call fcn.00426174
mov dword [ebx + 0xc8], eax
mov eax, dword [0x519234]
cmp byte [eax], 0
jne 0x477065
mov eax, ebx
call fcn.004771f4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0047968c
mov eax, ebx
call fcn.0047a1f0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4770a5
call fcn.004046f4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x477474
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x477513
cmp dword [ebx + 0x94], 0
jne 0x47750d
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4773fc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x47750d
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4774d3
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x47750d
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041c4d8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4774e2
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47772c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x51ecd4]
cmp dword [eax + 0x30], 0
je 0x477889
test bl, bl
jne 0x4777da
cmp dword [esi + 0x9c], 0
jne 0x4777cf
mov eax, esi
call fcn.0047a06c
push eax
push 0x477658
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4777a0
mov eax, dword [0x51ecd4]
call fcn.0047a74c
test al, al
je 0x4777a0
mov eax, dword [0x51ecf8]
call fcn.00406524
mov edi, eax
cmp edi, 0
jl 0x4777a0
push 0
mov eax, dword [0x51ecf8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x47778a
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4777cf
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041c4d8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4777af
inc dword [esi + 0x9c]
jmp 0x477889
cmp dword [esi + 0x9c], 0
jle 0x477889
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x477889
cmp dword [esi + 0x44], 0
je 0x477835
mov eax, dword [0x51ecd4]
call fcn.0047a74c
test al, al
je 0x477835
mov eax, dword [0x51ecf8]
call fcn.00406524
mov edi, eax
cmp edi, 0
jl 0x477835
push 5
mov eax, dword [0x51ecf8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x47781f
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x477864
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041c4d8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x477844
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x51ecf8
mov ecx, 1
mov edx, dword [0x477638]
call fcn.004066d8
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x478370
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4783da
mov eax, ebx
call fcn.0047a74c
test al, al
jne 0x4783da
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004052b8
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x4783c7
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4783e7
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040521c
jmp 0x4783e7
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040521c
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x479870
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4798de
mov eax, esi
call fcn.004619d0
test al, al
je 0x4798de
mov eax, dword [ebx + 0x84]
call fcn.00461630
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4798de
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4798d2
push 0
mov eax, dword [ebx + 0x84]
call fcn.00461630
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004593f8
jmp 0x4798de
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004796ac
pop esi
pop ebx
ret

Function at 0x48dfd4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.004619d0
test al, al
je 0x48e036
cmp bl, 7
jne 0x48e00b
push 2
lea eax, [esp + 4]
push eax
push 0x100c
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
movzx edi, byte [esp]
sub edi, 0x30
jmp 0x48e010
mov edi, ebx
and edi, 0x7f
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xe0]
test eax, eax
je 0x48e036
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xe0]
push edi
push 0
push 0x100f
push eax
call sub.user32.dll_SendMessageA
mov byte [esi + 0x268], bl
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x49162c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov ebx, eax
cmp dword [0x520d98], 0
jne 0x491650
cmp dword [0x520d94], 0
jne 0x491650
push 0x520d94
call fcn.00409538
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
xor eax, dword [0x520d94]
xor edx, dword [0x520d98]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
xor eax, dword [0x520d9c]
xor edx, dword [0x520da0]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
call fcn.00407414
lea esi, [eax + 0x38]
mov eax, dword [esi]
xor dword [ebx + 0x10], eax
mov eax, dword [esi + 4]
xor dword [ebx + 0x14], eax
mov eax, dword [esi + 8]
xor dword [ebx + 0x18], eax
mov edx, 0x51ed64
mov ecx, 0x1c
mov eax, esi
call dword [0x513e54]
xor dword [ebx + 0x1c], eax
push esp
call fcn.00409538
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
xor eax, dword [esp]
xor edx, dword [esp + 4]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
xor eax, dword [esp + 8]
xor edx, dword [esp + 0xc]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
call fcn.0040c764
fld xword [0x491748]
fmulp st(1)
lea eax, [ebx + 0x30]
fstp qword [eax]
wait
call fcn.00492798
xor eax, dword [ebx + 0x30]
xor edx, dword [ebx + 0x34]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], edx
test byte [0x51ed6b], 0x40
je 0x49171d
mov edi, 4
mov esi, ebx
call fcn.00492794
xor dword [esi], eax
add esi, 4
dec edi
jne 0x491710
call fcn.00492798
xor eax, dword [ebx + 0x38]
xor edx, dword [ebx + 0x3c]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edx
mov ecx, 0x520d94
mov eax, ebx
mov edx, 0x40
call fcn.00492f5c
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x491754
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffb0
mov ebx, eax
test edx, edx
je 0x49177a
mov esi, ecx
dec esi
test esi, esi
jl 0x49177a
inc esi
xor eax, eax
mov edi, eax
and edi, 0x3f
movzx ecx, byte [edx + eax]
xor byte [esp + edi], cl
inc eax
dec esi
jne 0x49176a
mov eax, esp
call fcn.0049162c
mov edx, esp
lea eax, [esp + 0x40]
mov ecx, 0x40
call dword [0x513e6c]
mov eax, dword [esp + 0x40]
xor dword [ebx], eax
mov eax, dword [esp + 0x44]
xor dword [ebx + 4], eax
mov eax, dword [esp + 0x48]
xor dword [ebx + 8], eax
cmp dword [ebx], 1
jbe 0x49177a
cmp dword [ebx + 4], 7
jbe 0x49177a
cmp dword [ebx + 8], 0xf
jbe 0x49177a
mov eax, dword [esp + 0x4c]
shr eax, 0x18
mov dword [ebx + 0xc], eax
mov esi, dword [esp + 0x4c]
and esi, 7
test esi, esi
jle 0x4917d6
mov eax, ebx
call fcn.004917e0
dec esi
jne 0x4917cc
add esp, 0x50
pop edi
pop esi
pop ebx
ret
Function at 0x491880
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov edi, eax
test ebx, ebx
jle 0x4918d3
mov eax, dword [edi + 0xc]
add dword [edi + 0xc], ebx
test eax, eax
je 0x49189c
cmp eax, dword [edi + 0xc]
jbe 0x4918a7
mov eax, edi
xor ecx, ecx
xor edx, edx
call fcn.00491754
cmp ebx, 4
jl 0x4918c1
mov eax, edi
call fcn.004917e0
xor dword [esi], eax
add esi, 4
sub ebx, 4
test ebx, ebx
je 0x4918d3
jmp 0x4918a7
mov eax, edi
call fcn.004917e0
xor byte [esi], al
inc esi
shr eax, 8
dec ebx
test ebx, ebx
jne 0x4918c8
pop edi
pop esi
pop ebx
ret

Function at 0x4923fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
push eax
add esp, 0xfffff004
push eax
add esp, 0xfffff004
push eax
add esp, 0xfffff004
push eax
add esp, 0xfffff004
push eax
add esp, 0xffffffe8
mov esi, ecx
mov ebx, eax
add edx, eax
mov dword [esp + 8], esi
mov dword [esp + 0x10], edx
movzx eax, word [ebx]
mov dword [esp], eax
or eax, eax
je 0x49259f
add ebx, 2
mov eax, dword [esp]
test ah, 0x80
je 0x49245a
and eax, 0x7fff
movzx edx, word [ebx]
shl edx, 0xf
or eax, edx
mov dword [esp], eax
add ebx, 2
lea ebp, [esi - 1]
mov ecx, dword [ebx]
add ebx, 4
mov dword [esp + 0x14], ecx
mov edi, 1
cmp ebx, dword [esp + 0x10]
jae 0x49259f
mov ecx, dword [esp + 0x14]
test ecx, edi
jne 0x4924ae
mov al, byte [ebx]
inc ebx
mov byte [esi], al
inc esi
cmp ebx, dword [esp + 0x10]
lea eax, [esi - 3]
jae 0x49259f
cmp eax, ebp
jbe 0x4924a8
inc ebp
mov eax, dword [ebp]
mov edx, eax
shr eax, 0xc
xor eax, edx
and eax, 0xfff
mov dword [esp + eax*4 + 0x1c], ebp
add edi, edi
jne 0x492479
jmp 0x49245d
movzx edx, word [ebx]
add ebx, 2
mov eax, edx
and edx, 0xf
add edx, 2
shr eax, 4
cmp edx, 2
jne 0x4924cb
movzx edx, byte [ebx]
inc ebx
add edx, 0x12
mov eax, dword [esp + eax*4 + 0x1c]
mov ecx, esi
mov dword [esp + 0x18], edx
sub ecx, eax
cmp ecx, edx
jl 0x492589
cmp edx, 0x20
ja 0x492525
sub edx, 8
jg 0x4924f3
movq xmm0, qword [eax]
movq qword [esi], xmm0
jmp 0x492553
movq xmm0, qword [edx + eax]
movq xmm1, qword [eax]
cmp edx, 8
jle 0x49251a
movq xmm2, qword [eax + 8]
cmp edx, 0x10
jle 0x492515
movq xmm3, qword [eax + 0x10]
movq qword [esi + 0x10], xmm3
movq qword [esi + 8], xmm2
movq qword [esi], xmm1
movq qword [edx + esi], xmm0
jmp 0x492553
push esi
movups xmm2, xmmword [eax]
lea eax, [edx + eax - 0x10]
lea edx, [edx + esi - 0x10]
movups xmm1, xmmword [eax]
push edx
neg edx
and esi, 0xfffffff0
lea edx, [esi + edx + 0x10]
pop esi
movups xmm0, xmmword [edx + eax]
movaps xmmword [edx + esi], xmm0
add edx, 0x10
jl 0x49253f
movups xmmword [esi], xmm1
pop esi
movups xmmword [esi], xmm2
cmp esi, ebp
jbe 0x49256f
inc ebp
mov edx, dword [ebp]
mov eax, edx
shr edx, 0xc
xor eax, edx
and eax, 0xfff
mov dword [esp + eax*4 + 0x1c], ebp
cmp esi, ebp
ja 0x492557
add esi, dword [esp + 0x18]
cmp ebx, dword [esp + 0x10]
jae 0x49259f
add edi, edi
lea ebp, [esi - 1]
je 0x49245d
jmp 0x492475
push ebx
push esi
lea ebx, [edx + eax]
add esi, edx
neg edx
mov al, byte [edx + ebx]
mov byte [edx + esi], al
inc edx
jne 0x492592
pop esi
pop ebx
jmp 0x492553
mov eax, dword [esp]
add esp, 0x401c
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x492c74
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, esi
dec ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
add dword [ebp - 4], 4
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jae 0x492db7
mov eax, dword [ebp - 0xc]
and eax, dword [ebp - 0x10]
jne 0x492cef
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
mov byte [esi], al
inc dword [ebp - 4]
inc esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jae 0x492db7
mov eax, esi
sub eax, 3
cmp ebx, eax
jae 0x492ce4
inc ebx
mov eax, dword [ebx]
mov edx, eax
shr edx, 0xc
xor eax, edx
and eax, 0xfff
mov edx, dword [ebp + 8]
mov dword [edx + eax*4], ebx
shl dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0
jne 0x492ca6
jmp 0x492c87
mov eax, dword [ebp - 4]
movzx eax, word [eax]
add dword [ebp - 4], 2
mov edx, eax
and edx, 0xf
add edx, 2
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 2
jne 0x492d19
mov edx, dword [ebp - 4]
movzx edx, byte [edx]
add edx, 0x12
mov dword [ebp - 0x14], edx
inc dword [ebp - 4]
shr eax, 4
mov edx, dword [ebp + 8]
mov edx, dword [edx + eax*4]
mov ecx, esi
sub ecx, edx
cmp ecx, dword [ebp - 0x14]
jae 0x492d53
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x18], eax
add dword [ebp - 0x1c], eax
neg eax
mov edx, dword [ebp - 0x18]
movzx edx, byte [edx + eax]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + eax], dl
inc eax
test eax, eax
jne 0x492d3f
jmp 0x492d7a
cmp dword [ebp - 0x14], 8
jbe 0x492d6a
mov ecx, dword [ebp + 8]
mov eax, edx
mov edx, esi
mov ecx, dword [ebp - 0x14]
call fcn.00491a34
jmp 0x492d7a
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax*4]
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jae 0x492db7
cmp esi, ebx
jbe 0x492d9f
inc ebx
mov eax, dword [ebx]
mov edx, eax
shr edx, 0xc
xor eax, edx
and eax, 0xfff
mov edx, dword [ebp + 8]
mov dword [edx + eax*4], ebx
cmp esi, ebx
ja 0x492d86
add esi, dword [ebp - 0x14]
mov ebx, esi
dec ebx
shl dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0
jne 0x492ca6
jmp 0x492c87
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4936b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor esi, esi
mov ecx, 0x51ed88
mov eax, esi
mov edx, 8
test al, 1
je 0x4936ce
shr eax, 1
xor eax, 0x82f63b78
jmp 0x4936d0
shr eax, 1
dec edx
jne 0x4936c1
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4936ba
mov esi, pe_nt_image_headers32
mov edi, 0x51ed88
mov eax, dword [edi]
mov edx, 7
lea ecx, [edi + 0x400]
movzx ebx, al
mov ebx, dword [ebx*4 + 0x51ed88]
shr eax, 8
xor ebx, eax
mov eax, ebx
mov dword [ecx], eax
add ecx, 0x400
dec edx
jne 0x4936f8
add edi, 4
dec esi
jne 0x4936eb
mov eax, 0x4933a8
mov dword [0x520d88], eax
mov eax, 0x4934a4
mov dword [0x520d8c], eax
call fcn.004927fc
pop edi
pop esi
pop ebx
ret
Function at 0x494da4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x494e7b
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00494408
test al, al
je 0x494e65
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00494fc4
mov eax, dword [ebp - 4]
test eax, eax
je 0x494de9
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
cmp byte [ebp - 6], 0
jne 0x494e09
lea edx, [ebx + 2]
lea eax, [ebp - 4]
call fcn.004058e8
mov eax, dword [ebp - 4]
add eax, ebx
mov word [eax], 0xa0d
add ebx, 2
mov eax, 0x52101c
call fcn.004971f0
xor eax, eax
push ebp
push 0x494e5e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 8], 0
jne 0x494e30
movzx eax, byte [ebp - 5]
call fcn.00494d5c
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x520fd4]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494e65
mov eax, 0x52101c
call fcn.004971f8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494e82
lea eax, [ebp - 4]
call fcn.004051c8
ret

Function at 0x495004
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
mov esi, edx
mov ebx, eax
test ebx, ebx
je 0x49501b
xor eax, eax
mov dword [ebx], eax
test esi, esi
je 0x495023
xor eax, eax
mov dword [esi], eax
mov dword [ebp - 4], 0x200
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x204]
push eax
call sub.kernel32.dll_GetComputerNameW
mov eax, esi
call fcn.004051c8
mov edx, eax
lea eax, [ebp - 0x204]
call fcn.004942cc
mov dword [ebp - 4], 0x200
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x204]
push eax
call sub.advapi32.dll_GetUserNameW
mov eax, ebx
call fcn.004051c8
mov edx, eax
lea eax, [ebp - 0x204]
call fcn.004942cc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4950c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
push 0x40
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x49519c
cmp dword [ebp + 0xc], 0
je 0x495107
mov edx, dword [ebp - 4]
dec edx
test edx, edx
jl 0x495107
inc edx
xor eax, eax
movzx ecx, byte [ebx + eax]
mov edi, dword [ebp + 0xc]
mov byte [edi + eax], cl
inc eax
dec edx
jne 0x4950f9
mov edx, dword [ebp - 4]
dec edx
test edx, edx
jl 0x49511d
inc edx
xor eax, eax
movzx ecx, byte [esi + eax]
mov byte [ebx + eax], cl
inc eax
dec edx
jne 0x495112
cmp byte [ebp + 8], 0
jne 0x495135
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
mov eax, ebx
mov ecx, esi
mov edx, dword [ebp - 4]
lea edx, [eax + edx - 4]
cmp edx, eax
jl 0x495164
mov ebx, dword [eax]
cmp ebx, dword [ecx]
jne 0x495180
add eax, 4
add ecx, 4
cmp edx, eax
jge 0x495154
add edx, 4
mov esi, eax
sub ecx, esi
cmp edx, esi
jle 0x49517c
movzx ebx, byte [ecx + eax]
cmp bl, byte [eax]
jne 0x495180
inc eax
cmp edx, eax
jg 0x49516f
mov al, 1
jmp 0x495182
xor eax, eax
test al, al
jne 0x49519c
mov ecx, 0x4951b0
mov dl, 1
mov eax, dword [0x4087ec]
call fcn.0040e7d8
call fcn.00404bec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x495248
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffec
push ebx
push esi
push edi
mov byte [ebp - 0x1009], cl
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.004051c8
lea eax, [ebp - 0x1008]
lea edx, [eax + 8]
mov dword [eax + 4], edx
mov edx, 0xff0
mov dword [eax], edx
mov dword [ebp - 0x1014], edx
lea eax, [ebp - 0x1014]
push eax
mov eax, dword [ebp - 0x1004]
push eax
lea eax, [ebp - 0x1010]
push eax
push 0
push edi
mov eax, dword [ebx]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x4952e0
cmp eax, 0xea
jne 0x495334
mov edx, dword [ebp - 0x1014]
lea eax, [ebp - 0x1008]
call fcn.00492e7c
lea eax, [ebp - 0x1014]
push eax
mov eax, dword [ebp - 0x1004]
push eax
push 0
push 0
push edi
mov eax, dword [ebx]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x495319
mov eax, dword [ebp - 0x1010]
dec eax
sub eax, 2
jb 0x4952f5
sub eax, 4
jne 0x495309
mov eax, esi
call fcn.004051c8
mov edx, eax
mov eax, dword [ebp - 0x1004]
call fcn.004942cc
cmp byte [ebp - 0x1009], 0
je 0x495319
mov eax, esi
call fcn.00491468
lea eax, [ebp - 0x1008]
lea ecx, [eax + 8]
mov edx, dword [eax + 4]
cmp ecx, edx
je 0x495334
test edx, edx
je 0x495334
mov eax, edx
call fcn.00402fe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4