joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429c4d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43d200]
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.00420da0
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.00420da0
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 0x429cc4
cmp word [ecx], dx
je 0x429cc4
mov eax, dword [0x43592c]
push edi
dec eax
push eax
push 0x435818
call fcn.00429bec
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x429d37
cmp word [eax], dx
je 0x429d37
mov eax, dword [edi]
test eax, eax
je 0x429ce8
cmp word [eax], dx
je 0x429ce8
lea eax, [ebp - 0x10]
push eax
call fcn.004295cf
jmp 0x429cf1
lea eax, [ebp - 0x10]
push eax
call fcn.0042966a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x429d61
mov eax, dword [0x435814]
push dword [ebp - 0x14]
dec eax
push eax
push 0x435508
call fcn.00429bec
add esp, 0xc
test al, al
je 0x429d61
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x429d2c
cmp word [eax], di
je 0x429d2c
lea eax, [ebp - 0x10]
push eax
call fcn.004295cf
pop ecx
jmp 0x429d63
lea eax, [ebp - 0x10]
push eax
call fcn.0042966a
jmp 0x429d29
mov eax, dword [edi]
test eax, eax
je 0x429d4e
cmp word [eax], dx
je 0x429d4e
lea eax, [ebp - 0x10]
push eax
call fcn.00429584
pop ecx
jmp 0x429d61
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 0x429e2c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00429a71
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x429e2c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x429e2c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x429e2c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x429db9
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00421b80
test ebx, ebx
je 0x429e27
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00421b80
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x429e2c
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 0x429e2c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042bc50
add esp, 0x10
xor eax, eax
inc eax
jmp 0x429e2e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041600e
leave
ret
Function at 0x42c2e5
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.0042c261
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42c454
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42c454
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42c409
jg 0x42c341
test eax, eax
je 0x42c3ff
push 1
push 0x1000
call fcn.00421cd9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42c364
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42c3f6
push 0x8000
push ebx
call fcn.0041f0fe
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42c38d
jg 0x42c388
cmp ecx, 0x1000
jb 0x42c38d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00423b4f
add esp, 0x10
cmp eax, 0xffffffff
je 0x42c3d2
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 0x42c388
jl 0x42c3b9
test ecx, ecx
jne 0x42c37a
push dword [ebp - 0xc]
push ebx
call fcn.0041f0fe
push esi
call fcn.0042108b
add esp, 0xc
xor ebx, ebx
jmp 0x42c462
cmp byte [edi + 0x24], 0
je 0x42c3e9
cmp dword [edi + 0x20], 5
jne 0x42c3e9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42c3f4
mov ebx, dword [edi + 0x18]
jmp 0x42c3f6
xor ebx, ebx
push esi
call fcn.0042108b
pop ecx
jmp 0x42c462
test ecx, ecx
jg 0x42c3cb
jl 0x42c409
test eax, eax
jae 0x42c3cb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042531b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42c429
cmp byte [edi + 0x1c], 0
je 0x42c3cb
jmp 0x42c45a
push ebx
call fcn.00427b48
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42c3cb
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 0x42c462
cmp byte [edi + 0x1c], 0
je 0x42c45f
mov ebx, dword [edi + 0x18]
jmp 0x42c462
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042531b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42d4e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42d50d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42d50d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4cfe90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8d000]
push edi
jmp 0x4cfeaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4cfeb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cfea0
mov eax, 1
add ebx, ebx
jne 0x4cfec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4cfed4
jne 0x4cfef3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cfef3
dec eax
add ebx, ebx
jne 0x4cfee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4cfeb8
add ebx, ebx
jne 0x4cfeef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4cff45
xor ecx, ecx
sub eax, 3
jb 0x4cff0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4cff7a
sar eax, 1
mov ebp, eax
jmp 0x4cff16
add ebx, ebx
jne 0x4cff16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cfee4
inc ecx
add ebx, ebx
jne 0x4cff24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cfee4
add ebx, ebx
jne 0x4cff31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4cff26
jne 0x4cff42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4cff26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4cff64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4cff56
jmp 0x4cfea6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4cff64
add edi, ecx
jmp 0x4cfea6
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4cff82
cmp byte [edi], 0x13
jne 0x4cff82
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 0x4cff87
lea edi, [esi + 0xcb000]
mov eax, dword [edi]
or eax, eax
je 0x4cffff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xee958]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xeeaac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4cffb4
mov ecx, edi
jns 0x4cffe3
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 + 0xeeab0]
or eax, eax
je 0x4cfff9
mov dword [ebx], eax
add ebx, 4
jmp 0x4cffd1
call dword [esi + 0xeeac0]
mov ebp, dword [esi + 0xeeab4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x4d0033
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x401155
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
jne 0x40116b
xor eax, eax
jmp 0x4011a5
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4011ab
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
jne 0x4011c1
xor eax, eax
jmp 0x4011fb
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401619
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
jne 0x40162f
xor eax, eax
jmp 0x40166e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401674
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
jne 0x40168a
xor eax, eax
jmp 0x4016c9
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40174e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4148d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], 0
push 0x41db70
lea ecx, [ebp - 0x18]
call fcn.0040d2f3
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x128]
cmp dword [eax + 0x14], 0
jne 0x4017cb
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040d018
mov edx, dword [ebp - 0x124]
or edx, 1
mov dword [ebp - 0x124], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040d285
mov eax, dword [ebp + 8]
jmp 0x40184c
mov dword [ebp - 0x1c], pe_nt_image_headers32
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x120]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x128]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x401815
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040d3c2
jmp 0x401822
push 0x41db74
lea ecx, [ebp - 0x18]
call fcn.0040d3c2
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040d018
mov edx, dword [ebp - 0x124]
or edx, 1
mov dword [ebp - 0x124], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040d285
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x40185c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
jne 0x401870
xor eax, eax
jmp 0x4018b6
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
add edx, 4
push edx
mov eax, dword [ebp - 4]
add eax, 8
push eax
push 0
mov ecx, dword [ebp - 4]
add ecx, 0xc
push ecx
mov edx, dword [ebp - 4]
add edx, 0x10
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4018b1
xor eax, eax
jmp 0x4018b6
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x401e08
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x84], 0
jmp 0x401e32
mov eax, dword [ebp - 0x84]
add eax, 1
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0x14
jge 0x401eaa
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx + 0x6c]
push eax
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx + 0x68]
push edx
push str.EnumUSBVID__sPID__sMI__02d
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [ebp - 0x88]
push ecx
push 0xf003f
push 0
lea edx, [ebp - 0x80]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401ea5
lea eax, [ebp - 0x80]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401e23
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402c88
Capabilities:
Get disk size
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x5c], ecx
push 0
push 0x3e9
mov ecx, dword [ebp - 0x5c]
call fcn.0041149b
mov ecx, eax
call fcn.004115aa
push 0
push 0x3f1
mov ecx, dword [ebp - 0x5c]
call fcn.0041149b
mov ecx, eax
call fcn.004115aa
push 1
push 0x3f2
mov ecx, dword [ebp - 0x5c]
call fcn.0041149b
mov ecx, eax
call fcn.004115aa
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0x5c], 1
push 0x34
push 0x41a43c
push str.If_you_want_to_install_new_driver__you_must_re_boot_Windows_system_now._nWill_you_re_boot_Windows_system_immediately_
mov ecx, dword [ebp - 0x5c]
call fcn.00410439
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 6
jne 0x402e1c
mov ecx, dword [ebp - 0x5c]
cmp dword [ecx + 0x60], 0
je 0x402d5d
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 8], eax
mov edx, 1
test edx, edx
je 0x402d44
push 0
push 0x41a4bc
call fcn.00405610
add esp, 8
test eax, eax
jne 0x402d44
push 0x30
push 0x41a4c0
push str.Please_remove_floppy_disk_from_PC__then_click__OK__button.
mov ecx, dword [ebp - 0x5c]
call fcn.00410439
jmp 0x402d12
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x402e1c
mov ecx, 1
test ecx, ecx
je 0x402d9c
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
push ecx
push 0x41a504
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x402d9c
push 0x30
push str.Warning
push str.Please_remove_Floppy_Disk_from_PC__then_click__OK__button.
mov ecx, dword [ebp - 0x5c]
call fcn.00410439
jmp 0x402d5d
lea edx, [ebp - 0x3c]
push edx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x402e1c
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push 0x41dc38
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x402e1c
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 2
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x38]
push ecx
push 0x10
lea edx, [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x402e1c
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x403af2
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
push esi
push edi
mov dword [ebp - 0x1cc], ecx
mov dword [ebp - 0xa8], 0
mov ecx, 0xa
mov esi, str.SystemCurrentControlSetServices_ser2pl
lea edi, [ebp - 0xa4]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x15
xor eax, eax
lea edi, [ebp - 0x7b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0xffffffff
jne 0x403b55
xor eax, eax
jmp 0x403d0e
mov dword [ebp - 0x1c], 0x1c
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
jmp 0x403b75
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x403cb3
mov dword [ebp - 0xb0], 0
lea edx, [ebp - 0xb0]
push edx
push 0x104
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0xb4]
push ecx
push 1
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xa8]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
jne 0x403bec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xd
je 0x403bec
mov ecx, dword [ebp - 0xa8]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
jmp 0x403d0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xd
je 0x403cae
lea edx, [ebp - 0x1bc]
mov dword [ebp - 0x1c0], edx
jmp 0x403c28
mov eax, dword [ebp - 0x1c0]
push eax
call fcn.00404ed0
add esp, 4
mov ecx, dword [ebp - 0x1c0]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x1c0], edx
mov eax, dword [ebp - 0x1c0]
movsx ecx, byte [eax]
test ecx, ecx
je 0x403cae
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x1c4], edx
jmp 0x403c4f
mov eax, dword [ebp - 0x1c4]
add eax, 4
mov dword [ebp - 0x1c4], eax
mov ecx, dword [ebp - 0x1c4]
cmp dword [ecx], 0
je 0x403ca9
mov edx, dword [ebp - 0x1c0]
push edx
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax]
push ecx
call fcn.0040a340
add esp, 8
test eax, eax
jne 0x403ca7
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xa8]
push eax
push 5
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
test eax, eax
jne 0x403c9e
mov ecx, dword [ebp - 0xa8]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
jmp 0x403d0e
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
jmp 0x403c40
jmp 0x403c09
jmp 0x403b6c
mov eax, dword [ebp - 0xa8]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea ecx, [ebp - 0xac]
push ecx
push 0xf003f
push 0
lea edx, [ebp - 0xa4]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403d09
lea eax, [ebp - 0xa4]
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov dword [ebp - 0x1c8], eax
mov ecx, dword [ebp - 0xac]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x405610
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x405630
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00406965
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x405653
test byte [esp + 8], 2
je 0x405653
call fcn.004069d8
mov dword [eax], 0xd
call fcn.004069e1
mov dword [eax], 5
jmp 0x40562c
xor eax, eax
ret

Function at 0x4086c5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41b3b0
cmp edx, dword [eax]
je 0x4086e7
add eax, 8
inc ecx
cmp eax, 0x41b440
jl 0x4086d8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41b3b0]
jne 0x408815
mov eax, dword [0x41fc08]
cmp eax, 1
je 0x4087ef
test eax, eax
jne 0x408718
cmp dword [0x41ab94], 1
je 0x4087ef
cmp edx, 0xfc
je 0x408815
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40874f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405520
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404ed0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408792
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404ed0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x416b4c
push edi
call fcn.0040a480
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405520
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405530
lea eax, [ebp - 0xa0]
push 0x416b2c
push eax
call fcn.00405530
push dword [esi + 0x41b3b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405530
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a7dc
add esp, 0x2c
pop edi
jmp 0x408815
lea eax, [ebp + 8]
lea esi, [esi + 0x41b3b4]
push 0
push eax
push dword [esi]
call fcn.00404ed0
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 0x410e06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x410e48
call fcn.00413998
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x410e48
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x410e3f
xor eax, eax
jmp 0x410e50
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00410e56
pop edi
pop esi
pop ebx
ret 4