joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180e7294
Capabilities:
Create http request

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
inc eax
push 0x102
mov dword [esi + 4], eax
mov dword [esi + 8], eax
lea eax, [esi + 0x14]
push eax
mov dword [esi], 0x18196a60
mov dword [esi + 0xc], 0x18196560
call fcn.18153e55
xor ebx, ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
push 0x2c
lfence
call fcn.18118308
add esp, 0xc
mov dword [eax], eax
push 0x10000000
push ebx
push ebx
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
push ebx
mov dword [esi + 0x44], eax
push ebx
mov byte [esi + 0x4c], bl
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x10], eax
mov eax, esi
pop esi
pop ebx
ret
Function at 0x180edab4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x102
mov dword [edi], 0x18196cd8
lea eax, [edi + 0xc]
mov dword [edi + 4], ebx
push eax
mov dword [edi + 8], ebx
call fcn.18153e55
lea esi, [edi + 0x3c]
push 2
push esi
call fcn.18153e55
lea eax, [esi + 0x30]
push eax
call fcn.1815427e
mov dword [esi + 0x58], ebx
mov dword [edi + 0x98], ebx
mov dword [edi + 0x9c], ebx
push 0xc
lfence
call fcn.18118308
push 0xc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x98], eax
mov dword [edi + 0xa0], ebx
mov dword [edi + 0xa4], ebx
lfence
call fcn.18118308
add esp, 0x1c
lea ecx, [edi + 0xa8]
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0xa0], eax
call fcn.180da281
push 8
mov dword [edi + 0x108], ebx
mov dword [edi + 0x104], ebx
call fcn.18118308
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push 0x180ee1e0
push ebx
push ebx
mov dword [eax], edi
mov dword [eax + 4], 0x180ede20
call fcn.18155c0c
add esp, 0x1c
mov dword [ebp - 8], eax
test eax, eax
je 0x180edb8e
cmp dword [edi + 8], ebx
jne 0x180edb98
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, edi
mov dword [edi + 8], ecx
pop edi
pop esi
pop ebx
leave
ret
push 6
mov dword [ebp - 4], ebx
call fcn.18153ab0
call fcn.180eda46
int3
Function at 0x180f29ef
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, ecx
mov dword [ebp - 0x28], 0xf
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x3c], ebx
lea esi, [edx + 1]
mov dword [ebp - 0x2c], ebx
mov al, byte [edx]
inc edx
test al, al
jne 0x180f2a15
sub edx, esi
push edx
push ecx
lea ecx, [ebp - 0x3c]
call fcn.1801e2c8
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x20]
call fcn.180d5633
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x180f2a6a
mov ecx, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], ecx
cmp eax, 0x1000
jb 0x180f2a61
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.18007c32
mov eax, dword [ebp - 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
push eax
push ecx
call fcn.18117f86
pop ecx
pop ecx
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
jb 0x180f2a76
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180f2a88
test al, 0x10
jne 0x180f2a88
mov bl, 1
lea ecx, [ebp - 0x20]
call fcn.1800f9cd
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret

Function at 0x180fc6bb
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
fild dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
fstp qword [esi + 8]
fild dword [ebp + 0xc]
mov dword [esi], 0x18196ea0
fstp qword [esi + 0x10]
fld qword [ebp + 0x10]
fstp qword [esi + 0x18]
fld qword [ebp + 0x18]
fstp qword [esi + 0x20]
fldz
fst qword [esi + 0x28]
fst qword [esi + 0x30]
fstp qword [esi + 0x38]
call fcn.1815442d
or dword [esi + 0x13c4], 0xffffffff
lea edi, [esi + 0x48]
mov ecx, eax
xor edx, edx
mov dword [esi + 0x44], ecx
inc edx
mov ebx, 0x270
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
inc edx
mov dword [edi], ecx
lea edi, [edi + 4]
cmp edx, ebx
jb 0x180fc709
fldz
mov ecx, esi
mov dword [esi + 0x40], ebx
fstp qword [esi + 0x13c8]
fld1
fstp qword [esi + 0x13d0]
call fcn.180fc7b6
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
Function at 0x180ff108
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x180ff150
lea edx, [esi + 8]
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x180ff118
jmp 0x180ff15d
cmp dword [esi], 0x4e0
jb 0x180ff15d
call fcn.180ff197
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret

Function at 0x180ff197
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x180ff1a9
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x180ff1ee
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
and dword [esi], 0
and eax, 0x9908b0df
shr ecx, 1
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
pop esi
pop ebx
ret
Function at 0x180ff298
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 0x20], edi
lea esi, [edi + 0x10]
movzx edx, byte [esi]
lea esi, [esi + 4]
movzx eax, byte [esi - 3]
shl eax, 0x10
shl edx, 0x18
or edx, eax
movzx eax, byte [esi - 2]
shl eax, 8
or edx, eax
movzx eax, byte [esi - 1]
or edx, eax
mov dword [ebp + ecx*4 - 0x124], edx
inc ecx
cmp ecx, 0x10
jl 0x180ff2ae
push 0x40
pop eax
sub eax, ecx
lea ebx, [ebp + ecx*4 - 0x12c]
mov dword [ebp - 4], eax
mov edi, eax
mov ecx, dword [ebx - 0x34]
mov esi, ecx
mov edx, dword [ebx]
mov eax, ecx
rol esi, 0xe
lea ebx, [ebx + 4]
ror eax, 7
xor esi, eax
shr ecx, 3
xor esi, ecx
mov eax, edx
mov ecx, edx
rol eax, 0xd
rol ecx, 0xf
xor ecx, eax
shr edx, 0xa
xor ecx, edx
add esi, ecx
add esi, dword [ebx - 0x3c]
add esi, dword [ebx - 0x18]
mov dword [ebx + 4], esi
sub edi, 1
jne 0x180ff2ed
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0x50]
mov ebx, eax
mov edx, dword [edi + 0x54]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x58]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x5c]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x60]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x68]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x6c]
xor edi, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov ecx, edx
mov esi, ebx
xor ecx, ebx
ror esi, 0xd
and ecx, dword [ebp - 0x10]
and edx, ebx
xor ecx, edx
mov eax, ebx
rol eax, 0xa
xor esi, eax
mov eax, ebx
ror eax, 2
xor esi, eax
add esi, ecx
mov ecx, dword [ebp - 8]
mov edx, ecx
mov eax, ecx
rol eax, 7
ror edx, 0xb
xor edx, eax
mov eax, ecx
ror eax, 6
not ecx
and ecx, dword [ebp - 0x18]
xor edx, eax
mov eax, dword [ebp - 0x14]
and eax, dword [ebp - 8]
xor ecx, eax
mov eax, dword [ebp - 0x18]
add edx, ecx
mov ecx, dword [ebp - 0x1c]
add edx, dword [edi + 0x1818d6d0]
add edx, dword [ebp + edi - 0x124]
add edi, 4
add edx, dword [ebp - 4]
mov dword [ebp - 4], eax
add ecx, edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], ebx
lea ebx, [edx + esi]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
cmp edi, 0x100
jl 0x180ff35e
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
add eax, ebx
add dword [edi + 0x60], ecx
add dword [edi + 0x54], edx
mov ecx, dword [ebp - 0x14]
add dword [edi + 0x64], ecx
mov edx, dword [ebp - 0x10]
add dword [edi + 0x58], edx
mov ecx, dword [ebp - 0x18]
add dword [edi + 0x68], ecx
mov edx, dword [ebp - 0x1c]
add dword [edi + 0x5c], edx
mov ecx, dword [ebp - 4]
add dword [edi + 0x6c], ecx
mov dword [edi + 0x50], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x180ff430
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 8], 0
and dword [eax + 0xc], 0
mov dword [eax], fcn.180ff430
mov dword [eax + 0x50], 0x6a09e667
mov dword [eax + 0x54], 0xbb67ae85
mov dword [eax + 0x58], 0x3c6ef372
mov dword [eax + 0x5c], 0xa54ff53a
mov dword [eax + 0x60], 0x510e527f
mov dword [eax + 0x64], 0x9b05688c
mov dword [eax + 0x68], 0x1f83d9ab
mov dword [eax + 0x6c], 0x5be0cd19
pop ebp
ret
Function at 0x181016bf
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
movzx ecx, byte [0x181cc106]
push ebx
push esi
neg ecx
push edi
sbb ecx, ecx
push 7
pop edi
and ecx, 0x181cc000
je 0x1810170e
xor eax, eax
mov dword [ebp - 0x38], ecx
inc eax
mov dword [ebp - 0x34], edi
push eax
push edi
mov dword [ebp - 0x30], eax
call fcn.18008bfd
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push str._StartService_
push eax
call fcn.180072d0
pop ecx
pop ecx
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
jne 0x18101732
call fcn.1801b6cc
mov ebx, eax
jmp 0x181017b8
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.180811cf
push 0x14
push dword [ebp - 8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x18101758
call fcn.1801b6cc
mov ebx, eax
jmp 0x18101795
mov ecx, edi
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1810177c
cmp dword [ebp - 0x20], 4
je 0x18101795
cmp dword [ebp - 0x20], 2
je 0x18101795
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x18101795
call fcn.1801b6cc
cmp eax, 0x80070420
jne 0x1810179b
test esi, esi
je 0x181017a4
jmp 0x1810179d
mov ebx, eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18007012
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret
Function at 0x18101f44
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
lea ecx, [ebp - 0x214]
push edi
xor edi, edi
call fcn.18014cc1
mov esi, dword [eax]
xor eax, eax
mov word [ebp - 0x210], ax
test esi, esi
je 0x18101f96
cmp word [esi], di
je 0x18101f96
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.18007012
cmp byte [ebx], 0
je 0x18101fbf
call fcn.1801f60c
lea eax, [ebp - 0x218]
push eax
call fcn.18020bdb
xor ebx, ebx
inc ebx
jmp 0x18101fd5
call fcn.1801f60c
lea eax, [ebp - 0x214]
push eax
call fcn.1801f8fc
push 2
mov ebx, edi
pop edi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.1800a175
mov esi, eax
test edi, edi
je 0x18101ff3
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.18007012
test ebx, ebx
je 0x18102005
mov ecx, dword [ebp - 0x218]
lea ecx, [ecx - 0x10]
call fcn.18007012
lea ecx, [esi + 0x10]
call fcn.1800ce29
lea ecx, [esi]
call fcn.18007012
cmp word [ebp - 0x210], 0
je 0x1810202b
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret
Function at 0x1810b28c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x181caa50]
push edi
push 0xf0
push eax
xor edi, edi
mov dword [ebp - 0x130], ecx
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1810b411
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1810b411
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1810b411
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x1810b410
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x134], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x1810b389
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.1812c700
add esp, 0xc
lea eax, [ebp - 0x104]
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
push 3
push esi
call fcn.1804b31f
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x130]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
inc eax
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x104]
cmp dword [ebp - 0x108], eax
je 0x1810b3fe
push dword [ebp - 0x108]
call fcn.18130613
pop ecx
jmp 0x1810b3fe
mov ecx, 0x1234
cmp cx, ax
jne 0x1810b3fe
or dword [ebp - 0x128], 0xffffffff
lea eax, [ebp - 0x234]
push 3
push esi
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x238], eax
call fcn.1804b31f
mov eax, dword [ebp - 0x238]
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x124], eax
cmp eax, ecx
je 0x1810b3db
push eax
call fcn.18130613
pop ecx
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x130]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
je 0x1810b40e
add esi, dword [ebp - 0x134]
test edi, edi
jne 0x1810b2eb
jmp 0x1810b410
xor edi, edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.18117a58
leave
ret 4
Function at 0x1810d712
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.1810c7f7
lea esi, [edi + 0x1e4]
xor ecx, ecx
mov eax, dword [esi]
inc ecx
mov ebx, 0x100
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, ebx
or eax, ecx
jge 0x1810d750
push ebx
mov ecx, esi
call fcn.180077dc
push ebx
push dword [esi]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.18009f73
push 1
mov ecx, edi
call fcn.1810f4f0
push 8
call fcn.18118308
mov esi, eax
lea eax, [ebp - 0x10]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi + 0x1c4]
mov dword [edi + 0x1c4], esi
test eax, eax
je 0x1810d7a7
push 8
push eax
call fcn.18117f86
pop ecx
pop ecx
push 0x7d9
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
xor esi, esi
push esi
push 1
push 0x40a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 0x181bc474
push 3
push esi
push 0x181aa678
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1810d80c
mov ecx, dword [edi + 0x1ec]
mov ebx, dword [ebp - 8]
mov dword [ebp - 8], esi
test ecx, ecx
je 0x1810d806
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x1815b3d4]
call esi
xor esi, esi
mov dword [edi + 0x1ec], ebx
mov ecx, edi
call fcn.1810e977
mov dword [ebp - 0xc], esi
call fcn.1800703b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800774f
push 0xbdc
lea ecx, [ebp - 0xc]
call fcn.18007788
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
call fcn.1810f562
mov ecx, edi
call fcn.1810f4c1
push 0x7db
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov eax, dword [ebp - 8]
test eax, eax
je 0x1810d87a
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x1815b3d4]
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret 0x10

Function at 0x1810ea4f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
call fcn.180269de
test al, al
je 0x1810ea86
push 0x7dc
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1810eabe
and dword [ebp - 8], 0
call fcn.1800703b
push eax
lea ecx, [ebp - 8]
call fcn.1800774f
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.18007788
lea eax, [ebp - 8]
mov ecx, esi
push eax
push 0x7dc
call fcn.1810e883
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.18117a58
leave
ret 8
Function at 0x18112129
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov dword [eax], 1
mov ebx, ecx
lea eax, [ebp - 0x18]
xor edi, edi
push eax
mov dword [ebp - 0x18], edi
push dword [ebx + 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x48
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.1812c700
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x58]
add esp, 0xc
mov dword [ebp - 0x5c], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_BeginPaint]
cmp byte [ebx + 0x28], 0
mov edx, eax
mov dword [ebp - 0x60], edx
je 0x18112192
mov ecx, dword [ebx + 0x38]
jmp 0x181121a0
cmp byte [ebx + 0x27], 0
je 0x1811219d
mov ecx, dword [ebx + 0x34]
jmp 0x181121a0
mov ecx, dword [ebx + 0x30]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebx + 0x44]
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_SelectObject]
push 2
push 2
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_RoundRect]
cmp byte [ebx + 0x29], 0
je 0x181121ec
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_DrawFocusRect]
xor edi, edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
je 0x18112284
mov dword [ebp - 8], edi
call fcn.1800703b
push eax
lea ecx, [ebp - 8]
call fcn.1800774f
inc esi
lea ecx, [ebp - 8]
push esi
call fcn.18007652
push esi
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.18009f73
push dword [ebx + 0x2c]
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x27
mov eax, ebx
pop ecx
cmp byte [ecx + eax], 0
je 0x1811224b
mov eax, dword [ebx + 0x40]
jmp 0x1811224e
mov eax, dword [ebx + 0x3c]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0x25
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push dword [eax - 0xc]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18007012
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret 0x10
Function at 0x18147c7a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.181478f7

Function at 0x1814e9e4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1814e85a

Function at 0x181533a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x181533cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x181533cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401900
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x40c01c]
xor eax, esp
mov dword [esp + 0x400], eax
mov ecx, dword [esp + 0x408]
lea eax, [esp + 0x40c]
push eax
push ecx
lea edx, [esp + 8]
push 0x200
push edx
call dword [sym.imp.MSVCR90.dll__vsnwprintf]
add esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004063e8
add esp, 0x404
ret

Function at 0x401960
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4077f8
mov eax, dword fs:[0]
push eax
mov eax, dword [0x40c01c]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], vtable.ARACrypt.0
mov dword [eax + 0xc], 0x13579bdf
mov dword [eax + 0x10], 0x2468ace0
mov dword [eax + 0x14], 0xfdb97531
mov dword [eax + 0x18], 0x80000062
mov dword [eax + 0x1c], 0x40000020
mov dword [eax + 0x20], 0x10000002
mov dword [eax + 0x24], 0x7fffffff
mov dword [eax + 0x28], 0x3fffffff
mov dword [eax + 0x2c], 0xfffffff
mov dword [eax + 0x30], 0x80000000
mov dword [eax + 0x34], 0xc0000000
mov dword [eax + 0x38], 0xf0000000
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
mov dword [esp + 0xc], ecx
mov dword [eax], vtable.ARACryptBinary.0
mov dword [eax + 4], 1
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4

Function at 0x401aa0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4077f8
mov eax, dword fs:[0]
push eax
mov eax, dword [0x40c01c]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], vtable.ARACrypt.0
mov dword [eax + 0xc], 0x13579bdf
mov dword [eax + 0x10], 0x2468ace0
mov dword [eax + 0x14], 0xfdb97531
mov dword [eax + 0x18], 0x80000062
mov dword [eax + 0x1c], 0x40000020
mov dword [eax + 0x20], 0x10000002
mov dword [eax + 0x24], 0x7fffffff
mov dword [eax + 0x28], 0x3fffffff
mov dword [eax + 0x2c], 0xfffffff
mov dword [eax + 0x30], 0x80000000
mov dword [eax + 0x34], 0xc0000000
mov dword [eax + 0x38], 0xf0000000
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
mov dword [esp + 0xc], ecx
mov dword [eax], vtable.ARACryptString.0
mov dword [eax + 4], ecx
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4