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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x6926e4]
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 0x440bb1
mov byte [ebp - 0x1c0], 0
lea edx, [ebp - 0x1c0]
push edx
mov ecx, dword [ebp + 8]
call fcn.00411670
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057bd22
mov esp, ebp
pop ebp
ret

Function at 0x440bf0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x6926e4]
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 0x440c31
mov byte [ebp - 0x80], 0
lea edx, [ebp - 0x80]
push edx
mov ecx, dword [ebp + 8]
call fcn.00411670
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057bd22
mov esp, ebp
pop ebp
ret

Function at 0x449db0
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 0x449dd4
cmp dword [ebp + 8], 0
jne 0x449df3
cmp dword [ebp + 0x18], 0
je 0x449dec
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 0x449ec1
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0xffffffff
je 0x449e63
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 0x449e51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x26
jne 0x449e39
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov al, 1
jmp 0x449ec1
cmp dword [ebp + 0x18], 0
je 0x449e4b
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.0044ccf0
xor al, al
jmp 0x449ec1
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jne 0x449e5f
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov al, 1
jmp 0x449ec1
mov ecx, dword [ebp - 8]
cmp dword [ecx + 8], 0
je 0x449ebf
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.00581cc2
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 0x449e9a
mov al, 1
jmp 0x449ec1
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call fcn.005819ee
add esp, 4
test eax, eax
je 0x449eb3
xor al, al
jmp 0x449ec1
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov al, 1
jmp 0x449ec1
xor al, al
mov esp, ebp
pop ebp
ret 0x14
Function at 0x449ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf198
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6926e4]
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.00449830
movzx eax, al
test eax, eax
jne 0x449f26
cmp dword [ebp + 0x18], 0
je 0x449f1f
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 0x44a089
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x14], 0
je 0x449f42
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 0x44a087
cmp dword [ebp + 0x10], 0
jl 0x449f68
jg 0x449f5f
cmp dword [ebp + 0xc], 0x989680
jbe 0x449f68
mov dword [ebp - 0x18], 0x989680
jmp 0x449f6e
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x48]
cmp dword [edx + 4], 0xffffffff
je 0x449ffe
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 0x449fae
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x18]
je 0x449ffc
cmp dword [ebp + 0x18], 0
je 0x449ff5
lea ecx, [ebp - 0x44]
call fcn.00411d60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004145f0
lea ecx, [ebp - 0x44]
call fcn.0040fc00
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.00412130
xor al, al
jmp 0x44a089
jmp 0x44a047
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + 8], 0
je 0x44a047
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.0057d5f5
add esp, 0x10
cmp eax, 1
je 0x44a041
cmp dword [ebp + 0x18], 0
je 0x44a03d
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 0x44a089
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 0x44a082
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 0x449f42
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x44a0a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c9078
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6926e4]
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 0x44a142
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 0x44a13d
cmp dword [ebp + 8], 0
je 0x44a13d
lea ecx, [ebp - 0x3c]
call fcn.00411d60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004145f0
lea ecx, [ebp - 0x3c]
call fcn.0040fc00
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.00412130
mov eax, dword [ebp - 0x10]
jmp 0x44a16a
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 8], 0
je 0x44a167
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 8]
push eax
call fcn.00586301
add esp, 4
push eax
call fcn.00581cdf
add esp, 4
jmp 0x44a16a
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x44a180
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf588
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6926e4]
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 0x44a250
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 0x44a232
cmp dword [ebp + 8], 0
je 0x44a22a
lea ecx, [ebp - 0x4c]
call fcn.00411d60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.004145f0
lea ecx, [ebp - 0x4c]
call fcn.0040fc00
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.00412130
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x44a27b
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00444120
add esp, 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jmp 0x44a27b
mov eax, dword [ebp - 0x50]
cmp dword [eax + 8], 0
je 0x44a275
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 8]
push edx
call fcn.00586301
add esp, 4
push eax
call fcn.00581dde
add esp, 4
jmp 0x44a27b
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 0x44f300
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jge 0x44f310
xor al, al
jmp 0x44f359
cmp dword [ebp + 0xc], 0
jne 0x44f31a
xor al, al
jmp 0x44f359
mov byte [ebp - 5], 0
call fcn.00440cf0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44f330
xor al, al
jmp 0x44f359
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 0x44f34a
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 0x44f9b0
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.0x44f9cd
mov ecx, dword [ebp - 0x18]
jmp dword [ecx*4 + 0x44fb5c]
mov dword [ebp - 4], 0
jmp 0x44f9e6
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 5
jge 0x44fa02
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx*4 + 0x60dc88]
mov dword [ecx + eax*4 + 4], edx
jmp 0x44f9dd
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x28], 0
jmp case.default.0x44f9cd
mov dword [ebp - 8], 0
jmp 0x44fa2d
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 8
jge 0x44fa49
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x60dda0]
mov dword [ecx + eax*4 + 4], edx
jmp 0x44fa24
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x28], 0
jmp case.default.0x44f9cd
mov dword [ebp - 0xc], 0
jmp 0x44fa74
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x44faa1
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax*8 + 0x60ddc0]
mov edx, dword [eax*8 + 0x60ddc4]
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 0x44fa6b
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.0x44f9cd
mov dword [ebp - 0x10], 0
jmp 0x44fae9
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 8
jge 0x44fb16
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax*8 + 0x60e080]
mov edx, dword [eax*8 + 0x60e084]
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 0x44fae0
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 0x450200
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.0x45021f
mov edx, dword [ebp - 0x18]
jmp dword [edx*4 + 0x4503a4]
mov dword [ebp - 4], 0
jmp 0x450238
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 5
jge 0x450254
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x60dc88]
mov dword [edx + ecx*4 + 4], eax
jmp 0x45022f
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x28], 0
jmp case.default.0x45021f
mov dword [ebp - 8], 0
jmp 0x45027f
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 8
jge 0x45029b
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov eax, dword [eax*4 + 0x60dda0]
mov dword [edx + ecx*4 + 4], eax
jmp 0x450276
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x28], 0
jmp case.default.0x45021f
mov dword [ebp - 0xc], 0
jmp 0x4502c6
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jge 0x4502f3
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx*8 + 0x60ddc0]
mov eax, dword [ecx*8 + 0x60ddc4]
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 0x4502bd
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.0x45021f
mov dword [ebp - 0x10], 0
jmp 0x45033b
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 8
jge 0x450368
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx*8 + 0x60e080]
mov eax, dword [ecx*8 + 0x60e084]
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 0x450332
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 0x45bdd0
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 0x45d960
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 0x4a37d0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c22f1
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6926e4]
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.00411d60
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x30
call fcn.004151c0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
add ecx, 0x50
call fcn.004151c0
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.0057e0b0
add esp, 0xc
push 0x10
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x50
call fcn.00417000
push 0x10
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x30
call fcn.00417000
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.0057bd22
mov esp, ebp
pop ebp
ret

Function at 0x4a90a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4a90ae
or eax, 0xffffffff
jmp 0x4a90ec
cmp dword [ebp + 0x10], 0
jne 0x4a90b9
or eax, 0xffffffff
jmp 0x4a90ec
mov eax, dword [ebp + 0x10]
push eax
call fcn.0057de40
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 0x4a90e9
xor eax, eax
jmp 0x4a90ec
or eax, 0xffffffff
pop ebp
ret
Function at 0x4a94b0
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [0x696b00]
test eax, eax
jne 0x4a959e
push 0x400
call fcn.0057c795
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [0x696b04], ecx
mov dword [ebp - 4], 0x4c11db7
mov dword [ebp - 8], 0
jmp 0x4a94f7
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0xff
ja 0x4a9597
push 8
mov eax, dword [ebp - 8]
push eax
call fcn.004a95d0
add esp, 8
shl eax, 0x18
mov ecx, dword [ebp - 8]
mov edx, dword [0x696b04]
mov dword [edx + ecx*4], eax
mov dword [ebp - 0xc], 0
jmp 0x4a9533
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jae 0x4a9570
mov ecx, dword [ebp - 8]
mov edx, dword [0x696b04]
mov eax, dword [edx + ecx*4]
shl eax, 1
mov ecx, dword [ebp - 8]
mov edx, dword [0x696b04]
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 [0x696b04]
mov dword [ecx + edx*4], eax
jmp 0x4a952a
push 0x20
mov edx, dword [ebp - 8]
mov eax, dword [0x696b04]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.004a95d0
add esp, 8
mov edx, dword [ebp - 8]
mov ecx, dword [0x696b04]
mov dword [ecx + edx*4], eax
jmp 0x4a94ee
mov byte [0x696b00], 1
mov esp, ebp
pop ebp
ret

Function at 0x4b5ac0
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 0x4b5ad8
jmp 0x4b5b60
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x4b5b1c
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0x3e8
jb 0x4b5b1c
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0x1e8480
jae 0x4b5b1c
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 0x4b5b60
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0x3e8
jb 0x4b5b60
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0x1e8480
jae 0x4b5b60
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 0x4b5b70
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 0x4b5b87
jmp 0x4b5ba7
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 0x4b5bb0
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 0x4b5bc7
jmp 0x4b5be7
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 0x4b7000
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6926e4]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 8]
call fcn.004104d0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0xa4], 0xffffffff
je 0x4b70ac
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 0x4b707a
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.004b6920
add esp, 4
xor al, al
jmp 0x4b70c0
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.00413f10
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 0x4b70c0
push 0x622494
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.0057bd22
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6926e4]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 8]
call fcn.004104d0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0xa4], 0xffffffff
je 0x4b717d
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 0x4b714a
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.004b6920
add esp, 4
xor al, al
jmp 0x4b7191
mov ecx, dword [ebp + 8]
call fcn.004104d0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
push 0x17
call fcn.004b51c0
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 0x4b7191
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.0057bd22
mov esp, ebp
pop ebp
ret 0xc