joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426b98
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 + 0x445e90]
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 0x426bde
cmp word [ebx], dx
jne 0x426bde
or byte [eax + edi + 0x28], 4
jmp 0x426be3
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 0x426d46
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 0x426d26
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x426c24
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x426c5a
cmp eax, edx
jae 0x426c68
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 0x426bff
jmp 0x426d46
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 0x426d21
cmp dword [ebp - 0x18], 0
je 0x426d21
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x445e90]
test byte [eax + edi + 0x28], 0x48
je 0x426cf7
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 0x426cbb
mov word [esi], cx
jmp 0x426cf2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x445e90]
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 + 0x445e90]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x445e90]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x426d46
pop eax
cmp word [ebp - 4], ax
jne 0x426d07
cmp esi, ebx
jne 0x426d07
mov word [esi], ax
jmp 0x426d43
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004275d1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x426d46
push 0xd
pop eax
jmp 0x426d02
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x445e90]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x426d40
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x426d46
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 0x42a581
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x444080]
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 0x42a5cc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042a71c
test al, al
jne 0x42a5c6
sub edx, 2
cmp edx, edi
jne 0x42a5ac
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42a5ee
lea eax, [edi + 2]
cmp edx, eax
je 0x42a5ee
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042a4cd
add esp, 0x10
jmp 0x42a6e8
push esi
lea ecx, [ebp - 0x255]
call fcn.0042a71c
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 0x42a631
push dword [ebp - 0x25c]
jmp 0x42a5de
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 0x42a66e
cmp word [ebp - 0x226], 0
je 0x42a68f
cmp word [ebp - 0x226], ax
jne 0x42a66e
cmp word [ebp - 0x224], 0
je 0x42a68f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042a4cd
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42a6db
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42a648
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42a6c3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42a6e8
push 0x42a2fd
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004312a0
add esp, 0x10
jmp 0x42a6b8
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.004141fd
leave
ret

Function at 0x42affe
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x42b00f
pop esi
ret
push ebx
push edi
push esi
call fcn.0042afc7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004245ab
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42b037
push ebx
push esi
push edi
call fcn.004159f0
add esp, 0xc
push 0
call fcn.004241c7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42b407
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042b04c
Function at 0x42d9ae
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004230c5
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 0x42da1d
cmp esi, dword [ebp - 4]
je 0x42da18
cmp dword [ebp + 0xc], 0
je 0x42da18
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42d9f5
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0042d500
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42da1f
xor eax, eax
inc eax
jmp 0x42da1f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x42da84
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x444080]
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.004230c5
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.004230c5
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 0x42dafb
cmp word [ecx], dx
je 0x42dafb
mov eax, dword [0x43a914]
push edi
dec eax
push eax
push 0x43a800
call fcn.0042da23
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x42db6e
cmp word [eax], dx
je 0x42db6e
mov eax, dword [edi]
test eax, eax
je 0x42db1f
cmp word [eax], dx
je 0x42db1f
lea eax, [ebp - 0x10]
push eax
call fcn.0042d406
jmp 0x42db28
lea eax, [ebp - 0x10]
push eax
call fcn.0042d4a1
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x42db98
mov eax, dword [0x43a7fc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x43a4f0
call fcn.0042da23
add esp, 0xc
test al, al
je 0x42db98
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x42db63
cmp word [eax], di
je 0x42db63
lea eax, [ebp - 0x10]
push eax
call fcn.0042d406
pop ecx
jmp 0x42db9a
lea eax, [ebp - 0x10]
push eax
call fcn.0042d4a1
jmp 0x42db60
mov eax, dword [edi]
test eax, eax
je 0x42db85
cmp word [eax], dx
je 0x42db85
lea eax, [ebp - 0x10]
push eax
call fcn.0042d3bb
pop ecx
jmp 0x42db98
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 0x42dc63
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0042d8a8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42dc63
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x42dc63
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x42dc63
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42dbf0
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00424dce
test ebx, ebx
je 0x42dc5e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00424dce
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42dc63
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 0x42dc63
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00431a3a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x42dc65
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004141fd
leave
ret
Function at 0x432175
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.004320f1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4322e4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4322e4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x432299
jg 0x4321d1
test eax, eax
je 0x43228f
push 1
push 0x1000
call fcn.00425249
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4321f4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x432286
push 0x8000
push ebx
call fcn.004210e3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43221d
jg 0x432218
cmp ecx, 0x1000
jb 0x43221d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00423fab
add esp, 0x10
cmp eax, 0xffffffff
je 0x432262
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 0x432218
jl 0x432249
test ecx, ecx
jne 0x43220a
push dword [ebp - 0xc]
push ebx
call fcn.004210e3
push esi
call fcn.004241c7
add esp, 0xc
xor ebx, ebx
jmp 0x4322f2
cmp byte [edi + 0x24], 0
je 0x432279
cmp dword [edi + 0x20], 5
jne 0x432279
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x432284
mov ebx, dword [edi + 0x18]
jmp 0x432286
xor ebx, ebx
push esi
call fcn.004241c7
pop ecx
jmp 0x4322f2
test ecx, ecx
jg 0x43225b
jl 0x432299
test eax, eax
jae 0x43225b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004275d1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4322b9
cmp byte [edi + 0x1c], 0
je 0x43225b
jmp 0x4322ea
push ebx
call fcn.0042b9d8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43225b
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 0x4322f2
cmp byte [edi + 0x1c], 0
je 0x4322ef
mov ebx, dword [edi + 0x18]
jmp 0x4322f2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004275d1
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4333a0
Capabilities:
Parse pe header

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

Disassembly:
push 0xc
push 0x402750
call fcn.00402558
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x403364
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402038
cmp eax, esi
jne 0x40202b
xor esi, esi
inc esi
mov edi, esi
jmp 0x40203b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40200f
xor esi, esi
inc esi
cmp dword [0x403368], esi
jne 0x40204d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402087
cmp dword [0x403368], ebx
jne 0x402081
mov dword [0x403368], esi
push 0x4010cc
push 0x4010c0
call fcn.0040216c
pop ecx
pop ecx
test eax, eax
je 0x402087
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40215c
mov dword [0x403014], esi
cmp dword [0x403368], esi
jne 0x4020aa
push 0x4010bc
push 0x4010b4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x403368], 2
test edi, edi
jne 0x4020b7
xor eax, eax
mov ecx, 0x403364
xchg dword [ecx], eax
cmp dword [0x40336c], 0
je 0x4020e3
push 0x40336c
call fcn.004023b0
pop ecx
test eax, eax
je 0x4020e3
push ebx
push 2
push ebx
mov esi, dword [0x40336c]
mov ecx, esi
call dword [0x4040a0]
call esi
push dword [0x403020]
push dword [0x40301c]
push dword [0x403018]
call fcn.004018d0
add esp, 0xc
mov dword [0x403010], eax
cmp dword [0x403028], 0
jne 0x402141
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x403014], 0
jne 0x402155
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x403010]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00573000
jmp 0x401ff3

Function at 0x402294
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x402770
call fcn.00402558
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4022f4
cmp eax, 0xffffffff
je 0x4022f4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4022ed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4022ed
cmp edx, 0x10000000
jae 0x4022ed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4022ea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402360
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40239e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x402396
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4023a0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x402386
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1001bb2
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x73c
mov eax, dword [0x1003220]
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0
mov esi, 0x3f4
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1001ca5
and word [ebp - 8], 0
push edi
push 0x209
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
and word [ebp - 0x214], 0
push 0x45
pop ecx
xor eax, eax
lea edi, [ebp - 0x738]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x738]
push eax
mov dword [ebp - 0x738], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1001c41
push 0x45
pop ecx
lea edi, [ebp - 0x738]
rep stosd dword es:[edi], eax
cmp dword [ebp - 0x728], 2
pop edi
jne 0x1001c5a
lea ecx, [ebp - 0x624]
call fcn.01001880
mov esi, eax
jmp 0x1001ca5
lea eax, [ebp - 0x73c]
push eax
push 0x1001308
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test esi, esi
jne 0x1001ca5
push 0x412
lea eax, [ebp - 0x624]
push eax
push 1
push esi
push str.inetwiz
push dword [ebp - 0x73c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x73c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.01001dbe
leave
ret

Function at 0x1009c2e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pop esi
add esi, dword [edi + eax*4]
ret 4
pop ecx
lodsd eax, dword [esi]
inc ecx
cmp ecx, dword [edx + 0x18]
jmp 0x1009d08
mov eax, ebx
add eax, dword [ebx + 0x3c]
add edx, dword [eax + 0x78]
push 0xffffffffffffffff
add esi, dword [edx + 0x20]
jmp 0x1009b2d
add edi, dword [edx + 0x1c]
add esi, dword [edx + 0x24]
push ebx
lea esi, [esi + ecx*2]
movzx eax, word [esi]
jmp 0x100505e
push eax
movzx eax, byte [edi]
lea edi, [edi + 1]
sub dword [esp], eax
cmp byte [edi], 1
jmp 0x1009c17
pop eax
ja 0x1009d14
xor eax, 0xec9b631f
jmp 0x1009cac
mov edx, ebx
mov esi, ebx
jmp 0x1009b8b
sbb eax, dword [esp + 4]
jne 0x1009b2e
lea edi, [ebx]
lea esi, [ebx]
jmp 0x1009bc9
lea edi, [eax + ebx]
je 0x1009d54
push 0
pop eax
imul eax, eax, 0xf
jmp 0x1009bf0
ret
Function at 0x45174b
Capabilities:
Write file on windows

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

Function at 0x45227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x46621c
call fcn.00451350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0x46b458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00452097
test eax, eax
jne 0x4523c4
lea eax, [ebp - 0x20]
push eax
push dword [0x46b45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.004523dc
test eax, eax
jne 0x4523c4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
add eax, eax
pop edx
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.004513e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x4523c4
lea eax, [ebp - 0x20]
push eax
push dword [0x46b45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.004523dc
test eax, eax
jne 0x4523bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0x4523bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004513e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4523bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0x4523b2
cmp dword [ebp + 8], ebx
je 0x45ea08
push dword [0x46b460]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + esi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004513e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x4523b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.004521cb
push dword [0x46b460]
push edi
push dword [ebp - 0x18]
call fcn.00452436
push dword [ebp - 0x14]
call fcn.004513c0
pop ecx
push dword [ebp - 0x1c]
call fcn.004513c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00451f10
mov eax, dword [ebp - 0x18]
call fcn.00451390
ret 4
Function at 0x4523dc
Capabilities:
Query or enumerate registry value

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

Function at 0x4524ed
Capabilities:
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0x466b05
call fcn.00451350
mov esi, ecx
mov eax, dword [esi + 0x44]
xor edi, edi
mov ebx, 0x8007000e
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0x452519
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
cmp dword [ebp + 8], edi
je 0x45265b
cmp dword [ebp + 0xc], edi
je 0x45265b
push 1
call fcn.0045227c
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x45264a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 4], edi
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea eax, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x20], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004513e0
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x45259b
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.004521cb
mov ebx, eax
test ebx, ebx
jl 0x45259b
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00452436
mov ebx, eax
test ebx, ebx
jl 0x45259b
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
jl 0x452632
push 2
pop ebx
push dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004513e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x452654
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.004521cb
mov ebx, eax
test ebx, ebx
jl 0x452623
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
call fcn.00452436
mov ebx, eax
test ebx, ebx
jl 0x452623
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x452623
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x45f3a2
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x452632
push dword [ebp - 0x14]
call fcn.004513c0
pop ecx
cmp dword [ebp - 0x18], 0
je 0x452641
push dword [ebp - 0x18]
call fcn.004513c0
pop ecx
push dword [ebp - 0x1c]
call fcn.004513c0
pop ecx
mov eax, ebx
call fcn.00451390
ret 8
mov ebx, 0x8007000e
jmp 0x4525fe
mov ebx, 0x80070057
jmp 0x45264a
Function at 0x453a67
Capabilities:
Query or enumerate registry value

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