joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417807
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 + 0x443338]
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 0x41784d
cmp word [ebx], dx
jne 0x41784d
or byte [eax + edi + 0x28], 4
jmp 0x417852
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 0x4179b5
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 0x417995
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x417893
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4178c9
cmp eax, edx
jae 0x4178d7
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 0x41786e
jmp 0x4179b5
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 0x417990
cmp dword [ebp - 0x18], 0
je 0x417990
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x443338]
test byte [eax + edi + 0x28], 0x48
je 0x417966
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 0x41792a
mov word [esi], cx
jmp 0x417961
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x443338]
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 + 0x443338]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x443338]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4179b5
pop eax
cmp word [ebp - 4], ax
jne 0x417976
cmp esi, ebx
jne 0x417976
mov word [esi], ax
jmp 0x4179b2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004183da
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4179b5
push 0xd
pop eax
jmp 0x417971
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x443338]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4179af
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4179b5
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 0x41a6c4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d910
push 0x42d908
push str.FlsAlloc
push 0x1f
call fcn.0041a583
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a6f8
push dword [ebp + 8]
mov ecx, esi
call dword [0x42618c]
call esi
jmp 0x41a6fe
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41a742
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d920
push 0x42d918
push str.FlsGetValue
push 0x21
call fcn.0041a583
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a779
push dword [ebp + 8]
mov ecx, esi
call dword [0x42618c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41a781
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d928
push 0x42d920
push str.FlsSetValue
push 0x22
call fcn.0041a583
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a7bb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42618c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x41b3fb
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x41b43e
call fcn.0041355e
mov dword [eax], 0xf
call fcn.00413571
mov dword [eax], 0xd
call fcn.00416c57
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004096ce
leave
ret
test eax, eax
jne 0x41b445
inc eax
jmp 0x41b432
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 0x41b430
xor eax, eax
cmp ecx, 1
setne al
jmp 0x41b432

Function at 0x41c519
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c034
Function at 0x41ce94
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
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 0x41cedf
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041d02f
test al, al
jne 0x41ced9
sub edx, 2
cmp edx, edi
jne 0x41cebf
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41cf01
lea eax, [edi + 2]
cmp edx, eax
je 0x41cf01
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041cde0
add esp, 0x10
jmp 0x41cffb
push esi
lea ecx, [ebp - 0x255]
call fcn.0041d02f
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 0x41cf44
push dword [ebp - 0x25c]
jmp 0x41cef1
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 0x41cf81
cmp word [ebp - 0x226], 0
je 0x41cfa2
cmp word [ebp - 0x226], ax
jne 0x41cf81
cmp word [ebp - 0x224], 0
je 0x41cfa2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041cde0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41cfee
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41cf5b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41cfd6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41cffb
push 0x41cc10
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00422590
add esp, 0x10
jmp 0x41cfcb
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.004096ce
leave
ret
Function at 0x41d907
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 0x41d9a4
push ebx
push esi
call fcn.0041d8d0
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.0041b526
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41d951
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d9a3
push edi
push eax
call fcn.004194b1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41d971
call fcn.00416c9b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d9a2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b526
add esp, 0x20
test eax, eax
jne 0x41d990
push edi
call fcn.00416c9b
jmp 0x41d998
push ebx
call fcn.00416c9b
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 0x41d9a7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41d9b8
pop esi
ret
push ebx
push edi
push esi
call fcn.0041d8d0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004194b1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41d9e0
push ebx
push esi
push edi
call fcn.0040a340
add esp, 0xc
push 0
call fcn.00416c9b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x423945
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.004238c1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x423ab4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x423ab4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x423a69
jg 0x4239a1
test eax, eax
je 0x423a5f
push 1
push 0x1000
call fcn.0041a3f3
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4239c4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x423a56
push 0x8000
push ebx
call fcn.00412f7b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4239ed
jg 0x4239e8
cmp ecx, 0x1000
jb 0x4239ed
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00418f16
add esp, 0x10
cmp eax, 0xffffffff
je 0x423a32
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 0x4239e8
jl 0x423a19
test ecx, ecx
jne 0x4239da
push dword [ebp - 0xc]
push ebx
call fcn.00412f7b
push esi
call fcn.00416c9b
add esp, 0xc
xor ebx, ebx
jmp 0x423ac2
cmp byte [edi + 0x24], 0
je 0x423a49
cmp dword [edi + 0x20], 5
jne 0x423a49
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x423a54
mov ebx, dword [edi + 0x18]
jmp 0x423a56
xor ebx, ebx
push esi
call fcn.00416c9b
pop ecx
jmp 0x423ac2
test ecx, ecx
jg 0x423a2b
jl 0x423a69
test eax, eax
jae 0x423a2b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004183da
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x423a89
cmp byte [edi + 0x1c], 0
je 0x423a2b
jmp 0x423aba
push ebx
call fcn.004142e9
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x423a2b
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 0x423ac2
cmp byte [edi + 0x1c], 0
je 0x423abf
mov ebx, dword [edi + 0x18]
jmp 0x423ac2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004183da
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425730
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42575d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42575d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x441ced
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x441d1b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x441d39
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00441c57
jmp 0x441d39
mov eax, dword [esi + 0x14]
test eax, eax
je 0x441d39
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00441c57
test edi, edi
mov eax, edi
jne 0x441d23
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x56c4b4]
test ecx, ecx
je 0x441dec
jmp 0x441cec
ret 8

Function at 0x50b580
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x50b59a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50b5a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50b590
mov eax, 1
add ebx, ebx
jne 0x50b5b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50b5a8
jne 0x50b5c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b5a8
xor ecx, ecx
sub eax, 3
jb 0x50b5d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50b64a
mov ebp, eax
add ebx, ebx
jne 0x50b5e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50b5f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50b614
inc ecx
add ebx, ebx
jne 0x50b600
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50b5f5
jne 0x50b611
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b5f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50b634
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50b625
jmp 0x50b596
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50b634
add edi, ecx
jmp 0x50b596
pop esi
mov edi, esi
mov ecx, 0x1d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50b652
cmp byte [edi], 6
jne 0x50b652
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 0x50b657
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x50b6c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50b684
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdb2c]
or eax, eax
je 0x50b6c0
mov dword [ebx], eax
add ebx, 4
jmp 0x50b6a1
call dword [esi + 0xdb28]
mov ebp, dword [esi + 0xdb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x50b6fa
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x402170
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0xc]
push ebx
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x40c710
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4021a2
xor eax, eax
jmp 0x4022cf
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 8], 0x50
push eax
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4022c3
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 0x10]
inc dword [ebp - 4]
cmp eax, ebx
mov dword [ebp - 8], 0x50
je 0x4021f8
cmp byte [eax], bl
je 0x4021f8
lea ecx, [ebp - 0x64]
push ecx
push eax
call sub.MSVCR71.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x4022a1
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x104]
push 0x40c6e8
push eax
call esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xb4]
push 0x40c6bc
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
push 0x20019
lea eax, [ebp - 0xb4]
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4022a1
push 0x10c
call dword [sym.imp.MSVCR71.dll_malloc]
mov esi, eax
pop ecx
cmp esi, ebx
mov dword [ebp - 0x14], 0x105
je 0x402298
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402298
lea eax, [ebp - 0x104]
push eax
push ebx
push 0x180
push dword [ebp + 8]
call edi
mov ecx, dword [ebp + 0xc]
push esi
push eax
push 0x19a
push dword [ebp + 8]
mov dword [esi + 0x108], ecx
call edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4021cf
pop edi
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop ebx
leave
ret
Function at 0x4025f7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, dword [ebp + 8]
push 0x40c8d8
push edi
call esi
push 0x40c8c4
push edi
mov ebx, eax
call esi
push 0x40c8b8
push edi
mov dword [ebp + 8], eax
call esi
push 0x40c8a4
push edi
mov dword [ebp - 8], eax
call esi
push 0x40c894
push edi
mov dword [ebp - 4], eax
call esi
push 0x40c884
push edi
mov dword [ebp - 0xc], eax
call esi
xor esi, esi
cmp dword [0x40d44c], esi
jne 0x402655
xor eax, eax
jmp 0x40269f
cmp ebx, esi
je 0x40269c
cmp dword [ebp + 8], esi
je 0x40269c
cmp dword [ebp - 8], esi
je 0x40269c
cmp dword [ebp - 4], esi
je 0x40269c
cmp dword [ebp - 0xc], esi
je 0x40269c
cmp eax, esi
je 0x40269c
xor ecx, ecx
cmp dword [ebp + 0xc], esi
push 0x40d480
setne cl
mov dword [eax], ecx
call dword [ebp + 8]
call ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.004026a4
add esp, 0xc
mov esi, eax
call dword [ebp - 8]
mov eax, esi
jmp 0x40269f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4027a9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push 0x40e940
lea eax, [ebp - 0x268]
push 0x40c950
push eax
mov dword [ebp - 4], 0x104
call esi
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.MSVCR71.dll__putenv]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x10
push dword [ebp + 8]
call edi
test eax, eax
jne 0x40287b
push dword [0x40e8b0]
lea eax, [ebp - 0x54]
push dword [0x40ea44]
push 0x40c920
push eax
call esi
add esp, 0x10
lea eax, [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x80000001
call esi
test eax, eax
je 0x40284f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x80000002
call esi
test eax, eax
je 0x40284f
xor eax, eax
jmp 0x40287b
lea eax, [ebp - 0x158]
push 0x40c5c8
push eax
call sub.MSVCR71.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x158]
push eax
call sub.MSVCR71.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x158]
push eax
call edi
pop edi
pop esi
leave
ret
Function at 0x40287f
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
call dword [sym.imp.MSVCR71.dll__tempnam]
mov ecx, dword [sym.imp.MSVCR71.dll__iob]
mov esi, dword [sym.imp.MSVCR71.dll_freopen]
add ecx, 0x40
mov edi, 0x40c9d4
push ecx
push edi
push eax
mov dword [ebp - 4], eax
call esi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x20
push eax
push edi
push dword [ebp - 4]
call esi
push 0x40e740
call fcn.004027a9
mov esi, eax
add esp, 0x24
cmp esi, ebx
jne 0x402903
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x8c]
push 0x40c9a4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x8c]
push eax
call fcn.004025ce
add esp, 0x10
or eax, 0xffffffff
jmp 0x402a05
push dword [ebp + 8]
push esi
call fcn.00402a0a
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [sym.imp.MSVCR71.dll__iob]
mov edi, dword [sym.imp.MSVCR71.dll_fflush]
add eax, 0x40
push eax
call edi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
mov esi, dword [sym.imp.MSVCR71.dll_fclose]
add eax, 0x40
push eax
call esi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x20
push eax
call edi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x20
push eax
call esi
add esp, 0x10
cmp dword [ebp - 0xc], ebx
je 0x4029f8
push 0x40c974
call sub.MSVCR71.dll_strlen
mov dword [esp], 0x40c970
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.MSVCR71.dll_fopen]
push 2
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_fseek]
push eax
mov dword [ebp + 8], eax
call ebx
push dword [ebp + 8]
call dword [sym.imp.MSVCR71.dll_ftell]
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 8], eax
call ebx
mov eax, dword [ebp - 8]
lea eax, [eax + edi + 1]
push eax
call dword [sym.imp.MSVCR71.dll_malloc]
mov ebx, eax
add esp, 0x28
test ebx, ebx
je 0x4029ed
push 0x40c974
push ebx
call sub.MSVCR71.dll_strcpy
push dword [ebp + 8]
lea eax, [ebx + edi]
push dword [ebp - 8]
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
push dword [ebp + 8]
add eax, ebx
and byte [eax + edi], 0
call esi
push ebx
call fcn.004025ce
push ebx
call dword [sym.imp.MSVCR71.dll_free]
add esp, 0x24
jmp 0x4029f8
push 0x40c960
call fcn.004025ce
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR71.dll_remove]
mov eax, dword [ebp - 0xc]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a0a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, dword [ebp + 8]
push 0x40c8d8
push edi
call esi
push 0x40c8c4
push edi
mov ebx, eax
call esi
push 0x40c8b8
push edi
mov dword [ebp + 8], eax
call esi
push 0x40c8a4
push edi
mov dword [ebp - 8], eax
call esi
push 0x40c9d8
push edi
mov dword [ebp - 4], eax
call esi
mov esi, eax
xor eax, eax
cmp ebx, eax
je 0x402a91
cmp dword [ebp + 8], eax
je 0x402a91
cmp dword [ebp - 8], eax
je 0x402a91
cmp dword [ebp - 4], eax
je 0x402a91
cmp esi, eax
je 0x402a91
push 0x40d480
call dword [ebp + 8]
call ebx
push edi
call fcn.00402a99
push dword [ebp + 0xc]
call dword [ebp - 4]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x402a8a
call esi
call dword [ebp - 8]
mov eax, edi
jmp 0x402a94
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402a99
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, dword [ebp + 8]
push 0x40ca8c
push edi
call esi
push 0x40ca74
push edi
mov ebx, eax
call esi
push 0x40ca5c
push edi
mov dword [ebp - 8], eax
call esi
push 0x40ca4c
push edi
mov dword [ebp + 8], eax
call esi
push 0x40ca3c
push edi
mov dword [ebp - 4], eax
call esi
push 0x40ca28
push edi
mov dword [ebp - 0xc], eax
call esi
push 0x40ca18
push edi
mov dword [ebp - 0x10], eax
call esi
push 0x40ca04
push edi
mov dword [ebp - 0x14], eax
call esi
xor esi, esi
mov dword [ebp - 0x18], eax
cmp ebx, esi
je 0x402ba7
cmp dword [ebp + 8], esi
je 0x402ba7
cmp dword [ebp - 8], esi
je 0x402ba7
cmp dword [ebp - 4], esi
je 0x402ba7
cmp dword [ebp - 0xc], esi
je 0x402ba7
cmp dword [ebp - 0x10], esi
je 0x402ba7
cmp dword [ebp - 0x14], esi
je 0x402ba7
push 0x40c9f8
call ebx
mov edi, eax
pop ecx
cmp edi, esi
je 0x402b83
push 0x40c9ec
push edi
call dword [ebp + 8]
push 0x40c9e4
push edi
mov dword [0x40e8b4], eax
call dword [ebp + 8]
add esp, 0x10
mov dword [0x40ea4c], eax
mov esi, 0x40c0c8
push 0
push esi
call dword [ebp - 4]
push eax
push dword [esi]
push edi
call dword [ebp - 8]
add esi, 0x10
add esp, 0x14
cmp esi, 0x40c128
jb 0x402b68
mov eax, dword [ebp - 0xc]
mov dword [0x40e928], eax
mov eax, dword [ebp - 0x10]
mov dword [0x40e92c], eax
mov eax, dword [ebp - 0x14]
mov dword [0x40e724], eax
mov eax, dword [ebp - 0x18]
mov dword [0x40ea70], eax
xor eax, eax
jmp 0x402baa
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret