joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ef085
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 + 0x612d08]
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 0x4ef0cb
cmp word [ebx], dx
jne 0x4ef0cb
or byte [eax + edi + 0x28], 4
jmp 0x4ef0d0
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 0x4ef233
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 0x4ef213
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4ef111
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4ef147
cmp eax, edx
jae 0x4ef155
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 0x4ef0ec
jmp 0x4ef233
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 0x4ef20e
cmp dword [ebp - 0x18], 0
je 0x4ef20e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x612d08]
test byte [eax + edi + 0x28], 0x48
je 0x4ef1e4
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 0x4ef1a8
mov word [esi], cx
jmp 0x4ef1df
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x612d08]
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 + 0x612d08]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x612d08]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4ef233
pop eax
cmp word [ebp - 4], ax
jne 0x4ef1f4
cmp esi, ebx
jne 0x4ef1f4
mov word [esi], ax
jmp 0x4ef230
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004efabe
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4ef233
push 0xd
pop eax
jmp 0x4ef1ef
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x612d08]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4ef22d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4ef233
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 0x4f28af
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5e0f00]
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 0x4f28fa
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004f2a4a
test al, al
jne 0x4f28f4
sub edx, 2
cmp edx, edi
jne 0x4f28da
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4f291c
lea eax, [edi + 2]
cmp edx, eax
je 0x4f291c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004f27fb
add esp, 0x10
jmp 0x4f2a16
push esi
lea ecx, [ebp - 0x255]
call fcn.004f2a4a
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 0x4f295f
push dword [ebp - 0x25c]
jmp 0x4f290c
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 0x4f299c
cmp word [ebp - 0x226], 0
je 0x4f29bd
cmp word [ebp - 0x226], ax
jne 0x4f299c
cmp word [ebp - 0x224], 0
je 0x4f29bd
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004f27fb
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4f2a09
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4f2976
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4f29f1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4f2a16
push 0x4f255c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004e4800
add esp, 0x10
jmp 0x4f29e6
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.004d3b35
leave
ret
Function at 0x4f3549
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 0x4f35e6
push ebx
push esi
call fcn.004f3512
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.004f34a6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f3593
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4f35e5
push edi
push eax
call fcn.004ec197
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4f35b3
call fcn.004ea0fd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4f35e4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004f34a6
add esp, 0x20
test eax, eax
jne 0x4f35d2
push edi
call fcn.004ea0fd
jmp 0x4f35da
push ebx
call fcn.004ea0fd
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 0x4f35e9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4f35fa
pop esi
ret
push ebx
push edi
push esi
call fcn.004f3512
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004ec197
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4f3622
push ebx
push esi
push edi
call fcn.004d6030
add esp, 0xc
push 0
call fcn.004ea0fd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4f3d7c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f3897

Function at 0x4f6615
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004e9db5
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 0x4f6684
cmp esi, dword [ebp - 4]
je 0x4f667f
cmp dword [ebp + 0xc], 0
je 0x4f667f
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4f665c
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004f6167
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4f6686
xor eax, eax
inc eax
jmp 0x4f6686
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4f66eb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5e0f00]
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.004e9db5
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.004e9db5
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 0x4f6762
cmp word [ecx], dx
je 0x4f6762
mov eax, dword [0x5c3744]
push edi
dec eax
push eax
push 0x5c3630
call fcn.004f668a
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4f67d5
cmp word [eax], dx
je 0x4f67d5
mov eax, dword [edi]
test eax, eax
je 0x4f6786
cmp word [eax], dx
je 0x4f6786
lea eax, [ebp - 0x10]
push eax
call fcn.004f606d
jmp 0x4f678f
lea eax, [ebp - 0x10]
push eax
call fcn.004f6108
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4f67ff
mov eax, dword [0x5c362c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5c3320
call fcn.004f668a
add esp, 0xc
test al, al
je 0x4f67ff
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4f67ca
cmp word [eax], di
je 0x4f67ca
lea eax, [ebp - 0x10]
push eax
call fcn.004f606d
pop ecx
jmp 0x4f6801
lea eax, [ebp - 0x10]
push eax
call fcn.004f6108
jmp 0x4f67c7
mov eax, dword [edi]
test eax, eax
je 0x4f67ec
cmp word [eax], dx
je 0x4f67ec
lea eax, [ebp - 0x10]
push eax
call fcn.004f6022
pop ecx
jmp 0x4f67ff
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 0x4f68ca
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004f650f
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4f68ca
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4f68ca
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4f68ca
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4f6857
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004ea7ae
test ebx, ebx
je 0x4f68c5
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004ea7ae
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4f68ca
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 0x4f68ca
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004fc4a5
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4f68cc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3b35
leave
ret
Function at 0x4fc7d5
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.004fc751
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4fc944
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4fc944
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4fc8f9
jg 0x4fc831
test eax, eax
je 0x4fc8ef
push 1
push 0x1000
call fcn.004ea0a0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4fc854
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4fc8e6
push 0x8000
push ebx
call fcn.004e41d3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4fc87d
jg 0x4fc878
cmp ecx, 0x1000
jb 0x4fc87d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004ebbfc
add esp, 0x10
cmp eax, 0xffffffff
je 0x4fc8c2
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 0x4fc878
jl 0x4fc8a9
test ecx, ecx
jne 0x4fc86a
push dword [ebp - 0xc]
push ebx
call fcn.004e41d3
push esi
call fcn.004ea0fd
add esp, 0xc
xor ebx, ebx
jmp 0x4fc952
cmp byte [edi + 0x24], 0
je 0x4fc8d9
cmp dword [edi + 0x20], 5
jne 0x4fc8d9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4fc8e4
mov ebx, dword [edi + 0x18]
jmp 0x4fc8e6
xor ebx, ebx
push esi
call fcn.004ea0fd
pop ecx
jmp 0x4fc952
test ecx, ecx
jg 0x4fc8bb
jl 0x4fc8f9
test eax, eax
jae 0x4fc8bb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004efabe
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4fc919
cmp byte [edi + 0x1c], 0
je 0x4fc8bb
jmp 0x4fc94a
push ebx
call fcn.004f084c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4fc8bb
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 0x4fc952
cmp byte [edi + 0x1c], 0
je 0x4fc94f
mov ebx, dword [edi + 0x18]
jmp 0x4fc952
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004efabe
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4fd300
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4fd32d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4fd32d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401198
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 4
push 0x40f244
call fcn.00403434
pop ecx
pop ecx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401282
push ebx
push esi
push edi
mov ebx, str.uIgk
push eax
push ebx
call fcn.00403464
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
lea eax, [ebp - 0x110]
push 0x104
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x401276
lea eax, [ebp - 0x110]
push eax
call fcn.0040c438
xor edi, edi
pop ecx
cmp dword [ebp - 0xc], edi
jle 0x40126e
push edi
push ebx
call fcn.00403434
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00403b7d
add esp, 0x10
test eax, eax
je 0x401268
push 0x40fb6f
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401268
push 2
push 0x40fc6f
call fcn.00403434
pop ecx
pop ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401261
lea ecx, [ebp - 0x110]
push ecx
push dword [ebp - 4]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x40120f
inc dword [ebp - 8]
jmp 0x4011df
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401284
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
lea eax, [ebp + 0xc]
push esi
and dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
mov esi, 0x400
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4012b8
xor eax, eax
jmp 0x4013a4
push ebx
push edi
mov edi, str.uIgk
push 0
push edi
call fcn.00403464
pop ecx
mov dword [ebp + 8], eax
pop ecx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0xc], esi
push eax
mov dword [ebp - 8], esi
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x401397
cmp dword [ebp - 0x10], 1
je 0x40130f
and byte [ebp - 0x814], al
lea eax, [ebp - 0x414]
push eax
call fcn.0040c438
lea eax, [ebp - 0x814]
push eax
call fcn.0040c438
cmp dword [ebp + 8], 0
pop ecx
pop ecx
jle 0x40138f
push ebx
push edi
call fcn.00403434
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00403b7d
add esp, 0x10
test eax, eax
jne 0x401379
push dword [ebp - 0x14]
lea eax, [ebp - 0x814]
push eax
call fcn.00403b7d
pop ecx
test eax, eax
pop ecx
jne 0x401379
lea eax, [ebp - 0x414]
push str.____
push eax
call fcn.004072d0
pop ecx
test eax, eax
pop ecx
jne 0x401389
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x40132f
inc dword [ebp - 4]
jmp 0x4012cc
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop ebx
pop esi
leave
ret 8
Function at 0x4058ed
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push esi
lea ecx, [ebp - 0x18]
call fcn.0040174b
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040174e
mov esi, eax
test esi, esi
je 0x4059b1
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call fcn.0040752b
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004073d0
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004073d0
and byte [ebp - 0x21b], 0
lea eax, [ebp - 0x21f]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004073d0
lea eax, [ebp - 0x11c]
push 0x40f1dc
push eax
call fcn.004073d0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call fcn.004071e0
mov esi, eax
add esp, 0x40
test esi, esi
lea ecx, [ebp - 0x18]
jne 0x4059b5
call fcn.00401808
xor eax, eax
jmp 0x405a09
call fcn.00401808
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00403cbb
push esi
call fcn.0040785b
add esp, 0x10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004046d7
pop ecx
test eax, eax
pop ecx
je 0x405a07
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x11c]
push eax
call fcn.00403dfa
pop ecx
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x405ee4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 1
push str.UYMi
call fcn.00403434
pop ecx
pop ecx
push eax
push 0x40f244
push closesocket
call fcn.004044e4
lea eax, [ebp - 0x10c]
push eax
call fcn.00405ca4
movsx eax, byte [ebp - 0x10c]
mov bl, byte [ebp - 0x10a]
push eax
call fcn.0040773e
add esp, 0x1c
and dword [ebp - 8], 0
mov byte [ebp - 1], al
mov al, byte [ebp - 8]
add al, 0x61
cmp al, byte [ebp - 1]
je 0x405f8e
and byte [ebp - 0x10a], 0
mov byte [ebp - 0x10c], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
mov byte [ebp - 0x10a], bl
jne 0x405f8e
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x405e8c
push eax
call fcn.00403e11
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x405f48
xor eax, eax
pop ebx
leave
ret 4
Function at 0x406f66
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push edi
push 0x4015ff
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x4060cd
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x40684b
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x405e44
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406e45
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406a3b
push edi
push edi
call esi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push edi
push ebx
push 0x4069ee
push edi
push edi
call esi
inc ebx
cmp ebx, 0x1a
jl 0x406fd1
call fcn.00406dbf
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407056
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
lea eax, [ebp - 0x1a0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.004053e8
test eax, eax
je 0x4070cb
call fcn.0040686a
cmp byte [str.sk_], 0
je 0x407094
push str.sk_
call fcn.004058ed
test eax, eax
pop ecx
jne 0x4070cb
cmp dword [0x491ea0], 0
je 0x4070bd
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x491984
push eax
mov dword [ebp - 0xc], 0x407037
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
call fcn.00404b20
test eax, eax
je 0x4070cb
call fcn.00406f66
xor eax, eax
leave
ret 0x10
Function at 0x10001ff8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov eax, esp
mov dword [eax + 4], 0x20c
mov dword [eax], 0x8ba9e8
mov eax, dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
call eax
sub esp, 8
lea ecx, [esp + 0x88]
mov edx, esp
mov dword [edx + 8], 0x509
mov dword [edx + 4], 0x1aa43e
mov dword [edx], 0x7f110c
mov edx, dword [sym.imp.USER32.dll_GetUpdateRgn]
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ecx
call edx
sub esp, 0xc
mov byte [esp + 0x97], 1
mov ecx, esp
lea edx, [esp + 0x97]
mov dword [ecx], edx
mov dword [ecx + 0x18], 0x84f
mov dword [ecx + 0x14], 0xd7d
mov dword [ecx + 0x10], 0x1e8
mov dword [ecx + 0xc], 0xcae
mov dword [ecx + 8], 0xf5
mov dword [ecx + 4], 0x709
mov ecx, dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov dword [esp + 0x7c], eax
call ecx
sub esp, 0x1c
xor ecx, ecx
lea edx, [esp + 0x98]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], ecx
jmp 0x1000215c

Function at 0x1019a73c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101a5c98]
jne 0x1019a746
repz ret
jmp fcn.1019c1ab
Function at 0x1019d2ff
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1019a7bd
and dword [ebp - 4], 0
cmp dword [0x101a73b8], 0
mov ebx, eax
jne 0x1019d3b0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1019d461
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1019d461
push eax
call fcn.1019a74b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101a73b8], eax
call esi
push eax
call fcn.1019a74b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101a73bc], eax
call esi
push eax
call fcn.1019a74b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101a73c0], eax
call esi
push eax
call fcn.1019a74b
pop ecx
mov dword [0x101a73c8], eax
test eax, eax
je 0x1019d3b0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1019a74b
pop ecx
mov dword [0x101a73c4], eax
mov eax, dword [0x101a73c4]
cmp eax, ebx
je 0x1019d408
cmp dword [0x101a73c8], ebx
je 0x1019d408
push eax
call fcn.1019a7c6
push dword [0x101a73c8]
mov esi, eax
call fcn.1019a7c6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1019d408
test edi, edi
je 0x1019d408
call esi
test eax, eax
je 0x1019d3ff
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1019d3ff
test byte [ebp - 0xc], 1
jne 0x1019d408
or dword [ebp + 0x10], 0x200000
jmp 0x1019d441
mov eax, dword [0x101a73bc]
cmp eax, ebx
je 0x1019d441
push eax
call fcn.1019a7c6
pop ecx
test eax, eax
je 0x1019d441
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1019d441
mov eax, dword [0x101a73c0]
cmp eax, ebx
je 0x1019d441
push eax
call fcn.1019a7c6
pop ecx
test eax, eax
je 0x1019d441
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101a73b8]
call fcn.1019a7c6
pop ecx
test eax, eax
je 0x1019d461
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1019d463
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret