joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f6760
Capabilities:
Query environment variable

Disassembly:
cmp dword [0x1031e3e8], 0
je 0x100f676d
or eax, 0xffffffff
ret
mov dword [0x1031e3e8], 1
call fcn.100ac180
push str.XML_MEM_BREAKPOINT
mov dword [0x1031e3f8], eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x100f67a6
push 0x1031e400
push 0x10276d3c
push eax
call fcn.100f6700
add esp, 0xc
push str.XML_MEM_TRACE
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x100f67cb
push 0x1031e404
push 0x10276d50
push eax
call fcn.100f6700
add esp, 0xc
xor eax, eax
ret

Function at 0x100fa210
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x7d4
mov eax, dword [0x1030fff4]
xor eax, esp
mov dword [esp + 0x7d0], eax
push esi
push edi
mov edi, dword [esp + 0x7e0]
xor esi, esi
push 0xd
push str.urn:publicid:
push edi
call fcn.100e34e0
add esp, 0xc
test eax, eax
je 0x100fa25c
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x7d0]
xor ecx, esp
call fcn.10236000
add esp, 0x7d4
ret
mov al, byte [edi + 0xd]
add edi, 0xd
test al, al
je 0x100fa36e
nop word [eax + eax]
cmp esi, 0x7cc
ja 0x100fa366
cmp al, 0x2b
jne 0x100fa28a
mov byte [esp + esi + 8], 0x20
jmp 0x100fa35a
cmp al, 0x3a
jne 0x100fa29e
mov word [esp + esi + 8], 0x2f2f
inc edi
add esi, 2
jmp 0x100fa35c
cmp al, 0x3b
jne 0x100fa2b2
mov word [esp + esi + 8], 0x3a3a
inc edi
add esi, 2
jmp 0x100fa35c
cmp al, 0x25
jne 0x100fa356
mov al, byte [edi + 1]
cmp al, 0x32
jne 0x100fa318
cmp byte [edi + 2], 0x42
jne 0x100fa2d5
mov byte [esp + esi + 8], 0x2b
add edi, 3
inc esi
jmp 0x100fa35c
cmp byte [edi + 2], 0x46
jne 0x100fa2e6
mov byte [esp + esi + 8], 0x2f
add edi, 3
inc esi
jmp 0x100fa35c
cmp byte [edi + 2], 0x37
jne 0x100fa2f7
mov byte [esp + esi + 8], 0x27
add edi, 3
inc esi
jmp 0x100fa35c
mov al, byte [edi + 2]
cmp al, 0x33
jne 0x100fa309
mov byte [esp + esi + 8], 0x23
add edi, 3
inc esi
jmp 0x100fa35c
cmp al, 0x35
jne 0x100fa34f
mov byte [esp + esi + 8], 0x25
add edi, 3
inc esi
jmp 0x100fa35c
cmp al, 0x33
jne 0x100fa34f
cmp byte [edi + 2], 0x41
jne 0x100fa32d
mov byte [esp + esi + 8], 0x3a
add edi, 3
inc esi
jmp 0x100fa35c
cmp byte [edi + 2], 0x42
jne 0x100fa33e
mov byte [esp + esi + 8], 0x3b
add edi, 3
inc esi
jmp 0x100fa35c
cmp byte [edi + 2], 0x46
jne 0x100fa34f
mov byte [esp + esi + 8], 0x3f
add edi, 3
inc esi
jmp 0x100fa35c
mov byte [esp + esi + 8], 0x25
jmp 0x100fa35a
mov byte [esp + esi + 8], al
inc esi
inc edi
mov al, byte [edi]
test al, al
jne 0x100fa270
cmp esi, 0x7d0
jae 0x100fa397
lea eax, [esp + 8]
mov byte [esp + esi + 8], 0
push eax
call fcn.100e31c0
mov ecx, dword [esp + 0x7dc]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.10236000
add esp, 0x7d4
ret
call fcn.1021b520
int3
Function at 0x10156948
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0
push 0x14
and dword [edi], 0
call fcn.1021b520
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10156967
push 7
pop eax
jmp 0x101569db
cmp byte [0x1030db34], 0
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
je 0x101569b2
mov eax, dword [0x1030dc24]
test eax, eax
je 0x1015698f
push 0xc8
call eax
pop ecx
test eax, eax
jne 0x101569b2
lea eax, [esi + 4]
mov dword [esi + 8], ebp
push eax
xor eax, eax
mov dword [esi + 0xc], ebx
push eax
push esi
push 0x10156a40
push eax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x101569bf
push 0x14
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [esi + 8], 0
jne 0x101569d5
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call ebp
pop ecx
mov dword [esi + 0x10], eax
pop ebp
mov dword [edi], esi
xor eax, eax
pop ebx
pop edi
pop esi
ret
Function at 0x1021b520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1021b52f
pop dword [ebp - 0x4c]
mov eax, 0x8c85fc6c
sub eax, 0x7c64473d
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x623a39d1
add dword [ebp - 0x5c], 0xec180b7a
mov dword [ebp - 0x58], 0x83376b5c
sub dword [ebp - 0x58], 0x51041f17
mov dword [ebp - 0x54], 0x721fe119
add dword [ebp - 0x54], 0xda2c6315
mov dword [ebp - 0x50], 0xf7cc6619
sub dword [ebp - 0x50], 0xf7cc6619
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x9cc9754e
sub dword [ebp - 0x5c], 0x28570bf8
mov dword [ebp - 0x58], 0x234acbed
sub dword [ebp - 0x58], 0xe1de6a78
mov dword [ebp - 0x54], 0xf03e82c0
sub dword [ebp - 0x54], 0x8ccf1654
mov dword [ebp - 0x50], 0xc2d96449
sub dword [ebp - 0x50], 0xc2d96449
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x87e57657
add eax, 0x883feb4d
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x60780
push 0
call eax
mov ecx, 0xf0582ab4
sub ecx, 0xf057de0d
mov edi, eax
mov ebx, 0x2b76cbde
sub ebx, 0x1b4269de
add ebx, dword [ebp - 0x4c]
mov esi, 0xdc60a98b
xor dword [ebp - 0x3c], 0xd31826b7
mov edx, dword [ebx]
add dword [ebp - 0x18], ecx
sub edx, esi
add dword [ebp - 0x14], 0x9bef497c
mov dword [edi], edx
sub dword [ebp - 0x18], edi
add edi, 4
add ebx, 0x75e1bf90
sub ebx, 0x75e1bf8c
loop 0x1021b646
add eax, 0x1256f
xor ebx, ebx
add ebx, eax
add eax, 0xdb110c1b
sub eax, 0xdb110c16
mov ecx, 0x346eaed0
add ecx, 0xdb915130
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x100268b0
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
nop word cs:[eax + eax]
nop dword [eax]
mov eax, dword [0x10069e6c]
mov ecx, dword [0x10069e70]
mov edx, eax
xor edx, ecx
mov esi, eax
or esi, ecx
not esi
add esi, edx
and eax, ecx
add eax, esi
add eax, 0xb
cmp dword [0x100711e0], eax
mov edx, dword [0x100711dc]
setl al
lea ecx, [edx + 1]
imul ecx, edx
and ecx, 1
mov edi, dword [0x10069e74]
mov esi, dword [0x10069e78]
mov edx, edi
xor edx, esi
not edx
add edx, edi
not esi
add edx, esi
or esi, edi
add esi, esi
sub edx, esi
cmp ecx, edx
sete cl
setne dl
and dl, al
add dl, al
mov ah, al
or ah, cl
add dl, ah
not ah
add ah, dl
xor al, cl
not al
add al, ah
test al, 1
je 0x100268c0
mov eax, 1
pop esi
pop edi
ret 0xc
Function at 0x100557ad
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100557ec
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100557ec
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100557ec
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100557ec
cmp dword [ecx + 0x74], 0xe
jbe 0x100557ec
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1005849d
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 0x1005853a
push ebx
push esi
call fcn.10058466
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.100583fa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100584e7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10058539
push edi
push eax
call fcn.1005643d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10058507
call fcn.1005648b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10058538
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100583fa
add esp, 0x20
test eax, eax
jne 0x10058526
push edi
call fcn.1005648b
jmp 0x1005852e
push ebx
call fcn.1005648b
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 0x100587a7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10060668
push 0x10060660
push str.FlsAlloc
push 0x1f
call fcn.100586c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100587db
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005f120]
call esi
jmp 0x100587e1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10058825
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10060678
push 0x10060670
push str.FlsGetValue
push 0x21
call fcn.100586c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005885c
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005f120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10058864
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10060680
push 0x10060678
push str.FlsSetValue
push 0x22
call fcn.100586c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005889e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1005f120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1005ded0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005defd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005defd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41859e
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x475534
call fcn.004680bc
sub esp, 0x270
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov ecx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
call fcn.0041bb65
test al, al
je 0x4186d2
lea ecx, [ebp - 0x50]
call fcn.004188b1
push esi
push esi
push 3
push 0x80
push 1
push SysReAllocStringLen
push ebx
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], esi
call fcn.00418955
cmp eax, esi
je 0x418612
push 1
push ebx
lea ecx, [ebp - 0x13c]
call fcn.004187ab
lea eax, [ebp - 0x13c]
push 0x485560
push eax
call fcn.004680db
push 5
lea eax, [ebp - 0x5c]
pop edi
lea ecx, [ebp - 0x50]
push edi
push eax
mov byte [ebp - 4], 1
call fcn.0041c2fb
cmp eax, esi
mov dword [ebp - 0x50], 0x47ed94
je 0x418653
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 2
call fcn.00418f21
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00407421
mov al, 1
jmp 0x41879c
mov dword [ebp - 4], edi
jmp 0x418698
lea ecx, [ebp - 0x50]
call fcn.00418f21
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00407421
xor al, al
jmp 0x41879c
mov ecx, ebx
call fcn.00406608
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or edi, 0xffffffff
cmp eax, edi
jne 0x418781
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x41874f
mov dword [ebp + 8], edi
lea eax, [ebp - 0x27c]
mov ecx, ebx
push eax
mov dword [ebp - 4], 6
call fcn.00406608
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, edi
je 0x41874a
test byte [ebp + 0xc], 4
je 0x41872a
test byte [ebp - 0x27c], 0x10
je 0x418739
test byte [ebp + 0xc], 8
je 0x41873d
test byte [ebp - 0x27c], 0x10
je 0x41873d
mov bl, 1
jmp 0x41873f
xor bl, bl
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
jmp 0x41879c
call esi
mov dword [ebp - 4], edi
cmp eax, 2
je 0x4186ac
cmp eax, 3
je 0x4186ac
push 1
push eax
push ebx
lea ecx, [ebp - 0xa4]
call fcn.0041c15d
lea eax, [ebp - 0xa4]
push 0x481f68
push eax
call fcn.004680db
test byte [ebp + 0xc], 4
je 0x41878b
test al, 0x10
je 0x418795
test byte [ebp + 0xc], 8
je 0x41879a
test al, 0x10
je 0x41879a
push 1
pop eax
jmp 0x41879c
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4194f7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x475774
call fcn.004680bc
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4195df
mov ecx, edi
call fcn.00406608
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
test al, al
jne 0x419536
push 3
pop eax
jmp 0x419601
mov eax, dword [ebp + 0x10]
mov byte [esi + 0x44], 1
test eax, eax
je 0x41955a
mov eax, dword [eax]
test eax, eax
jbe 0x41955a
lea edi, [esi + 0x3c]
mov dword [edi], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x41958c
mov eax, dword [eax]
mov dword [esi + 0x40], eax
jmp 0x41958c
and byte [ebp - 0x14], 0
and dword [ebp - 4], 0
mov ecx, edi
call fcn.00406608
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x40]
lea edi, [esi + 0x3c]
push eax
push edi
call fcn.00406608
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.004196ba
or dword [ebp - 4], 0xffffffff
push dword [ebp + 0x2c]
mov ecx, esi
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call fcn.00418955
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x4195fe
mov eax, dword [edi]
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
push ecx
push 0
push eax
mov ecx, esi
call fcn.00419611
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4195d1
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4195fe
mov ecx, dword [esi + 0x40]
mov dword [eax], ecx
jmp 0x4195fe
push dword [ebp + 0x2c]
mov ecx, esi
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 8]
call fcn.00418955
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x28

Function at 0x41b238
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x41b27d
mov eax, dword [ebp + 8]
test eax, eax
je 0x41b252
and dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41b2d9
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.004187ab
lea eax, [ebp - 0x4c]
push 0x485560
push eax
call fcn.004680db
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41b2d9
cmp dword [ebp + 8], 0
jne 0x41b2b2
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00407d0e
lea eax, [ebp - 0x48]
push 0x481f68
push eax
call fcn.004680db
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41b2d9
push 1
add esi, 0xc
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.0041c15d
lea eax, [ebp - 0x48]
push 0x481f68
push eax
call fcn.004680db
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x41c2fb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x41c30f
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41c343
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00463ae9
test al, al
jne 0x41c376
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.004187ab
lea eax, [ebp - 0x4c]
push 0x485560
push eax
call fcn.004680db
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c376
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00407d0e
lea eax, [ebp - 0x48]
push 0x481f68
push eax
call fcn.004680db
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x41c37e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x41c391
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41c3c6
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00407d0e
lea eax, [ebp - 0x48]
push 0x481f68
push eax
call fcn.004680db
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x41d214
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x41d244
xor eax, eax
jmp 0x41d2a5
push esi
push edi
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x200
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x208]
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
cmp dword [ebp + 8], ebx
jbe 0x41d292
movzx ecx, byte [ebp + eax - 0x208]
add dword [ebp - 4], ecx
inc eax
cmp eax, dword [ebp + 8]
jb 0x41d281
cmp dword [ebp + 8], esi
je 0x41d264
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41dda8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 0xc]
call fcn.00406608
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41dde3
test al, 1
je 0x41dde3
push 1
push 5
push dword [ebp + 0xc]
lea ecx, [ebp - 0x48]
call fcn.0041dbc2
lea eax, [ebp - 0x48]
push 0x486510
push eax
call fcn.004680db
xor al, al
leave
ret
Function at 0x420140
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4763eb
call fcn.004680bc
sub esp, 0x15c
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
push 1
mov esi, 0x104
pop ebx
cmp dword [ebp + 0xc], ebx
jne 0x4201eb
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4201eb
push str.GetSystemWindowsDirectoryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x496800], eax
je 0x4201eb
lea ecx, [ebp - 0x168]
push esi
push ecx
call eax
test eax, eax
je 0x4201eb
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x168]
mov edi, 0x47e4b8
mov esi, 0x47e4b0
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.00405a89
push 0x495d74
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.004072bf
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.0040595a
mov dword [ebp - 0x14], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
jmp 0x420266
lea eax, [ebp - 0x168]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x420213
lea ecx, [ebp - 0x30]
call fcn.00407d7a
lea eax, [ebp - 0x30]
push 0x4869d8
push eax
call fcn.004680db
lea eax, [ebp - 0xd]
push 0
push eax
lea eax, [ebp - 0x168]
mov edi, 0x47e4b8
mov esi, 0x47e4b0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
call fcn.00405a89
push 0x495d74
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 2
call fcn.004072bf
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.0040595a
and byte [ebp - 4], 0
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x3c]
call fcn.00407421
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x421277
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x47654f
call fcn.004680bc
sub esp, 0x138
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
and byte [ebp - 0x144], bl
xor eax, eax
lea edi, [ebp - 0x143]
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x10], ebx
push 1
lea eax, [ebp - 0x10]
pop esi
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x421359
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x18], 0x104
mov eax, str.CommonFilesDir
je 0x4212e0
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x144]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xf]
push ebx
push eax
lea eax, [ebp - 0x144]
mov edi, 0x47e4b8
mov esi, 0x47e4b0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.00405a89
push 0x495d74
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004072bf
lea ecx, [ebp - 0x40]
call fcn.00420dbb
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0
push eax
mov ecx, ebx
mov dword [ebx], edi
mov dword [ebx + 0x20], esi
call fcn.0040595a
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
jmp 0x4213ae
lea eax, [ebp + 0xf]
push ebx
push eax
lea eax, [ebp - 0x144]
mov edi, 0x47e4b8
mov esi, 0x47e4b0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.00405a89
push 0x495d74
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.004072bf
mov ebx, dword [ebp + 8]
push 0
push eax
mov ecx, ebx
mov dword [ebx], edi
mov dword [ebx + 0x20], esi
call fcn.0040595a
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00407421
cmp dword [ebp - 0x10], 0
je 0x4213c2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x424a63
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x476cc7
call fcn.004680bc
sub esp, 0x224
push ebx
push esi
lea eax, [ebp - 0x230]
push edi
xor ebx, ebx
push eax
push 0x104
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x424aa7
lea ecx, [ebp - 0x2c]
call fcn.00407d7a
lea eax, [ebp - 0x2c]
push 0x4869d8
push eax
call fcn.004680db
push 0x24
xor eax, eax
pop ecx
lea edi, [ebp - 0x128]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov edi, 0x47e4b8
mov esi, 0x47e4b0
je 0x424bd0
cmp dword [ebp - 0x11c], 1
jne 0x424bd0
lea eax, [ebp - 0xd]
push ebx
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x18], esi
call fcn.00405a89
push str.123.tmp
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.004072bf
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea ecx, [ebp - 0x38]
call fcn.00406608
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x424bae
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.00420140
pop ecx
pop ecx
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.00406ff2
push dword [0x47e51c]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 2
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.00406732
lea ecx, [ebp - 0x98]
call fcn.00407421
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.00407421
push str.temp
lea ecx, [ebp - 0x38]
call fcn.004072bf
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.0040595a
lea ecx, [ebp - 0x38]
jmp 0x424c10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x38]
call fcn.00406608
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00407421
lea eax, [ebp - 0xe]
push ebx
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.00405a89
push 0x495d74
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 3
call fcn.004072bf
mov ecx, dword [ebp + 8]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.0040595a
lea ecx, [ebp - 0x64]
call fcn.00407421
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret