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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
jg 0x4017c9
jl 0x4017ad
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x7fffffff
ja 0x4017c9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 4], 0xffffffff
jg 0x4017ce
jl 0x4017c9
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x80000001
jae 0x4017ce
jmp 0x401856
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 8]
neg eax
sbb eax, eax
and eax, 0xfffffffe
inc eax
inc eax
push eax
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x401856
and dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xc]
jae 0x401856
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.004016b8
pop ecx
pop ecx
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401849
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jae 0x40184b
jmp 0x401856
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4017fd
leave
ret

Function at 0x402a75
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0x14c
mov eax, dword [0x4093a8]
xor eax, ebp
mov dword [ebp + 0xc8], eax
mov eax, dword [ebp + 0xd4]
push ebx
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor ebx, ebx
test eax, eax
jne 0x402af2
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x136
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x402ad2
mov byte [ebp - 0x71], bl
jmp 0x402ae4
push dword [ebp - 0x78]
lea eax, [ebp - 0x70]
push eax
push ebx
push esi
mov byte [ebp - 0x71], 1
call edi
add esp, 0x10
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x71], bl
jne 0x402afd
push dword [ebp - 0x78]
push ebx
push ebx
push esi
call edi
add esp, 0x10
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
pop ebx
call fcn.00402e61
add ebp, 0xcc
leave
ret

Function at 0x402e61
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4093a8]
jne 0x402e6b
repz ret
jmp fcn.004033ae

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403c0c
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x403c68
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x403c5a
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x403c4f
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x403c4a
mov eax, 0x64
jmp 0x403c5f
call sub.kernel32.dll_GetLastError
call fcn.0040266c
xor eax, eax
jmp 0x403c4a
mov eax, 0x67
jmp 0x403c5f

Function at 0x403c70
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x403ccb
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_WriteFile
dec eax
pop eax
pop ecx
jne 0x403cbd
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x403cb2
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x403cad
mov eax, 0x65
jmp 0x403cc2
call sub.kernel32.dll_GetLastError
call fcn.0040266c
xor eax, eax
jmp 0x403cad
mov eax, 0x67
jmp 0x403cc2

Function at 0x403d54
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x403d84
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x403d7a
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.0040267c
or eax, 0xffffffff
jmp 0x403d78
mov eax, 0x67
call fcn.0040266c
or eax, 0xffffffff
jmp 0x403d78

Function at 0x405364
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x40539d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403200
jmp 0x4053a6
mov eax, ebx
mov edx, esi
call fcn.004031b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4053b0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4053d1
mov al, byte [esp]
jmp 0x4053d3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x407070
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40f55c
mov eax, esi
mov edx, 8
test al, 1
je 0x40708c
shr eax, 1
xor eax, 0xedb88320
jmp 0x40708e
shr eax, 1
dec edx
jne 0x40707f
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407078
pop esi
ret
Function at 0x4070a4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp byte [0x40f558], 0
jne 0x4070c2
call fcn.00407070
mov byte [0x40f558], 1
mov eax, edi
test esi, esi
je 0x4070ed
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40f55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4070c8
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40af30
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40afb5
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40af98
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040b22c
mov eax, dword [ebp - 0xc]
call fcn.004033a0
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40af9f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x40b02c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
xor eax, eax
mov dl, byte [ebx]
sub dl, 1
jb 0x40b058
sub dl, 0x1f
je 0x40b050
sub dl, 2
je 0x40b04c
jmp 0x40b054
xor al, 1
jmp 0x40b054
test al, al
je 0x40b058
inc ebx
jmp 0x40b039
inc ebx
cmp byte [ebx], 0x20
je 0x40b057
mov eax, esi
mov edx, ebx
call fcn.00403230
pop esi
pop ebx
ret

Function at 0x40b2e8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404eec
add esp, 0x104
pop ebx
ret
Function at 0x40ba78
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
lea ebx, [ebp - 0x74]
xor eax, eax
push ebp
push 0x40bb6a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x78]
mov eax, esi
call fcn.0040b27c
push dword [ebp - 0x78]
push 0x40bb80
push edi
lea eax, [ebp - 4]
mov edx, 3
call fcn.004032ac
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402738
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033a0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40bb03
mov al, 0x56
call fcn.0040b930
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x40bb1a
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x40bb0e
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x40bb1a
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb71
lea eax, [ebp - 0x78]
call fcn.00403120
lea eax, [ebp - 4]
call fcn.00403120
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40e145
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40e154
pop dword [ebp - 0x50]
mov eax, 0x40e154
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3a491
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x39c2
xor edx, edx
add edx, eax
mov ebx, 0x35c460c5
add ebx, 0xca7ef33b
add ebx, dword [ebp - 0x50]
mov edi, 0xfb6dc67b
xor dword [ebp - 0x3c], 0xf46c2954
mov esi, dword [ebx]
xor esi, edi
add dword [ebp - 0x18], 0xcc7fb72a
mov dword [edx], esi
add dword [ebp - 0x10], eax
add edx, 0x630ea04
sub edx, 0x630ea00
add ebx, 0xb0bd2e31
add ebx, 0x4f42d1d3
loop 0x40e19f
add eax, 0xd9db
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x6c18a6fa
add ecx, 0x94275906
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401814
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401853
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401853
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401853
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401853
cmp dword [ecx + 0x74], 0xe
jbe 0x401853
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x403203
pop dword [ebp - 0x38]
mov eax, 0x8a55cb77
sub eax, 0x8a159974
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xef1ed94
add dword [ebp - 0x48], 0x3f6057b7
mov dword [ebp - 0x44], 0x89dc0dd4
add dword [ebp - 0x44], 0xa8573e71
mov dword [ebp - 0x40], 0xd5fe71a8
sub dword [ebp - 0x40], 0x89b22d7a
mov dword [ebp - 0x3c], 0x8474c3dc
add dword [ebp - 0x3c], 0x7b8b3c24
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x4979ba96
add dword [ebp - 0x48], 0x2af8aec0
mov dword [ebp - 0x44], 0xdfdfd635
add dword [ebp - 0x44], 0x618c8b40
mov dword [ebp - 0x40], 0x39062896
add dword [ebp - 0x40], 0x2a6943d6
mov dword [ebp - 0x3c], 0x58552988
sub dword [ebp - 0x3c], 0x58552988
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xeaf3a8f
sub eax, 0xe6eb9bb
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x364f5
push 0
call eax
mov ecx, 0xbe0a7d9e
add ecx, 0x41f5c93f
mov esi, eax
mov edx, 0xbb03690b
add edx, 0x453da6f5
add edx, dword [ebp - 0x38]
mov ebx, 0xdc7b7009
sub ebx, 0x43969411
xor dword [ebp - 0x2c], ecx
mov edi, dword [edx]
add dword [ebp - 0xc], eax
xor edi, ebx
add dword [ebp - 0x14], 0x2cf9090c
mov dword [esi], edi
xor dword [ebp - 0x14], eax
add esi, 0xb9e8a144
add esi, 0x46175ec0
add edx, 0xe23b3645
add edx, 0x1dc4c9bf
loop 0x403320
add eax, 0x7803700f
add eax, 0x87fd9e38
xor ebx, ebx
add ebx, eax
add eax, 0xf3ad2a2e
add eax, 0xc52d5d7
mov ecx, 0x1d43b77
add ecx, 0xfe6bc489
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x4ea650
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8d000]
mov dword [edi + 0xcf740], 0x5c513c37
push edi
jmp 0x4ea67a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ea681
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ea670
mov eax, 1
add ebx, ebx
jne 0x4ea693
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ea6a4
jne 0x4ea6c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ea6c3
dec eax
add ebx, ebx
jne 0x4ea6b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ea688
add ebx, ebx
jne 0x4ea6bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ea715
xor ecx, ecx
sub eax, 3
jb 0x4ea6db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ea74a
sar eax, 1
mov ebp, eax
jmp 0x4ea6e6
add ebx, ebx
jne 0x4ea6e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ea6b4
inc ecx
add ebx, ebx
jne 0x4ea6f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ea6b4
add ebx, ebx
jne 0x4ea701
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ea6f6
jne 0x4ea712
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ea6f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ea734
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ea726
jmp 0x4ea676
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ea734
add edi, ecx
jmp 0x4ea676
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ea752
cmp byte [edi], 0x11
jne 0x4ea752
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4ea757
lea edi, [esi + 0xe3000]
mov eax, dword [edi]
or eax, eax
je 0x4ea7cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xef114]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xef290]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ea784
mov ecx, edi
jns 0x4ea7b3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xef294]
or eax, eax
je 0x4ea7c9
mov dword [ebx], eax
add ebx, 4
jmp 0x4ea7a1
call dword [esi + 0xef2a4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4ea800
cmp al, 0xef
ja 0x4ea7f3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4ea7d5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4ea7e2
mov ebp, dword [esi + 0xef298]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4ea834
sub esp, 0xffffff80
jmp 0x420577
Function at 0x29174b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0x2917a6
cmp eax, 0xffffffff
je 0x2917a6
cmp dword [ebp + 8], ebx
je 0x2917a6
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [edi + 0x44]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x29f302
cmp esi, dword [ebp - 4]
jne 0x29f31d
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, 0x80070057
jmp 0x29179e

Function at 0x29227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x2a621c
call fcn.00291350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0x2ab458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00292097
test eax, eax
jne 0x2923c4
lea eax, [ebp - 0x20]
push eax
push dword [0x2ab45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.002923dc
test eax, eax
jne 0x2923c4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
add eax, eax
pop edx
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.002913e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x2923c4
lea eax, [ebp - 0x20]
push eax
push dword [0x2ab45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.002923dc
test eax, eax
jne 0x2923bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0x2923bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.002913e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x2923bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0x2923b2
cmp dword [ebp + 8], ebx
je 0x29ea08
push dword [0x2ab460]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + esi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.002913e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x2923b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.002921cb
push dword [0x2ab460]
push edi
push dword [ebp - 0x18]
call fcn.00292436
push dword [ebp - 0x14]
call fcn.002913c0
pop ecx
push dword [ebp - 0x1c]
call fcn.002913c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00291f10
mov eax, dword [ebp - 0x18]
call fcn.00291390
ret 4
Function at 0x2923dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0x29242c
cmp dword [ebp - 4], 2
ja 0x29e965
mov ecx, dword [edi]
test cl, 1
jne 0x29242c
cmp esi, ebx
je 0x292425
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jne 0x29242c
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0xd
pop eax
jmp 0x292425

Function at 0x2924ed
Capabilities:
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0x2a6b05
call fcn.00291350
mov esi, ecx
mov eax, dword [esi + 0x44]
xor edi, edi
mov ebx, 0x8007000e
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0x292519
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
cmp dword [ebp + 8], edi
je 0x29265b
cmp dword [ebp + 0xc], edi
je 0x29265b
push 1
call fcn.0029227c
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x29264a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 4], edi
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea eax, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x20], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.002913e0
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x29259b
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.002921cb
mov ebx, eax
test ebx, ebx
jl 0x29259b
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00292436
mov ebx, eax
test ebx, ebx
jl 0x29259b
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
jl 0x292632
push 2
pop ebx
push dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.002913e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x292654
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.002921cb
mov ebx, eax
test ebx, ebx
jl 0x292623
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
call fcn.00292436
mov ebx, eax
test ebx, ebx
jl 0x292623
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x292623
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x29f3a2
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x292632
push dword [ebp - 0x14]
call fcn.002913c0
pop ecx
cmp dword [ebp - 0x18], 0
je 0x292641
push dword [ebp - 0x18]
call fcn.002913c0
pop ecx
push dword [ebp - 0x1c]
call fcn.002913c0
pop ecx
mov eax, ebx
call fcn.00291390
ret 8
mov ebx, 0x8007000e
jmp 0x2925fe
mov ebx, 0x80070057
jmp 0x29264a
Function at 0x293a67
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x293ae4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x293ac0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x293ad0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
pop esi
je 0x29e30e
mov eax, dword [ebp - 8]
leave
ret