joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0bec
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4a0c8e
cmp dword [ebx + 0x94], 0
jne 0x4a0c88
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4a0b38
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4a0c88
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_GetWindowLongW
test al, 8
je 0x4a0c4e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4a0c88
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.00424510
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4a0c5d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x554d00]
cmp dword [eax + 0x170], 0
je 0x4a1011
test bl, bl
jne 0x4a0f5f
cmp dword [esi + 0x9c], 0
jne 0x4a0f54
mov eax, esi
call fcn.004a3d9c
push eax
push 0x4a0db8
call sub.USER32.DLL_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4a0f25
mov eax, dword [0x554d00]
cmp byte [eax + 0xd3], 0
je 0x4a0f25
mov eax, dword [esi + 0xd8]
call fcn.00459f4c
mov edi, eax
cmp edi, 0
jl 0x4a0f25
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.USER32.DLL_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a0f0e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a0f54
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00424510
push eax
call sub.USER32.DLL_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a0f34
inc dword [esi + 0x9c]
jmp 0x4a1011
cmp dword [esi + 0x9c], 0
jle 0x4a1011
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4a1011
cmp dword [esi + 0x44], 0
je 0x4a0fbc
mov eax, dword [0x554d00]
cmp byte [eax + 0xd3], 0
je 0x4a0fbc
mov eax, dword [esi + 0xd8]
call fcn.00459f4c
mov edi, eax
cmp edi, 0
jl 0x4a0fbc
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.USER32.DLL_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a0fa5
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a0feb
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00424510
push eax
call sub.USER32.DLL_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a0fcb
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x49402c]
call fcn.0045a10c
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4a1c60
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4a1ccb
cmp byte [ebx + 0xd3], 0
jne 0x4a1ccb
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.USER32.DLL_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004589cc
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4a1cb8
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4a1cd8
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00458890
jmp 0x4a1cd8
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00458890
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4a3500
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4a356e
mov eax, esi
call fcn.004c28d0
test al, al
je 0x4a356e
mov eax, dword [ebx + 0x84]
call fcn.004c2524
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4a356e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4a3562
push 0
mov eax, dword [ebx + 0x84]
call fcn.004c2524
push eax
call sub.USER32.DLL_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004b94f8
jmp 0x4a356e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004a3338
pop esi
pop ebx
ret
Function at 0x4a9800
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00458878
xor eax, eax
push ebp
push 0x4a9995
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.USER32.DLL_OpenClipboard
test eax, eax
je 0x4a9963
xor edx, edx
push ebp
push 0x4a995c
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004588e4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4a986f
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4a986f
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00458244
test eax, eax
je 0x4a9878
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4a9931
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x4a9920
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004588e4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4a98da
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4a98da
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00458244
test eax, eax
je 0x4a98e3
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.0045891c
lea ecx, [esi + 2]
mov edx, ebx
call fcn.0045644c
call sub.USER32.DLL_EmptyClipboard
mov eax, dword [ebp - 0x10]
push eax
push 0xd
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9927
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
mov ecx, dword [0x51f9f4]
mov dl, 1
mov eax, dword [0x439f34]
call fcn.00443c28
call fcn.004579a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a999c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00458888
ret
Function at 0x4b6b50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x554dc4], 0
je 0x4b6c91
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x51f894]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x4b6c91
mov eax, dword [0x554dc8]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x554dc4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4b6c60
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x554dc4]
call fcn.00424510
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4b6c58
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1ea], 0
je 0x4b6c58
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x5c]
test al, al
je 0x4b6c58
mov eax, dword [ebp - 0x14]
call fcn.004c2524
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4b6c58
push ebp
call fcn.004b6b0c
pop ecx
test al, al
jne 0x4b6c58
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00457154
test al, al
je 0x4b6c58
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00457154
cmp byte [ebp - 1], 0
je 0x4b6c58
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0043880c
test al, al
je 0x4b6c58
mov edx, dword [ebp - 0x14]
mov eax, dword [0x554dc8]
call fcn.004b6264
inc edi
dec ebx
jne 0x4b6bb5
mov eax, dword [0x554dc8]
cmp dword [eax + 8], 0
jle 0x4b6c78
mov eax, dword [0x554dc8]
call fcn.004b631c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4b6c91
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004b6970
pop ecx
test al, al
jne 0x4b6c91
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bf0d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.USER32.DLL_GetMessagePos
call fcn.004387f4
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.004b9118
test ebx, ebx
jne 0x4bf123
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004bef4c
mov ebx, eax
test ebx, ebx
je 0x4bf219
cmp esi, ebx
je 0x4bf14c
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x4bf161
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x4bf199
add eax, 0xffffff5f
sub eax, 2
jb 0x4bf1b1
dec eax
sub eax, 2
jb 0x4bf1c5
dec eax
sub eax, 2
jb 0x4bf1bb
jmp 0x4bf1cf
add eax, 0xfffffdff
sub eax, 2
jb 0x4bf1b1
dec eax
sub eax, 2
jb 0x4bf1c5
dec eax
sub eax, 2
jb 0x4bf1bb
jmp 0x4bf1cf
mov byte [esp + 0x120], 0
jmp 0x4bf1d7
mov byte [esp + 0x120], 2
jmp 0x4bf1d7
mov byte [esp + 0x120], 1
jmp 0x4bf1d7
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.USER32.DLL_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00496204
mov esi, eax
call fcn.004b5a04
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004baac8
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4bf21b
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x4e2294
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4e22b0
call fcn.004e38e0
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4e22cf
test bl, 1
je 0x4e22cf
call fcn.004ea110
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4e24b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004e345c
test byte [ebp + 0xd], 0xc0
jne 0x4e24d4
mov eax, dword [0x517e58]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4e24e1
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4e250e
je 0x4e2520
sub ecx, 0x100
je 0x4e2532
sub ecx, 0x100
je 0x4e253b
sub ecx, 0x100
je 0x4e2529
jmp 0x4e2544
sub ecx, 0x600
je 0x4e253b
sub ecx, 0x100
je 0x4e2520
jmp 0x4e2544
mov dword [ebp - 8], 1
jmp 0x4e254b
mov dword [ebp - 8], 2
jmp 0x4e254b
mov dword [ebp - 8], 4
jmp 0x4e254b
mov dword [ebp - 8], 5
jmp 0x4e254b
mov dword [ebp - 8], 3
test byte [ebp + 0xd], 1
je 0x4e2572
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x5178d0]
test al, 0x80
je 0x4e256b
mov ebx, 0x80
jmp 0x4e2584
mov ebx, 1
jmp 0x4e2584
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4e2584
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4e2596
je 0x4e259f
dec eax
je 0x4e25a8
jmp 0x4e25b1
mov dword [ebp - 4], accept
jmp 0x4e25c0
mov dword [ebp - 4], 0x40000000
jmp 0x4e25c0
mov dword [ebp - 4], 0xc0000000
jmp 0x4e25c0
push 1
call fcn.004e3874
pop ecx
mov ebx, eax
jmp 0x4e26c0
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4e25dc
sub eax, 0x10
je 0x4e25e0
sub eax, 0x10
je 0x4e25e7
sub eax, 0x10
je 0x4e25ee
jmp 0x4e25ee
xor edi, edi
jmp 0x4e25f3
mov edi, 1
jmp 0x4e25f3
mov edi, 2
jmp 0x4e25f3
mov edi, 3
test byte [ebp + 0xc], 4
je 0x4e260b
cmp dword [ebp - 4], 0x80000000
jne 0x4e2609
mov edi, 1
jmp 0x4e260b
xor edi, edi
mov dword [ebp - 0x14], 0xc
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
and edx, 0x80
cmp edx, 1
sbb ecx, ecx
neg ecx
mov dword [ebp - 0xc], ecx
push 0
push ebx
mov ecx, dword [ebp - 8]
push ecx
lea eax, [ebp - 0x14]
push eax
push edi
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4e2679
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4e266e
test byte [ebp + 0xd], 1
je 0x4e2669
mov ebx, 0x50
jmp 0x4e266e
mov ebx, 2
push ebx
call fcn.004e3874
pop ecx
mov ebx, eax
jmp 0x4e26c0
mov edi, esi
push edi
call fcn.004e2414
pop ecx
test eax, eax
je 0x4e268d
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4e2699
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004e359c
add esp, 8
mov ebx, eax
inc eax
jne 0x4e26c0
push 4
call fcn.004e3874
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004e3490
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e666c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.004e0e48
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
call fcn.004e0ef8
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004e0ef8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x518b0d
lea ecx, [ebp - 0x200]
push ecx
call fcn.004e0e48
add esp, 8
push 0xa
lea ecx, [ebp - 0x200]
push ecx
call fcn.004e0ef8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov eax, dword [ebx]
push eax
call fcn.004e7b0c
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x4e677d
push esi
call fcn.004e0ef8
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.004e0ef8
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.004e0050
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x4e6754
xor eax, eax
jmp 0x4e6804
push esi
call fcn.004e0ef8
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.004e0ef8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.004e0d77
add esp, 0xc
jmp 0x4e67bd
mov edi, dword [ebx + 0x24]
push edi
call fcn.004e0ef8
pop ecx
push eax
push esi
call fcn.004e0ef8
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004e0ef8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.004e0070
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x4e67bd
xor eax, eax
jmp 0x4e6804
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.004e0e48
add esp, 8
push 0x518b0f
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004e0e48
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
mov eax, dword [ebx + 0x24]
push eax
call fcn.004e0e48
add esp, 8
push 0x518b11
mov edx, dword [ebx + 0x24]
push edx
call fcn.004e0e48
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ea0a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x4ea0d1
jmp 0x4ea108
call fcn.004ea054
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004e0ef8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004e0ef8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4ea18c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x51914c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4ea266
cmp dword [0x519148], 0
jne 0x4ea266
cmp dword [0x519368], 0
je 0x4ea220
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004e9b5c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4ea206
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004e9b5c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4ea206
lea ebx, [ebp - 0x84]
jmp 0x4ea207
inc ebx
call fcn.004ea144
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4ea2a1
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x519150
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004e0ef8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x519153
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4ea2a1
cmp dword [0x519148], 0
je 0x4ea280
cmp dword [0x519148], 0xffffffff
je 0x4ea2a1
push esi
call dword [0x519148]
pop ecx
mov eax, dword [0x51914c]
test eax, eax
je 0x4ea2a1
cmp dword [0x51914c], 0xffffffff
je 0x4ea2a1
cmp byte [eax], 0
je 0x4ea2a1
push esi
push eax
call fcn.004ea0a4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4eaeb0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x555b28], 0
jne 0x4eaf31
cmp dword [0x555b48], 0
jne 0x4eaee0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x555b48], eax
test eax, eax
jne 0x4eaee0
push str.GetEnvironmentStrings_failed
call fcn.004ea2b8
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x555b48]
jmp 0x4eaef4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004e0ef8
pop ecx
mov edi, eax
test eax, eax
jne 0x4eaeec
lea edi, [ebp + 1]
push edi
call fcn.004e0050
pop ecx
mov ebx, eax
mov dword [0x555b2c], ebx
test ebx, ebx
jne 0x4eaf1e
xor eax, eax
jmp 0x4eaff4
push edi
mov edx, dword [0x555b48]
push edx
push ebx
call fcn.004e0b90
add esp, 0xc
jmp 0x4eaf51
xor esi, esi
mov ebx, dword [0x555b28]
jmp 0x4eaf4b
push eax
call fcn.004e0ef8
pop ecx
test eax, eax
jne 0x4eaf47
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4eaf3b
lea ebx, [esi + 4]
push 4
mov dword [0x555b30], ebx
inc ebx
push ebx
call fcn.004dffb4
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4eaf74
xor eax, eax
jmp 0x4eaff4
cmp dword [0x555b28], 0
jne 0x4eafa5
xor esi, esi
mov ebx, dword [0x555b2c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4eaf96
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004e0ef8
pop ecx
mov edi, eax
test eax, eax
jne 0x4eaf8c
jmp 0x4eafd6
xor esi, esi
mov ebx, dword [0x555b28]
mov eax, dword [esp]
mov edi, eax
jmp 0x4eafd0
push eax
call fcn.004e0ef8
pop ecx
test eax, eax
je 0x4eafc5
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4eafc9
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4eafb4
mov eax, dword [0x555b28]
test eax, eax
je 0x4eafe6
push eax
call fcn.004e0060
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x555b28], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4ebb04
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
jge 0x4ebb2a
test esi, esi
je 0x4ebb2a
call fcn.004ea110
mov dword [eax], 0x13
or eax, 0xffffffff
jmp 0x4ebb9c
call fcn.004eb808
mov ebx, eax
test eax, eax
jne 0x4ebb45
call fcn.004ea110
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x4ebb9c
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 4]
mov dword [ebx + 4], edx
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x14], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebx + 0x58], ecx
push eax
mov edx, dword [ebp + 0x18]
push edx
push ebx
push 0x4eba60
push esi
mov ecx, dword [ebp + 0x14]
push ecx
call sub.KERNEL32.DLL_CreateThread
test eax, eax
jne 0x4ebb90
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x718
jne 0x4ebb89
push 0x59
call fcn.004e3874
pop ecx
jmp 0x4ebb9c
call fcn.004e38e0
jmp 0x4ebb9c
mov dword [ebx + 8], eax
test edi, edi
je 0x4ebb9c
mov edx, dword [ebp - 4]
mov dword [edi], edx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4eef04
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
not eax
test ecx, ecx
jbe 0x4eef37
xor ebx, ebx
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ebx*4 + 0x51a1d8]
xor ebx, eax
dec ecx
mov eax, ebx
test ecx, ecx
ja 0x4eef17
not eax
pop ebx
pop ebp
ret

Function at 0x4ef140
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd5c
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x4ef15a
or eax, 0xffffffff
jmp 0x4ef21a
mov ax, 0x101
lea edx, [ebp - 0x294]
push edx
push eax
call sub.WS2_32.DLL_WSAStartup
push 0x100
lea ecx, [ebp - 0x104]
push ecx
call sub.WS2_32.DLL_gethostname
test eax, eax
je 0x4ef188
or eax, 0xffffffff
jmp 0x4ef21a
lea edx, [ebp - 0x104]
push edx
call sub.WS2_32.DLL_gethostbyname
mov ebx, eax
test ebx, ebx
jne 0x4ef19f
or eax, 0xffffffff
jmp 0x4ef21a
xor esi, esi
jmp 0x4ef20a
push 0x10
call fcn.004e0050
pop ecx
mov edi, eax
mov edx, edi
mov eax, dword [ebp + 8]
call fcn.00424350
movsx ecx, word [ebx + 0xa]
push ecx
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + esi*4]
push edx
lea ecx, [ebp - 0x2a0]
push ecx
call fcn.004e0b90
add esp, 0xc
mov eax, dword [ebp - 0x2a0]
push eax
call sub.WS2_32.DLL_inet_ntoa
mov dword [ebp - 4], eax
xor eax, eax
mov edx, dword [ebp - 4]
push esi
push edi
mov esi, edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
inc esi
mov eax, dword [ebx + 0xc]
cmp dword [eax + esi*4], 0
jne 0x4ef1a3
call sub.WS2_32.DLL_WSACleanup
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret