joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10029f16
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x4ec], edi
je 0x10029f80
cmp dword [ebp + 8], 0x100
jne 0x10029f6f
cmp word [ebp + 0xc], 0xd
jne 0x10029f6f
cmp byte [esi + 0x4f2], 0
je 0x10029f56
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x10029f6f
cmp byte [esi + 0x4f3], 0
jne 0x10029f6f
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x10029f6b
push edi
push edi
push edi
push str.return
push esi
call fcn.10019a3e
xor eax, eax
jmp 0x10029f83
mov eax, dword [esi + 0x4ec]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x1002a38e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100a3330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1002a448
movzx eax, word [esi]
test ax, ax
je 0x1002a448
push edi
mov edi, esi
mov ecx, esi
mov edx, eax
cmp dx, 0x2f
je 0x1002a3d0
cmp dx, 0x5c
jne 0x1002a3d2
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x1002a3c4
cmp edi, esi
je 0x1002a41b
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.1005e86d
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x1002a456
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.1002a38e
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.1006ac85
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.1006ac54
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10056b99
leave
ret
call fcn.1005743a
int3

Function at 0x1002aa4e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x1002aaca
cmp dword [edi + 4], 0xffffffff
jne 0x1002aaca
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x10096088
push esi
call fcn.1006ac54
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x1002aa9c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x1002aa9c
mov eax, 0x2000000
jmp 0x1002aacf
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002cfe8
add esp, 0x10
test eax, eax
jne 0x1002aaba
mov eax, dword [ebp - 4]
jmp 0x1002aacf
push eax
call fcn.1002d7ad
mov dword [edi], eax
mov eax, dword [0x100a5804]
pop ecx
jmp 0x1002aacf
mov eax, 0x1000000
pop edi
leave
ret 0xc
Function at 0x1002cfe8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x10
cmp eax, 1
je 0x1002d00d
cmp eax, 2
je 0x1002d00d
cmp eax, 3
je 0x1002d00d
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x10000
xor eax, eax
leave
ret
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
mov byte [ebp - 8], dl
mov ecx, edx
mov dword [ebp - 4], ecx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [edi], edx
cmp eax, 1
jne 0x1002d06c
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 4]
push 2
push edx
push edx
push eax
call esi
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x1002d051
mov dword [edi], 0x100
jmp 0x1002d12f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov ecx, dword [ebp - 4]
dec eax
neg eax
sbb al, al
inc al
xor edx, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
cmp eax, 2
jne 0x1002d11b
push edx
push 0x80
push 3
push edx
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x1002d09f
mov dword [edi], 0x200
jmp 0x1002d12f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
dec eax
neg eax
push 0
push dword [ebp - 4]
sbb al, al
inc al
mov byte [ebp - 8], al
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0xc], esi
test esi, esi
je 0x1002d10b
push esi
call fcn.1005c8ae
mov ebx, eax
pop ecx
test ebx, ebx
je 0x1002d10b
push 0
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, 0x800
test eax, eax
jne 0x1002d0f3
mov dword [edi], ecx
mov eax, ecx
jmp 0x1002d0f5
mov eax, dword [edi]
cmp dword [ebp - 0x10], esi
je 0x1002d0fe
mov dword [edi], ecx
mov eax, ecx
test eax, eax
je 0x1002d10b
push ebx
call fcn.1005c8b9
pop ecx
xor ebx, ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x1002d121
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test ecx, ecx
jne 0x1002d133
test ebx, ebx
jne 0x1002d133
mov dword [edi], 0x300
xor eax, eax
jmp 0x1002d193
push 0x24
call fcn.100571d4
mov esi, eax
xor edx, edx
mov eax, dword [ebp + 0x10]
pop ecx
mov dword [esi + 4], eax
cmp dword [ebp - 4], edx
je 0x1002d177
mov ecx, dword [ebp - 8]
mov byte [esi], 1
mov byte [esi + 8], cl
mov eax, dword [ebp - 4]
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], dl
mov dword [esi + 0x14], edx
test cl, cl
je 0x1002d18f
push 1
push edx
push edx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x14], eax
xor edx, edx
jmp 0x1002d18f
mov eax, dword [ebp - 0xc]
mov byte [esi], dl
mov byte [esi + 8], 1
mov dword [esi + 0xc], edx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edx
mov dword [esi + 0x14], edx
mov dword [edi], edx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002d198
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x1002d1cb
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1002d1c6
mov byte [edi + 0x10], 1
mov eax, dword [ebp + 0x10]
jmp 0x1002d1f5
mov edx, dword [edi + 0x20]
push esi
mov esi, dword [edi + 0x1c]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x1c]
cmovbe esi, ecx
mov ecx, dword [edi + 0x18]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.10059090
add esp, 0xc
mov eax, esi
add dword [edi + 0x20], esi
pop esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

Function at 0x1002d383
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x1002d391
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x1002d450
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100853f0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100853f0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100853f0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100853f0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100853f0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100853f0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100853f0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100853f0]
sub edi, 1
jne 0x1002d3a9
pop edi
test esi, esi
je 0x1002d46c
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100853f0]
inc edx
sub esi, 1
jne 0x1002d454
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x10042373
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100a3330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x100423e0
cmp dword [esi + 0x10], 0
je 0x100423e0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.10057cf0
mov ebx, esp
test ebx, ebx
je 0x100423e0
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1c4
call fcn.1001a78c
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.10019a3e
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10056b99
leave
ret 0x10

Function at 0x10042ae2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100a3330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
sub esp, 0x10
lea esi, [ebp + 8]
mov edi, esp
mov ebx, ecx
mov dword [ebp - 0x38], ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1001d230
mov ecx, dword [ebx + 0x5a8]
test ecx, ecx
je 0x10042bd9
lea eax, [ebp - 0x14]
push eax
call fcn.10041b09
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x10042b49
mov ecx, dword [ebx + 0x5a8]
push 0
call fcn.1001ac15
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x10042bd9
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10042ba6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x30]
mov esi, eax
lea edi, [ebp - 0x24]
xor eax, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_UnionRect]
test eax, eax
je 0x10042b99
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
je 0x10042bea
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
mov ebx, eax
test ebx, ebx
jne 0x10042b58
mov ecx, dword [ebp - 0x38]
inc eax
shl eax, 6
or eax, 0x14
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x5a8]
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call fcn.1001ac15
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10056b99
leave
ret 0x10
xor eax, eax
inc eax
jmp 0x10042ba6
Function at 0x100454d0
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x100808eb
call fcn.10057c42
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x5b8], ebx
cmp dword [edi + 4], ebx
jne 0x10045562
lea eax, [ebp - 0xa8]
push eax
call fcn.100451aa
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.1000ed95
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.100519a4
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.1003cb54
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.10017153
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.1001ad66
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.10001421
mov esi, 0x5a8
test bl, bl
je 0x1004559d
mov eax, dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.10057bec
ret 4
Function at 0x1004ebc8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x1004ebf6
cmp eax, edi
jge 0x1004ebea
push esi
call fcn.1004b0c1
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x1004ec19
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x1004ebff
mov dword [esi + 8], edx
jmp 0x1004ec2e
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x1004ec24
xor dl, dl
jmp 0x1004ec29
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x1004ec19
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x1004ec68
push str.zlib_corrupt
call fcn.1004afec
add esp, 4
jmp 0x1004eca8
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x1004ec78
push str.read_past_buffer
jmp 0x1004ec5e
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x1004ec92
push edi
push ecx
push esi
call fcn.100516e4
add esp, 0xc
test eax, eax
je 0x1004eca8
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.10059090
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x10051b36
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10051b68
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8

Function at 0x10052d64
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xc
mov eax, 0x10080d24
call fcn.10057c0e
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.10001a8b
push dword [ebp - 0x10]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10052dfa
push eax
jmp 0x10052de9
call fcn.10002060
push eax
lea ecx, [ebp - 0x14]
call fcn.10001827
inc edi
mov byte [ebp - 4], 1
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.10002819
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.10002970
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1000210b
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10052ddc
push esi
call fcn.100626a2
pop ecx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.1000210b
push edi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.1000a0ea
mov edi, eax
cmp edi, 0xffffffff
jne 0x10052d8f
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1000210b
call fcn.10057bd7
ret
Function at 0x10053710
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x10080f97
call fcn.10057c0e
call fcn.10002060
push eax
lea ecx, [ebp - 0x10]
call fcn.10001827
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
push 0x1a
push 0x200
mov dword [ebp - 4], esi
call fcn.10001c05
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.100029e4
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x10053775
mov ecx, dword [ebp + 8]
push 0x10095f78
call fcn.10001a8b
lea ecx, [esi - 0x10]
call fcn.1000210b
mov eax, dword [ebp + 8]
jmp 0x100537ce
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.100029c0
cmp ax, 0x5c
je 0x10053794
push 1
push 0x10096088
lea ecx, [ebp - 0x10]
call fcn.10001584
push 0x10
push str.HaoKanWallPaper_
lea ecx, [ebp - 0x10]
call fcn.10001584
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp - 0x10]
je 0x100537b3
push esi
call fcn.10052d64
pop ecx
lea edi, [esi - 0x10]
push edi
call fcn.1000122a
mov esi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, edi
mov dword [esi], eax
call fcn.1000210b
mov eax, esi
call fcn.10057bd7
ret

Function at 0x100537fb
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x10080fba
call fcn.10057c0e
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.10052eea
and dword [ebp - 4], 0
push str.AppTest.txt
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100027c1
mov ecx, dword [ebp - 0x14]
add esp, 0x14
lea ecx, [ecx - 0x10]
call fcn.1000210b
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.1000210b
mov eax, esi
call fcn.10057bd7
ret
Function at 0x10054f84
Capabilities:
Check if file exists
Delete file

Disassembly:
push 8
mov eax, 0x100812b2
call fcn.10057c0e
mov edi, ecx
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 8]
call dword [eax + 4]
test eax, eax
je 0x10055088
call fcn.10002060
push eax
lea ecx, [ebp + 0x10]
call fcn.10001827
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 0xc]
push ebx
mov byte [ebp - 4], 1
call fcn.10001954
pop ecx
push eax
push ebx
lea ecx, [ebp + 0x10]
call fcn.10001d6b
push 0x5c
push dword [ebp + 0x10]
call fcn.10058934
pop ecx
pop ecx
test eax, eax
jne 0x10054feb
or eax, 0xffffffff
jmp 0x10054ff0
sub eax, dword [ebp + 0x10]
sar eax, 1
inc eax
lea ecx, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10002819
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.10002970
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.1000210b
mov esi, dword [ebp + 0x10]
push esi
call fcn.10052d64
pop ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10055036
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea ecx, [ebp - 0x14]
push eax
push eax
push 0x80
push 2
push eax
push 0xc0000000
push ebx
call fcn.10054d2e
test eax, eax
js 0x1005506d
push 0
push dword [edi + 8]
lea ecx, [ebp - 0x14]
push dword [edi + 4]
call fcn.1005591d
test eax, eax
js 0x1005506d
xor ebx, ebx
inc ebx
jmp 0x1005506f
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x1005507e
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.1000210b
mov eax, ebx
call fcn.10057bd7
ret 0xc
Function at 0x10055cee
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30fc
call fcn.10057d20
mov eax, dword [0x100a3330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.10058f30
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10058f30
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.._c:
push eax
call fcn.10056056
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10055d7d
mov al, 1
jmp 0x10055e86
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.10058f30
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.10058f30
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.10058f30
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10055dff
mov bl, 2
jmp 0x10055e7d
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.10055e95
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.10055e95
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10055e40
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
push edi
call fcn.100032d6
lea ecx, [ebp - 0x9dc]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10055e63
sub ecx, edx
lea eax, [ebp - 0x9dc]
push ecx
push eax
push edi
call fcn.100032d6
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10056b99
leave
ret
Function at 0x1005608c
Capabilities:
Create raw socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x100a3330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x194]
push eax
xor edi, edi
push 0x101
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push edi
push edi
xor ebx, ebx
mov word [esi + 8], ax
inc ebx
push ebx
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x10056109
push ebx
push dword [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x2c
mov dword [esi + 0x10], ebx
call fcn.1005c8ae
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
jne 0x10056109
mov dword [esi + 0x10], edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10056b99
leave
ret

Function at 0x1005620a
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x100a3330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x64
mov dword [ebp - 0x7c], eax
xor edi, edi
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.10058f30
add esp, 0xc
test esi, esi
je 0x100562a3
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x100562a3
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx]
jmp 0x10056285
movsx eax, word [esi + 0xa]
push eax
push ecx
lea eax, [ebp - 0x74]
push eax
call fcn.10059090
add esp, 0xc
push dword [ebp - 0x74]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x68]
push 0x1008b55c
push eax
call fcn.10056071
mov eax, dword [esi + 0xc]
add esp, 0xc
inc edi
mov ecx, dword [eax + edi*4]
test ecx, ecx
jne 0x10056251
push dword [ebp + 0x10]
lea eax, [ebp - 0x68]
push dword [ebp - 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
mov ecx, ebx
call fcn.100562b6
jmp 0x100562a5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10056b99
leave
ret 0xc