joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001de8
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [edx + 0x48]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x10001e01
push dword [esp + 8]
push dword [esp + 8]
push edx
call ecx
add esp, 0xc
ret
push dword [eax + 0x38]
push dword [esp + 0xc]
push 1
push dword [esp + 0x10]
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
ret

Function at 0x10005305
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x10005333
push esi
call fcn.10009b3e
cmp dword [esi + 0x40], 0
pop ecx
je 0x1000532c
xor eax, eax
mov dword [esi + 0x14], 0xcf
inc eax
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x100053a3
mov eax, dword [esi + 0x1b4]
cmp dword [eax + 0x10], 0
je 0x10005395
mov eax, dword [esi + 8]
test eax, eax
je 0x10005354
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x1b4]
push esi
call dword [eax]
pop ecx
test eax, eax
je 0x10005391
cmp eax, 2
je 0x10005395
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10005349
cmp eax, 3
je 0x10005378
cmp eax, 1
jne 0x10005349
inc dword [ecx + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 8]
cmp ecx, dword [eax + 8]
jl 0x10005349
mov ecx, dword [esi + 0x140]
add dword [eax + 8], ecx
jmp 0x10005349
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
mov dword [esi + 0x98], eax
jmp 0x100053c1
cmp eax, 0xcc
je 0x100053c1
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.100051d0
pop esi
ret

Function at 0x1001c020
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
sub eax, dword [esi + 0x289c]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x292c], eax
call edi
sub eax, dword [esi + 0x28a0]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x2930], eax
mov eax, dword [esi + 0x2d50]
test eax, eax
je 0x1001c08f
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x28a0]
push dword [esi + 0x289c]
push dword [esi + 0x2930]
push dword [esi + 0x292c]
push dword [esi + 0x2d50]
call dword [sym.imp.USER32.dll_MoveWindow]
push esi
call fcn.100153bf
pop ecx
pop edi
pop esi
ret

Function at 0x1001e4ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10029008]
jne 0x1001e4f4
repz ret
jmp fcn.1001ea43
Function at 0x401000
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 8], edx
sub dword [ebp - 8], ecx
push 4
lea esi, [edx + 3]
lea edi, [ecx + 1]
pop edx
mov eax, edi
mov dword [ebp - 0x20], edx
mov bl, byte [esi - 3]
mov byte [eax - 1], bl
mov ebx, dword [ebp - 8]
mov bl, byte [ebx + eax]
mov byte [eax], bl
mov bl, byte [esi - 1]
mov byte [eax + 1], bl
mov bl, byte [esi]
mov byte [eax + 2], bl
add esi, edx
add eax, edx
dec dword [ebp - 0x20]
jne 0x40101d
mov dword [ebp - 8], edx
lea edx, [ecx + 3]
lea eax, [edx + 0x10]
lea ebx, [ecx + 2]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
sub dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
sub dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edx
sub dword [ebp - 0x14], edi
lea eax, [edi + 0xc]
lea edi, [ecx + 2]
mov dword [ebp - 0x18], ecx
sub dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edx
sub dword [ebp - 0x20], edi
mov edi, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
sub dword [ebp - 0x1c], edx
lea esi, [ecx + 2]
test byte [ebp - 8], 3
mov ebx, dword [ebp - 0x10]
mov bl, byte [ebx + eax]
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + eax]
mov cl, byte [eax]
mov byte [ebp - 2], bl
mov ebx, dword [ebp - 0x14]
mov bl, byte [ebx + eax]
mov byte [ebp - 1], bl
jne 0x4010dc
movzx ebx, bl
mov bl, byte [ebx + str.cw]
movzx edx, dl
movzx ecx, cl
mov dword [ebp - 0x24], edx
mov dl, byte [ecx + str.cw]
movzx ecx, byte [ebp - 2]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 2], bl
movzx ebx, byte [ebp - 0x24]
mov bl, byte [ebx + str.cw]
mov byte [ebp - 1], bl
mov ebx, dword [ebp - 8]
shr ebx, 2
xor dl, byte [ebx + 0x4143c0]
mov ebx, dword [ebp - 0x18]
mov bl, byte [ebx + esi]
xor bl, dl
mov edx, dword [ebp - 0x1c]
mov byte [edi + edx], bl
mov dl, byte [eax - 0xc]
xor dl, cl
mov byte [eax + 4], dl
mov cl, byte [esi]
xor cl, byte [ebp - 2]
add eax, 4
mov byte [esi + 0x10], cl
mov ecx, dword [ebp - 0x20]
mov cl, byte [ecx + esi]
xor cl, byte [ebp - 1]
inc dword [ebp - 8]
mov byte [edi], cl
add esi, 4
add edi, 4
cmp dword [ebp - 8], 0x2c
jb 0x40107e
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401144
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
push edi
push 4
pop edi
push 4
mov eax, ecx
pop esi
movzx edx, byte [eax]
mov dl, byte [edx + str.cw]
mov byte [eax], dl
add eax, 4
dec esi
jne 0x40114e
inc ecx
dec edi
jne 0x401149
pop edi
pop esi
ret
Function at 0x4011af
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 4
add ecx, 2
pop esi
mov al, byte [ecx + 1]
xor al, byte [ecx]
mov dl, byte [ecx - 2]
mov bl, byte [ecx - 1]
mov byte [ebp - 3], al
xor al, dl
xor al, bl
mov byte [ebp - 1], al
mov byte [ebp - 2], dl
xor dl, bl
mov al, dl
shr al, 7
mov bl, 0x1b
imul bl
add dl, dl
xor al, dl
xor al, byte [ebp - 2]
mov dl, byte [ecx - 1]
xor al, byte [ebp - 1]
xor dl, byte [ecx]
mov byte [ecx - 2], al
mov al, dl
shr al, 7
imul bl
add dl, dl
xor al, dl
xor al, byte [ecx - 1]
mov dl, byte [ebp - 3]
xor al, byte [ebp - 1]
mov byte [ecx - 1], al
mov al, dl
shr al, 7
imul bl
add dl, dl
xor al, dl
xor al, byte [ecx]
mov dl, byte [ecx + 1]
xor al, byte [ebp - 1]
xor dl, byte [ebp - 2]
mov byte [ecx], al
mov al, dl
shr al, 7
imul bl
add dl, dl
xor al, dl
xor al, byte [ecx + 1]
add ecx, 4
xor al, byte [ebp - 1]
dec esi
mov byte [ecx - 3], al
jne 0x4011bb
pop esi
pop ebx
leave
ret

Function at 0x40123d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
mov ecx, esi
xor al, al
call fcn.00401120
pop ecx
mov bl, 1
mov ecx, esi
call fcn.00401144
mov eax, esi
call fcn.00401166
mov ecx, esi
call fcn.004011af
push dword [ebp + 8]
mov ecx, esi
mov al, bl
call fcn.00401120
inc bl
pop ecx
cmp bl, 0xa
jb 0x401250
mov ecx, esi
call fcn.00401144
mov eax, esi
call fcn.00401166
pop ebx
mov ecx, esi
mov al, 0xa
pop ebp
jmp fcn.00401120

Function at 0x401330
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt
Reference public rsa key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
xor esi, esi
push esi
push 1
mov ebx, str.Microsoft_Strong_Cryptographic_Provider
push ebx
push esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call edi
test eax, eax
jne 0x40137b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x80090016
jne 0x401377
push 8
push 1
push ebx
push esi
lea eax, [ebp - 4]
push eax
call edi
test eax, eax
jne 0x40137b
xor eax, eax
jmp 0x4013e2
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x114
push 0x4141a0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4013a9
cmp dword [ebp - 4], esi
je 0x401377
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x401377
push 0x200
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push 1
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov edi, eax
cmp dword [ebp - 8], esi
je 0x4013d1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 4], esi
je 0x4013e0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013e7
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
xor esi, esi
push esi
push 1
mov ebx, str.Microsoft_Strong_Cryptographic_Provider
push ebx
push esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call edi
test eax, eax
jne 0x401432
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x80090016
jne 0x40142e
push 8
push 1
push ebx
push esi
lea eax, [ebp - 4]
push eax
call edi
test eax, eax
jne 0x401432
xor eax, eax
jmp 0x401494
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x494
push 0x413d08
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x401460
cmp dword [ebp - 4], esi
je 0x40142e
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x40142e
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push 1
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov edi, eax
cmp dword [ebp - 8], esi
je 0x401483
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 4], esi
je 0x401492
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401499
Capabilities:
Create new key via cryptacquirecontext
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, 0x34
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp - 0x2c], eax
xor ebx, ebx
xor eax, eax
mov byte [ebp - 0x18], bl
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
push 1
mov esi, str.Microsoft_Strong_Cryptographic_Provider
push esi
stosb byte es:[edi], al
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push ebx
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x30], 0x14
mov dword [ebp - 0x28], ebx
call edi
test eax, eax
jne 0x40151b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x80090016
jne 0x4015bc
push 8
push 1
push esi
push ebx
lea eax, [ebp - 0x1c]
push eax
call edi
test eax, eax
je 0x4015bc
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push 0x8004
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4015bc
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x34]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4015bc
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
push 2
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4015bc
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
xor esi, esi
sub edi, eax
lea eax, [ebp + esi - 0x18]
mov cl, byte [eax]
cmp cl, byte [edi + eax]
jne 0x4015bc
inc esi
cmp esi, 0x14
jb 0x40156d
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push 0x114
push 0x413bf0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x4015bc
push ebx
push ebx
push dword [ebp - 0x24]
push 0x100
push dword [ebp - 0x2c]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
je 0x4015bc
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x24], ebx
je 0x4015ca
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x20], ebx
je 0x4015d8
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x1c], ebx
je 0x4015e7
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad48
leave
ret
Function at 0x4015f9
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push edi
xor ebx, ebx
push ebx
push 1
mov edi, str.Microsoft_Strong_Cryptographic_Provider
push edi
push ebx
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x401640
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x80090016
jne 0x40163c
push 8
push 1
push edi
push ebx
lea eax, [ebp - 4]
push eax
call esi
test eax, eax
jne 0x401640
xor eax, eax
jmp 0x401662
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov esi, eax
cmp dword [ebp - 4], ebx
je 0x401660
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401667
Capabilities:
Create new key via cryptacquirecontext
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
sub esp, 0x420
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x408], esi
mov dword [ebp - 0x40c], esi
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x410], eax
cmp eax, 0xffffffff
jne 0x4016cd
xor eax, eax
jmp 0x4017f8
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push esi
push 1
push str.Microsoft_Strong_Cryptographic_Provider
push esi
lea eax, [ebp - 0x408]
push eax
call ebx
test eax, eax
jne 0x401716
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x80090016
jne 0x4017bc
push 8
push 1
push str.Microsoft_Strong_Cryptographic_Provider
push esi
lea eax, [ebp - 0x408]
push eax
call ebx
test eax, eax
je 0x4017bc
lea eax, [ebp - 0x40c]
push eax
push esi
push esi
push 0x8004
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4017bc
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [edi], esi
jmp 0x401767
mov eax, dword [ebp - 0x414]
push esi
cmp eax, esi
je 0x401789
add dword [edi], eax
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4017bc
push esi
lea eax, [ebp - 0x414]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x410]
call ebx
test eax, eax
jne 0x401742
jmp 0x4017bc
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x420]
mov dword [ebp - 0x41c], 0x14
push 2
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4017bc
mov dword [ebp - 0x418], 1
push dword [ebp - 0x410]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebx
cmp dword [ebp - 0x40c], esi
je 0x4017dd
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x408], esi
je 0x4017f2
push esi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040ad48
leave
ret
Function at 0x401805
Capabilities:
Create new key via cryptacquirecontext
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, 0x10
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
xor esi, esi
push esi
push 1
mov ebx, str.Microsoft_Strong_Cryptographic_Provider
push ebx
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call edi
test eax, eax
jne 0x401853
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x80090016
jne 0x4018a4
push 8
push 1
push ebx
push esi
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
je 0x4018a4
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x8004
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4018a4
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4018a4
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 0x14
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4018a4
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], esi
je 0x4018b2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], esi
je 0x4018c1
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401998
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4019c2
xor eax, eax
jmp 0x4019e9
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x4019ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401a17
xor eax, eax
jmp 0x401a33
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x401a37
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.004018ee
pop ecx
test eax, eax
jne 0x401a52
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x401a5c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
pop ecx
pop ebp
ret
Function at 0x401a5f
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov esi, 0x52a008
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x100
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
call fcn.004018ee
pop ecx
test eax, eax
je 0x401aad
push 2
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
neg eax
sbb eax, eax
neg eax
jmp 0x401ba2
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x401b71
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x48]
xor edi, edi
push eax
inc edi
push edi
mov dword [ebp - 0x48], 0x10000000
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x30], 5
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x401b71
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x401b71
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x401b71
push ebx
push dword [ebp - 0x18]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x401b71
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push esi
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x401b71
push 2
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x401b71
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 0x14], ebx
je 0x401b82
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.KERNEL32.DLL_LocalFree]
cmp dword [ebp - 0x18], ebx
je 0x401b95
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
je 0x401b9f
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad48
leave
ret

Function at 0x401bb1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401bde
xor eax, eax
pop edi
pop esi
pop ebp
ret
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x401bfe
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
jmp 0x401bda
xor esi, esi
inc esi
jmp 0x401bf3
Function at 0x401c03
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401c2c
xor eax, eax
pop edi
pop esi
pop ebp
ret
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0xffffffff
jne 0x401c44
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
jmp 0x401c28
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov dword [ecx], eax
inc esi
jmp 0x401c39

Function at 0x401ff9
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
mov eax, 0x288
push edi
push eax
mov dword [ebp - 4], eax
call fcn.0040ae5e
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x40202a
mov edi, dword [ebp + 8]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 0xc]
xor eax, eax
stosd dword es:[edi], eax
jmp 0x4020d6
push esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 4]
push eax
push ebx
call esi
cmp eax, 0x6f
jne 0x402061
push ebx
call fcn.0040aef2
push dword [ebp - 4]
call fcn.0040ae5e
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x402061
mov edi, dword [ebp + 8]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 0xc]
xor eax, eax
stosd dword es:[edi], eax
jmp 0x4020d5
lea eax, [ebp - 4]
push eax
push ebx
call esi
mov edi, dword [ebp + 8]
test eax, eax
je 0x402079
xor eax, eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 0xc]
jmp 0x4020be
xor eax, eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + 0x190]
cmp eax, 6
ja 0x40209e
push eax
lea eax, [ebx + 0x194]
push eax
push dword [ebp + 8]
call fcn.0040fe40
add esp, 0xc
jmp 0x4020aa
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x194]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp + 0xc]
push edi
lea ecx, [ebx + 0x1b0]
call fcn.00401e63
pop ecx
test eax, eax
jne 0x4020c3
xor eax, eax
stosd dword es:[edi], eax
jmp 0x4020ca
mov dword [ebp - 8], 1
test ebx, ebx
je 0x4020d5
push ebx
call fcn.0040aef2
pop ecx
pop esi
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret