joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440e10
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x6926dc]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c4], 0x190
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x1c0]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x440e51
mov byte [ebp - 0x1c0], 0
lea edx, [ebp - 0x1c0]
push edx
mov ecx, dword [ebp + 8]
call fcn.00411900
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057bc02
mov esp, ebp
pop ebp
ret

Function at 0x440e90
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x6926dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x84], 0x76
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x440ed1
mov byte [ebp - 0x80], 0
lea edx, [ebp - 0x80]
push edx
mov ecx, dword [ebp + 8]
call fcn.00411900
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057bc02
mov esp, ebp
pop ebp
ret

Function at 0x44a080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
cmp dword [ebp + 0xc], 0
je 0x44a0a4
cmp dword [ebp + 8], 0
jne 0x44a0c3
cmp dword [ebp + 0x18], 0
je 0x44a0bc
push str.NULL_buf_or_bufSize
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x10]
call edx
xor al, al
jmp 0x44a191
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0xffffffff
je 0x44a133
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44a121
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x26
jne 0x44a109
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov al, 1
jmp 0x44a191
cmp dword [ebp + 0x18], 0
je 0x44a11b
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.0044d020
xor al, al
jmp 0x44a191
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jne 0x44a12f
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov al, 1
jmp 0x44a191
mov ecx, dword [ebp - 8]
cmp dword [ecx + 8], 0
je 0x44a18f
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00581b87
add esp, 0x10
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
cmp eax, dword [ebp + 0xc]
jne 0x44a16a
mov al, 1
jmp 0x44a191
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call fcn.005818b3
add esp, 4
test eax, eax
je 0x44a183
xor al, al
jmp 0x44a191
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov al, 1
jmp 0x44a191
xor al, al
mov esp, ebp
pop ebp
ret 0x14
Function at 0x44a1a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bdac8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6926dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x48]
call fcn.00449b00
movzx eax, al
test eax, eax
jne 0x44a1f6
cmp dword [ebp + 0x18], 0
je 0x44a1ef
push str.Failed_to_write_because_file_is_not_open.
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x10]
call eax
xor al, al
jmp 0x44a359
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x14], 0
je 0x44a212
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov dword [edx + 4], 0
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x44a357
cmp dword [ebp + 0x10], 0
jl 0x44a238
jg 0x44a22f
cmp dword [ebp + 0xc], 0x989680
jbe 0x44a238
mov dword [ebp - 0x18], 0x989680
jmp 0x44a23e
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x48]
cmp dword [edx + 4], 0xffffffff
je 0x44a2ce
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x44a27e
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x18]
je 0x44a2cc
cmp dword [ebp + 0x18], 0
je 0x44a2c5
lea ecx, [ebp - 0x44]
call fcn.00411ff0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00414880
lea ecx, [ebp - 0x44]
call fcn.0049ea10
push eax
push str.WriteFileError
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x28]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004123c0
xor al, al
jmp 0x44a359
jmp 0x44a317
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + 8], 0
je 0x44a317
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 8]
push eax
push 1
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0057d4d4
add esp, 0x10
cmp eax, 1
je 0x44a311
cmp dword [ebp + 0x18], 0
je 0x44a30d
push str.fwrite_failed.
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x10]
call eax
xor al, al
jmp 0x44a359
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x14], 0
je 0x44a352
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov eax, dword [ebp + 0x14]
add ecx, dword [eax]
mov eax, dword [eax + 4]
adc eax, edx
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x44a212
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x44a370
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8f48
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6926dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
cmp dword [eax + 4], 0xffffffff
je 0x44a412
push 0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x44a40d
cmp dword [ebp + 8], 0
je 0x44a40d
lea ecx, [ebp - 0x3c]
call fcn.00411ff0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00414880
lea ecx, [ebp - 0x3c]
call fcn.0049ea10
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
call eax
push str.Failed_to_get_file_size__32_
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004123c0
mov eax, dword [ebp - 0x10]
jmp 0x44a43a
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 8], 0
je 0x44a437
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 8]
push eax
call fcn.0058620e
add esp, 4
push eax
call fcn.00581ba4
add esp, 4
jmp 0x44a43a
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x44a450
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c9518
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6926dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
cmp dword [eax + 4], 0xffffffff
je 0x44a520
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x44a502
cmp dword [ebp + 8], 0
je 0x44a4fa
lea ecx, [ebp - 0x4c]
call fcn.00411ff0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00414880
lea ecx, [ebp - 0x4c]
call fcn.0049ea10
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
call eax
push str.Failed_to_get_file_size__64_
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004123c0
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x44a54b
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.004443f0
add esp, 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jmp 0x44a54b
mov eax, dword [ebp - 0x50]
cmp dword [eax + 8], 0
je 0x44a545
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 8]
push edx
call fcn.0058620e
add esp, 4
push eax
call fcn.00581ca3
add esp, 4
jmp 0x44a54b
or eax, 0xffffffff
or edx, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x44a560
Capabilities:
Hash data with md5

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

Function at 0x44f640
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jge 0x44f650
xor al, al
jmp 0x44f699
cmp dword [ebp + 0xc], 0
jne 0x44f65a
xor al, al
jmp 0x44f699
mov byte [ebp - 5], 0
call fcn.00440fa0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44f670
xor al, al
jmp 0x44f699
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x44f68a
mov byte [ebp - 5], 1
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x44fcf0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
ja case.default.0x44fd0d
mov ecx, dword [ebp - 0x18]
jmp dword [ecx*4 + 0x44fe9c]
mov dword [ebp - 4], 0
jmp 0x44fd26
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 5
jge 0x44fd42
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx*4 + 0x60dc98]
mov dword [ecx + eax*4 + 4], edx
jmp 0x44fd1d
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x28], 0
jmp case.default.0x44fd0d
mov dword [ebp - 8], 0
jmp 0x44fd6d
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 8
jge 0x44fd89
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x60ddb0]
mov dword [ecx + eax*4 + 4], edx
jmp 0x44fd64
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x28], 0
jmp case.default.0x44fd0d
mov dword [ebp - 0xc], 0
jmp 0x44fdb4
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x44fde1
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax*8 + 0x60ddd0]
mov edx, dword [eax*8 + 0x60ddd4]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov dword [esi + eax*8 + 0xac], ecx
mov dword [esi + eax*8 + 0xb0], edx
jmp 0x44fdab
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xec], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xf0], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xf4], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xf8], 0
jmp case.default.0x44fd0d
mov dword [ebp - 0x10], 0
jmp 0x44fe29
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 8
jge 0x44fe56
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax*8 + 0x60e090]
mov edx, dword [eax*8 + 0x60e094]
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov dword [esi + eax*8 + 0xac], ecx
mov dword [esi + eax*8 + 0xb0], edx
jmp 0x44fe20
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xec], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xf0], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xf4], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xf8], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x450540
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 3
ja case.default.0x45055f
mov edx, dword [ebp - 0x18]
jmp dword [edx*4 + 0x4506e4]
mov dword [ebp - 4], 0
jmp 0x450578
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 5
jge 0x450594
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x60dc98]
mov dword [edx + ecx*4 + 4], eax
jmp 0x45056f
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x28], 0
jmp case.default.0x45055f
mov dword [ebp - 8], 0
jmp 0x4505bf
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 8
jge 0x4505db
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov eax, dword [eax*4 + 0x60ddb0]
mov dword [edx + ecx*4 + 4], eax
jmp 0x4505b6
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x28], 0
jmp case.default.0x45055f
mov dword [ebp - 0xc], 0
jmp 0x450606
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jge 0x450633
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx*8 + 0x60ddd0]
mov eax, dword [ecx*8 + 0x60ddd4]
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov dword [esi + ecx*8 + 0xac], edx
mov dword [esi + ecx*8 + 0xb0], eax
jmp 0x4505fd
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xec], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xf0], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xf4], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xf8], 0
jmp case.default.0x45055f
mov dword [ebp - 0x10], 0
jmp 0x45067b
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 8
jge 0x4506a8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx*8 + 0x60e090]
mov eax, dword [ecx*8 + 0x60e094]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov dword [esi + ecx*8 + 0xac], edx
mov dword [esi + ecx*8 + 0xb0], eax
jmp 0x450672
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xec], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xf0], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xf4], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xf8], 0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45c110
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0x10325476
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], 0xc3d2e1f0
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov esp, ebp
pop ebp
ret
Function at 0x4a3aa0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c2191
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6926dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov dword [eax], vtable.AesCrypt.0
mov ecx, dword [ebp - 0x24]
add ecx, 8
call fcn.00411ff0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x30
call fcn.00415430
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
add ecx, 0x50
call fcn.00415430
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x70], 0x80
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x74], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x78], 0
push 0x10
push 0
lea ecx, [ebp - 0x20]
push ecx
call fcn.0057df80
add esp, 0xc
push 0x10
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x50
call fcn.00417290
push 0x10
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x30
call fcn.00417290
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057bc02
mov esp, ebp
pop ebp
ret

Function at 0x4a9370
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4a937e
or eax, 0xffffffff
jmp 0x4a93bc
cmp dword [ebp + 0x10], 0
jne 0x4a9389
or eax, 0xffffffff
jmp 0x4a93bc
mov eax, dword [ebp + 0x10]
push eax
call fcn.0057dd10
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 1
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4a93b9
xor eax, eax
jmp 0x4a93bc
or eax, 0xffffffff
pop ebp
ret
Function at 0x4a9780
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [0x697320]
test eax, eax
jne 0x4a986e
push 0x400
call fcn.0057c675
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [0x697324], ecx
mov dword [ebp - 4], 0x4c11db7
mov dword [ebp - 8], 0
jmp 0x4a97c7
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0xff
ja 0x4a9867
push 8
mov eax, dword [ebp - 8]
push eax
call fcn.004a98a0
add esp, 8
shl eax, 0x18
mov ecx, dword [ebp - 8]
mov edx, dword [0x697324]
mov dword [edx + ecx*4], eax
mov dword [ebp - 0xc], 0
jmp 0x4a9803
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jae 0x4a9840
mov ecx, dword [ebp - 8]
mov edx, dword [0x697324]
mov eax, dword [edx + ecx*4]
shl eax, 1
mov ecx, dword [ebp - 8]
mov edx, dword [0x697324]
mov ecx, dword [edx + ecx*4]
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 4]
xor eax, ecx
mov edx, dword [ebp - 8]
mov ecx, dword [0x697324]
mov dword [ecx + edx*4], eax
jmp 0x4a97fa
push 0x20
mov edx, dword [ebp - 8]
mov eax, dword [0x697324]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.004a98a0
add esp, 8
mov edx, dword [ebp - 8]
mov ecx, dword [0x697324]
mov dword [ecx + edx*4], eax
jmp 0x4a97be
mov byte [0x697320], 1
mov esp, ebp
pop ebp
ret

Function at 0x4b5db0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x4b5dc8
jmp 0x4b5e50
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x4b5e0c
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0x3e8
jb 0x4b5e0c
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0x1e8480
jae 0x4b5e0c
push 4
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
push 0x1001
push 0xffff
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xc], 0
je 0x4b5e50
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0x3e8
jb 0x4b5e50
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0x1e8480
jae 0x4b5e50
push 4
mov ecx, dword [ebp - 4]
add ecx, 0xc
push ecx
push 0x1002
push 0xffff
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret

Function at 0x4b5e60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x4b5e77
jmp 0x4b5e97
mov dword [ebp - 4], 1
lea ecx, [ebp - 4]
push ecx
push 0x8004667e
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esp, ebp
pop ebp
ret

Function at 0x4b5ea0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x4b5eb7
jmp 0x4b5ed7
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 0x8004667e
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esp, ebp
pop ebp
ret
Function at 0x4b72f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6926dc]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 8]
call fcn.00410760
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0xa4], 0xffffffff
je 0x4b739c
mov dword [ebp - 8], 0x10
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4b736a
push str.Failed_to_getsockname
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004b6c10
add esp, 4
xor al, al
jmp 0x4b73b0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, dword [ebp + 8]
call fcn.004141a0
movzx ecx, word [ebp - 0x1a]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov al, 1
jmp 0x4b73b0
push 0x6224a4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x10]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0057bc02
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4b73c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6926dc]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 8]
call fcn.00410760
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0xa4], 0xffffffff
je 0x4b746d
mov dword [ebp - 8], 0x1c
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4b743a
push str.Failed_to_getsockname_ipv6
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004b6c10
add esp, 4
xor al, al
jmp 0x4b7481
mov ecx, dword [ebp + 8]
call fcn.00410760
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
push 0x17
call fcn.004b54b0
add esp, 0xc
movzx ecx, word [ebp - 0x26]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov al, 1
jmp 0x4b7481
push str.Cannot_get_socket_name:_INVALID_SOCKET.
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x10]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0057bc02
mov esp, ebp
pop ebp
ret 0xc