joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ec58
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, eax
call fcn.00406abc
mov edx, dword [0x4e78f0]
cmp eax, dword [edx]
je 0x41ec9b
call fcn.00406abc
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [0x4e7648]
mov dl, 1
mov eax, dword [0x416e08]
call fcn.0040c674
call fcn.00403f88
test ebx, ebx
jle 0x41eca8
mov eax, ebx
call fcn.0041ec18
jmp 0x41ecad
call fcn.0041ec0c
xor eax, eax
mov dword [ebp - 0xc], eax
push 0x4e886c
call fcn.00406a34
xor eax, eax
push ebp
push 0x41ede6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push 0x4e53fc
call fcn.00406a84
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x41edc7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x41ecf8
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
jg 0x41ecfc
xor eax, eax
jmp 0x41ecfe
mov al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x41edb1
jmp 0x41eda4
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00418714
mov dword [ebp - 8], eax
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00418604
push 0x4e886c
call sub.KERNEL32.DLL_GetCommandLineA
xor eax, eax
push ebp
push 0x41ed91
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x41ed62
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
mov eax, dword [ebx + 0xc]
call dword [ebx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41ed79
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ed98
push 0x4e886c
call fcn.00406a34
ret
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
jg 0x41ed10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41edce
mov eax, dword [ebp - 0xc]
call fcn.004037fc
ret
Function at 0x41f0a0
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 4], edx
call fcn.00406abc
mov edx, dword [0x4e78f0]
cmp eax, dword [edx]
jne 0x41f0c7
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call dword [ebx + 8]
jmp 0x41f1da
push 0
push 0
push 0xffffffffffffffff
push 0
call fcn.004069e4
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x41f1c2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e886c
call fcn.00406a34
xor eax, eax
push ebp
push 0x41f1a4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e53fc], 0
jne 0x41f117
mov dl, 1
mov eax, dword [0x416028]
call fcn.004037cc
mov dword [0x4e53fc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
mov eax, dword [0x4e53fc]
call fcn.004185b8
call fcn.0041ec34
cmp word [0x4e53ea], 0
je 0x41f14a
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov eax, dword [0x4e53ec]
call dword [0x4e53e8]
push 0x4e886c
call sub.KERNEL32.DLL_GetCommandLineA
xor eax, eax
push ebp
push 0x41f185
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_CreateThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f18c
push 0x4e886c
call fcn.00406a34
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f238
Capabilities:
Create thread

Disassembly:
push ebx
push esi
add esp, 0xffffffd8
mov esi, eax
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
call fcn.00406abc
mov edx, dword [0x4e78f0]
cmp eax, dword [edx]
jne 0x41f2ad
xor ebx, ebx
mov eax, dword [0x4e8854]
mov dword [esp + 8], eax
cmp ebx, 2
jne 0x41f277
push 0
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call fcn.004072a4
push pe_nt_image_headers32
push 0x3e8
push 0
lea eax, [esp + 0x10]
push eax
push 2
call fcn.00407284
mov ebx, eax
cmp ebx, 0xffffffff
setne dl
mov eax, esi
call fcn.0041f060
cmp ebx, 1
jne 0x41f2a7
xor eax, eax
call fcn.0041ec58
test ebx, ebx
jne 0x41f260
jmp 0x41f2b9
push 0xffffffffffffffff
mov eax, dword [esp + 8]
push eax
call sub.KERNEL32.DLL_CreateThread
push esp
mov eax, dword [esp + 8]
push eax
call fcn.00406ad4
cmp eax, 1
sbb edx, edx
inc edx
mov eax, esi
call fcn.0041f060
mov eax, dword [esp]
add esp, 0x28
pop esi
pop ebx
ret

Function at 0x421a6c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x421a72
ret

Function at 0x421aec
Capabilities:
Accept command line arguments

Disassembly:
add eax, 8
push eax
call sub.KERNEL32.DLL_GetCommandLineA
ret
Function at 0x428754
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x42177c]
call fcn.004037cc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4287db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], esi
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov esi, eax
lea edi, [edx + 0x18]
mov ecx, 0x15
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
mov dl, byte [ebp + 0xc]
mov byte [eax + 0x70], dl
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x4287bd
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 8]
mov edx, dword [0x4169a0]
call fcn.004039ac
mov edx, dword [ebp - 8]
mov dword [edx + 0x6c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4287f2
push 0x4e88b0
call fcn.00406a34
xor edx, edx
push ebp
push 0x42883b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.004271dc
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 0x28], eax
call fcn.004271d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428842
push 0x4e88b0
call sub.KERNEL32.DLL_GetCommandLineA
ret

Function at 0x429de0
Capabilities:
Accept command line arguments

Disassembly:
add eax, 8
push eax
call sub.KERNEL32.DLL_GetCommandLineA
ret
Function at 0x42d6a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42d851
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00404c80
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x42d868
call fcn.004048dc
mov eax, ebx
call fcn.0041f900
mov edi, eax
dec edi
test edi, edi
jl 0x42d758
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041f8d4
mov edx, dword [0x435600]
call fcn.00403988
test al, al
je 0x42d754
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.0041f8d4
lea edx, [ebp - 0x14]
call fcn.00443700
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00404c80
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404950
inc esi
dec edi
jne 0x42d706
mov al, byte [0x42d86c]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x42d878
mov eax, dword [ebp - 0xc]
call fcn.0040da48
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404668
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00443700
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x42d868
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.00443700
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x42d868
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x42d868
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x42d884
call fcn.00409b00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d858
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.004045f4
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004045f4
lea eax, [ebp - 0x14]
call fcn.004045d0
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004045f4
ret
Function at 0x44e8b8
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4e78f4]
cmp byte [eax + 0xc], 0
je 0x44ea25
push 0x8000
call sub.KERNEL32.DLL_TlsSetValue
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44ea1e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e8b98], 0
jne 0x44e90c
push 0x44ea2c
call fcn.00406b0c
mov ebx, eax
push 0x44ea34
push ebx
call fcn.00406b14
mov dword [0x4e8b98], eax
cmp dword [0x4e5cb4], 0
jne 0x44ea07
push 0x44ea44
call sub.KERNEL32.DLL_GetStartupInfoA
mov dword [0x4e5cb4], eax
cmp dword [0x4e5cb4], 0
je 0x44ea07
push 0x44ea50
mov eax, dword [0x4e5cb4]
push eax
call fcn.00406b14
mov dword [0x4e8b9c], eax
push 0x44ea60
mov eax, dword [0x4e5cb4]
push eax
call fcn.00406b14
mov dword [0x4e8ba0], eax
push 0x44ea74
mov eax, dword [0x4e5cb4]
push eax
call fcn.00406b14
mov dword [0x4e8ba4], eax
push 0x44ea8c
mov eax, dword [0x4e5cb4]
push eax
call fcn.00406b14
mov dword [0x4e8ba8], eax
push 0x44eaa4
mov eax, dword [0x4e5cb4]
push eax
call fcn.00406b14
mov dword [0x4e8bac], eax
push 0x44eab8
mov eax, dword [0x4e5cb4]
push eax
call fcn.00406b14
mov dword [0x4e8bb0], eax
push 0x44ead0
mov eax, dword [0x4e5cb4]
push eax
call fcn.00406b14
mov dword [0x4e8bb4], eax
push 0x44eae8
mov eax, dword [0x4e5cb4]
push eax
call fcn.00406b14
mov dword [0x4e8bb8], eax
push 0x44eb04
mov eax, dword [0x4e5cb4]
push eax
call fcn.00406b14
mov dword [0x4e8bbc], eax
push 0x44eb10
mov eax, dword [0x4e5cb4]
push eax
call fcn.00406b14
mov dword [0x4e8bc0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ea25
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_TlsSetValue
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x46182c
Capabilities:
Create thread

Disassembly:
cmp dword [0x4e8bfc], 0
je 0x461840
mov eax, dword [0x4e8bfc]
push eax
call fcn.0040740c
xor eax, eax
mov dword [0x4e8bfc], eax
cmp dword [0x4e8c00], 0
je 0x461887
mov eax, dword [0x4e8bf8]
push eax
call sub.KERNEL32.DLL_CloseHandle
call fcn.00406abc
cmp eax, dword [0x4e8bf4]
je 0x461875
push 0xffffffffffffffff
mov eax, dword [0x4e8c00]
push eax
call sub.KERNEL32.DLL_CreateThread
mov eax, dword [0x4e8c00]
push eax
call fcn.004069c4
xor eax, eax
mov dword [0x4e8c00], eax
ret
Function at 0x47b7d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47b7fe
mov eax, ebx
call fcn.0047c284
cmp dword [ebx + 0x40], 0
je 0x47b7f7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47b86f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47b861
cmp dword [ebx + 8], 0
je 0x47b820
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47b832
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47b861
cmp dword [ebx + 8], 0
je 0x47b813
cmp eax, 3
je 0x47b845
dec eax
jne 0x47b813
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47b813
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47b813
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47b88d
cmp dword [ebx + 0x14], 0xcc
je 0x47b88d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047b898
pop ebx
ret
Function at 0x48d1b4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x48d1bc
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x48d3ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x48d3c4
mov eax, esi
call fcn.00473688
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404624
lea ecx, [ebp - 0x10]
mov edx, 0x48d3d8
mov eax, esi
call fcn.00473688
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404624
lea ecx, [ebp - 0x14]
mov edx, 0x48d3f0
mov eax, esi
call fcn.00473688
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404624
lea ecx, [ebp - 0x18]
mov edx, 0x48d40c
mov eax, esi
call fcn.00473688
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404624
lea ecx, [ebp - 0x1c]
mov edx, 0x48d428
mov eax, esi
call fcn.00473688
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404624
lea ecx, [ebp - 0x24]
mov edx, 0x48d440
mov eax, esi
call fcn.00473688
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408958
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408ea0
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x48d458
mov eax, esi
call fcn.00473688
mov eax, dword [ebp - 0x28]
call fcn.0046cce4
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x48d468
mov eax, esi
call fcn.00473688
mov eax, dword [ebp - 0x2c]
call fcn.0046cce4
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x48d480
mov eax, esi
call fcn.00473688
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408ea0
inc eax
je 0x48d351
lea ecx, [ebp - 0x34]
mov edx, 0x48d480
mov eax, esi
call fcn.00473688
mov eax, dword [ebp - 0x34]
call fcn.00408e64
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a3d0
fstp qword [ebp - 0x3c]
wait
call fcn.0040a794
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x48d36c
lea ecx, [ebp - 0x40]
mov edx, 0x48d480
mov eax, esi
call fcn.00473688
mov eax, dword [ebp - 0x40]
call fcn.0046cce4
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x48d490
mov eax, esi
call fcn.00473688
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404624
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d3b5
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004045f4
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004045f4
ret
Function at 0x494108
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x494162
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004940f8
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0046b854
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0046b454
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494169
lea eax, [ebp - 4]
call fcn.004045d0
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe48
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x4e0c52
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x198]
push eax
push 2
call sub.wsock32.dll_WSAStartup
lea eax, [ebp - 8]
mov edx, 0xff
call fcn.00404c1c
push 0xff
mov eax, dword [ebp - 8]
call fcn.00404a90
push eax
call sub.wsock32.dll_gethostname
mov eax, dword [ebp - 8]
call fcn.00404a90
call fcn.00409424
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404c1c
mov eax, dword [ebp - 8]
call fcn.00404a90
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
xor eax, eax
mov al, byte [esi]
mov dword [ebp - 0x1b8], eax
mov byte [ebp - 0x1b4], 0
xor eax, eax
mov al, byte [esi + 1]
mov dword [ebp - 0x1b0], eax
mov byte [ebp - 0x1ac], 0
xor eax, eax
mov al, byte [esi + 2]
mov dword [ebp - 0x1a8], eax
mov byte [ebp - 0x1a4], 0
xor eax, eax
mov al, byte [esi + 3]
mov dword [ebp - 0x1a0], eax
mov byte [ebp - 0x19c], 0
lea edx, [ebp - 0x1b8]
mov ecx, 3
mov eax, 0x4e0c68
call fcn.00409b00
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e0c59
lea eax, [ebp - 8]
call fcn.004045d0
ret
Function at 0x4051a0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4511b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push 0x28
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4051f0
xor al, al
jmp 0x40524f
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x405213
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x40524f
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 2
push 0
push 0
push 0x10
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a65e
mov esp, ebp
pop ebp
ret
Function at 0x405260
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44165c
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x4511b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x114], 0
push 0x103
push 0
lea eax, [ebp - 0x113]
push eax
call fcn.0042a550
add esp, 0xc
mov ecx, 0x45362c
call fcn.00406730
push 0x104
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.0042a550
add esp, 0xc
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call fcn.00405ff0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.0040b920
movzx eax, al
test eax, eax
jne 0x405338
push 0x4466b4
lea ecx, [ebp - 0x130]
call fcn.00406220
lea eax, [ebp - 0x130]
push eax
mov ecx, 0x45362c
call fcn.00406620
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea eax, [ebp - 0x114]
push eax
call fcn.00405b70
add esp, 4
test eax, eax
jne 0x4053a3
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x14c]
call fcn.00405ff0
mov byte [ebp - 4], 1
push str.appdata_
lea ecx, [ebp - 0x14c]
call fcn.00406220
lea eax, [ebp - 0x14c]
push eax
mov ecx, 0x45362c
call fcn.00406620
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c]
call fcn.00406130
push 0x104
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.0042a550
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x405405
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x1c4]
call fcn.00405ff0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c4]
push ecx
mov ecx, 0x45362c
call fcn.00406620
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c4]
call fcn.00406130
push 0x104
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.0042a550
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40549f
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x168]
call fcn.00405ff0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x168]
call fcn.0040b920
movzx eax, al
test eax, eax
jne 0x405490
push 0x4466b4
lea ecx, [ebp - 0x168]
call fcn.00406220
lea eax, [ebp - 0x168]
push eax
mov ecx, 0x45362c
call fcn.00406620
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x168]
call fcn.00406130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.00406130
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a65e
mov esp, ebp
pop ebp
ret
Function at 0x4054d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4416ab
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4511b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x30]
call fcn.00405ef0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00407b20
test eax, eax
je 0x40554a
lea ecx, [ebp - 0x30]
call fcn.00407b20
sub eax, 1
push eax
lea ecx, [ebp - 0x30]
call fcn.00406390
movsx eax, byte [eax]
cmp eax, 0x5c
je 0x40554a
push 0x5c
lea ecx, [ebp - 0x30]
call fcn.00406250
push 0
push 0x5c
lea ecx, [ebp - 0x30]
call fcn.004285a0
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x50]
call fcn.00405f80
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x34]
cmp eax, dword [0x4466b8]
je 0x40560c
mov eax, dword [ebp - 0x34]
push eax
push 0
lea ecx, [ebp - 0xb0]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00406470
mov dword [ebp - 0xb8], eax
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x50]
call fcn.00406100
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb0]
call fcn.00406130
lea ecx, [ebp - 0x50]
call fcn.004063b0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0xffffffff
jne 0x4055f3
push 0
lea ecx, [ebp - 0x50]
call fcn.004063b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4055f3
mov dword [ebp - 0x14], 0
jmp 0x40560c
mov eax, dword [ebp - 0x34]
add eax, 1
push eax
push 0x5c
lea ecx, [ebp - 0x30]
call fcn.004285a0
mov dword [ebp - 0x34], eax
jmp 0x405565
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00406130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00406130
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a65e
mov esp, ebp
pop ebp
ret