joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55d3b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x8c]
mov dword [edi + 0x74], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0
cmp eax, ecx
jbe 0x55d3d6
mov eax, ecx
mov dword [edi + 0x78], eax
test eax, eax
je 0x55d55f
cmp dword [edi + 0x6c], 0
jne 0x55d467
mov eax, dword [edi + 0x88]
test eax, eax
je 0x55d467
mov ebx, 0x4000
cmp eax, ebx
jae 0x55d400
mov ebx, eax
mov edx, dword [edi + 0x64]
mov eax, ebx
mov esi, edi
call fcn.0055aed0
test eax, eax
je 0x55d569
sub dword [edi + 0x88], ebx
test byte [edi + 0x3c], 1
mov ecx, dword [edi + 0x64]
mov dword [edi + 0x68], ecx
mov dword [edi + 0x6c], ebx
je 0x55d467
xor esi, esi
test ebx, ebx
je 0x55d467
nop
mov eax, dword [edi + 0x98]
mov edx, dword [edi + 0x64]
lea ecx, [esi + edx]
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
shr edx, 8
xor byte [ecx], dl
mov eax, dword [edi + 0x64]
mov cl, byte [esi + eax]
lea edx, [edi + 0x90]
call fcn.0055ae30
inc esi
cmp esi, ebx
jb 0x55d430
mov eax, dword [edi + 0x9c]
mov ecx, dword [edi + 0x6c]
cmp eax, ecx
jbe 0x55d476
mov eax, ecx
test eax, eax
je 0x55d49f
mov edx, dword [edi + 0x68]
lea esi, [edx + eax]
mov dl, byte [esi - 1]
sub ecx, eax
sub dword [edi + 0x9c], eax
mov dword [edi + 0x6c], ecx
mov dword [edi + 0x68], esi
jne 0x55d49f
cmp dl, byte [edi + 0xa0]
jne 0x55d579
cmp word [edi + 0x3e], 0
jne 0x55d4fd
mov eax, dword [edi + 0x78]
mov esi, dword [edi + 0x6c]
cmp eax, esi
jae 0x55d4b2
mov esi, eax
mov eax, dword [edi + 0x68]
mov ecx, dword [edi + 0x74]
push esi
push eax
push ecx
call fcn.00552f66
mov ebx, dword [edi + 0x74]
mov eax, dword [edi + 0x84]
add esp, 0xc
mov edx, esi
mov ecx, ebx
call fcn.0055ad40
sub dword [edi + 0x8c], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x78], esi
add dword [edi + 0x68], esi
add dword [edi + 0x7c], esi
add ebx, esi
add dword [ebp - 4], esi
mov dword [edi + 0x84], eax
mov eax, dword [edi + 0x8c]
mov dword [edi + 0x74], ebx
jmp 0x55d551
mov edx, dword [edi + 0x7c]
mov eax, dword [edi + 0x74]
push 2
lea esi, [edi + 0x68]
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
call fcn.0055d090
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x55d521
cmp ebx, 1
jne 0x55d589
mov esi, dword [edi + 0x7c]
sub esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi + 0x84]
mov edx, esi
call fcn.0055ad40
sub dword [edi + 0x8c], esi
add dword [ebp - 4], esi
mov dword [edi + 0x84], eax
mov eax, dword [edi + 0x8c]
cmp ebx, 1
je 0x55d55f
test eax, eax
je 0x55d55f
cmp dword [edi + 0x78], 0
jne 0x55d3e1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 8], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 8], 0x13
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 8], 0x12
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408c30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], str.sxuodwtgxswqk
lea ecx, [ebp - 0x60]
call fcn.004026b0
push 0x2faf080
call fcn.00420139
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x408c91
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
jmp 0x408d86
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0xc]
add eax, 0x2faf080
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00401f60
mov dword [ebp - 8], 0
jmp 0x408cc0
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0x1663
jae 0x408d12
mov eax, dword [ebp - 8]
mov cl, byte [eax + section..data]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ebp - 2], al
movzx ecx, byte [ebp - 1]
sar ecx, 3
movzx edx, byte [ebp - 1]
shl edx, 5
or ecx, edx
movzx eax, byte [ebp - 2]
xor ecx, eax
mov edx, dword [ebp - 8]
mov byte [edx + section..data], cl
mov eax, dword [ebp - 0x10]
add eax, 1
cdq
mov ecx, 0xd
idiv ecx
mov dword [ebp - 0x10], edx
jmp 0x408cb7
push 0x40
push 0x3000
push 0x1663
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x18], eax
push 0x1663
push section..data
mov edx, dword [ebp - 0x18]
push edx
call fcn.00422040
add esp, 0xc
mov eax, dword [ebp - 0x18]
jmp eax
lea ecx, [ebp - 0x60]
call fcn.00402c40
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x447a2c
Capabilities:
Parse pe header

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

Function at 0x44ec94
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x472960
push str.FlsAlloc
push 0x1f
call fcn.0044e962
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44ecc8
push dword [ebp + 8]
mov ecx, esi
call dword [0x467204]
call esi
jmp 0x44ecce
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44ed12
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x472984
push str.FlsGetValue
push 0x21
call fcn.0044e962
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44ed49
push dword [ebp + 8]
mov ecx, esi
call dword [0x467204]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x44ed51
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x472998
push str.FlsSetValue
push 0x22
call fcn.0044e962
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44ed8b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x467204]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x455068
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x47d6e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4550b3
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00455302
test al, al
jne 0x4550ad
sub edx, 2
cmp edx, edi
jne 0x455093
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4550d5
lea eax, [edi + 2]
cmp edx, eax
je 0x4550d5
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00454d2f
add esp, 0x10
jmp 0x4551cf
push esi
lea ecx, [ebp - 0x255]
call fcn.00455302
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x455118
push dword [ebp - 0x25c]
jmp 0x4550c5
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x455155
cmp word [ebp - 0x226], 0
je 0x455176
cmp word [ebp - 0x226], ax
jne 0x455155
cmp word [ebp - 0x224], 0
je 0x455176
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00454d2f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4551c2
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x45512f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4551aa
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4551cf
push 0x45484e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00460930
add esp, 0x10
jmp 0x45519f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004209ed
leave
ret
Function at 0x455f27
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 0x455fc4
push ebx
push esi
call fcn.00455ef0
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.004537b1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x455f71
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x455fc3
push edi
push eax
call fcn.00437507
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x455f91
call fcn.004374cd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x455fc2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004537b1
add esp, 0x20
test eax, eax
jne 0x455fb0
push edi
call fcn.004374cd
jmp 0x455fb8
push ebx
call fcn.004374cd
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

Function at 0x455fc7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x455fd8
pop esi
ret
push ebx
push edi
push esi
call fcn.00455ef0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00437507
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x456000
push ebx
push esi
push edi
call fcn.00422040
add esp, 0xc
push 0
call fcn.004374cd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x456829
Capabilities:
Set environment variable

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

Function at 0x45722c
Capabilities:
Print debug messages

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

Function at 0x4598e3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0044cd1d
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x459952
cmp esi, dword [ebp - 4]
je 0x45994d
cmp dword [ebp + 0xc], 0
je 0x45994d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x45992a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00459435
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x459954
xor eax, eax
inc eax
jmp 0x459954
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4599b9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x47d6e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0044cd1d
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0044cd1d
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x459a30
cmp word [ecx], dx
je 0x459a30
mov eax, dword [0x47309c]
push edi
dec eax
push eax
push 0x472f88
call fcn.00459958
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x459aa3
cmp word [eax], dx
je 0x459aa3
mov eax, dword [edi]
test eax, eax
je 0x459a54
cmp word [eax], dx
je 0x459a54
lea eax, [ebp - 0x10]
push eax
call fcn.0045933b
jmp 0x459a5d
lea eax, [ebp - 0x10]
push eax
call fcn.004593d6
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x459acd
mov eax, dword [0x472f84]
push dword [ebp - 0x14]
dec eax
push eax
push 0x472c78
call fcn.00459958
add esp, 0xc
test al, al
je 0x459acd
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x459a98
cmp word [eax], di
je 0x459a98
lea eax, [ebp - 0x10]
push eax
call fcn.0045933b
pop ecx
jmp 0x459acf
lea eax, [ebp - 0x10]
push eax
call fcn.004593d6
jmp 0x459a95
mov eax, dword [edi]
test eax, eax
je 0x459aba
cmp word [eax], dx
je 0x459aba
lea eax, [ebp - 0x10]
push eax
call fcn.004592d2
pop ecx
jmp 0x459acd
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x459b98
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004597dd
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x459b98
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x459b98
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x459b98
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x459b25
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0044f022
test ebx, ebx
je 0x459b93
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0044f022
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x459b98
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x459b98
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004625e8
add esp, 0x10
xor eax, eax
inc eax
jmp 0x459b9a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004209ed
leave
ret
Function at 0x463e0e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4804c8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x463e4e
cmp byte [ebx], 0xa
jne 0x463e4e
or byte [edi + eax + 0x28], 4
jmp 0x463e53
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x463f52
mov dl, byte [eax]
cmp dl, 0x1a
je 0x463f35
inc eax
cmp dl, 0xd
je 0x463e7f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x463ea5
cmp eax, ecx
jae 0x463eb3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x463e67
jmp 0x463f52
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x463f30
cmp dword [ebp - 0x10], 0
je 0x463f30
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4804c8]
test byte [eax + edi + 0x28], 0x48
je 0x463f0a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x463ef5
mov byte [esi], dl
jmp 0x463f06
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4804c8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x463f52
cmp byte [ebp - 1], 0xa
jne 0x463f19
cmp esi, ebx
jne 0x463f19
mov byte [esi], 0xa
jmp 0x463f51
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046378a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x463f52
mov byte [esi], 0xd
jmp 0x463f51
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4804c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x463f4f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x463f52
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x463f5b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4804c8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x463fa1
cmp word [ebx], dx
jne 0x463fa1
or byte [eax + edi + 0x28], 4
jmp 0x463fa6
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x464109
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4640e9
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x463fe7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46401d
cmp eax, edx
jae 0x46402b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x463fc2
jmp 0x464109
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4640e4
cmp dword [ebp - 0x18], 0
je 0x4640e4
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4804c8]
test byte [eax + edi + 0x28], 0x48
je 0x4640ba
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x46407e
mov word [esi], cx
jmp 0x4640b5
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4804c8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4804c8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4804c8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x464109
pop eax
cmp word [ebp - 4], ax
jne 0x4640ca
cmp esi, ebx
jne 0x4640ca
mov word [esi], ax
jmp 0x464106
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046378a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x464109
push 0xd
pop eax
jmp 0x4640c5
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4804c8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x464103
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x464109
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40100b
Capabilities:
Execute shellcode via indirect call
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x4010ad
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x40102e
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011b8
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401048
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011b8
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x401134
mov word [ebx], 0x5c
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011b8
mov dword [ebp - 0x108], eax
push 0x401023
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4011ad
push 0x3e8
call eax
test eax, eax
je 0x4011ad
push eax
push 0x40
push 0x3000
push 0x10000
push 0
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
je 0x40119a
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x4010a7]
jmp 0x4011be
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x40108c]
jmp 0x4011be
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x40104d]
push 0x10
push 0x4010a7
push eax
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret