joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40be80
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x417060
call sym._EnterCriticalSection_4
mov ebx, dword [0x417058]
sub esp, 4
test ebx, ebx
je 0x40becb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x40bec4
test esi, esi
je 0x40bec4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40bea0
mov dword [esp], 0x417060
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40c0b0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40c100
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40c1d8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40c13e
cmp eax, 4
jne 0x40c160
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40c14e
cmp edx, 4
je 0x40c14e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040c0b0
Function at 0x10010042
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, ecx
push esi
push edi
push 0
push 0
push dword [eax + 6]
mov dword [ebp - 4], eax
call ebx
xor ecx, ecx
mov edi, eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.10011277
mov esi, eax
mov eax, dword [ebp - 4]
push edi
push esi
push dword [eax + 6]
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov ecx, esi
setne bl
call fcn.10011288
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010f6d
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [ecx]
push esi
mov esi, edx
test al, al
je 0x10010f84
sub ecx, edx
xor al, 0x7f
mov byte [edx], al
inc edx
mov al, byte [ecx + edx]
test al, al
jne 0x10010f78
mov eax, esi
mov byte [edx], 0
pop esi
ret
Function at 0x401fa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4225dc
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x42b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.004023d0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004023d0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.004023d0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.00402940
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x78
call fcn.00402940
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp + 8]
mov byte [eax + 0x28], cl
lea ecx, [ebp - 0xa8]
call fcn.0041d760
lea ecx, [ebp - 0xa8]
call fcn.00402060
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bf27
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x423058]
test eax, eax
je 0x40bf66
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40bf66
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40bf66
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40bf66
cmp dword [ecx + 0x74], 0xe
jbe 0x40bf66
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40da95
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4185e8]
jne 0x40da9f
repz ret
jmp fcn.0041167d

Function at 0x40daa4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040baeb
and dword [ebp - 4], 0
cmp dword [0x502c68], 0
mov ebx, eax
jne 0x40db55
push 0x401d24
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40dc06
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401d18
push edi
call esi
test eax, eax
je 0x40dc06
push eax
call fcn.0040ba79
mov dword [esp], 0x401d08
push edi
mov dword [0x502c68], eax
call esi
push eax
call fcn.0040ba79
mov dword [esp], 0x401cf4
push edi
mov dword [0x502c6c], eax
call esi
push eax
call fcn.0040ba79
mov dword [esp], 0x401cd8
push edi
mov dword [0x502c70], eax
call esi
push eax
call fcn.0040ba79
pop ecx
mov dword [0x502c78], eax
test eax, eax
je 0x40db55
push 0x401cc0
push edi
call esi
push eax
call fcn.0040ba79
pop ecx
mov dword [0x502c74], eax
mov eax, dword [0x502c74]
cmp eax, ebx
je 0x40dbad
cmp dword [0x502c78], ebx
je 0x40dbad
push eax
call fcn.0040baf4
push dword [0x502c78]
mov esi, eax
call fcn.0040baf4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40dbad
test edi, edi
je 0x40dbad
call esi
test eax, eax
je 0x40dba4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40dba4
test byte [ebp - 0xc], 1
jne 0x40dbad
or dword [ebp + 0x10], 0x200000
jmp 0x40dbe6
mov eax, dword [0x502c6c]
cmp eax, ebx
je 0x40dbe6
push eax
call fcn.0040baf4
pop ecx
test eax, eax
je 0x40dbe6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40dbe6
mov eax, dword [0x502c70]
cmp eax, ebx
je 0x40dbe6
push eax
call fcn.0040baf4
pop ecx
test eax, eax
je 0x40dbe6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x502c68]
call fcn.0040baf4
pop ecx
test eax, eax
je 0x40dc06
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40dc08
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407e78
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x622008], 0x8088405
inc edx
mov dword [ebx + 0x622008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x424768
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4247c1
test eax, edx
je 0x4247c4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42477f
movzx eax, word [eax]
sub eax, ecx
jmp 0x4247a6
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4247a7
add ecx, 4
js 0x424797
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4247a4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4247a6
xor eax, eax
ret
test eax, eax
je 0x4247d0
test edx, edx
jne 0x424770
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x42d8ac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040ae74
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040ffc8
mov edi, eax
cmp edi, 0x104
jbe 0x42d857
mov eax, edi
add eax, eax
call fcn.00407a70
mov esi, eax
jmp 0x42d859
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040ffc8
push esi
call fcn.004162d0
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42d892
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x42d87c
mov eax, esp
cmp esi, eax
je 0x42d89f
mov eax, esi
call fcn.00407a8c
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x42d8d8
cmp bl, 0
je 0x42d8d4
cmp bl, 0x41
jl 0x42d8cf
cmp bl, 0x5a
jg 0x42d8cf
or bl, 0x20
xor al, bl
inc esi
jmp 0x42d8b3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42d818
Function at 0x48757c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x487584
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4e8c38
Capabilities:
Check for software breakpoints
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e81b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x80
mov eax, dword [ebp - 4]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x78], 0
je 0x4e8d87
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jl 0x4e8d87
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
movzx eax, word [eax + edx*2]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp byte [eax], 0xcc
je 0x4e8d01
mov eax, dword [ebp - 0x20]
cmp word [eax], 0x3cd
jne 0x4e8d7b
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040ae74
push eax
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x18]
mov ecx, 0
call fcn.0040b09c
mov eax, dword [ebp - 0x34]
mov edx, 1
pop ecx
call fcn.0040b250
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
call fcn.0040b780
lea eax, [ebp - 0x38]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.0040ba84
mov eax, dword [ebp - 0x38]
mov edx, 0x4e81cc
call fcn.0040ba4c
je 0x4e8d7b
mov ecx, 1
mov edx, dword [ebp - 0x24]
mov eax, 0x4e81e0
call fcn.0040bc94
test eax, eax
jne 0x4e8d7b
mov dword [ebp - 8], 0x4130
jmp 0x4e8d87
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x4e8cb2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e81b9
lea eax, [ebp - 0x38]
call fcn.0040a99c
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0040aa2c
lea eax, [ebp - 0x24]
call fcn.0040a99c
ret
Function at 0x4eb2a8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ea846
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4ea826
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x25], 0
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x78], 0
je 0x4eb3d3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jl 0x4eb3d3
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x20]
mov ecx, 0
call fcn.0040b09c
mov eax, dword [ebp - 0x30]
call fcn.004eb134
cmp eax, dword [ebp - 8]
jne 0x4eb3c7
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
movzx eax, word [eax + edx*2]
mov dword [ebp - 0x24], eax
cmp byte [ebp - 9], 0
je 0x4eb3b0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 4]
cmp word [eax], 0xff8b
jne 0x4eb3b0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 0x10], eax
jmp 0x4eb3d3
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
jmp 0x4eb3d3
inc dword [ebp - 0x1c]
dec dword [ebp - 0x2c]
jne 0x4eb332
cmp dword [ebp - 0x10], 0
jne 0x4eb41c
mov eax, dword [ebp - 4]
cmp eax, dword [0x625ce0]
jne 0x4eb41c
cmp byte [ebp - 0x25], 0
jne 0x4eb41c
mov byte [ebp - 0x25], 1
cmp dword [0x625d14], 0xd
jne 0x4eb406
push 0x4ea858
call fcn.00415de8
mov dword [0x625d14], eax
cmp dword [0x625d14], 0xd
jbe 0x4eb41c
mov eax, dword [0x625d14]
mov dword [ebp - 4], eax
jmp 0x4eb2df
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4eb430
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea84d
lea eax, [ebp - 0x30]
call fcn.0040a9c0
ret
Function at 0x5220f6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x30], eax
xor edx, edx
mov dword [esi + 0x4c], edx
xor ecx, ecx
mov dword [esi + 0x20], ecx
push esi
call fcn.005220d4
pop ecx
xor ecx, ecx
mov eax, ecx
xor edx, edx
mov ebx, eax
shr ebx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ebx, eax
mov eax, ebx
inc edx
cmp edx, 8
jl 0x52211a
mov dword [esi + ecx*4 + 0x70], eax
inc ecx
cmp ecx, 0x100
jb 0x522116
pop esi
pop ebx
pop ebp
ret

Function at 0x524cc7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov esi, pe_nt_image_headers32
or ebx, 0x100
add edi, edi
mov eax, ebx
shr eax, 7
and eax, 1
push eax
mov edx, esi
and edx, edi
add edx, esi
mov ecx, ebx
shr ecx, 8
add edx, ecx
shl edx, 2
add edx, dword [ebp + 0xc]
push edx
push dword [ebp + 8]
call fcn.00524c35
add esp, 0xc
add ebx, ebx
mov ecx, ebx
xor ecx, edi
not ecx
and esi, ecx
cmp ebx, 0x10000
jb 0x524cde
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x524d87
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 0xc]
xor edx, edx
or eax, 0x100
mov ecx, eax
shr ecx, 8
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + ecx*4]
mov ebx, eax
shr ebx, 7
and ebx, 1
neg ebx
and ebx, 0x7ff
xor ecx, ebx
shr ecx, 4
mov ebx, dword [ebp + 0x10]
add edx, dword [ebx + ecx*4]
add eax, eax
cmp eax, 0x10000
jb 0x524d95
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x524dc9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edx, pe_nt_image_headers32
or eax, 0x100
add ecx, ecx
mov esi, edx
and esi, ecx
add esi, edx
mov edi, eax
shr edi, 8
add esi, edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + esi*4]
mov edi, eax
shr edi, 7
and edi, 1
neg edi
and edi, 0x7ff
xor esi, edi
shr esi, 4
mov edi, dword [ebp + 0x14]
add ebx, dword [edi + esi*4]
add eax, eax
mov esi, eax
xor esi, ecx
not esi
and edx, esi
cmp eax, 0x10000
jb 0x524de1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x524eab
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov edi, 1
shl edi, cl
or eax, edi
cmp eax, 1
je 0x524ef0
mov ecx, eax
shr ecx, 1
mov ecx, dword [ebx + ecx*4]
mov edi, eax
and edi, 1
neg edi
and edi, 0x7ff
xor ecx, edi
shr ecx, 4
add edx, dword [esi + ecx*4]
shr eax, 1
cmp eax, 1
jne 0x524ecd
mov eax, edx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x524ef7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 4], eax
mov eax, 1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x524f42
mov edx, ebx
and edx, 1
shr ebx, 1
mov esi, dword [ebp + 8]
mov esi, dword [esi + eax*4]
mov edi, edx
neg edi
and edi, 0x7ff
xor esi, edi
shr esi, 4
mov edi, dword [ebp + 0x14]
mov esi, dword [edi + esi*4]
add dword [ebp - 4], esi
add eax, eax
or edx, eax
mov eax, edx
dec ecx
test ecx, ecx
jne 0x524f12
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x52a874
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
xor edx, edx
add edx, 0x18
add eax, edx
mov edx, dword [ebp - 0x2c]
movzx edx, word [edx + 0x14]
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x52a9a7
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x10], 0
jne 0x52a933
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x52a92d
push 4
push 0x1000
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
push eax
call fcn.004ea790
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x52a90b
mov byte [ebp - 0xd], 0
jmp 0x52a9ab
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
call fcn.00408430
add dword [ebp - 0x24], 0x28
jmp 0x52a99b
push 4
push 0x1000
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
push eax
call fcn.004ea790
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x52a95f
mov byte [ebp - 0xd], 0
jmp 0x52a9ab
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x14]
add eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
call fcn.00407c34
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [eax + 8], edx
add dword [ebp - 0x24], 0x28
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x52a8c7
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret

Function at 0x53abe8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x53abee
ret
Function at 0x401110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
lea eax, [ebp - 0x810]
sub esp, 0x82c
mov dword [ebp - 0x80c], 0x800
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20019
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegedit
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
je 0x401188
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lea eax, [ebp - 0x80c]
lea esi, [ebp - 0x808]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x810]
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.LastKey
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x401220
mov eax, dword [0x415e20]
mov dword [esp], esi
add eax, 0x40
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
je 0x401220
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._FindPathInTree
test eax, eax
je 0x401220
mov dword [esp + 0xc], eax
mov dword [esp + 8], 9
mov dword [esp + 4], 0x110b
mov dword [esp], ebx
call dword [0x4166fc]
sub esp, 0x10
jmp 0x40126a
mov eax, dword [0x415e20]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov esi, dword [0x4166fc]
mov dword [esp + 4], 0x110a
mov eax, dword [eax + 4]
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1102
mov dword [esp], ebx
call esi
sub esp, 0x10
mov eax, dword [ebp - 0x810]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4014f0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x228
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 0
test edx, edx
je 0x401610
lea eax, [ebp - 0x220]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], ebx
call sym._GetItemPath
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x220]
test esi, esi
jne 0x4015b8
test eax, eax
je 0x4015ac
cmp eax, 0x80000000
je 0x401640
cmp eax, 0x80000001
je 0x4015f0
mov edx, dword [str.HKEY_LOCAL_MACHINE]
cmp eax, 0x80000002
je 0x401597
cmp eax, 0x80000003
je 0x401650
cmp eax, 0x80000005
je 0x401660
mov edx, str.Unknown_HKEY._Please_report.
cmp eax, 0x80000006
je 0x401600
mov dword [ebp - 0x214], edx
test esi, esi
jne 0x4015bc
lea eax, [ebp - 0x218]
call sym._CombinePaths.constprop.0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test eax, eax
jne 0x401552
lea eax, [ebp - 0x21c]
lea ebx, [ebp - 0x210]
mov dword [ebp - 0x21c], 0x104
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetComputerNameW]
mov dword [ebp - 0x218], ebx
sub esp, 8
jmp 0x4015a1
mov edx, dword [str.HKEY_CURRENT_USER]
jmp 0x401597
mov edx, dword [str.HKEY_DYN_DATA]
jmp 0x401597
mov dword [esp + 0xc], 0
mov dword [esp + 8], 9
mov dword [esp + 4], 0x110a
mov dword [esp], eax
call dword [0x4166fc]
sub esp, 0x10
mov edx, eax
jmp 0x401525
mov edx, dword [str.HKEY_CLASSES_ROOT]
jmp 0x401597
mov edx, dword [str.HKEY_USERS]
jmp 0x401597
mov edx, dword [str.HKEY_CURRENT_CONFIG]
jmp 0x401597