joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10093398
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100b5350]
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 dword [ebp - 4], 1
push 0x100a73c5
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
call fcn.10008c50
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
mov dword [ebp - 0x1c], 0x4c7a6f6d
mov dword [ebp - 0x18], 0x30347a
call fcn.10009360
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.1006caea
mov ebx, eax
mov byte [ebx + edi], 0
push dword [ebp + 8]
push 0x100a752c
push 0xffffffffffffffff
push esi
push ebx
call fcn.10070b03
mov ecx, edi
call fcn.10039400
add eax, 0xc
push eax
call fcn.100729a9
mov esi, eax
add esp, 0x1c
mov dword [ebp - 0x24], esi
test esi, esi
je 0x1002a20b
movq xmm0, qword [ebp - 0x1c]
movq qword [esi], xmm0
mov edx, 8
xor ecx, ecx
mov edi, edi
mov eax, edi
shr eax, cl
inc edx
add ecx, 8
mov byte [edx + esi - 1], al
cmp edx, 0xc
jb 0x1002a1e0
push edi
add edx, esi
mov ecx, ebx
call fcn.100398b0
add esp, 4
test eax, eax
jne 0x1002a223
push esi
call fcn.10072081
add esp, 4
test ebx, ebx
je 0x1002a2a6
push ebx
call fcn.10072081
add esp, 4
xor bl, bl
jmp 0x1002a2f3
add eax, 0xc
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x18], eax
call fcn.10009360
mov esi, eax
lea edi, [esi + 1]
push edi
call fcn.1006caea
mov byte [eax + esi], 0
push dword [ebp + 0xc]
push 0x100a752c
push 0xffffffffffffffff
push edi
mov edi, eax
push edi
call fcn.10070b03
push 0x100ac790
lea eax, [ebp - 0x14]
push edi
push eax
mov dword [ebp - 0x14], 0
call fcn.10073eb5
add esp, 0x24
test eax, eax
je 0x1002a2aa
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1002a280
push eax
call fcn.10073c26
add esp, 4
mov esi, dword [ebp - 0x24]
push esi
call fcn.10072081
add esp, 4
test ebx, ebx
je 0x1002a299
push ebx
call fcn.10072081
add esp, 4
test edi, edi
je 0x1002a2a6
push edi
call fcn.10072081
add esp, 4
xor bl, bl
jmp 0x1002a2f3
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
push dword [ebp - 0x18]
push 1
push esi
call fcn.10076b7a
mov eax, dword [ebp - 0x14]
add esp, 0x10
test eax, eax
je 0x1002a2ce
push eax
call fcn.10073c26
add esp, 4
push esi
call fcn.10072081
add esp, 4
test ebx, ebx
je 0x1002a2e4
push ebx
call fcn.10072081
add esp, 4
test edi, edi
je 0x1002a2f1
push edi
call fcn.10072081
add esp, 4
mov bl, 1
lea ecx, [ebp - 0x20]
call fcn.10008cc0
lea ecx, [ebp + 8]
call fcn.10008cc0
lea ecx, [ebp + 0xc]
call fcn.10008cc0
mov al, bl
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.100704e7
mov esp, ebp
pop ebp
ret 8
Function at 0x1002a330
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100946bc
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x100b5350]
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, ecx
mov dword [ebp - 0x26c], esi
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x118]
push eax
mov ecx, esi
call fcn.1000a7a0
lea eax, [esi + 0x20]
push eax
push dword [esi]
lea ebx, [esi + 4]
push str._s_sProfiles
push ebx
call fcn.1000db70
add esp, 0x10
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x268], 0
call fcn.10008c10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x260], 0
call fcn.10008c10
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.10001a10
push eax
call dword [0x100b8e44]
test eax, eax
je 0x1002a54f
push ebx
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x264], 0
call fcn.10008c30
push str..
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 2
call fcn.100092d0
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x264]
call fcn.10001a10
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002a544
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop
mov eax, dword [ebp - 0x258]
shr eax, 4
and al, 1
cmp byte [ebp - 0x22c], 0x2e
je 0x1002a4eb
test al, al
je 0x1002a4eb
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x25c], 0
call fcn.10008c10
lea eax, [ebp - 0x22c]
push eax
mov byte [ebp - 4], 3
push dword [ebx]
lea eax, [ebp - 0x25c]
push str._s_s
push eax
call fcn.1000db70
add esp, 0x10
lea ecx, [ebp - 0x25c]
push 0
push str..default
call fcn.10008f80
test eax, eax
js 0x1002a4dc
push dword [ebp - 0x25c]
lea eax, [ebp - 0x260]
push str._sprefs.js
push eax
call fcn.1000db70
add esp, 0xc
lea ecx, [ebp - 0x260]
call fcn.10001a10
push eax
call dword [0x100b8e44]
test eax, eax
jne 0x1002a4ff
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 2
call fcn.10008cc0
lea eax, [ebp - 0x258]
push eax
push esi
call edi
test eax, eax
jne 0x1002a440
jmp 0x1002a53d
mov edi, dword [ebp - 0x26c]
lea eax, [ebp - 0x22c]
push eax
lea ecx, [edi + 0x10]
call fcn.1000a7a0
lea eax, [ebp - 0x260]
push eax
lea ecx, [edi + 8]
call fcn.10008cd0
lea eax, [ebp - 0x25c]
push eax
lea ecx, [edi + 0xc]
call fcn.10008cd0
lea ecx, [ebp - 0x25c]
call fcn.10008cc0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x264]
call fcn.10008cc0
lea ecx, [ebp - 0x260]
call fcn.10008cc0
lea ecx, [ebp - 0x268]
call fcn.10008cc0
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.100704e7
mov esp, ebp
pop ebp
ret
Function at 0x1002d500
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10093550
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100b5350]
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 edi, ecx
push 0x100a7698
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
call fcn.10008c50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
call fcn.1002cfa0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.10009360
test eax, eax
je 0x1002d617
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
call fcn.10001a10
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x28], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test ebx, ebx
je 0x1002d617
push ebx
call fcn.1006caea
add esp, 4
mov esi, eax
push esi
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x28]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x1002d60e
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x100a764c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x1002d60e
cmp dword [ebp - 0x14], 0
je 0x1002d60e
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0xfeef04bd
jne 0x1002d60e
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x20]
push str._d._d._d._d
push eax
call fcn.1000db70
add esp, 0x18
push esi
call fcn.10072081
add esp, 4
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.10008c30
lea ecx, [ebp - 0x24]
call fcn.10008cc0
lea ecx, [ebp - 0x20]
call fcn.10008cc0
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.100704e7
mov esp, ebp
pop ebp
ret
Function at 0x1002e460
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100932c3
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x100b5350]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], 0
je 0x1002e4a6
call fcn.1002e650
jmp 0x1002e61c
lea ecx, [ebp + 8]
call fcn.10001a10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1002e61c
push 0x103
lea eax, [ebp - 0x14f]
push 0
push eax
mov byte [ebp - 0x150], 0
call fcn.10073290
add esp, 0xc
lea eax, [ebp - 0x150]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push dword [esi + 0x974]
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x258]
push eax
mov dword [ebp - 0x17], 0x697078
mov dword [ebp - 0x20], 0x255c7325
mov dword [ebp - 0x1c], 0x73255c73
mov byte [ebp - 0x18], 0x2e
call fcn.100363b0
add esp, 0x14
lea eax, [ebp - 0x258]
push 0
push eax
lea ecx, [ebp + 8]
call fcn.10001a10
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1002e61c
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x25c]
mov word [ebp - 0x32], 0x7269
mov dword [ebp - 0x2b], 0x65747865
mov dword [ebp - 0x37], 0x5c616c6c
mov word [ebp - 0x3c], 0x4d5c
mov word [ebp - 0x39], 0x697a
mov dword [ebp - 0x24], 0x736e6f
mov word [ebp - 0x26], 0x6973
mov byte [ebp - 0x33], 0x46
mov dword [ebp - 0x40], 0x65726177
mov dword [ebp - 0x30], 0x786f4665
mov byte [ebp - 0x3a], 0x6f
mov dword [ebp - 0x44], 0x74666f53
mov byte [ebp - 0x2c], 0x5c
mov byte [ebp - 0x27], 0x6e
mov dword [ebp - 0x25c], 0
call fcn.10008c50
lea eax, [ebp - 0x258]
push eax
push 0x104
lea ecx, [esi + 0x978]
mov byte [ebp - 4], 1
call fcn.10009350
push eax
push 0x104
lea ecx, [ebp - 0x25c]
call fcn.10009350
push eax
push reloc.WS2_32.dll_accept
call fcn.1002ea90
push ecx
lea ecx, [esi + 0x974]
call fcn.10009380
push ecx
lea ecx, [ebp - 0x25c]
call fcn.10009380
lea ecx, [ebp - 0x25c]
call fcn.10008cc0
lea ecx, [ebp + 8]
call fcn.10008cc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100704e7
mov esp, ebp
pop ebp
ret 8
Function at 0x1002e650
Capabilities:
Contain obfuscated stackstrings
Get common file path
Get file size
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009411b
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x100b5350]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x103
lea eax, [ebp - 0x127]
push 0
push eax
mov byte [ebp - 0x128], 0
call fcn.10073290
add esp, 0xc
lea eax, [ebp - 0x337]
push 0x103
push 0
push eax
mov byte [ebp - 0x338], 0
call fcn.10073290
add esp, 0xc
lea eax, [ebp - 0x22f]
push 0x103
push 0
push eax
mov byte [ebp - 0x230], 0
call fcn.10073290
add esp, 0xc
lea ecx, [ebp - 0x33c]
mov dword [ebp - 0x33c], 0
call fcn.10008c10
mov dword [ebp - 4], 0
push dword [edi + 0x974]
lea eax, [ebp - 0x1c]
push dword [edi + 0x97c]
mov dword [ebp - 0x18], 0x70782e73
push eax
lea eax, [ebp - 0x33c]
push eax
mov dword [ebp - 0x1c], 0x255c7325
mov word [ebp - 0x14], 0x69
call fcn.1000db70
add esp, 0x10
lea eax, [ebp - 0x128]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x338]
push 0x104
push eax
call fcn.10072954
add esp, 0xc
lea ecx, [ebp - 0x33c]
call fcn.10001a10
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
push 0
push 3
push 0
push 0
push accept
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002e7f2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.10073290
add esp, 0xc
lea eax, [ebp - 0x230]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push ecx
lea eax, [ebp - 0x340]
push eax
sub esp, 8
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
mov ecx, edi
mov dword [ebp - 0x340], 0
call fcn.1002e820
lea ecx, [ebp - 0x33c]
call fcn.10008cc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100704e7
mov esp, ebp
pop ebp
ret
Function at 0x1002ea90
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x100b5350]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x114]
push eax
push 0xf003f
push 0
push ebx
push edi
mov dword [ebp - 0x114], 0
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1002eb0c
push 0
lea eax, [ebp - 0x114]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.10073290
mov ebx, dword [ebp - 0x118]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push ebx
push dword [ebp - 0x114]
mov dword [ebp - 0x110], 0x104
mov dword [ebp - 0x10c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1002eb9a
mov edx, dword [ebp - 0x11c]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002eb76
sub ecx, edi
push ecx
push edx
push 1
push 0
push ebx
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1002ebfe
xor esi, esi
jmp 0x1002ebfe
mov ebx, dword [ebp - 0x11c]
mov ecx, ebx
lea eax, [ebp - 0x108]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1002ebc8
test dl, dl
je 0x1002ebc4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1002ebc8
add eax, 2
add ecx, 2
test dl, dl
jne 0x1002eba8
xor eax, eax
jmp 0x1002ebcd
sbb eax, eax
or eax, 1
test eax, eax
je 0x1002ebfe
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ebd6
sub ecx, edx
push ecx
push ebx
push 1
push 0
push dword [ebp - 0x118]
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.100704e7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10038520
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100b5350]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, ecx
xor esi, esi
mov dword [ebp - 0xd], 0x642e6c6c
mov word [ebp - 0xf], 0x6474
mov word [ebp - 8], 0x6c
mov byte [ebp - 0x10], 0x6e
mov byte [ebp - 9], 0x6c
mov dword [ebp - 0x24], 0x6554744e
mov dword [ebp - 0x1b], 0x72506574
mov dword [ebp - 0x15], 0x737365
mov dword [ebp - 0x20], 0x6e696d72
mov byte [ebp - 0x1c], 0x61
mov word [ebp - 0x17], 0x636f
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x100385a7
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100b8f90], eax
test eax, eax
je 0x100385a7
push esi
push edi
call eax
mov ecx, 1
test eax, eax
cmove esi, ecx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100704e7
mov esp, ebp
pop ebp
ret
Function at 0x100389f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10094c78
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x100b5350]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x1b], 0x6c6c64
mov dword [ebp - 0x1f], 0x2e32336c
mov dword [ebp - 0x23], 0x656e7265
mov byte [ebp - 0x24], 0x4b
mov dword [ebp - 0x2a], 0x747865
mov word [ebp - 0x2d], 0x3233
mov dword [ebp - 0x32], 0x7365636f
mov byte [ebp - 0x2e], 0x73
mov byte [ebp - 0x2b], 0x4e
mov word [ebp - 0x34], 0x7250
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10038a88
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x10038a97
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 8]
call fcn.10008cc0
xor eax, eax
jmp 0x10038b41
push 0
push 2
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x164], eax
cmp esi, 0xffffffff
je 0x10038b2c
lea eax, [ebp - 0x15c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x10038b25
jmp 0x10038ae0
mov eax, dword [ebp - 0x164]
cmp dword [ebp - 0x154], eax
je 0x10038b0a
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp + 8]
call fcn.10001a10
push eax
call fcn.100705b7
add esp, 8
test eax, eax
je 0x10038b1b
lea eax, [ebp - 0x15c]
push eax
push esi
call ebx
cmp eax, 1
je 0x10038ae0
jmp 0x10038b25
mov dword [ebp - 0x160], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 8]
call fcn.10008cc0
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100704e7
mov esp, ebp
pop ebp
ret
Function at 0x10038b60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10094cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x100b5350]
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 dword [ebp - 0x78], edx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
call fcn.10008c10
mov byte [ebp - 4], 3
push dword [ebp + 0xc]
lea eax, [ebp - 0x6c]
push dword [ebp + 8]
push str.__s___s
push eax
call fcn.1000db70
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
mov dword [ebp - 0x58], 0x44
call fcn.10073290
add esp, 0x1c
mov eax, 1
push 0x100a73c5
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], ax
mov dword [ebp - 0x74], 0
call fcn.10008c50
mov byte [ebp - 4], 4
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x6c]
call fcn.10009360
push eax
lea ecx, [ebp - 0x6c]
call fcn.10009350
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10038c66
push 0x3e8
call edi
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [ebp - 0x78]
push dword [ebp - 0x64]
mov dword [ecx], eax
call esi
push dword [ebp - 0x68]
call esi
jmp 0x10038c71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x7c]
mov dword [ecx], eax
xor esi, esi
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
push eax
call fcn.10008c30
call fcn.100389f0
add esp, 4
test eax, eax
jne 0x10038c98
push 0xc8
call edi
inc esi
cmp esi, 0xa
jl 0x10038c73
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
push eax
call fcn.10008c30
call fcn.100389f0
add esp, 4
test eax, eax
jne 0x10038cc2
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, 5
jl 0x10038c13
jmp 0x10038cc9
mov dword [ebp - 0x70], 1
lea ecx, [ebp - 0x74]
call fcn.10008cc0
lea ecx, [ebp - 0x6c]
call fcn.10008cc0
lea ecx, [ebp + 8]
call fcn.10008cc0
lea ecx, [ebp + 0xc]
call fcn.10008cc0
lea ecx, [ebp + 0x10]
call fcn.10008cc0
mov eax, dword [ebp - 0x70]
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.100704e7
mov esp, ebp
pop ebp
ret
Function at 0x10039e66
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x100b5350]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10039ead
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x10039ea7
shr eax, 8
cmp al, 2
jne 0x10039ea7
call fcn.1003dc42
jmp 0x10039eb0
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100704e7
leave
ret

Function at 0x1003e46d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1003e48b
cmp dword [esi + 0x6c], 0
je 0x1003e48b
push 2
push 3
push esi
call fcn.10050f82
add esp, 0xc
push dword [ebp + 0xc]
call fcn.1004abe2
pop ecx
test esi, esi
je 0x1003e4a8
cmp dword [esi + 0x6c], 0
je 0x1003e4a8
push 3
push esi
call fcn.10050fba
pop ecx
pop ecx
pop esi
pop ebp
ret
Function at 0x10046b23
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
mov esi, dword [edi + eax*4 + 0x1a8]
push edi
call fcn.10046e17
pop ecx
pop ecx
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov esi, eax
and dword [ebx], 0
cmp esi, 0xffffffff
jne 0x10046b9d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x10046b75
xor esi, esi
mov dword [ebx], 0x51
jmp 0x10046b9d
push eax
push edi
call fcn.10052f6d
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.10046801
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x47e4], ecx
add esp, 0x14
mov dword [ebx], 0x37
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x10046e17
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebx + 0x470]
mov edx, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ecx + 0x1d]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
mov dword [ebp + 8], edx
je 0x10046ebf
cmp dword [ebx + ecx*4 + 0x1c0], 0x10046a92
jne 0x10046ebf
xor eax, eax
cmp dword [esi], eax
je 0x10046e5e
test edi, edi
je 0x10046ebf
push eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.10046226
add esp, 0x14
cmp eax, 0xffffffff
je 0x10046ebf
test al, 1
je 0x10046ebf
xor ecx, ecx
cmp dword [esi], ecx
jne 0x10046ea7
mov eax, dword [ebx]
mov eax, dword [eax + 0x388]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov edi, dword [esi + 4]
pop ecx
xor ecx, ecx
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
test eax, eax
jne 0x10046ea7
mov dword [esi + 4], ecx
jmp 0x10046ebf
mov eax, dword [esi]
add eax, dword [esi + 8]
push ecx
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10046ebf
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10046ec4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x1e0]
xor edi, edi
test eax, eax
je 0x10046ef1
push dword [esi + 0x16c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
mov edi, eax
jmp 0x10046f27
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x10046f27
push dword [esi + 0x168]
imul eax, eax, 3
push 1
add eax, 0x10097640
push 2
push eax
call fcn.10076b7a
push dword [esi + 0x168]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10076b7a
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
ret