joyce8/EMBER2024-capa huggingface dataset:
Function at 0x510010
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x632d6b
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x6f7654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc0
push str.CProcessUtil::IsProcessAlive
push str.d:_release_sdologin_srcpublicProcessUtil.h
lea ecx, [ebp - 0x260]
call fcn.00455c30
mov dword [ebp - 4], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0xffffffff
jne 0x5100d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x264]
push eax
push str.__PPU_IPA___CreateToolhelp32Snapshot_Failed_code___u_n
push 2
push str.root
push 0xc6
push str.CProcessUtil::IsProcessAlive
push str.d:_release_sdologin_srcpublicProcessUtil.h
call fcn.004563b0
add esp, 0x1c
mov dword [ebp - 0x268], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.00455c90
mov eax, dword [ebp - 0x268]
jmp 0x5101c3
mov dword [ebp - 0x244], 0
push 0x228
push 0
lea ecx, [ebp - 0x240]
push ecx
call fcn.005eb2a0
add esp, 0xc
mov dword [ebp - 0x244], 0x22c
lea edx, [ebp - 0x244]
push edx
mov eax, dword [ebp - 0x248]
push eax
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], 0
jmp 0x510139
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x248]
push edx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
je 0x510162
cmp dword [ebp - 0x24c], 0
jne 0x510162
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x23c]
jne 0x510160
mov dword [ebp - 0x24c], 1
jmp 0x510120
mov ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24c], 0
jne 0x51019f
mov edx, dword [ebp + 8]
push edx
push str.__PPU_IPA___Dead__u_n
push 3
push str.root
push 0xd8
push str.CProcessUtil::IsProcessAlive
push str.d:_release_sdologin_srcpublicProcessUtil.h
call fcn.004563b0
add esp, 0x1c
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.00455c90
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ea848
mov esp, ebp
pop ebp
ret
Function at 0x511d50
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
xor esi, esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
test eax, eax
je 0x511d91
push 2
push 0xc
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x511d8d
pop esi
pop ebp
add esp, 0x1c
ret
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov dword [esp + 0x10], edi
push ebx
lea esp, [esp]
xor eax, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x20], eax
jbe 0x511e45
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x511e75
mov eax, dword [esp + 0x18]
cmp byte [eax], 1
jne 0x511e15
xor esi, esi
lea ebx, [eax + 8]
cmp dword [ebp], esi
jbe 0x511e06
lea edi, [ebp + 4]
mov ecx, dword [edi]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x511dfe
inc esi
add edi, 8
cmp esi, dword [ebp]
jb 0x511de7
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
cmp esi, dword [ebp]
jae 0x511e15
movzx edx, word [eax + 2]
add dword [esp + 0x10], edx
jmp 0x511e2e
test edi, edi
je 0x511e2e
movzx ecx, word [eax + 2]
push ecx
push eax
push 0xffffffffffffffff
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x511e75
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x20]
jb 0x511db8
mov esi, dword [esp + 0x24]
test edi, edi
jne 0x511e86
sub esi, dword [esp + 0x10]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 2
push esi
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x511e7c
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
jmp 0x511da0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
mov edx, dword [esp + 0x30]
pop ebx
mov dword [edx], edi
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x1c
ret
Function at 0x511f40
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x1c
mov edx, dword [esp + 0x20]
push esi
xor esi, esi
lea eax, [esp + 8]
push eax
push esi
lea ecx, [esp + 0xc]
push ecx
push esi
push esi
push 4
push 1
push edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x511f75
xor eax, eax
pop esi
add esp, 0x1c
ret
xor eax, eax
push ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 8]
push ebp
push edi
mov dword [esp + 0x20], esi
cmp eax, esi
je 0x511fa6
push 2
push 0xc
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x51203c
mov edx, dword [esp + 0x38]
xor eax, eax
mov dword [edx], esi
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x20], esi
jbe 0x512024
mov ebx, dword [esp + 0x34]
lea esp, [esp]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x51203c
mov eax, dword [esp + 0x18]
cmp byte [eax], 1
jne 0x512015
xor esi, esi
lea ebp, [eax + 8]
cmp dword [ebx], esi
jbe 0x512015
lea edi, [ebx + 4]
lea ebx, [ebx]
mov eax, dword [edi]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x512008
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x511ff0
jmp 0x512015
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x38]
or dword [eax], edx
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x20]
jb 0x511fc0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x1c
ret
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x1c
ret
Function at 0x512390
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x205c]
mov eax, 0x205c
call fcn.005eb610
push 0xffffffffffffffff
push 0x633050
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6f7654]
xor eax, ebp
mov dword [ebp + 0x2058], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x2064]
mov ecx, dword [ebp + 0x2068]
push 3
push 7
push 0x120089
push eax
mov dword [ebp - 0x2c], ecx
call fcn.00512ec0
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x5124eb
xor ebx, ebx
cmp eax, ebx
je 0x5124eb
lea edx, [ebp - 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [ebp]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
call fcn.00512520
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], esi
test edi, edi
ja 0x51243a
test esi, esi
jbe 0x51249c
mov dword [ebp - 0x40], 0x2000
mov dword [ebp - 0x3c], 0
test edi, edi
ja 0x51245b
jb 0x512456
cmp esi, 0x2000
jae 0x51245b
lea eax, [ebp - 0x20]
jmp 0x51245e
lea eax, [ebp - 0x40]
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
lea edx, [ebp + 0x58]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x51249c
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp + 0x58]
push edx
lea ecx, [ebp]
call fcn.00512550
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ebx, eax
adc dword [ebp - 0x34], ecx
sub esi, eax
sbb edi, ecx
jmp 0x51242c
lea ecx, [ebp]
call fcn.00512580
xor esi, esi
cmp esi, 4
jae 0x5124c1
lea eax, [ebp + esi*4 + 8]
push eax
call fcn.00512380
mov ecx, dword [ebp - 0x2c]
add esp, 4
mov dword [ecx + esi*4], eax
inc esi
jmp 0x5124a6
mov edx, dword [ebp - 0x18]
push edx
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x5124ed
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2058]
xor ecx, ebp
call fcn.005ea848
add ebp, 0x205c
mov esp, ebp
pop ebp
ret

Function at 0x512520
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
ret
Function at 0x512680
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x34
push esi
mov esi, dword [esp + 0x3c]
push edi
mov eax, 0x80
mov ecx, esi
call fcn.005125f0
mov edi, eax
cmp edi, 0xffffffff
jne 0x5126c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x5126dc
push 0x120089
push esi
call fcn.00512610
add esp, 8
xor eax, eax
mov ecx, esi
call fcn.005125f0
mov edi, eax
cmp edi, 0xffffffff
je 0x5126dc
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
push edi
test eax, eax
jne 0x5126e4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x34
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
test al, 1
je 0x512720
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call edi
test eax, eax
jne 0x51271c
push 0x120116
push esi
call fcn.00512610
mov ecx, dword [esp + 0x10]
add esp, 8
and ecx, 0xfffffffe
push ecx
push esi
call edi
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x44]
pop edi
mov dword [edx], eax
mov eax, 1
pop esi
add esp, 0x34
ret
Function at 0x512740
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x6e8
mov eax, dword [0x6f7654]
xor eax, esp
mov dword [esp + 0x6e4], eax
push ebx
push ebp
mov ebp, dword [esp + 0x6f4]
lea eax, [esp + 8]
push eax
push ebp
call fcn.00512680
push 0x41
push ebp
call fcn.00512610
lea edx, [esp + 0x4b4]
add esp, 0x10
mov eax, ebp
sub edx, ebp
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x512780
lea eax, [esp + 0x4a4]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x5127a0
mov ecx, dword [0x688788]
mov edx, dword [0x68878c]
mov dword [eax], ecx
mov cx, word [0x688790]
mov dword [eax + 4], edx
lea edx, [esp + 0xc]
mov word [eax + 8], cx
push edx
lea eax, [esp + 0x4a8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5127fb
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x6e4]
xor ecx, esp
call fcn.005ea848
add esp, 0x6e8
ret
push esi
push edi
lea ecx, [ecx]
cmp word [esp + 0x40], 0x2e
jne 0x512828
mov ax, word [esp + 0x42]
test ax, ax
je 0x5128fe
cmp ax, 0x2e
jne 0x512828
cmp word [esp + 0x44], 0
je 0x5128fe
lea edx, [esp + 0x264]
mov eax, ebp
sub edx, ebp
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x512833
lea edi, [esp + 0x264]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x512850
mov ecx, dword [0x6bd714]
lea eax, [esp + 0x40]
mov dword [edi], ecx
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x512870
lea edi, [esp + 0x264]
sub eax, edx
add edi, 0xfffffffe
jmp 0x512890
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x512890
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test byte [esp + 0x14], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x5128c5
lea edx, [esp + 0x264]
push edx
call fcn.00512740
add esp, 4
jmp 0x5128fa
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x268]
push ecx
call fcn.00512680
lea edx, [esp + 0x26c]
push 0x1f01ff
push edx
call fcn.00512610
add esp, 0x10
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x512939
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x512800
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x6f4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ea848
add esp, 0x6e8
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x512920
Function at 0x512950
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x41c
mov eax, dword [0x6f7654]
xor eax, esp
mov dword [esp + 0x418], eax
push esi
mov esi, dword [esp + 0x424]
lea eax, [esp + 8]
push eax
push esi
call fcn.00512680
add esp, 8
test eax, eax
jne 0x512994
pop esi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.005ea848
add esp, 0x41c
ret
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edi
mov edi, ebx
and edi, 0x10
je 0x5129b9
push esi
call ebp
test eax, eax
je 0x5129d3
mov eax, 1
jmp 0x512acf
test bl, 0x40
jne 0x5129d3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x5129d3
mov eax, 1
jmp 0x512acf
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x104
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [esp + 0x20], 0
call esi
test eax, eax
je 0x512acd
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x512a02
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x16], 0x5c
lea eax, [esp + eax*2 + 0x16]
jne 0x512a62
xor ecx, ecx
mov word [eax], cx
xor eax, eax
jmp 0x512a30
movzx ecx, word [esp + eax + 0x18]
mov word [esp + eax + 0x220], cx
add eax, 2
test cx, cx
jne 0x512a30
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push 0x104
lea ecx, [esp + 0x22c]
push ecx
call esi
test eax, eax
je 0x512acd
mov eax, dword [esp + 0x10]
test eax, eax
je 0x512a70
xor edx, edx
mov word [eax - 2], dx
lea eax, [esp + 0x18]
push 0x41
push eax
call fcn.00512610
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x512a90
mov ecx, 0x5c
mov word [eax - 2], cx
cmp dword [esp + 0x434], 0
je 0x512aae
test bl, 0x50
je 0x512aae
lea edx, [esp + 0x18]
push edx
call fcn.00512740
add esp, 4
jmp 0x512acf
test edi, edi
je 0x512abb
lea eax, [esp + 0x18]
push eax
call ebp
jmp 0x512acf
test bl, 0x40
jne 0x512acd
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x512acf
xor eax, eax
mov ecx, dword [esp + 0x428]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.005ea848
add esp, 0x41c
ret
Function at 0x512b30
Capabilities:
Create directory
Delete file

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
xor ebx, ebx
lea ecx, [ecx]
push 0x1f0089
push esi
call fcn.00512610
add esp, 8
xor eax, eax
mov ecx, esi
call fcn.005125f0
mov edi, eax
cmp edi, 0xffffffff
jne 0x512b6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x512c16
mov ebp, 1
cmp edi, 0xffffffff
je 0x512ba4
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
push edi
test eax, eax
je 0x512c10
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [esp + 0x18], 0x50
jne 0x512bb3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x512bb1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x512bb3
xor ebp, ebp
test ebx, ebx
jne 0x512c20
test ebp, ebp
jne 0x512c24
push 0x5c
push esi
call fcn.005edcae
mov edi, eax
push 0x2f
push esi
mov dword [esp + 0x24], edi
call fcn.005edcae
add esp, 0x10
mov dword [esp + 0x10], eax
cmp edi, eax
lea eax, [esp + 0x10]
jb 0x512be4
lea eax, [esp + 0x14]
mov edi, dword [eax]
test edi, edi
je 0x512c06
xor ecx, ecx
push 1
push esi
mov word [edi], cx
call fcn.00512b30
add esp, 8
mov edx, 0x5c
mov word [edi], dx
test eax, eax
je 0x512c16
mov ebx, 1
jmp 0x512b40
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret
test ebp, ebp
je 0x512c16
cmp dword [esp + 0x54], 0
je 0x512c36
push 0x44
push esi
call fcn.00512610
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3c
ret

Function at 0x512c50
Capabilities:
Create directory

Disassembly:
sub esp, 0x210
mov eax, dword [0x6f7654]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x512c88
push 0x44
push esi
call fcn.00512610
mov eax, 1
jmp 0x512ccc
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0x104
push esi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x512cc0
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.005ea848
add esp, 0x210
ret
lea edx, [esp + 8]
push 1
push edx
call fcn.00512b30
mov ecx, dword [esp + 0x218]
add esp, 8
pop esi
xor ecx, esp
call fcn.005ea848
add esp, 0x210
ret
Function at 0x515010
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
cmp dword [ebp + 8], 0
jne 0x515036
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x24]
call fcn.005189d0
xor al, al
jmp 0x5151bd
mov ecx, dword [ebp - 0x24]
call fcn.00513a60
mov ecx, dword [ebp - 0x24]
add ecx, 4
call fcn.00516b50
mov dword [ebp - 8], 0
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.005eec68
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.005f4f6e
add esp, 4
mov dword [ebp - 8], eax
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.005eec68
add esp, 0xc
cmp dword [ebp - 8], 0
jg 0x51509c
push 0
push 0
push 0
push 0xc
mov ecx, dword [ebp - 0x24]
call fcn.005189d0
xor al, al
jmp 0x5151bd
mov eax, dword [ebp - 8]
add eax, 1
push eax
call fcn.005ea3fd
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov byte [edx], 0
mov eax, dword [ebp + 8]
push eax
push 1
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.005f3cc8
add esp, 0x10
cmp eax, 1
je 0x5150fe
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005ea386
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x24]
call fcn.005189d0
xor al, al
jmp 0x5151bd
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x12], 0xd
mov byte [ebp - 0x11], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 8]
mov byte [ecx], 0
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x51517c
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0xd
jne 0x51515e
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xa
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0xa
jne 0x51515c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x51517a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x51511b
mov edx, dword [ebp - 0xc]
mov byte [edx], 0
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24]
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.005ea386
add esp, 4
mov ecx, dword [ebp - 0x24]
call fcn.00517350
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x51bf20
Capabilities:
Enumerate gui resources
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x633b11
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x6f7654]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d0], ecx
mov ecx, dword [ebp - 0x2d0]
call fcn.00468e10
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2d0]
call fcn.004a4e80
mov byte [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x1a4], ax
push 0x18e
push 0
lea ecx, [ebp - 0x1a2]
push ecx
call fcn.005eb2a0
add esp, 0xc
lea edx, [ebp - 0x1a4]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov dword [ebp - 0x2b0], eax
mov eax, dword [ebp - 0x2d0]
push eax
push 0x51c170
mov ecx, dword [ebp - 0x2b0]
push ecx
call dword [sym.imp.USER32.dll_EnumDesktopsW]
lea edx, [ebp - 0x2cc]
push edx
call fcn.0051c0c0
add esp, 4
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x2d8], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2d8]
call fcn.00403ab0
push eax
push str.____tV1.4.6new_t____t
push 3
push str.root
push 0x1d
push 0x6897bc
push str.d:_sourceosvn_src_sdologinclient_trunk_srcprocnetutilityProcessEnv.h
call fcn.004563b0
add esp, 0x1c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2cc]
call fcn.00402e00
mov byte [ebp - 0x2ac], 0
push 0x104
push 0
lea ecx, [ebp - 0x2ab]
push ecx
call fcn.005eb2a0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x2ac]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x51c094
movsx eax, byte [ebp - 0x2ac]
test eax, eax
je 0x51c094
lea ecx, [ebp - 0x2ac]
push ecx
push str.____texe:_s_t___
push 3
push str.root
push 0x20
push 0x6897bc
push str.d:_sourceosvn_src_sdologinclient_trunk_srcprocnetutilityProcessEnv.h
call fcn.004563b0
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2d0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005ea848
mov esp, ebp
pop ebp
ret