joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1012ec10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10179faa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
mov ecx, dword [ebp + 8]
call fcn.10042760
lea eax, [ebp - 0x11c]
push eax
push 0x7f
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x14], 0x100
jbe 0x1012ec66
mov dword [ebp - 0x240], 0x100
jmp 0x1012ec6f
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x240]
lea ecx, [ebp + eax*2 - 0x11c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x18]
jae 0x1012ed67
lea eax, [ebp - 0x199]
mov dword [ebp - 0x198], eax
push 0
push 0
lea ecx, [ebp - 0x138]
call fcn.10002d50
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x18]
jae 0x1012ecec
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
test eax, eax
je 0x1012ecec
mov ecx, dword [ebp - 0x10]
mov dx, word [ecx]
mov word [ebp - 0x1b8], dx
mov ax, word [ebp - 0x1b8]
push eax
push 1
lea ecx, [ebp - 0x138]
call fcn.10015960
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], ecx
jmp 0x1012ecad
lea edx, [ebp - 0x1c1]
mov dword [ebp - 0x1c0], edx
push 0
push 0
lea ecx, [ebp - 0x154]
call fcn.10002cf0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x138]
push ecx
call fcn.100e61f0
add esp, 8
lea edx, [ebp - 0x154]
push edx
mov ecx, dword [ebp + 8]
call fcn.10047f00
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x154]
call fcn.10002cf0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x138]
call fcn.10002d50
jmp 0x1012ec7f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x101360a0
push 0x74
push str.c:00_work00_project01_middleizanaghimodulescoremodule130_srcpoco_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.1010a890
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 8
jb 0x101360bd
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
jmp 0x101360c6
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10136115
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
sub eax, 2
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x13
ja case.0x101360fb.2
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x10136124]
jmp dword [edx*4 + 0x1013611c]
xor al, al
jmp 0x10136117
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.10136fa0
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x10136140
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x10136173
push 0x8a
push str.c:00_work00_project01_middleizanaghimodulescoremodule130_srcpoco_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.1010a890
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 8
jb 0x10136190
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
jmp 0x10136199
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x101361d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 5
je 0x101361bd
jmp 0x101361c1
xor al, al
jmp 0x101361d2
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.10136fa0
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x10136213
push 0x9d
push str.c:00_work00_project01_middleizanaghimodulescoremodule130_srcpoco_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.1010a890
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 8
jb 0x10136230
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
jmp 0x10136239
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1013625b
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.10136fa0
add esp, 4
mov eax, dword [ebp - 4]
and eax, 1
neg eax
sbb eax, eax
add eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10136380
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x101363b3
push 0xb5
push str.c:00_work00_project01_middleizanaghimodulescoremodule130_srcpoco_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.1010a890
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 8
jb 0x101363d0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
jmp 0x101363d9
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x101363fb
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.10136fa0
add esp, 4
mov eax, dword [ebp - 4]
and eax, 0x10
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x10136583
push 0xd4
push str.c:00_work00_project01_middleizanaghimodulescoremodule130_srcpoco_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.1010a890
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 8
jb 0x101365a0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
jmp 0x101365a9
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x101365cb
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.10136fa0
add esp, 4
mov eax, dword [ebp - 4]
and eax, 2
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
Function at 0x10136a30
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x10136a63
push 0x121
push str.c:00_work00_project01_middleizanaghimodulescoremodule130_srcpoco_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.1010a890
add esp, 0xc
mov eax, dword [ebp - 0x10]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 8
jb 0x10136a80
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
jmp 0x10136a89
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10136aab
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
call fcn.10136fa0
add esp, 4
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x10136abe
mov edx, dword [ebp - 4]
and edx, 0xfffffffe
mov dword [ebp - 4], edx
jmp 0x10136ac7
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x18], 8
jb 0x10136ae4
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
jmp 0x10136aed
mov edx, dword [ebp - 0xc]
add edx, 4
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10136b0e
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
call fcn.10136fa0
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x10136b30
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017a666
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov dword [ebp - 0xa0], ecx
mov eax, dword [ebp - 0xa0]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x10136b81
push 0x137
push str.c:00_work00_project01_middleizanaghimodulescoremodule130_srcpoco_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.1010a890
add esp, 0xc
lea eax, [ebp - 0x6d]
mov dword [ebp - 0x6c], eax
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.10002d50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100e5e80
add esp, 8
cmp dword [ebp - 0x10], 8
jb 0x10136bbb
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xa4], eax
jmp 0x10136bc4
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0xa0]
add edx, 0x20
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x88]
cmp dword [eax + 0x18], 8
jb 0x10136bf0
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xa8], edx
jmp 0x10136bff
mov eax, dword [ebp - 0x88]
add eax, 4
mov dword [ebp - 0xa8], eax
push 0
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x10136c41
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x64]
call fcn.10135bf0
mov byte [ebp - 4], 1
push 1
lea ecx, [ebp - 0x64]
call fcn.10136a30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.10135e40
jmp 0x10136c53
mov ecx, dword [ebp - 0xa0]
add ecx, 4
push ecx
call fcn.10136fa0
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10002d50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10136c80
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017a678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x64]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x10136cc8
push 0x146
push str.c:00_work00_project01_middleizanaghimodulescoremodule130_srcpoco_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.1010a890
add esp, 0xc
lea eax, [ebp - 0x31]
mov dword [ebp - 0x30], eax
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.10002d50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100e5e80
add esp, 8
cmp dword [ebp - 0x10], 8
jb 0x10136cff
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x68], eax
jmp 0x10136d05
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x64]
add edx, 0x20
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x18], 8
jb 0x10136d22
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x6c], edx
jmp 0x10136d2b
mov eax, dword [ebp - 0x4c]
add eax, 4
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x10136d4c
mov eax, dword [ebp - 0x64]
add eax, 4
push eax
call fcn.10136fa0
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10002d50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x10136d70
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x10136da3
push 0x151
push str.c:00_work00_project01_middleizanaghimodulescoremodule130_srcpoco_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.1010a890
add esp, 0xc
mov ecx, dword [ebp - 0xc]
call fcn.10136380
movzx eax, al
test eax, eax
je 0x10136df7
mov ecx, dword [ebp - 0xc]
add ecx, 0x20
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 0x18], 8
jb 0x10136dcf
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
jmp 0x10136dd8
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10136df5
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
call fcn.10136fa0
add esp, 4
jmp 0x10136e3a
mov edx, dword [ebp - 0xc]
add edx, 0x20
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 8
jb 0x10136e14
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x14], edx
jmp 0x10136e1d
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10136e3a
mov edx, dword [ebp - 0xc]
add edx, 4
push edx
call fcn.10136fa0
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x10136f00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x10136f33
push 0x174
push str.c:00_work00_project01_middleizanaghimodulescoremodule130_srcpoco_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.1010a890
add esp, 0xc
mov ecx, dword [ebp - 8]
call fcn.10136070
movzx eax, al
test eax, eax
je 0x10136f55
mov ecx, dword [ebp - 8]
call fcn.10136380
movzx ecx, al
test ecx, ecx
je 0x10136f55
xor al, al
jmp 0x10136f9c
mov edx, dword [ebp - 8]
add edx, 0x20
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 8
jb 0x10136f72
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xc], edx
jmp 0x10136f7b
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 0xc], eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10136f9a
mov edx, dword [ebp - 8]
add edx, 4
push edx
call fcn.10136fa0
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x10139150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x68], 0xffffffff
je 0x10139173
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x48]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
and eax, 1
jne 0x10139178
or eax, 0xffffffff
jmp 0x101391ec
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x48]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
and eax, 2
je 0x10139196
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0x30]
call eax
mov dword [ebp - 8], 0
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x101391d0
mov eax, dword [ebp - 0x14]
add eax, 0x4c
push eax
call fcn.101384e0
add esp, 4
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, dword [ebp - 0x14]
add ecx, dword [eax + 0x70]
mov eax, dword [eax + 0x74]
adc eax, edx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x70], ecx
mov dword [edx + 0x74], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8

Function at 0x10139200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x68], 0xffffffff
je 0x10139223
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x48]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
and eax, 2
jne 0x1013922b
or eax, 0xffffffff
jmp 0x101392e8
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x48]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
and eax, 8
je 0x10139292
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 2
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x10139283
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10139283
mov edx, dword [ebp - 0x1c]
add edx, 0x4c
push edx
call fcn.101384e0
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x70], ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x74], edx
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x101392cc
mov edx, dword [ebp - 0x1c]
add edx, 0x4c
push edx
call fcn.101384e0
add esp, 4
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 0x70]
mov edx, dword [edx + 0x74]
adc edx, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x70], eax
mov dword [ecx + 0x74], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x101502b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017bc44
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c0
mov dword [ebp - 0x164], 0
call fcn.10150b90
mov dword [ebp - 4], 1
push 0x100
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10150333
lea ecx, [ebp - 0x114]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10003910
mov edx, dword [ebp - 0x164]
or edx, 1
mov dword [ebp - 0x164], edx
mov byte [ebp - 4], 0
call fcn.10150cb0
mov eax, dword [ebp + 8]
jmp 0x101503f3
lea eax, [ebp - 0x189]
mov dword [ebp - 0x188], eax
push 0
push 0
lea ecx, [ebp - 0x160]
call fcn.10002cf0
mov dword [ebp - 0x1c0], str.Cannot_get_host_name
mov ecx, dword [ebp - 0x1c0]
add ecx, 1
mov dword [ebp - 0x1c4], ecx
mov edx, dword [ebp - 0x1c0]
mov al, byte [edx]
mov byte [ebp - 0x1c5], al
add dword [ebp - 0x1c0], 1
cmp byte [ebp - 0x1c5], 0
jne 0x10150367
mov ecx, dword [ebp - 0x1c0]
sub ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0x1cc], ecx
mov edx, dword [ebp - 0x1cc]
push edx
push str.Cannot_get_host_name
lea ecx, [ebp - 0x160]
call fcn.10003590
mov byte [ebp - 4], 2
push 0
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x144]
call fcn.10157970
push 0x101bfcdc
lea ecx, [ebp - 0x144]
push ecx
call fcn.100bcb39
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x160]
call fcn.10002cf0
mov byte [ebp - 4], 0
call fcn.10150cb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10150b90
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017bcca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
push 0x101e57b8
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x10150c9f
mov word [ebp - 0x10], 0x202
lea eax, [ebp - 0x1a4]
push eax
mov cx, word [ebp - 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10150c9f
lea edx, [ebp - 0x1f9]
mov dword [ebp - 0x1f8], edx
push 0
push 0
lea ecx, [ebp - 0x1f0]
call fcn.10002cf0
mov dword [ebp - 0x250], str.Failed_to_initialize_network_subsystem
mov eax, dword [ebp - 0x250]
add eax, 1
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x250]
mov dl, byte [ecx]
mov byte [ebp - 0x255], dl
add dword [ebp - 0x250], 1
cmp byte [ebp - 0x255], 0
jne 0x10150c16
mov eax, dword [ebp - 0x250]
sub eax, dword [ebp - 0x254]
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x25c]
push ecx
push str.Failed_to_initialize_network_subsystem
lea ecx, [ebp - 0x1f0]
call fcn.10003590
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 0x1f0]
push edx
lea ecx, [ebp - 0x1d4]
call fcn.10157970
push 0x101bfcdc
lea eax, [ebp - 0x1d4]
push eax
call fcn.100bcb39
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x1f0]
call fcn.10002cf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10153410
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017bfeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
cmp dword [eax + 8], 0xffffffff
jne 0x10153450
mov ecx, dword [ebp + 8]
call fcn.101515b0
push eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x48]
mov eax, dword [edx + 0x88]
call eax
mov ecx, dword [ebp + 8]
call fcn.10151570
push eax
mov ecx, dword [ebp + 8]
call fcn.10151590
push eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10153485
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x10153450
cmp dword [ebp - 0x10], 0
je 0x101534d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call fcn.101515d0
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.10155140
add esp, 8
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.10002cf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4