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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x5e1fa8]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x566b03
push 0xa
pop esi
cmp word [ebx], si
jne 0x566b03
or byte [eax + edi + 0x28], 4
jmp 0x566b08
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x566c73
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x566c4b
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x566b55
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x566b7f
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x566b9e
push 0xa
pop ebx
cmp word [edx], bx
jne 0x566b6c
push ebx
add eax, 4
pop edx
jmp 0x566b74
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x566b1a
jmp 0x566c73
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x566c46
cmp dword [ebp - 0x14], 0
je 0x566c46
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x5e1fa8]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x566c22
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x566bea
mov word [esi], ax
jmp 0x566c70
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x5e1fa8]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5e1fa8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5e1fa8]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x566c70
cmp word [ebp - 4], ax
jne 0x566c2c
cmp esi, ebx
je 0x566be2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005640e3
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x566c73
push 0xd
pop eax
jmp 0x566be2
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x5e1fa8]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x566c6d
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x566c73
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x56c1a3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5df040]
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 0x56c1ee
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0056c33c
test al, al
jne 0x56c1e8
sub edx, 2
cmp edx, edi
jne 0x56c1ce
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x56c210
lea eax, [edi + 2]
cmp edx, eax
je 0x56c210
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0056c0ef
add esp, 0x10
jmp 0x56c308
push esi
lea ecx, [ebp - 0x255]
call fcn.0056c33c
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x56c251
push dword [ebp - 0x25c]
jmp 0x56c200
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 0x56c28e
cmp word [ebp - 0x226], 0
je 0x56c2af
cmp word [ebp - 0x226], ax
jne 0x56c28e
cmp word [ebp - 0x224], 0
je 0x56c2af
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0056c0ef
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x56c2fb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x56c268
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x56c2e3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x56c308
push 0x56bf1f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005608c0
add esp, 0x10
jmp 0x56c2d8
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.00423495
leave
ret
Function at 0x56cc1e
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 0x56ccbb
push ebx
push esi
call fcn.0056cbe7
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.0056a3d1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x56cc68
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x56ccba
push edi
push eax
call fcn.00567680
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x56cc88
call fcn.00565000
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x56ccb9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0056a3d1
add esp, 0x20
test eax, eax
jne 0x56cca7
push edi
call fcn.00565000
jmp 0x56ccaf
push ebx
call fcn.00565000
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 0x56ccbe
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x56cccf
pop esi
ret
push ebx
push edi
push esi
call fcn.0056cbe7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00567680
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x56ccf7
push ebx
push esi
push edi
call fcn.00548d90
add esp, 0xc
push 0
call fcn.00565000
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x56d44e
Capabilities:
Set environment variable

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

Function at 0x56fde1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005656a0
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 0x56fe50
cmp esi, dword [ebp - 4]
je 0x56fe4b
cmp dword [ebp + 0xc], 0
je 0x56fe4b
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x56fe28
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0056f936
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x56fe52
xor eax, eax
inc eax
jmp 0x56fe52
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x56febd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5df040]
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.005656a0
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.005656a0
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 0x56ff34
cmp word [ecx], dx
je 0x56ff34
mov eax, dword [0x5a7e04]
push edi
dec eax
push eax
push 0x5a7cf0
call fcn.0056fe56
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x56ffa7
cmp word [eax], dx
je 0x56ffa7
mov eax, dword [edi]
test eax, eax
je 0x56ff58
cmp word [eax], dx
je 0x56ff58
lea eax, [ebp - 0x10]
push eax
call fcn.0056f83c
jmp 0x56ff61
lea eax, [ebp - 0x10]
push eax
call fcn.0056f8d7
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x56ffd1
mov eax, dword [0x5a7cec]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5a79e0
call fcn.0056fe56
add esp, 0xc
test al, al
je 0x56ffd1
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x56ff9c
cmp word [eax], di
je 0x56ff9c
lea eax, [ebp - 0x10]
push eax
call fcn.0056f83c
pop ecx
jmp 0x56ffd3
lea eax, [ebp - 0x10]
push eax
call fcn.0056f8d7
jmp 0x56ff99
mov eax, dword [edi]
test eax, eax
je 0x56ffbe
cmp word [eax], dx
je 0x56ffbe
lea eax, [ebp - 0x10]
push eax
call fcn.0056f7f1
pop ecx
jmp 0x56ffd1
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 0x57009c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0056fcdb
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x57009c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x57009c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x57009c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x570029
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00569c24
test ebx, ebx
je 0x570097
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00569c24
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x57009c
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 0x57009c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0055fbbd
add esp, 0x10
xor eax, eax
inc eax
jmp 0x57009e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423495
leave
ret
Function at 0x573c95
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00573c11
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x573e04
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x573e04
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x573db9
jg 0x573cf1
test eax, eax
je 0x573daf
push 1
push 0x1000
call fcn.0056a210
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x573d14
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x573da6
push 0x8000
push ebx
call fcn.0055dd94
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x573d3d
jg 0x573d38
cmp ecx, 0x1000
jb 0x573d3d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005661ee
add esp, 0x10
cmp eax, 0xffffffff
je 0x573d82
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x573d38
jl 0x573d69
test ecx, ecx
jne 0x573d2a
push dword [ebp - 0xc]
push ebx
call fcn.0055dd94
push esi
call fcn.00565000
add esp, 0xc
xor ebx, ebx
jmp 0x573e12
cmp byte [edi + 0x24], 0
je 0x573d99
cmp dword [edi + 0x20], 5
jne 0x573d99
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x573da4
mov ebx, dword [edi + 0x18]
jmp 0x573da6
xor ebx, ebx
push esi
call fcn.00565000
pop ecx
jmp 0x573e12
test ecx, ecx
jg 0x573d7b
jl 0x573db9
test eax, eax
jae 0x573d7b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005640e3
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x573dd9
cmp byte [edi + 0x1c], 0
je 0x573d7b
jmp 0x573e0a
push ebx
call fcn.0056aa25
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x573d7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x573e12
cmp byte [edi + 0x1c], 0
je 0x573e0f
mov ebx, dword [edi + 0x18]
jmp 0x573e12
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005640e3
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5771bc
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5df040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x5771ff
call fcn.0055f7b1
mov dword [eax], 0xf
call fcn.0055f7c6
mov dword [eax], 0xd
call fcn.0054d05c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423495
leave
ret
test eax, eax
jne 0x577206
inc eax
jmp 0x5771f3
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x5771f1
xor eax, eax
cmp ecx, 1
setne al
jmp 0x5771f3

Function at 0x579ba0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x579bcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x579bcd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401c90
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x401cd0
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401cf6
mov eax, 1
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
neg eax
sbb eax, eax
and eax, 2
ret

Function at 0x401d20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push edi
mov edi, dword [esp + 0x11c]
test edi, edi
jne 0x401d3f
mov eax, 1
pop edi
add esp, 0x10c
ret
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x120]
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401d72
mov eax, 2
pop edi
add esp, 0x10c
ret
lea eax, [esp + 8]
push esi
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x120]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x24], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x401dbe
mov eax, 3
pop edi
add esp, 0x10c
ret
mov eax, dword [esp + 0x10]
mov dword [edi], eax
xor eax, eax
pop edi
add esp, 0x10c
ret

Function at 0x401dd0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401df6
mov eax, 1
ret
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
neg eax
sbb eax, eax
and eax, 2
ret
Function at 0x401e30
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401e54
or eax, 0xffffffff
ret
mov edx, dword [esp + 0xc]
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
neg eax
sbb eax, eax
pop esi
ret

Function at 0x401e90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov al, byte [0x40a180]
push edi
mov byte [esp + 0x10], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x114]
lea ecx, [esp + 4]
stosw word es:[edi], ax
push ecx
push 0x20019
stosb byte es:[edi], al
mov eax, dword [esp + 0x128]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401ee3
mov eax, 1
pop edi
add esp, 0x10c
ret
push ebx
lea ecx, [esp + 0xc]
push esi
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x124]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x28], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x124]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 2
pop edi
add esp, 0x10c
ret
Function at 0x402540
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
test eax, eax
je 0x4025a9
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
push 0
push 0x1f0fff
call esi
test eax, eax
je 0x4025a9
push edi
push 0
push 0x1f0fff
call esi
mov esi, eax
test esi, esi
jne 0x402575
pop edi
pop esi
ret
push 0
push 0
push 0x12
push edi
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
jne 0x40259b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret
push 0
push 0
push 0x12
push edi
call dword [sym.imp.USER32.dll_PostThreadMessageA]
pop edi
mov eax, 1
pop esi
ret

Function at 0x4025c0
Capabilities:
Acquire debug privileges

Disassembly:
call fcn.00401f60
cmp eax, 2
jne 0x4025ef
push str.SeDebugPrivilege
call fcn.004024a0
add esp, 4
test eax, eax
jne 0x4025dc
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call fcn.00402110
add esp, 8
ret
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push edx
push eax
call fcn.00401f90
add esp, 8
ret

Function at 0x403e35
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x409538
cmp edx, dword [eax]
je 0x403e57
add eax, 8
inc ecx
cmp eax, 0x4095c8
jl 0x403e48
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x409538]
jne 0x403f85
mov eax, dword [0x40a18c]
cmp eax, 1
je 0x403f5f
test eax, eax
jne 0x403e88
cmp dword [0x409394], 1
je 0x403f5f
cmp edx, 0xfc
je 0x403f85
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403ebf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405e50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004031e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403f02
lea eax, [ebp - 0x1a4]
push eax
call fcn.004031e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408468
push edi
call fcn.00405d10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405e50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405e60
lea eax, [ebp - 0xa0]
push 0x408448
push eax
call fcn.00405e60
push dword [esi + 0x40953c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405e60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405f40
add esp, 0x2c
pop edi
jmp 0x403f85
lea eax, [ebp + 8]
lea esi, [esi + 0x40953c]
push 0
push eax
push dword [esi]
call fcn.004031e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x6b9110
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f8000]
push edi
or ebp, 0xffffffff
jmp 0x6b9132
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6b9139
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6b9128
mov eax, 1
add ebx, ebx
jne 0x6b914b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6b915c
jne 0x6b916c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6b916c
dec eax
add ebx, ebx
jne 0x6b9168
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6b9140
xor ecx, ecx
sub eax, 3
jb 0x6b9184
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6b91f6
sar eax, 1
mov ebp, eax
jmp 0x6b918f
add ebx, ebx
jne 0x6b918f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x6b919c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x6b91c0
inc ecx
add ebx, ebx
jne 0x6b91ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6b91a1
jne 0x6b91bd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6b91a1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6b91e0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6b91d1
jmp 0x6b912e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6b91e0
add edi, ecx
jmp 0x6b912e
pop esi
mov edi, esi
mov ecx, 0x29f861
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x6b921b
cmp byte [edi], 0xd
jne 0x6b9200
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x6b91fe
lea edi, [esi + 0x2b7000]
mov eax, dword [edi]
or eax, eax
je 0x6b926c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2bda4c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2bda88]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6b9221
mov ecx, edi
jns 0x6b9250
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 + 0x2bda8c]
or eax, eax
je 0x6b9266
mov dword [ebx], eax
add ebx, 4
jmp 0x6b923e
call dword [esi + 0x2bda90]
popal
jmp 0x411af0