joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003a160
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10085510]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov ebx, dword [esi + 0x1ac]
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push ebx
mov dword [ebp - 0x1c], eax
or edi, 0xffffffff
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1003a1b5
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
push ebx
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.1002c430
add esp, 8
cmp edi, 0xffffffff
jne 0x1003a1eb
mov edx, dword [ebp - 0x1c]
push str.Error_accept__ing_server_connect
push edx
call fcn.100292d0
add esp, 8
pop edi
pop esi
mov eax, 0x1e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x1c]
push str.Connection_accepted_from_server_n
push ebx
call fcn.10029250
push 1
push edi
mov dword [esi + 0x2b0], 0
mov dword [esi + 0x1ac], edi
call fcn.1004c230
mov dword [esi + 0x1bc], 1
mov eax, dword [ebx + 0x1e8]
add esp, 0x10
test eax, eax
je 0x1003a256
mov ecx, dword [ebx + 0x1ec]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x1003a256
call fcn.1003a090
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.10052dab
mov esp, ebp
pop ebp
ret
Function at 0x1003da70
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
push ebx
mov ebx, dword [edi]
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
je 0x1003daa4
push str.Couldnt_set_desired_mode
push ebx
call fcn.100292d0
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x1003dabb
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.10029250
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x1003dad2
push edi
call fcn.1003da00
add esp, 4
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x1003dae6
push edi
call fcn.1003ad70
add esp, 4
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x1003daf8
mov eax, edi
call fcn.1003da50
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x1003db06
mov eax, edi
call fcn.1003da60
mov esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x10042b90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
call fcn.10042b80
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.10061d1a
add esp, 0x10
pop ebp
ret
Function at 0x10046e20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10085510]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.1005848f
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x10046e84
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x10046e84
lea edx, [ebp - 0x108]
push edx
call dword [0x1008500c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.10052dab
mov esp, ebp
pop ebp
ret

Function at 0x10046ea0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10046e20

Function at 0x1004c0f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push str.kernel32
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x1004c114
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [ebp + 8]
mov edi, eax
push 0x10079d2c
push ebx
mov dword [ebp - 8], edi
call fcn.10058e48
add esp, 8
test eax, eax
je 0x1004c162
test edi, edi
je 0x1004c151
push 8
push 0
push ebx
call edi
pop edi
pop ebx
mov dword [ebp - 4], eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
mov dword [ebp - 4], eax
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x1004c18a
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004c18a
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
mov dword [ebp - 4], eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x1004c226
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004c1a3
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x1004c21c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1004c21c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004c1d1
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004c1e8
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x1004c1f8
mov eax, dword [ebp - 8]
test eax, eax
je 0x1004c212
push 8
push 0
push esi
call eax
jmp 0x1004c219
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
push esi
call dword [0x10085004]
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1004d460
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x1004d493
push 0x2e
push esi
call fcn.100535a0
add esp, 8
test eax, eax
je 0x1004d491
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x1004d600
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10085510]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x1c]
mov esi, 8
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1004d691
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
lea esi, [ebp - 0xc]
mov eax, ebx
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
call fcn.1004d570
mov ecx, esi
push 8
push ecx
call fcn.100516d0
mov ecx, dword [ebp - 0x1c]
add esp, 8
lea edx, [ebp - 0x24]
push edx
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1004d6a2
mov edx, dword [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x20]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x24]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.10052dab
mov esp, ebp
pop ebp
ret
Function at 0x1004d810
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004d821
sub eax, edx
mov esi, eax
lea eax, [esi + esi]
push eax
mov dword [ebp - 0xc], eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1004d84c
pop edi
pop esi
lea eax, [ebx + 0x1b]
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.10050270
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x1004d8cb
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x8002
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1004d8bf
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
push 0
push eax
push ebx
push ecx
mov dword [ebp - 0x10], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [ebp - 4]
push 0
lea edx, [ebp - 0x10]
push edx
push esi
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 8]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [esi + 0x10], eax
push ebx
mov byte [esi + 0x14], al
call dword [0x10085004]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1004dbb0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1004dbe3
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret
Function at 0x10051720
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1005174b
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
add edx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], edx
cmp ebx, dword [esi + 0x10]
jbe 0x10051792
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebx
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov eax, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x10051795
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [esi]
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi]
push eax
call ecx
mov eax, dword [ebp + 0x10]
add esp, 8
mov dword [ebp - 4], 0
test eax, eax
je 0x100517f6
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea esp, [esp]
mov dl, byte [ebx]
xor dl, 0x36
mov byte [ebp + 0xb], dl
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
lea eax, [ebp + 0xb]
push eax
push ecx
call edx
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
mov edx, dword [edi + 8]
mov eax, dword [esi + 4]
push 1
lea ecx, [ebp + 0xb]
push ecx
push edx
inc ebx
call eax
add esp, 0x18
dec dword [ebp - 8]
jne 0x100517c0
mov ecx, dword [ebp - 4]
pop ebx
cmp ecx, dword [esi + 0x10]
jae 0x1005182f
nop
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push 1
push 0x1007a59c
push edx
call eax
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
push 0x1007a59d
push ecx
call edx
mov eax, dword [ebp - 4]
inc eax
add esp, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x10]
jb 0x10051800
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10052dab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10085510]
jne 0x10052db5
repz ret
jmp fcn.1005b63e
Function at 0x10068f8f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10085510]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1005e636
and dword [ebp - 0x14], 0
cmp dword [0x100884f4], 0
mov dword [ebp - 0x18], eax
jne 0x10069042
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100690ea
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100690ea
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100884f4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100884f8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100884fc], eax
call edi
push eax
call esi
mov dword [0x10088504], eax
test eax, eax
je 0x10069042
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10088500], eax
mov eax, dword [0x10088500]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1006909b
cmp dword [0x10088504], ecx
je 0x1006909b
push eax
call esi
push dword [0x10088504]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1006909b
test ebx, ebx
je 0x1006909b
call edi
test eax, eax
je 0x10069092
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10069092
test byte [ebp - 8], 1
jne 0x1006909b
or dword [ebp + 0x10], 0x200000
jmp 0x100690ce
mov eax, dword [0x100884f8]
cmp eax, dword [ebp - 0x18]
je 0x100690ce
push eax
call esi
test eax, eax
je 0x100690ce
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100690ce
mov eax, dword [0x100884fc]
cmp eax, dword [ebp - 0x18]
je 0x100690ce
push eax
call esi
test eax, eax
je 0x100690ce
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100884f4]
call esi
test eax, eax
je 0x100690ea
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100690ec
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10052dab
leave
ret
Function at 0x1006c780
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x10085510]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x124
lea eax, [ebp - 0x128]
push 0
push eax
or ebx, 0xffffffff
call fcn.100568e0
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x1006c81c
lea ecx, [ebp - 0x12c]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
lea esp, [esp]
lea edx, [ebp - 0x108]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1006c80f
lea eax, [ebp - 0x12c]
push eax
push esi
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1006c7e0
jmp 0x1006c815
mov ebx, dword [ebp - 0x124]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.10052dab
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x1006caef
lea eax, [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1006cb07
test al, 0x10
jne 0x1006cb07
mov esi, 1
jmp 0x1006cb09
xor esi, esi
cmp dword [ebp + 0x1c], 0x10
jb 0x1006cb1b
mov eax, dword [ebp + 8]
push eax
call fcn.10053416
add esp, 4
mov eax, esi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x1006cb2f
lea eax, [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1006cb47
test al, 0x10
je 0x1006cb47
mov esi, 1
jmp 0x1006cb49
xor esi, esi
cmp dword [ebp + 0x1c], 0x10
jb 0x1006cb5b
mov eax, dword [ebp + 8]
push eax
call fcn.10053416
add esp, 4
mov eax, esi
pop esi
pop ebp
ret

Function at 0x1006cb60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x1006cb6f
lea eax, [ebp + 8]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea esi, [eax - 1]
neg esi
sbb esi, esi
cmp dword [ebp + 0x1c], 0x10
jb 0x1006cb92
mov eax, dword [ebp + 8]
push eax
call fcn.10053416
add esp, 4
lea eax, [esi + 1]
pop esi
pop ebp
ret
Function at 0x1006d330
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f5ab
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.10057280
mov eax, dword [0x10085510]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x102c]
push eax
xor ebx, ebx
xor edi, edi
call fcn.1006d170
add esp, 4
push 9
push str.Flag.txt
lea ecx, [ebp - 0x102c]
mov dword [ebp - 4], ebx
call fcn.10004990
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x102c]
push ecx
lea ecx, [ebp - 0x104c]
mov dword [ebp - 0x1038], 0xf
mov dword [ebp - 0x103c], ebx
mov byte [ebp - 0x104c], bl
call fcn.10004ab0
cmp dword [ebp - 0x1038], 0x10
mov eax, dword [ebp - 0x104c]
jae 0x1006d3ca
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1006d3e1
test al, 0x10
jne 0x1006d3e1
mov esi, 1
jmp 0x1006d3e3
xor esi, esi
mov eax, 0x10
cmp dword [ebp - 0x1038], eax
jb 0x1006d404
mov edx, dword [ebp - 0x104c]
push edx
call fcn.10053416
add esp, 4
mov eax, 0x10
cmp esi, ebx
jne 0x1006d426
cmp dword [ebp - 0x1018], eax
jb 0x1006d41f
mov eax, dword [ebp - 0x102c]
push eax
call fcn.10053416
add esp, 4
xor eax, eax
jmp 0x1006d4ff
cmp dword [ebp - 0x1018], eax
mov eax, dword [ebp - 0x102c]
mov dword [ebp - 0x1030], ebx
jae 0x1006d440
lea eax, [ebp - 0x102c]
push 0x1007d488
push eax
lea ecx, [ebp - 0x1030]
push ecx
call fcn.10053b83
add esp, 0xc
test eax, eax
je 0x1006d478
cmp dword [ebp - 0x1018], 0x10
jb 0x1006d41f
mov edx, dword [ebp - 0x102c]
push edx
call fcn.10053416
add esp, 4
xor eax, eax
jmp 0x1006d4ff
push 0xfff
lea eax, [ebp - 0x100f]
push ebx
push eax
mov byte [ebp - 0x1010], bl
call fcn.100568e0
mov ecx, dword [ebp - 0x1030]
push ecx
lea edx, [ebp - 0x1010]
push 0x1000
push edx
call fcn.100572ab
add esp, 0x18
test eax, eax
je 0x1006d4cc
lea eax, [ebp - 0x1010]
push 0x1007d484
push eax
call fcn.1006f2e5
add esp, 8
test eax, eax
je 0x1006d4cc
mov edi, 1
mov eax, dword [ebp - 0x1030]
cmp eax, ebx
je 0x1006d4e5
push eax
call fcn.10053c37
add esp, 4
mov dword [ebp - 0x1030], ebx
cmp dword [ebp - 0x1018], 0x10
jb 0x1006d4fd
mov ecx, dword [ebp - 0x102c]
push ecx
call fcn.10053416
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret
Function at 0x1006d520
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f602
mov eax, dword fs:[0]
push eax
mov eax, 0x1114
call fcn.10057280
mov eax, dword [0x10085510]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x11c], ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x120], esi
mov byte [esi], bl
push 0xffc
lea eax, [ebp - 0x111c]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x11c], 1
mov dword [ebp - 0x1120], ebx
call fcn.100568e0
add esp, 0xc
push edi
push ebx
push 0x410
mov dword [ebp - 0x118], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x1006d63f
cmp edi, 0xffffffff
je 0x1006d63f
lea ecx, [ebp - 0x118]
push ecx
push 0x1000
lea edx, [ebp - 0x1120]
push edx
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x1006d638
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.100568e0
mov edx, dword [ebp - 0x1120]
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x114]
push ecx
push edx
push edi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x1006d638
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1006d620
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
mov ecx, esi
call fcn.100040d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret
Function at 0x1006e530
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1006f14b
call fcn.10056ad9
mov dword [eax], esi
call fcn.10056ac6
push 0x16
pop esi
mov dword [eax], esi
call fcn.1005c611
mov eax, esi
jmp 0x1006f1a0
test dword [ebp + 0xc], 0xfffffff9
jne 0x1006f131
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1006f178
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10056aec
pop ecx
call fcn.10056ac6
mov eax, dword [eax]
jmp 0x1006f1a0
test al, 0x10
jne 0x1006f19e
test al, 1
je 0x1006f19e
test byte [ebp + 0xc], 2
je 0x1006f19e
call fcn.10056ad9
mov dword [eax], 5
call fcn.10056ac6
mov dword [eax], 0xd
jmp 0x1006f16f
xor eax, eax
pop esi
pop ebp
ret