joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005bee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea ebx, [edi + 0x554]
push 0x4000
push ebx
call fcn.1005df50
mov eax, dword [edi + 0x120]
add esp, 0x10
test eax, eax
je 0x1005bf31
cmp byte [edi + 0x8580], 0
jne 0x1005bf31
push ebx
push 0x100f0010
push 0x100
push eax
call fcn.1005de60
add esp, 0x10
mov byte [edi + 0x8580], 1
cmp byte [edi + 0x2d0], 0
je 0x1005bfa7
push esi
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1005bf40
sub esi, ecx
cmp esi, 0x3fff
jae 0x1005bf61
mov byte [edi + esi + 0x554], 0xa
inc esi
mov byte [edi + esi + 0x554], al
mov eax, dword [edi + 0x190]
test eax, eax
je 0x1005bf80
push dword [edi + 0x11c]
push esi
push ebx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [edi + 0x118]
push 1
push 2
push 0x100d32e4
call fcn.100a3db5
push dword [edi + 0x118]
push 1
push esi
push ebx
call fcn.100a3db5
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1005bfb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x101050c8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1005c067
cmp byte [edi + 0x2d0], 0
je 0x1005c067
push esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push 0x801
push eax
call fcn.1005df50
lea esi, [ebp - 0x808]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1005c001
mov eax, dword [edi + 0x190]
sub esi, ecx
test eax, eax
je 0x1005c03a
push dword [edi + 0x11c]
lea ecx, [ebp - 0x808]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009a83f
mov esp, ebp
pop ebp
ret
push dword [edi + 0x118]
push 1
push 2
push 0x100d32e4
call fcn.100a3db5
push dword [edi + 0x118]
lea eax, [ebp - 0x808]
push 1
push esi
push eax
call fcn.100a3db5
add esp, 0x20
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1009a83f
mov esp, ebp
pop ebp
ret

Function at 0x1005c5b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x1005c5d9
push dword [esi + 0x11c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x1005c60f
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x100d32e4
push 2
push eax
call fcn.100a3db5
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.100a3db5
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10066ac0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b7456

Function at 0x100680b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.100b166a
add esp, 0x18
test eax, eax
je 0x100680d2
cmp eax, 0xffffffff
jne 0x100680d4
xor eax, eax
pop ebp
ret

Function at 0x1006c8d0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x1006c8ff
push str.Couldnt_set_desired_mode
push edx
call fcn.1005bee0
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x1006c916
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.1005bfb0
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x1006c92d
push edi
call fcn.1006c670
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x1006c941
push edi
call fcn.1006b710
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x1006c959
push 0xd
push 1
push edi
call fcn.1006c1c0
add esp, 0xc
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x1006c96d
push 0xe
push 1
push edi
call fcn.1006c1c0
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x1007a3a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x1007a3cc
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x1007a3bd
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x1007a400
cmp dword [esi + 8], 0
jne 0x1007a3f0
push 0x100f13a0
push dword [eax + 8]
call fcn.100ad840
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x1007a3f0
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.100ada95
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1007a422
mov eax, dword [esi + 8]
test eax, eax
je 0x1007a41c
push eax
call fcn.100a38ef
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x1007f2d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1007f2fd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x1007f344
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x1007f34a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x1007f3ab
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x1007f370
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x1007f3d7
mov eax, dword [esi + 4]
push 1
push str.6digit
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x100d8dc7
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x1007f3b0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100bdb7e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100bd9f4
Function at 0x10004d5e
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x10004e11
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x1000513e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.10208b70
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10005183
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x100
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop
nop
cmp dword [ebp - 8], esp
je 0x100051b8
push 0x36
push 0x43e924b
push 6
call fcn.10207bbd
add esp, 0xc
push 0x1025f519
push dword [ebp - 4]
mov ecx, 2
call fcn.10001238
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x100051d8
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100051e9
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x100054e4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 1
push dword [ebp + 8]
call fcn.10005561
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10005539
push 0x5f
push 0x43e9084
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
mov dword [ebp - 8], eax
push dword [ebp - 4]
call fcn.10005667
mov eax, dword [ebp - 8]
jmp 0x1000555b
mov esp, ebp
pop ebp
ret 4
Function at 0x10006670
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
xor eax, eax
call dword [0x104a6c77]
nop
nop
cmp dword [ebp - 4], esp
je 0x100066a8
push 0x24
push 0x43e3a4f
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10006705
mov dword [ebp - 4], esp
push dword [ebp + 0x10]
push dword [ebp + 8]
xor eax, eax
call dword [0x104a6c83]
nop
nop
cmp dword [ebp - 4], esp
je 0x100066e4
push 0x74
push 0x43e3a4f
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10006705
pushal
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
rep movsb byte es:[edi], byte [esi]
popal
mov eax, dword [ebp + 0x10]
leave
ret 0xc
mov eax, 0
jmp 0x1000670f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000b090
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jle 0x1000b0c5
push dword [ebp + 8]
call fcn.1000651a
mov dword [ebp - 0x10], eax
cmp word [ebp - 0x10], 0x5a4d
jne 0x1000b0c5
xor eax, eax
jmp 0x1000b0ca
mov eax, 1
test eax, eax
je 0x1000b0dc
mov eax, 0
jmp 0x1000b2a5
fild dword [ebp + 8]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fadd qword [0x1027b314]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.10004204
push eax
call fcn.1000657a
mov dword [ebp - 0x18], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.10004204
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.1000657a
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x4550
jne 0x1000b195
fild dword [ebp - 4]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x1027d4ec]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.10004204
push eax
call fcn.1000651a
mov dword [ebp - 0x24], eax
push 0x80000301
push 0
push 0x2000
mov eax, dword [ebp - 0x24]
cwde
push 0x80000301
push 0
push eax
push 2
mov ebx, 0xc4
call fcn.10208f20
add esp, 0x1c
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x1000b195
xor eax, eax
jmp 0x1000b19a
mov eax, 1
test eax, eax
je 0x1000b1ac
mov eax, 0
jmp 0x1000b2a5
fild dword [ebp - 4]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fadd qword [0x1027d4f4]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.10004204
push eax
call fcn.1000657a
mov dword [ebp - 0x18], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
push 0
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
push 0
push dword [ebp - 0x60]
push 1
push 0
push 1
push 0
push 1
push 0
fld qword [ebp - 0x30]
call fcn.10004204
push eax
call fcn.1000678d
lea eax, [ebp + 8]
push eax
call fcn.10006715
jmp 0x1000b2a5
mov esp, ebp
pop ebp
ret 4
Function at 0x10010b76
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x10010bae
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x10010b9c
mov al, 1
jmp 0x10010c1a
cmp dword [ebx + 0x54], ecx
jne 0x10010ba5
mov al, 2
jmp 0x10010c1a
cmp dword [ebx + 0x7c], ecx
jne 0x10010c1a
mov al, 3
jmp 0x10010c1a
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x10010bc3
mov al, 4
jmp 0x10010c1a
cmp ecx, 5
jne 0x10010be3
cmp ebx, 0
jne 0x10010bd1
mov al, 5
jmp 0x10010c1a
cmp ebx, 1
jne 0x10010bda
mov al, 6
jmp 0x10010c1a
cmp ebx, 2
jne 0x10010be3
mov al, 7
jmp 0x10010c1a
cmp ecx, 0xa
jne 0x10010bea
jmp 0x10010c18
cmp ecx, 6
jne 0x10010c1a
cmp ebx, 0
jne 0x10010bf8
mov al, 8
jmp 0x10010c1a
cmp ebx, 1
jne 0x10010c01
mov al, 9
jmp 0x10010c1a
cmp ebx, 2
jne 0x10010c0a
mov al, 0xa
jmp 0x10010c1a
cmp ebx, 3
jne 0x10010c13
mov al, 0xb
jmp 0x10010c1a
cmp ebx, 4
jne 0x10010c1a
mov al, 0xc
pop ebx
leave
ret
Function at 0x10010d0d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov eax, 0x1027d7f5
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.100092ae
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10010d5b
push ebx
call fcn.10207bb1
add esp, 4
mov dword [ebp - 0x1c], esp
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10010d68
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10010d8f
push 0x48
push 0x43e3a4d
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10010da2
push ebx
call fcn.10207bb1
add esp, 4
mov eax, str.GetNativeSystemInfo
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.100056ca
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x10010dc6
push ebx
call fcn.10207bb1
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x28]
push dword [ebp - 0x20]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x10010df5
push 0x6e
push 0x43e3a4d
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x10010e0c
mov eax, 0
jmp 0x10010eaa
push 0x80000301
push 0
push 0x2c
push 1
mov ebx, 0x1bc
call fcn.10208be0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10010e41
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.10005e2a
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10010e7d
push 0x128
push 0x43e3a4d
push 6
call fcn.10207bbd
add esp, 0xc
push dword [ebp - 8]
call fcn.1000657a
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 6
je 0x10010ea0
cmp dword [ebp - 0xc], 9
je 0x10010ea0
xor eax, eax
jmp 0x10010ea5
mov eax, 1
jmp 0x10010eaa
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10010ebb
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x10019978
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
jmp 0x1001999a
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.10208b70
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x100199d1
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.10208b70
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp + 0x14]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10019a0e
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
push 0x1025f519
mov ebx, dword [ebp + 8]
push dword [ebx]
mov ecx, 2
call fcn.10001238
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0xff
mov ebx, dword [ebp + 0x14]
push dword [ebx]
mov eax, 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, 0xff
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0xff
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10019a8a
push 0x159
push 0x43e889e
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10019a9d
push ebx
call fcn.10207bb1
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x10019aaf
mov eax, dword [ebp - 4]
jmp 0x10019ac9
mov eax, 0
jmp 0x10019ac9
mov esp, ebp
pop ebp
ret 0x14

Function at 0x1001b83a
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
jmp 0x1001b85c
push 0x80000301
push 0
push 0x32
push 1
mov ebx, 0x184
call fcn.10208b70
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001b891
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1001b8a8
mov eax, 0x10259736
push eax
push 1
mov ebx, 0x130
call fcn.10208b00
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1001b8ee
push 0x12a
push 0x43e88bc
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1001b91c
mov eax, dword [ebp - 4]
test eax, eax
je 0x1001b917
push eax
mov ebx, eax
call fcn.100011cd
inc eax
push eax
call fcn.10207bab
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1001b955
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.10209090
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x1001b955
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001b966
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x1004215e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x100421a1
push 0x2b
push 0x43e90f2
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x1026c8dc]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.10004204
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.10208b70
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100421f4
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1004222a
push 0x84
push 0x43e90f2
push 6
call fcn.10207bbd
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x10042246
push eax
mov ebx, eax
call fcn.100011cd
inc eax
push eax
call fcn.10207bab
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1004224b
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1004225c
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10048048
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push htons
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x10048090
mov eax, 0x1024f2fe
push eax
push 1
mov ebx, 0x194
call fcn.10208620
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jge 0x100480b5
jmp 0x1004823d
push dword [ebp + 8]
call fcn.10047d88
mov dword [ebp - 8], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x1027d4a2]
fstp qword [ebp - 0x28]
mov dword [ebp - 0x2c], esp
fld qword [ebp - 0x28]
call fcn.10004204
push eax
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x10048109
push 0x12d
push 0x43e93fd
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0xc], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0x1027d4a2]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.10004204
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x1004820e
fild dword [ebp - 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.10004204
push eax
call fcn.10047f65
mov word [ebp - 0x14], ax
cmp word [ebp - 0x14], 0
jne 0x100481ac
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x100481a2
push 0x226
push 0x43e93fd
push 6
call fcn.10207bbd
add esp, 0xc
jmp 0x1004820e
cmp word [ebp - 0x14], 0x5c
jne 0x100481f5
cmp dword [ebp - 0x18], 0
jle 0x100481f2
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x100481f2
push 0x2cb
push 0x43e93fd
push 6
call fcn.10207bbd
add esp, 0xc
inc dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.10048243
pop ebx
pop ecx
pop edx
add ecx, 2
jmp 0x10048132
add esp, 0xc
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1004823d
push 0x380
push 0x43e93fd
push 6
call fcn.10207bbd
add esp, 0xc
mov esp, ebp
pop ebp
ret 4
Function at 0x1004d01c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x1004d034
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
nop
cmp dword [ebp - 4], esp
je 0x1004d05b
push 0x12
push 0x43e9448
push 6
call fcn.10207bbd
add esp, 0xc
jmp 0x1004d060
mov esp, ebp
pop ebp
ret 4