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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0x18]
or esi, 0xffffffff
mov dword [ebp - 4], 0
mov eax, dword [edi]
test eax, eax
je 0x10008348
push eax
call fcn.100672c9
add esp, 4
mov dword [edi], 0
push ebx
push 0x1009ee40
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100080b0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100083d2
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x100083d2
mov eax, dword [ebp - 4]
add eax, 2
push eax
call fcn.100697a3
mov dword [edi], eax
add esp, 4
mov dword [ebp + 0x18], eax
mov byte [eax], 0
mov ecx, dword [ebp - 4]
mov byte [eax + ecx], 0
mov ecx, dword [ebp - 4]
mov byte [eax + ecx + 1], 0
lea eax, [ebp - 4]
push eax
push dword [edi]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [edi], 0
mov esi, eax
jne 0x100083d2
push 0x1009ee2a
call fcn.10068f22
push dword [ebp + 0x18]
call fcn.100672c9
add esp, 8
mov ecx, dword [ebp + 0x1c]
pop ebx
test ecx, ecx
je 0x100083df
mov eax, dword [ebp - 4]
mov dword [ecx], eax
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100086c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x100b9550]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x54], eax
or edi, 0xffffffff
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov dword [ebp - 0x5c], eax
lea ebx, [ebx]
movzx eax, word [ecx + 0x1009ee44]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x1a], ax
test ax, ax
jne 0x100086f0
lea eax, [ebp - 0x18]
push eax
call fcn.10008510
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.100094c0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100087f5
push esi
call fcn.1006a119
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x60], eax
push ecx
push eax
call fcn.1006a13d
add esp, 0xc
test eax, eax
jne 0x100087f5
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x54], ecx
lea eax, [eax*2 - 2]
cdq
mov edi, eax
cmp ecx, edx
jg 0x10008765
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x58], eax
jl 0x1000876f
cmp eax, edi
jb 0x1000876f
mov eax, edi
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], eax
mov ecx, edx
push 0
push 2
push ecx
push eax
call fcn.1006a880
mov ecx, dword [ebp - 0x54]
mov edi, eax
mov eax, dword [ebp - 0x58]
neg eax
push 2
adc ecx, 0
neg ecx
push ecx
push eax
push dword [ebp - 0x60]
call fcn.1006a4c4
mov eax, dword [ebp - 0x58]
add eax, 2
push eax
call fcn.100697a3
push esi
push dword [ebp - 0x58]
mov dword [ebx], eax
push 1
push eax
call fcn.10065ab7
mov eax, dword [ebx]
xor ecx, ecx
add esp, 0x24
mov word [eax + edi*2], cx
mov eax, dword [ebp - 0x5c]
cmp edi, eax
jle 0x100087f1
mov ebx, dword [ebx]
push eax
push 0xa
push ebx
call fcn.10009940
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x100087f1
sub eax, ebx
sar eax, 1
sub edi, eax
cmp edi, dword [ebp - 0x5c]
jle 0x100087f1
lea eax, [edi + edi]
push eax
lea eax, [ecx + 2]
push eax
push ebx
call fcn.10066800
add esp, 0xc
xor edi, edi
jmp 0x1000880a
mov eax, dword [ebx]
test eax, eax
je 0x1000880a
push eax
call fcn.100672c9
add esp, 4
mov dword [ebx], 0
test esi, esi
je 0x10008817
push esi
call fcn.1006a0a2
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100676f5
mov esp, ebp
pop ebp
ret

Function at 0x100088d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x100088e0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push ebx
push esi
push edi
lea ecx, [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [ebp + 0xc]
mov ebx, eax
push 1
lea edi, [ecx*4]
lea ecx, [edi + 4]
push ecx
call fcn.10067289
push edi
mov esi, eax
push ebx
push esi
call fcn.10067bf0
mov eax, dword [ebp + 8]
add esp, 0x14
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret
Function at 0x10008940
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100b9018]
push ebx
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
mov dword [ebp - 4], ebx
cmp eax, 0xffffffff
je 0x10008981
mov esi, dword [0x100b9014]
mov ebx, eax
mov eax, dword [0x100b9020]
mov edi, dword [0x100b901c]
mov edx, dword [0x100b9024]
mov ecx, dword [0x100b9028]
mov dword [ebp - 4], eax
jmp 0x10008a5b
cmp dword [0x100bb240], ebx
jne 0x100089a6
push 0x100bb240
mov dword [0x100bb240], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10008a32
mov ebx, dword [0x100bb244]
mov eax, dword [0x100bb24c]
mov edi, dword [0x100bb248]
mov edx, dword [0x100bb250]
movzx ecx, word [0x100bb354]
mov dword [ebp - 4], eax
cmp ebx, 0xa
jg 0x10008a2b
jne 0x100089d9
test edi, edi
jns 0x10008a2b
mov esi, 6
jmp 0x10008a38
cmp ebx, 6
jg 0x100089d2
jne 0x10008a08
cmp edi, 3
jge 0x100089d2
cmp edi, 2
jge 0x10008a01
cmp edi, 1
jge 0x100089fa
test edi, edi
js 0x10008a24
mov esi, 3
jmp 0x10008a38
mov esi, 4
jmp 0x10008a38
mov esi, 5
jmp 0x10008a38
cmp ebx, 5
jg 0x10008a24
jne 0x10008a38
cmp edi, 2
jge 0x10008a24
cmp edi, 1
jge 0x10008a24
test edi, edi
js 0x10008a38
mov esi, 1
jmp 0x10008a38
mov esi, 2
jmp 0x10008a38
mov esi, 7
jmp 0x10008a38
xor ecx, ecx
xor edx, edx
xor eax, eax
mov dword [0x100b9014], esi
mov dword [0x100b9018], ebx
mov dword [0x100b901c], edi
mov dword [0x100b9020], eax
mov dword [0x100b9024], edx
mov dword [0x100b9028], ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x10008a64
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10008a6d
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10008a76
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10008a82
mov esi, dword [ebp - 4]
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
test eax, eax
je 0x10008a8e
mov dword [eax], edx
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10008a97
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10008aa0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100b9014]
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x10008bb7
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [0x100b9018], eax
jne 0x10008bb4
cmp dword [0x100bb240], ebx
jne 0x10008af7
push 0x100bb240
mov dword [0x100bb240], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10008b86
mov eax, dword [0x100bb24c]
mov ebx, dword [0x100bb244]
mov edi, dword [0x100bb248]
mov dword [ebp - 4], eax
mov eax, dword [0x100bb250]
mov dword [ebp - 8], eax
movzx eax, word [0x100bb354]
mov dword [ebp - 0xc], eax
cmp ebx, 0xa
jg 0x10008b81
jne 0x10008b2f
test edi, edi
jns 0x10008b81
mov esi, 6
jmp 0x10008b86
cmp ebx, 6
jg 0x10008b28
jne 0x10008b5e
cmp edi, 3
jge 0x10008b28
cmp edi, 2
jge 0x10008b57
cmp edi, 1
jge 0x10008b50
test edi, edi
js 0x10008b7a
mov esi, 3
jmp 0x10008b86
mov esi, 4
jmp 0x10008b86
mov esi, 5
jmp 0x10008b86
cmp ebx, 5
jg 0x10008b7a
jne 0x10008b86
cmp edi, 2
jge 0x10008b7a
cmp edi, 1
jge 0x10008b7a
test edi, edi
js 0x10008b86
mov esi, 1
jmp 0x10008b86
mov esi, 2
jmp 0x10008b86
mov esi, 7
mov ecx, dword [ebp - 4]
mov eax, esi
mov dword [0x100b9020], ecx
mov ecx, dword [ebp - 8]
mov dword [0x100b9024], ecx
mov ecx, dword [ebp - 0xc]
mov dword [0x100b9014], eax
mov dword [0x100b9018], ebx
mov dword [0x100b901c], edi
mov dword [0x100b9028], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008e50
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.1006a930
mov eax, dword [0x100b9550]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
or ebx, 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0
mov eax, dword [edi]
test eax, eax
je 0x10008e9c
push eax
call fcn.100672c9
add esp, 4
mov dword [edi], 0
xor ecx, ecx
mov edi, edi
movzx eax, word [ecx + 0x1009ef10]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x1a], ax
test ax, ax
jne 0x10008ea0
lea eax, [ebp - 0x18]
push eax
call fcn.10008510
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.100094c0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10008fd5
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x1020]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10008fcc
lea eax, [ebp - 0x101c]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x1020]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10008fcc
push esi
push 0x1000
lea eax, [ebp - 0x1018]
push 1
push eax
call fcn.10065ab7
add esp, 0x10
mov dword [ebp - 0x1024], eax
test eax, eax
jle 0x10008f7a
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptHashData]
nop
push 0
push eax
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x101c]
call ebx
test eax, eax
je 0x10008fc9
push esi
push 0x1000
lea eax, [ebp - 0x1018]
push 1
push eax
call fcn.10065ab7
add esp, 0x10
mov dword [ebp - 0x1024], eax
test eax, eax
jg 0x10008f40
or ebx, 0xffffffff
push 1
push 0x14
mov dword [ebp - 0x1024], 0x14
call fcn.10067289
add esp, 8
mov dword [edi], eax
lea ecx, [ebp - 0x1024]
push 0
push ecx
push eax
push 2
push dword [ebp - 0x101c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x10008fc5
mov eax, dword [edi]
test eax, eax
je 0x10008fcc
push eax
call fcn.100672c9
add esp, 4
mov dword [edi], 0
jmp 0x10008fcc
xor ebx, ebx
jmp 0x10008fcc
or ebx, 0xffffffff
push esi
call fcn.1006a0a2
add esp, 4
mov eax, dword [ebp - 0x1020]
test eax, eax
je 0x10008fe8
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0x101c]
test ecx, ecx
je 0x10008ff9
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100676f5
mov esp, ebp
pop ebp
ret
Function at 0x10009010
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0x10]
push edi
or edi, 0xffffffff
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [esi]
test eax, eax
je 0x10009041
push eax
call fcn.100672c9
add esp, 4
mov dword [esi], 0
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100090cd
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100090cd
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x100090cd
push 1
push 0x14
mov dword [ebp + 0xc], 0x14
call fcn.10067289
add esp, 8
mov dword [esi], eax
lea ecx, [ebp + 0xc]
push 0
push ecx
push eax
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x100090cb
mov eax, dword [esi]
test eax, eax
je 0x100090cd
push eax
call fcn.100672c9
add esp, 4
mov dword [esi], 0
jmp 0x100090cd
xor edi, edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x100090dd
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 4]
test eax, eax
je 0x100090eb
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10009130
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 1
push 0x14
call fcn.10067289
mov ecx, dword [ebp + 8]
mov esi, eax
push 0
push 0
push esi
mov dword [ecx], esi
mov ecx, dword [ebp + 0xc]
push 0x10009730
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x10]
push 0
push 0
mov dword [esi + 8], ecx
mov dword [esi + 0x10], 2
call fcn.1006a633
mov dword [esi], eax
add esp, 0x20
neg eax
sbb eax, eax
neg eax
dec eax
pop esi
pop ebp
ret

Function at 0x10009180
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 1
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
neg eax
sbb eax, eax
inc eax
pop ebp
ret
Function at 0x10012a40
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov eax, dword [esp + 8]
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
add eax, esi
mov ebp, eax
sub ebp, esi
cmp esi, eax
push edi
cmova ebp, ecx
mov edi, 0x1505
test ebp, ebp
je 0x10012a85
mov al, byte [esi]
push eax
call fcn.10024da0
movsx ecx, al
lea esi, [esi + 1]
mov eax, edi
inc ebx
shl eax, 5
add esp, 4
add eax, edi
xor ecx, eax
mov edi, ecx
cmp ebx, ebp
jb 0x10012a64
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10020100
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x6cb], 0
je 0x1002018c
cmp dword [esi + 0x1a4], 0
je 0x10020153
push esi
call fcn.1000d970
push 1
push esi
mov byte [esp + 0x14], al
call fcn.1000dc80
push dword [esi + 0x154]
mov eax, dword [esi + 0x1a4]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.1000dc80
add esp, 0x28
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x1002018c
push dword [esi + 0x150]
lea eax, [eax + eax*2]
push 1
add eax, 0x100a0748
push 2
push eax
call fcn.100661ca
push dword [esi + 0x150]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.100661ca
add esp, 0x20
pop esi
ret

Function at 0x10022f50
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x100a0b74
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x10022f6a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x100a0b80
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x100a0b90
push esi
call fcn.1006c510
add esp, 8
test eax, eax
je 0x10022fb2
test ebp, ebp
je 0x10022fa3
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x10022fd8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10022fd8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x1002308f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022ff5
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x100b9034]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10023085
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10023085
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10023027
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10023040
sub ecx, edx
add ecx, ebx
sub ecx, esi
lea ecx, [ecx]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10023050
test ebp, ebp
je 0x1002307c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x100b9038]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x100b9038]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x10029680
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1002969f
cmp dword [esi + 0x84], 0
je 0x1002969f
push 2
push 3
push esi
call fcn.100253b0
add esp, 0xc
push dword [esp + 0xc]
call fcn.100290b0
add esp, 4
test esi, esi
je 0x100296c3
cmp dword [esi + 0x84], 0
je 0x100296c3
push 3
push esi
call fcn.100253f0
add esp, 8
pop esi
ret

Function at 0x100297d0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10029810
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x104], 0
jne 0x100297ff
push 0
call fcn.100297d0
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x104], cl
mov ecx, dword [esi + 0x7c]
xor eax, eax
pop esi
cmp byte [ecx + 0x104], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x1002982c
xor esi, esi
xor eax, eax
test esi, esi
pop esi
setg al
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
test esi, esi
pop esi
setg al
ret
Function at 0x10034f20
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.10013520
push dword [esp + 0x38]
movdqu xmm0, xmmword [eax]
movdqu xmmword [esp + 0x18], xmm0
call fcn.10068f22
push dword [esp + 0x40]
mov edi, eax
call fcn.10068f22
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x10034fb9
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
lea eax, [esp + 0x20]
push eax
call fcn.10013520
movdqu xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movdqu xmmword [ecx], xmm0
mov ecx, esp
movdqu xmm0, xmmword [eax]
movdqu xmmword [ecx], xmm0
call fcn.100135c0
add esp, 0x20
test edx, edx
ja 0x10034fdd
jb 0x10034fab
cmp eax, 0x3e8
ja 0x10034fdd
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x10034f70
test edi, edi
je 0x10034fc6
push edi
call fcn.100672c9
add esp, 4
test esi, esi
je 0x10034fd3
push esi
call fcn.100672c9
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x10034fea
push edi
call fcn.100672c9
add esp, 4
test esi, esi
je 0x10034ff7
push esi
call fcn.100672c9
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x100354f0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [eax], ebx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x10035681
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1003566c
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1003554e
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10035540
sub eax, edx
lea ecx, [eax + 1]
jmp 0x10035550
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
cmp eax, 2
jne 0x10035561
lea ebp, [eax + 0xe]
jmp 0x1003556d
cmp eax, 0x17
jne 0x1003560e
lea ebp, [eax + 5]
cmp dword [esi + 0x18], 0
je 0x1003560e
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1003560e
cmp eax, ebp
jb 0x1003560e
lea eax, [ebp + 0x20]
add eax, ecx
push eax
call dword [0x100b9034]
mov edi, eax
add esp, 4
test edi, edi
je 0x1003565d
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.10067bf0
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x100355fa
mov eax, dword [edi + 0x18]
add eax, ebp
push ecx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.10067bf0
add esp, 0xc
mov eax, dword [esp + 0x18]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x1003560a
mov dword [eax + 0x1c], edi
mov dword [esp + 0x18], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10035532
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
test eax, eax
je 0x1003562e
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x10035668
test ebx, ebx
je 0x1003564d
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x100b9038]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x10035636
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x1003561d
test ebx, ebx
jne 0x10035678
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x10035b10
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x2b
test edi, edi
je 0x10035bb9
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
lea ecx, [ecx]
mov ebx, 4
lea eax, [esp + 0x1c]
push 4
push eax
cmp edi, ebx
push ebp
cmovb ebx, edi
call fcn.100191e0
add esp, 0xc
cmp eax, 4
jne 0x10035b76
cmp byte [0x100bb444], 0
jne 0x10035b82
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x10035bbb
mov eax, dword [esp + 0x1c]
jmp 0x10035b9f
imul eax, dword [0x100bb448], 0x41c64e6d
add eax, 0x3039
mov dword [0x100bb448], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x10035bb1
mov byte [esi], al
dec edi
inc esi
shr eax, 8
dec ebx
jne 0x10035ba3
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x10035b30
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10035bc0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
dec ebx
je 0x10035c5d
mov esi, dword [esp + 0x14]
mov ebp, 0x3e
lea esp, [esp]
push 4
lea eax, [esp + 0x20]
push eax
push esi
call fcn.100191e0
add esp, 0xc
cmp eax, 4
jne 0x10035c40
cmp byte [0x100bb444], 0
jne 0x10035c23
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x10035c44
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
ret
imul eax, dword [0x100bb448], 0x41c64e6d
add eax, 0x3039
mov dword [0x100bb448], eax
rol eax, 0x10
mov dword [esp + 0x1c], eax
jmp 0x10035c44
test eax, eax
jne 0x10035c62
mov eax, dword [esp + 0x1c]
cmp eax, 0xfffffffc
jae 0x10035be0
xor edx, edx
div ebp
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
mov byte [edi], al
inc edi
dec ebx
jne 0x10035be0
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10035d10
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.1006a960
add esp, 0xc
push 2
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
ret
Function at 0x10039010
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x100b903c]
mov edi, eax
add esp, 8
test edi, edi
je 0x10038fe7
lea ebx, [ebx]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x10038fff
cmp esi, ebx
je 0x10038fff
cmp esi, 0x8000
ja 0x10038fff
cmp esi, ebx
jb 0x10038ff8
push esi
push edi
call dword [0x100b903c]
mov edi, eax
add esp, 8
test edi, edi
jne 0x10038fb0
push ebp
call dword [0x100b9038]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x100b9038]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
jmp 0x10038f90