joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e4b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push 1
push edx
push eax
mov dword [esp + 0x18], 4
call fcn.1000e430
add esp, 0x14
test eax, eax
jne 0x1000e517
push esi
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
push eax
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x1000e517
cmp dword [esp + 4], 4
mov eax, dword [esp + 8]
je 0x1000e51b
mov eax, dword [esp + 0x1c]
add esp, 0xc
ret

Function at 0x1000e520
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push esi
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push edx
push eax
mov dword [esp + 0x18], 0
call fcn.1000e430
mov esi, dword [esp + 0x3c]
add esp, 0x14
mov dword [esi], eax
test eax, eax
jne 0x1000e5c4
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push ecx
push eax
push eax
push eax
push edi
push edx
call ebx
mov dword [esi], eax
test eax, eax
jne 0x1000e5b7
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x28]
ja 0x1000e5b1
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push edx
push 0
push 0
push edi
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop edi
pop ebx
pop esi
add esp, 8
ret
mov dword [esi], 0xea
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret

Function at 0x1000e660
Capabilities:
Set registry value

Disassembly:
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x1000e66e
lea eax, [edi + 0x57]
pop edi
ret
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
push esi
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 0x20006
push edx
push eax
call fcn.1000e470
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1000e6bc
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
push edi
push 3
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x18]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
ret
Function at 0x1000e6d0
Capabilities:
Delete registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
push 2
push edx
push eax
call fcn.1000e430
add esp, 0x14
test eax, eax
jne 0x1000e713
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret

Function at 0x1000e820
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
test eax, eax
je 0x1000e920
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1000e920
movzx edx, word [eax + 6]
push ebx
push esi
push edi
movzx edi, word [eax + 2]
mov esi, 1
cmp edi, esi
mov dword [esp + 0xc], edx
jle 0x1000e872
movzx ebx, word [eax]
push esi
push ebx
call fcn.1000e760
movzx eax, ax
add dword [esp + 0x14], eax
inc esi
add esp, 8
cmp esi, edi
jl 0x1000e854
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
movzx edi, word [ecx + 2]
movzx ebx, word [ecx + 6]
mov esi, 1
cmp edi, esi
jle 0x1000e8a4
push ebp
movzx ebp, word [ecx]
push esi
push ebp
call fcn.1000e760
movzx ecx, ax
inc esi
add esp, 8
add ebx, ecx
cmp esi, edi
jl 0x1000e887
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
pop ebp
movzx eax, word [eax]
movzx ecx, word [ecx]
cmp ax, cx
jbe 0x1000e8eb
movzx esi, cx
movzx edi, ax
cmp esi, edi
jge 0x1000e915
lea esp, [esp]
push esi
call fcn.1000e720
xor edx, edx
add esp, 4
test ax, ax
setne dl
inc esi
add edx, 0x16d
add dword [esp + 0xc], edx
cmp esi, edi
jl 0x1000e8c0
mov eax, dword [esp + 0xc]
pop edi
pop esi
sub eax, ebx
pop ebx
pop ecx
ret
jae 0x1000e915
movzx esi, ax
movzx edi, cx
cmp esi, edi
jge 0x1000e915
push esi
call fcn.1000e720
xor ecx, ecx
add esp, 4
test ax, ax
setne cl
inc esi
add ecx, 0x16d
add ebx, ecx
cmp esi, edi
jl 0x1000e8f7
mov eax, dword [esp + 0xc]
pop edi
pop esi
sub eax, ebx
pop ebx
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x1000eed0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101c4a20
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x1023d1a4]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x1023d1a4]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
cmp word [esi + 0x10], 0
lea edi, [esi + 0x10]
mov dword [esp + 0x28], eax
jne 0x1000ef24
push 0
call fcn.1000ec60
mov ebx, dword [esi + 4]
mov dword [esp + 0x2c], vtable.CLogMutex.0
mov dword [esp + 0x30], ebx
test ebx, ebx
je 0x1000ef43
push 0x1388
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x88], 0
mov dword [esp + 0x10], vtable.CAhnI2s_File.0
mov dword [esp + 0x14], 0xffffffff
push 1
push edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x90], 1
call fcn.1000f8d0
lea ecx, [esp + 0x10]
test eax, eax
je 0x1000f100
call fcn.1000f960
test eax, eax
jl 0x1000f0fc
cmp eax, dword [esi + 0x430]
jl 0x1000efe8
lea ecx, [esp + 0x10]
call fcn.1000f940
lea eax, [esi + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi + 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 1
push edi
lea ecx, [esp + 0x18]
call fcn.1000f8d0
lea ecx, [esp + 0x10]
test eax, eax
je 0x1000f100
call fcn.1000f960
test eax, eax
jl 0x1000f0fc
cmp eax, dword [esi + 0x430]
jge 0x1000f0fc
push 2
push 0
lea ecx, [esp + 0x18]
call fcn.1000fa50
test eax, eax
jl 0x1000f0fc
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x26]
movzx eax, word [esp + 0x24]
movzx ecx, word [esp + 0x22]
push edx
movzx edx, word [esp + 0x24]
push eax
movzx eax, word [esp + 0x26]
push ecx
movzx ecx, word [esp + 0x26]
push edx
push eax
movzx eax, word [esp + 0x2c]
push ecx
cdq
mov ecx, 0xa
idiv ecx
push edx
push str._d_x_02d._02d_02d_02d_03d.
lea edx, [esp + 0x54]
push 0x40
push edx
call fcn.10009470
lea eax, [esp + 0x5c]
push 0x40
push eax
call fcn.1000f430
add esp, 0x30
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x18]
call fcn.1000fa20
mov edx, dword [0x1023e490]
push edx
push 0x1023e480
lea ecx, [esp + 0x18]
call fcn.1000fa20
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._x:
lea eax, [esp + 0x3c]
push 0x40
push eax
call fcn.10009470
lea ecx, [esp + 0x44]
push 0x40
push ecx
call fcn.1000f430
add esp, 0x18
push eax
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x18]
call fcn.1000fa20
mov edi, dword [esp + 0x28]
push closesocket
push edi
call fcn.1000f430
add esp, 8
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.1000fa20
push 2
push 0x101c73d4
lea ecx, [esp + 0x18]
call fcn.1000fa20
lea ecx, [esp + 0x10]
call fcn.1000fa70
test byte [esi + 0x42c], 1
je 0x1000f0fc
lea ecx, [esp + 0x10]
call fcn.1000fa90
lea ecx, [esp + 0x10]
mov byte [esp + 0x88], 0
call fcn.1000faa0
test ebx, ebx
je 0x1000f118
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.10010586
mov esp, ebp
pop ebp
ret 8
Function at 0x1000f9e0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov esi, ecx
call dword [sym.imp.MSVCR90.dll__errno]
mov edi, dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
push edi
push eax
push ecx
call dword [sym.imp.MSVCR90.dll__read]
add esp, 0xc
xor edx, edx
cmp edi, eax
sete dl
pop edi
pop esi
mov eax, edx
ret 8

Function at 0x1000fa70
Capabilities:
Clear file content

Disassembly:
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.MSVCR90.dll__get_osfhandle]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
ret

Function at 0x1000fd90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x1023d1a4]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1000fdf2
cmp eax, 0x104
jae 0x1000fdf2
push 0x101c74bc
push 0x104
lea eax, [esp + 0xc]
push eax
call fcn.100061c0
jmp 0x1000fdf9
xor ecx, ecx
mov word [esp + 4], cx
mov edx, dword [esp + 0x214]
push edx
push 0x104
lea eax, [esp + 0xc]
push eax
call fcn.100061c0
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.1000fcb0
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.10010586
add esp, 0x20c
ret 4

Function at 0x10010586
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1023d1a4]
jne 0x10010590
repz ret
jmp fcn.10010b0b

Function at 0x10011346
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x1023d1a4]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
inc eax
cmp dword [ebp - 0x7c], 6
ja 0x10011397
jne 0x10011395
cmp dword [ebp - 0x78], eax
jae 0x10011397
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.10010586
add ebp, 0x98
leave
ret
Function at 0x10011475
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1023d1a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR90.dll_memset
xor eax, eax
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR90.dll_memset
add esp, 0x18
test edi, edi
je 0x10011516
push edi
call dword [sym.imp.MSVCR90.dll_wcslen]
pop ecx
test eax, eax
jbe 0x10011516
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10011516
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x101c7554
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.1001141d
add esp, 0x14
test eax, eax
jl 0x10011516
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x10011518
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10010586
leave
ret

Function at 0x10011525
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0x18], 0
test ebx, ebx
jne 0x10011538
push 0x57
pop eax
leave
ret
push edi
mov edi, str.wintrust.dll
call fcn.10011475
mov edi, eax
test edi, edi
jne 0x1001155f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10011616
push 0x7e
pop eax
jmp 0x10011616
push esi
call fcn.10011346
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinVerifyTrust
push edi
mov dword [ebp - 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push edi
mov dword [ebp - 4], eax
call esi
push str.WTHelperGetProvSignerFromChain
push edi
mov dword [ebp - 8], eax
call esi
push str.WTHelperGetProvCertFromChain
push edi
mov dword [ebp - 0xc], eax
call esi
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp - 4], eax
je 0x100115c3
cmp dword [ebp - 8], eax
je 0x100115c3
cmp dword [ebp - 0xc], eax
je 0x100115c3
cmp dword [ebp - 0x10], eax
je 0x100115c3
cmp dword [ebp - 0x14], eax
jne 0x100115dd
push str.WintrustLoadFunctionPointers
push edi
call esi
mov esi, eax
test esi, esi
jne 0x100115e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x100115d2
push 0x7f
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x10011615
mov esi, dword [ebp - 0x18]
jmp 0x100115e4
xor eax, eax
push 0x18
push eax
push ebx
call sub.MSVCR90.dll_memset
mov eax, dword [ebp - 4]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp dword [ebp - 0x14], 0
mov dword [ebx], edi
mov dword [ebx + 0x10], eax
jne 0x10011613
mov dword [ebx + 0x14], esi
xor eax, eax
pop esi
pop edi
leave
ret
Function at 0x10011901
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xf8
mov eax, dword [0x1023d1a4]
xor eax, ebp
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x7c]
xor ecx, ecx
push esi
push edi
mov dword [ebp - 0x8c], eax
cmp ebx, ecx
je 0x10011ab8
cmp dword [ebp + 0x78], ecx
jl 0x10011ab8
jg 0x1001193f
cmp dword [ebp + 0x74], ecx
jbe 0x10011ab8
cmp eax, ecx
je 0x10011ab8
cmp dword [ebp + 0x78], ecx
jg 0x10011961
jl 0x10011957
cmp dword [ebp + 0x74], 0xf0
ja 0x10011961
mov eax, 0x22000009
jmp 0x10011abd
push 0xf0
push ecx
lea eax, [ebp - 0x88]
push eax
call sub.MSVCR90.dll_memset
mov esi, dword [sym.imp.MSVCR90.dll_fread]
push ebx
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x88]
push 0x40
push eax
call esi
add esp, 0x1c
cmp eax, edi
je 0x1001199a
mov eax, 0x22000005
jmp 0x10011abd
push 2
lea eax, [ebp - 0x88]
push 0x101c77bc
push eax
call sub.MSVCR90.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10011957
movzx eax, byte [ebp - 0x49]
movzx ecx, byte [ebp - 0x4a]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x4b]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x4c]
shl eax, 8
or eax, ecx
xor ecx, ecx
cmp dword [ebp + 0x78], ecx
jg 0x100119e9
jl 0x10011957
cmp dword [ebp + 0x74], eax
jbe 0x10011957
push 0
push eax
push ebx
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
test eax, eax
jl 0x10011990
push ebx
push edi
lea eax, [ebp - 0x48]
push 4
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x10011990
push 4
lea eax, [ebp - 0x48]
push 0x101c77b4
push eax
call sub.MSVCR90.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10011957
push ebx
push edi
lea eax, [ebp - 0x44]
push 0x14
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x10011990
push ebx
push edi
lea eax, [ebp - 0x30]
push 2
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x10011990
movzx ax, byte [ebp - 0x2f]
movzx cx, byte [ebp - 0x30]
shl ax, 8
or ax, cx
mov ecx, 0x20b
cmp ax, cx
jne 0x10011aa1
push ebx
push edi
push 0x96
lea eax, [ebp - 0x2e]
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x10011990
push 0xf0
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x8c]
call sub.MSVCR90.dll_memcpy
add esp, 0xc
xor eax, eax
jmp 0x10011abd
mov ecx, 0x10b
cmp ax, cx
jne 0x10011957
push ebx
push edi
push 0x86
jmp 0x10011a72
mov eax, 0x22000001
mov ecx, dword [ebp + 0x68]
pop edi
xor ecx, ebp
pop esi
call fcn.10010586
add ebp, 0x6c
leave
ret
Function at 0x1002e2e1
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x18], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor eax, eax
inc eax
ret

Function at 0x1002f6b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1023d1a4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp edi, eax
je 0x1002f774
cmp dword [ebp + 0xc], eax
jl 0x1002f774
jg 0x1002f6de
cmp dword [ebp + 8], eax
jbe 0x1002f774
cmp ebx, eax
je 0x1002f774
cmp dword [ebp + 0xc], eax
jg 0x1002f6fa
jl 0x1002f6f3
cmp dword [ebp + 8], 0x3c
jae 0x1002f6fa
mov eax, 0x22000009
jmp 0x1002f779
push 0x3c
push eax
lea eax, [ebp - 0x40]
push eax
call sub.MSVCR90.dll_memset
push edi
push 1
lea eax, [ebp - 0x40]
push 0x3c
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x1c
cmp eax, 1
je 0x1002f724
mov eax, 0x22000005
jmp 0x1002f779
push 4
lea eax, [ebp - 0x40]
push str.MSCF
push eax
call sub.MSVCR90.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x1002f6f3
test byte [ebp - 0x22], 4
jne 0x1002f748
mov eax, 0x2200000e
jmp 0x1002f779
movzx ax, byte [ebp - 0x1b]
movzx cx, byte [ebp - 0x1c]
shl ax, 8
or ax, cx
push 0x14
pop ecx
cmp cx, ax
jne 0x1002f741
push 0x3c
lea eax, [ebp - 0x40]
push eax
push ebx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
xor eax, eax
jmp 0x1002f779
mov eax, 0x22000001
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010586
leave
ret
Function at 0x10036020
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.10010ae0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10067820
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 4], 1
push 0x62
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR90.dll_strchr
add esp, 8
test eax, eax
jne 0x10036062
mov eax, dword [ebp - 4]
or eax, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
jne 0x10036111
call fcn.1004fd50
push str.BIO_new_file
push 0x43
push str.....Srcopenssl_3.0.12crypto_bio_bss_file.c
call fcn.1004ffa0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.calling_fopen__s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
call fcn.100500d0
add esp, 0x14
call sub.MSVCR90.dll__errno
cmp dword [eax], 2
je 0x100360b7
call sub.MSVCR90.dll__errno
cmp dword [eax], 6
jne 0x100360e3
call fcn.1004fd50
push str.BIO_new_file
push 0x4b
push str.....Srcopenssl_3.0.12crypto_bio_bss_file.c
call fcn.1004ffa0
add esp, 0xc
push 0
push 0x80
push 0x20
call fcn.100500d0
add esp, 0xc
jmp 0x1003610d
call fcn.1004fd50
push str.BIO_new_file
push 0x4d
push str.....Srcopenssl_3.0.12crypto_bio_bss_file.c
call fcn.1004ffa0
add esp, 0xc
push 0
push 0x80002
push 0x20
call fcn.100500d0
add esp, 0xc
xor eax, eax
jmp 0x1003615f
call fcn.100361d0
push eax
call fcn.10034fa0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10036138
mov eax, dword [ebp - 8]
push eax
call sub.MSVCR90.dll_fclose
add esp, 4
xor eax, eax
jmp 0x1003615f
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10035250
add esp, 8
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
push 0x6a
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10035b80
add esp, 0x10
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x10036380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.10010ae0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x100363f4
cmp dword [ebp + 0xc], 0
je 0x100363f4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
and edx, 0
je 0x100363cc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
push ecx
push 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR90.dll_fwrite
add esp, 0x10
mov dword [ebp - 4], eax
jmp 0x100363e8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
push edx
push 1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR90.dll_fwrite
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100363f4
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1005a660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.10010ae0
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], 0
jmp 0x1005a68f
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x1005a6b6
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
xor edx, ecx
movzx eax, byte [ebp - 1]
or eax, edx
mov byte [ebp - 1], al
jmp 0x1005a686
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x100664b0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.10010ae0
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
mov dword [ecx], 0
mov edx, dword [ebp + 0x18]
mov byte [edx], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1006657f
mov ecx, dword [ebp - 8]
movsx edx, word [ecx + 8]
cmp edx, 2
jne 0x1006655f
mov eax, dword [ebp - 8]
movsx ecx, word [eax + 0xa]
cmp ecx, 4
jne 0x1006655f
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
jmp 0x1006651c
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x1006655f
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
movzx eax, word [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10066240
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
jne 0x10066552
mov eax, 8
jmp 0x100665c5
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
add ecx, 0x1c
mov dword [ebp - 0xc], ecx
jmp 0x10066513
push 0x400
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
push 0x401
mov ecx, dword [ebp + 0x18]
push ecx
call sub.MSVCR90.dll_strncpy_s
add esp, 0x10
xor eax, eax
jmp 0x100665c5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
sub edx, 0x2af9
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 3
ja case.default.0x1006659d
mov eax, dword [ebp - 0x10]
jmp dword [eax*4 + 0x100665cc]
mov eax, 0x2af9
jmp 0x100665c5
mov eax, 0x2afa
jmp 0x100665c5
mov eax, 0x2afb
jmp 0x100665c5
mov eax, 0x2af9
jmp 0x100665c5
mov eax, 0x2af9
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10067550
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1023f198], 0
jne 0x100675f3
mov dword [0x1023f198], 1
push 0x190
push 0
push 0x1023f008
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x1023f008
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100675f3
call fcn.1004fd50
push str.BIO_sock_init
push 0x94
push str.....Srcopenssl_3.0.12crypto_bio_bio_sock.c
call fcn.1004ffa0
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.100500d0
add esp, 0xc
call fcn.1004fd50
push str.BIO_sock_init
push 0x96
push str.....Srcopenssl_3.0.12crypto_bio_bio_sock.c
call fcn.1004ffa0
add esp, 0xc
push 0
push 0x7a
push 0x20
call fcn.100500d0
add esp, 0xc
or eax, 0xffffffff
jmp 0x100675f8
mov eax, 1
pop ebp
ret

Function at 0x10067620
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.10010ae0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x1006767a
call fcn.1004fd50
push str.BIO_socket_ioctl
push 0xd1
push str.....Srcopenssl_3.0.12crypto_bio_bio_sock.c
call fcn.1004ffa0
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.100500d0
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret