joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10080760
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c10
call fcn.1004d020
mov eax, dword [0x100c6394]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c10], eax
test eax, eax
je 0x100808cd
cmp dword [ebp + 0xc], 0
je 0x100808cd
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop dword [eax]
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.1007c8a0
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100808b0
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2c0c], 0
lea eax, [ebp - 0x2bfc]
movq qword [ebp - 0x2c08], xmm0
push 0
push eax
mov dword [ebp - 0x2c00], 0
mov dword [ebp - 0x2c08], 0
mov dword [ebp - 0x2c04], 0
call fcn.100569b0
add esp, 0xc
lea eax, [ebp - 0x2c0c]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2bfc]
push eax
push 0xc
lea eax, [ebp - 0x2c08]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100808a5
push 0x3e8
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.100569b0
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x2be4]
lea eax, [ebp - 0x2bfc]
push eax
call fcn.10081130
add esp, 0x1c
lea eax, [ebp - 0x4ec]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x2c10]
call fcn.10080bc0
test eax, eax
mov eax, 1
cmove ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x100808ba
inc esi
cmp esi, 0x10
jl 0x100807a0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004d00a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1004d00a
mov esp, ebp
pop ebp
ret
Function at 0x100808e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100c6394]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x100809c8
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100569b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test edx, edx
je 0x100809c8
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10080937
sub ecx, esi
mov eax, 0x103
sar ecx, 1
sub eax, ecx
cmp edx, eax
jae 0x100809c8
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10080960
mov eax, dword [0x100abcfc]
mov esi, ebx
mov dword [edi], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10080975
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10080990
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004d00a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1004d00a
mov esp, ebp
pop ebp
ret
Function at 0x100809e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x100c6394]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.100569b0
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.1007fea0
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10080a4a
mov al, byte [edi + ecx]
test al, al
je 0x10080a4a
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10080a31
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x10080a6b
inc eax
sub ecx, 1
jne 0x10080a60
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x10080ac0
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x10080ab5
lea edi, [ebp - 0x84]
mov eax, 0x7fffffff
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x10080ab4
mov bl, byte [edi + ecx]
test bl, bl
je 0x10080ab4
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x10080aa0
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.100569b0
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x100b471c
push str.SoftwareComMaster
push SysStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x10080b7a
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x10080b44
test cl, cl
je 0x10080b40
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x10080b44
add eax, 2
add esi, 2
test cl, cl
jne 0x10080b24
xor eax, eax
jmp 0x10080b49
sbb eax, eax
or eax, 1
test eax, eax
je 0x10080b7a
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10080b56
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.SoftwareComMaster
push SysStringLen
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10080b83
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x100b471c
push str.SoftwareComMaster
push SysStringLen
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1004d00a
mov esp, ebp
pop ebp
ret
Function at 0x10082960
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b0e8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100c6394]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x28]
push 0x1a
push eax
call fcn.10083620
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
je 0x100829c7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10082a45
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
mov ecx, esi
push 1
push eax
call fcn.10083620
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x10082a0b
mov ecx, eax
call fcn.10004de0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x10082a45
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10082a3b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10082b4d
push edx
push ecx
call fcn.1004cc8b
add esp, 8
cmp dword [ebp - 0x18], 0
jne 0x10082a70
xor eax, eax
mov dword [edi + 0x10], 0
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
push 0x1009dc80
mov word [edi], ax
call fcn.1000aaa0
jmp 0x10082b26
call fcn.10006af0
mov ecx, eax
test ecx, ecx
je 0x10082b52
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10003e40
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.10082c00
mov edx, dword [ebp - 0x48]
add esp, 8
mov byte [ebp - 4], 1
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10082ad7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x44]
xor eax, eax
mov ecx, esi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10082af2
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.1000aaa0
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10082b26
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.10004de0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d00a
mov esp, ebp
pop ebp
ret 8
call fcn.10059b09
push 0x80004005
call fcn.10005e80
int3
Function at 0x100859b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b642
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x100c6394]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x81c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x818], 0
mov word [esi], dx
mov dword [ebp - 4], edx
mov dword [ebp - 0x81c], 1
test ecx, ecx
je 0x10085ae0
test eax, eax
je 0x10085ae0
test ebx, ebx
je 0x10085ae0
lea edx, [ebp - 0x818]
push edx
push 0x20219
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10085acf
cmp dword [ebp - 0x818], eax
je 0x10085ae0
push 0x802
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.100569b0
add esp, 0xc
mov dword [ebp - 0x820], 0x800
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x814]
push eax
push 0
push 0xffff
push ebx
push 0
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x10085acf
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10085ab1
sub ecx, edx
lea eax, [ebp - 0x814]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.1000aaa0
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x10085ae0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d00a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1008bbb0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c140
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100c6394]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
je 0x1008bcfd
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1008bcfd
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1008bcfd
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1008bcfd
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 5
push 0x80000000
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
je 0x1008bce9
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push edi
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1008bce2
cmp dword [ebp - 0x1c], ebx
jne 0x1008bce2
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
cmp eax, ecx
ja 0x1008bc7d
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x1008bc77
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x1008bc89
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.1000a540
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp - 0x20]
mov ecx, esi
push 0
call fcn.1003871e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1008bce2
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 8]
jne 0x1008bce2
push edi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408937
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
add ebx, 0x30a0e931
add edx, 1
call fcn.00408961
xor dword [ecx], edi
inc ecx
sub ebx, 0x5207b15c
add edx, ebx
cmp ecx, esi
jne fcn.00408937
ret
Function at 0x40cb06
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
push dword [ebx + eax*4 - 0x14]
dec ebx
add dword [ebx], edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0x18d50e0
mov eax, dword [edi]
dec eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
call [ebp - 0x28]
mov dword [ebp - 0x24], 0x5f000062
mov dword [ebp - 8], ecx
jge 0x40cb7c
add al, 0xc7
inc ebp
mov al, 0
add byte [ecx + 0x53], dl
mov dword [ebp - 0x48], 0x4d4d4d4d
mov dword [ebp - 0x44], 0x18d50e0
mov eax, dword [eax + 4]
mov dword [ebp - 0x40], 0x4d4d4d4d
mov dword [ebp - 0x38], 0x4d4d4d4d
mov dword [ebp - 0x34], 0x3fa
lea eax, [ebp - 8]
push eax
xor ecx, dword [ecx + 0x45c7f45d]
mov al, byte [0xe883ff]
jne 0x450aac
aas
add al, 0
mov esi, 0x5351ec8b
mov ecx, dword [eax]
mov dword [ebp - 0x38a00ac], ecx
cmp dword [0x85002380], ebx
je 0x8d40cf89
xor al, al
add byte [eax + 0x3ee8544], cl
add byte [ebp - 0x76ff7b5f], cl
sbb eax, 0x23891d38
enter 0xfc0, 0xffffffffffffff85
add byte [edi], bh
add al, 0
push eax
push ecx
mov dword [ebp + 0xc], eax
call fcn.0040bbf6
add byte [eax - 0x5d7bbc], cl
sub eax, 0x21
inc ebp
cdq
dec edi
call fcn.00412ed3
xchg ebp, eax
inc dword [ebx + 0x105821e8]
mov edx, dword [eax + 0x14]
and ebx, 0xfa80ff00
mov dword [ebp + 0xc], edx
mov dword [ebp - 0xc], edx
inc ebp
invalid
push es
xor al, ch
je 0x140c935
push eax
call dword [0x49c470]
push 0x10
push dword [esi]
jmp 0x140ca4d
test dword [ebx + eax*4 + 0x51fffbbe], 0xf2e0e8
add cl, ch
js 0x450a79
sti
add byte [ebx + 0xfdb851e], cl
test byte [esi - 0x42], ch
sti
add byte [ebx - 0x71ff1735], cl
sti
jmp [edx + 0x14]
Function at 0x40d056
Capabilities:
Encode data using xor

Disassembly:
jo 0x40cfeb
push es
cmovne eax, dword [eax]
xor dword [edi], ecx
inc ebp
add byte [edi + ecx + 0x45], cl
add byte [esi + 0xf], dh
inc ebp
add byte [esi + 0xf], dh
inc ebp
add byte [ecx + 0xf], ah
inc ebp
add byte [esi + 0x7f], dh
push edi
mov edx, dword [ebp - 1]
push ebp
invalid
je 0x40cfdd
push ebp
push dword [ebx + eax*4 - 0x14]
in al, dx
xor al, 0xa8
mov byte [ebp - 0xf], bl
mov dword [ebp - 0x30], 0
push edi
push dword [ebp - 4]
mov dword [ebp - 0x28], 0
cmp byte [esi - 0x177cfe93], 0
lea eax, [esi - 0x72af1f9c]
mov ebx, dword [esi - 0x72af1f98]
mov dword [ebp - 0x24], 0x5f000062
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x18], 0x3f
add al, 0
cmp dword [ebx + 0x2c], 8
mov edi, dword [ebx + 0xc]
mov dword [ebp - 8], edi
je 0x33450fb5
mov eax, dword [ebx + 0x1c]
mov esp, 0x840f05f8
sub al, 0x3f
add al, 0
cmp eax, 0xf
jne 0x40d03a
mov byte [0x8b33043f], al
dec edi
or al, 0x83
stc
add dword [edi], ecx
test dword [eax], ebx
inc eax
add al, 0x33
mov ecx, dword [ebx + 0x2c]
cmp ecx, 1
jne 0x5b4511e9
add byte [edi], cl
mov eax, dword [ebx + 0x20]
lea edx, [eax + ecx]
mov dword [ebp - 0xc], edx
cdq
seto cl
test ecx, 0x8bec5589
dec ebp
in al, dx
cdq
add dword [eax - 0xbba083f], edx
adc ecx, edx
cdq
cmp eax, dword [ebp - 8]
jne 0x334511d5
cmp edx, ecx
jne 0x334511d5
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
mov ecx, dword [edi + 8]
call 0x840d2b4
inc ecx
add al, 0
add eax, dword [eax]
shr al, 1
lcall 0x8dee, 0xd9fffffe
dec ebx
and ch, bl
push ebp
rol bh, 1
inc ebp
fdiv st(7), st(0)
sub eax, 0
jmp 0xc2cbdd81

Function at 0x41e590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [ebx - 0x74acf7bb]
fst dword [esi - 0x75]
dec eax
add al, 0x57
mov edi, dword [ebp + 0xc]
mov esi, dword [ecx]
cmp dword [esi + 0xc], 6
jne 0x41e5a9
mov esi, dword [esi]
cmp dword [esi + 0xc], 5
jne 0x45e8dc
cmp dword [eax + 8], 1
jne 0x45e92c
mov ecx, dword [esi]
push 1
call 0xe8c4e74d
mov ecx, edi
mov esi, eax
call 0x140cfb6
xor ecx, ecx
inc ecx
mov dword [edi + 0xc], ecx
mov dword [edi], esi
pop edi
pop esi
xor eax, eax
pop ebx
add byte [edi + 8], bh
add byte [ebp + esi - 0x75], dh
sub esp, 0x38
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov ecx, dword [edi]
inc ecx
mov dword [ebp - 0x28], 0xe88301
cmp dword [eax + 0xc], 5
invalid
Function at 0x41fe21
Capabilities:
Enumerate pe sections

Disassembly:
je 0x41fe58
mov ebx, dword [ebp - 0x17]
invalid
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]

Function at 0x45a641
Capabilities:
Authenticate hmac
Encode data using base64
Encode data using xor

Disassembly:
pop ebp
xchg esp, eax
mov dword [ebp - 0xa4], ecx
jmp 0x45a64f
or dword [ebp - 0x68], 0xffffffff
jmp 0x41c418

Function at 0x46ebbe
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xor edx, edx
xor esi, esi
cmp dword [edi + 4], edx
jbe 0x46ec02
mov ebx, dword [ebp + 8]
movzx eax, word [ebx]
xor ecx, ecx
test ax, bp
je 0x46ebfb
mov eax, dword [edi]
movzx eax, word [eax + edx*2]
mov dword [ebp + 8], eax
movzx eax, word [ebx]
cmp word [ebp + 8], ax
je 0x46ec0c
inc ecx
movzx eax, word [ebx + ecx*2]
xor al, ch
jne 0x46ebe8
movzx eax, word [ebx]
inc edx
inc esi
cmp esi, dword [edi + 4]
jb 0x46ebd5
test eax, ecx
call [edi + 0x5e]
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, edx
jmp 0x46ec05

Function at 0x471f9b
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4d06e0], 1
jne 0x471fa9
call fcn.00472085
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x471fe1
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
sub dword [0x4d06e0], 1
jne 0x471ff4
call fcn.00472085
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x472037
fadd qword [str.failed_to_get_memory]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4c8190]
leave
ret

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

Disassembly:
push esi
xor esi, esi
mov dword [0x4d2630], ecx
inc esi
mov edx, esi
mov eax, dword [edx*4 + 0x4d262c]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x4d2630], eax
inc edx
cmp edx, 0x270
jl 0x472051
mov dword [0x4d06e0], esi
mov dword [0x4d2ff0], esi
pop esi
ret
Function at 0x472085
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d2ff0], 0
push esi
push edi
mov esi, 0x4d2630
jne 0x4720a8
push 0
call 0x142e527
pop ecx
mov ecx, eax
call fcn.00472045
mov dword [0x4d06e0], 0x270
mov edx, 0x242400e3
mov dword [0x4d2ff4], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi + 0x634]
mov dword [esi], ecx
add esi, 4
sub edx, 1
jne 0x4720bd
mov eax, dword [esi]
mov dword [ebp - 4], 0x8bff018c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
sub dword [ebp - 4], 1
mov dword [esi], ecx
lea esi, [esi + 4]
jne 0x4720f7
mov eax, dword [0x4d2630]
mov ecx, edi
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, edi
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
leave
ret
Function at 0x401e7c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401ebb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401ebb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401ebb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401ebb
cmp dword [ecx + 0x74], 0xe
jbe 0x401ebb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x408177
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416648
push 0x416640
push str.FlsAlloc
push 0x1f
call fcn.00408036
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4081ab
push dword [ebp + 8]
mov ecx, esi
call dword [0x41516c]
call esi
jmp 0x4081b1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4081f5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416658
push 0x416650
push str.FlsGetValue
push 0x21
call fcn.00408036
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40822c
push dword [ebp + 8]
mov ecx, esi
call dword [0x41516c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408234
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416660
push 0x416658
push str.FlsSetValue
push 0x22
call fcn.00408036
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40826e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41516c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40b80b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40b8a8
push ebx
push esi
call fcn.0040b7d4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040b768
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b855
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b8a7
push edi
push eax
call fcn.00408926
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b875
call fcn.00407ec8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b8a6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b768
add esp, 0x20
test eax, eax
jne 0x40b894
push edi
call fcn.00407ec8
jmp 0x40b89c
push ebx
call fcn.00407ec8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret