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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x21c
mov dword [esp + 0x18], edx
mov esi, ecx
mov eax, dword [esi + 4]
lea ebp, [esp + 0x1c]
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 0xc], pe_nt_image_headers32
mov dword [esp + 4], 0x1001
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
call fcn.00425234
mov word [esp + eax + 0x1c], 0x5f
mov edi, dword [esi + 4]
mov dword [esp], ebp
call fcn.00425234
lea ecx, [esp + eax + 0x1c]
mov edx, pe_nt_image_headers32
sub edx, eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], edi
mov dword [esp + 4], 0x1002
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
call fcn.00425234
mov word [esp + eax + 0x1c], 0x2e
mov edi, dword [esi]
mov dword [esp], ebp
call fcn.00425234
lea eax, [esp + eax + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 8], 0xa
call fcn.0042f3e8
mov edi, dword [esi + 0x24]
test edi, edi
je 0x42bfe0
mov dword [esp], edi
call fcn.00425234
mov ebx, eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00425234
mov ecx, ebp
mov ebp, eax
mov dword [esp], ecx
call fcn.00425234
add ebp, ebx
lea eax, [eax + ebp + 3]
lea ebp, [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004225cc
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
jne 0x42c035
jmp 0x42c07d
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00425234
mov ebx, eax
mov edi, ebp
mov dword [esp], ebp
call fcn.00425234
mov ebp, eax
lea eax, [ebx + ebp + 3]
mov dword [esp], eax
call fcn.004225b4
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
je 0x42c07d
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00425234
lea eax, [ebp + eax + 3]
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.004250cf
mov ebp, edi
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004250e8
mov edi, dword [esi + 0x24]
mov dword [esp], edi
call fcn.00425234
mov word [edi + eax], 0x3d
mov eax, dword [esi + 0x24]
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.004250e8
mov esi, dword [esi + 0x24]
mov dword [esp], esi
call fcn.00425234
mov word [esi + eax], 0xa
mov eax, 1
jmp 0x42c07f
xor eax, eax
add esp, 0x21c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42dad8
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
push 0
push dword [edi + 4]
push 0xe
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.004225b4
add esp, 0x10
mov dword [edi + 4], eax
push esi
push eax
push 0xe
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
push 0
push dword [edi]
push 0xf
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.004225b4
add esp, 0x10
mov dword [edi], eax
test edi, edi
je 0x42db4b
push esi
push eax
push 0xf
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
jmp 0x42db5a
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
xor ecx, ecx
and ecx, ebx
mov dword [esp + 8], ecx
push 0
push dword [edi + 8]
push 0x10
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.004225b4
add esp, 0x10
mov dword [edi + 8], eax
push esi
push eax
push 0x10
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
push 0
push dword [edi + 0xc]
push 0x50
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.004225b4
add esp, 0x10
mov dword [edi + 0xc], eax
push esi
push eax
push 0x50
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
and ecx, ebx
mov ebx, ebp
mov ebp, ecx
push 0
push dword [edi + 0x10]
push 0x51
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.004225b4
add esp, 0x10
mov dword [edi + 0x10], eax
push esi
push eax
push 0x51
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
and ebx, ebp
and ebx, dword [esp + 8]
sub esp, 0xc
push 4
call fcn.004225b4
add esp, 0x10
mov esi, eax
test esi, esi
je 0x42dc44
push 4
push esi
push 0x11
push dword [esp + 0x2c]
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x42dc53
push esi
call fcn.0042ec6c
add esp, 0x10
mov word [edi + 0x14], ax
sub esp, 0xc
push esi
call fcn.004225c4
add esp, 0x10
mov eax, 1
jmp 0x42dc5e
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
jmp 0x42dc5c
push esi
call fcn.004225c4
add esp, 0x10
xor eax, eax
and ebx, eax
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x431380
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [esp + 0x4c]
call sub.KERNEL32.DLL_CreateFileA
add esp, 4
mov edi, eax
test edi, edi
je 0x431446
sub esp, 0xc
lea eax, [esp + 0x14]
push eax
call sub.KERNEL32.DLL_GetLocalTime
add esp, 0xc
movzx eax, word [esp + 0xa]
mov dword [esp + 0x18], eax
movzx ecx, word [esp + 0xe]
movzx edx, word [esp + 8]
movzx ebp, word [esp + 0x10]
movzx eax, word [esp + 0x12]
movzx esi, word [esp + 0x14]
movzx ebx, word [esp + 0x16]
sub esp, 0xc
push ebx
push esi
push eax
push ebp
push edx
push ecx
push dword [esp + 0x3c]
push str._02d__02d__04d__02d:_02d:_02d._03d
push 0x43fe4c
call sub.USER32.DLL_wsprintfA
add esp, 0x24
push 0x43fe4c
call fcn.00425234
add esp, 4
push 0
lea ebx, [esp + 0x18]
push ebx
push eax
push 0x43fe4c
push edi
call sub.KERNEL32.DLL_WriteFile
mov esi, dword [esp + 0x40]
push esi
call fcn.00425234
add esp, 4
push 0
push ebx
push eax
push esi
push edi
call sub.KERNEL32.DLL_WriteFile
push edi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x431478
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x90
mov edi, dword [esp + 0xa0]
mov eax, dword [0x43fe6c]
test eax, eax
mov ecx, dword [0x43fe68]
jne 0x43153d
test ecx, ecx
jne 0x43153d
cmp dword [0x43c8cc], 0
je 0x431573
sub esp, 4
lea esi, [esp + 0x14]
push 0x80
push esi
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
sub esp, 4
push 0x5c
push esi
call fcn.00431200
add esp, 0x10
test eax, eax
jne 0x4314e8
sub esp, 8
push 0x3a
push esi
call fcn.00431200
add esp, 0x10
test eax, eax
je 0x4314eb
inc eax
mov esi, eax
mov dword [esp + 0xc], 0
call sub.KERNEL32.DLL_GetVersion
mov ecx, 0x12010
test eax, eax
jns 0x43152e
call sub.KERNEL32.DLL_GetCurrentThreadId
sub esp, 4
lea ecx, [esp + 0x10]
push ecx
push 0x431608
push eax
call sub.USER32.DLL_EnumThreadWindows
add esp, 4
cmp dword [esp + 0xc], 0
mov eax, 0x11010
mov ecx, 0x12010
cmove ecx, eax
push ecx
push esi
push edi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4315c0
cmp ecx, 0xffffffff
je 0x4315c0
test ecx, ecx
je 0x431554
sub esp, 0xc
push edi
call ecx
add esp, 0x10
mov eax, dword [0x43fe6c]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x4315c0
cmp byte [eax], 0
je 0x4315c0
sub esp, 8
push edi
push eax
call fcn.00431380
add esp, 0xa0
jmp 0x4315c6
sub esp, 0xc
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
add esp, 0xc
mov esi, eax
sub esp, 0xc
lea ebx, [esp + 0x1c]
push 0
push ebx
push 2
push 0x43c724
push esi
call sub.KERNEL32.DLL_WriteFile
push edi
call fcn.00425234
add esp, 4
push 0
push ebx
push eax
push edi
push esi
call sub.KERNEL32.DLL_WriteFile
push 0
push ebx
push 2
push 0x43c724
push esi
call sub.KERNEL32.DLL_WriteFile
add esp, 0xc
add esp, 0x90
pop esi
pop edi
pop ebx
ret
Function at 0x432448
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x447e90]
test eax, eax
je 0x43247d
mov ecx, dword [eax]
test ecx, ecx
je 0x4324e0
add eax, 4
xor edi, edi
nop
cmp byte [ecx], 1
sbb edi, 0
inc edi
mov ecx, dword [eax]
add eax, 4
test ecx, ecx
jne 0x432468
jmp 0x43250c
mov esi, dword [0x447ec8]
test esi, esi
jne 0x4324aa
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov esi, eax
mov dword [0x447ec8], esi
test esi, esi
jne 0x4324aa
mov dword [esp], str.GetEnvironmentStrings_failed
call fcn.004315e8
mov esi, dword [0x447ec8]
mov dword [esp], esi
call fcn.00425234
test eax, eax
je 0x4324e4
xor ebx, ebx
xor edi, edi
mov ebp, esi
nop word cs:[eax + eax]
lea ebx, [eax + ebx + 1]
inc edi
lea ebp, [ebp + eax + 1]
mov dword [esp], ebp
call fcn.00425234
test eax, eax
jne 0x4324c8
inc ebx
jmp 0x4324eb
xor edi, edi
jmp 0x43250c
mov ebx, 1
xor edi, edi
mov dword [esp], ebx
call fcn.004225b4
mov dword [0x447e8c], eax
test eax, eax
je 0x432565
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00424f04
lea eax, [edi + 4]
mov dword [0x447e94], eax
add edi, 5
mov dword [esp], edi
mov dword [esp + 4], 4
call fcn.00422598
mov esi, eax
test esi, esi
je 0x432565
mov edi, dword [0x447e90]
test edi, edi
je 0x432569
mov edx, dword [edi]
test edx, edx
je 0x4325a2
lea eax, [edi + 4]
xor ecx, ecx
nop word [eax + eax]
cmp byte [edx], 0
je 0x432558
mov edx, dword [eax - 4]
mov dword [esi + ecx*4], edx
jmp 0x432559
dec ecx
inc ecx
mov edx, dword [eax]
add eax, 4
test edx, edx
jne 0x432548
jmp 0x43259e
xor eax, eax
jmp 0x4325b5
mov ebx, dword [0x447e8c]
mov dword [esp], ebx
call fcn.00425234
test eax, eax
je 0x4325aa
mov ebp, esi
nop word cs:[eax + eax]
mov dword [ebp], ebx
lea ebx, [ebx + eax + 1]
mov dword [esp], ebx
call fcn.00425234
add ebp, 4
test eax, eax
jne 0x432588
test edi, edi
je 0x4325aa
mov dword [esp], edi
call fcn.004225c4
mov dword [0x447e90], esi
mov eax, 1
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x432c80
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov dword [esp + 4], 1
mov dword [esp + 8], esi
cmp ebx, 1
jne 0x432ce1
mov eax, dword [0x447f0c]
lea ecx, [eax + 1]
mov dword [0x447f0c], ecx
test eax, eax
jne 0x432ce1
call sub.KERNEL32.DLL_GetEnvironmentStringsW
mov dword [0x447ecc], eax
sub esp, 0xc
push dword [esi + 0x44]
call fcn.00426404
add esp, 8
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00432a58
add esp, 0x10
push ebp
push ebx
push edi
push dword [esi + 0x18]
call fcn.004332b0
mov esi, eax
test ebx, ebx
jne 0x432d34
dec dword [0x447f0c]
jne 0x432d34
sub esp, 0xc
push edi
call fcn.00431838
add esp, 8
lea eax, [esp + 0xc]
push 1
push eax
call fcn.00432a58
add esp, 0x10
mov eax, dword [0x447ecc]
test eax, eax
je 0x432d34
sub esp, 0xc
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsW
add esp, 0xc
mov dword [0x447ecc], 0
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x433114
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
push esi
sub esp, 0x64
mov esi, dword [esp + 0x70]
mov dword [esp], 0x447f1c
call sub.KERNEL32.DLL_EnterCriticalSection
sub esp, 4
mov eax, dword [0x44b3cc]
cmp eax, 0x232
jl 0x43317e
mov eax, dword [esp + 0x74]
mov byte [esp + 0x24], 0
mov dword [esp + 0x20], 0x20726f72
mov dword [esp + 0x1c], 0x72652065
mov dword [esp + 0x18], 0x726f6870
mov dword [esp + 0x14], 0x616d6553
mov dword [esp + 4], eax
lea edi, [esp + 0x14]
mov dword [esp], edi
call fcn.004250e8
mov dword [esp], edi
call fcn.004315e8
mov eax, dword [0x44b3cc]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x447f1c]
mov dword [esp], eax
call sub.KERNEL32.DLL_InitializeCriticalSection
sub esp, 4
mov eax, dword [0x44b3cc]
lea ecx, [eax + 1]
mov dword [0x44b3cc], ecx
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x447f1c]
mov dword [esi], eax
mov dword [esp], 0x447f1c
call sub.KERNEL32.DLL_LeaveCriticalSection
add esp, 0x60
pop esi
pop edi
ret

Function at 0x4331c4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
sub esp, 0x58
mov eax, dword [esp + 0x60]
mov byte [esp + 0x18], 0
mov dword [esp + 0x14], 0x20726f72
mov dword [esp + 0x10], 0x72652065
mov dword [esp + 0xc], 0x726f6870
mov dword [esp + 8], 0x616d6553
mov dword [esp + 4], eax
lea esi, [esp + 8]
mov dword [esp], esi
call fcn.004250e8
mov dword [esp], esi
call fcn.004315e8
add esp, 0x58
pop esi
ret
Function at 0x105fc058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.105fc1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x105fc07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105fc06a
add dl, dl
jne 0x105fc089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105fc0dc
xor eax, eax
add dl, dl
jne 0x105fc096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105fc17d
add dl, dl
jne 0x105fc0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105fc0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105fc0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105fc0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105fc0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x105fc075
mov eax, 1
add dl, dl
jne 0x105fc0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105fc0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105fc0e1
sub eax, ebx
mov ebx, 1
jne 0x105fc128
mov ecx, 1
add dl, dl
jne 0x105fc10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105fc119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105fc105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105fc075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x105fc13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105fc14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105fc136
cmp eax, 0x7d00
jae 0x105fc16d
cmp eax, 0x500
jb 0x105fc168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105fc075
cmp eax, 0x7f
ja 0x105fc170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105fc075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x105fc19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x105fc075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
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, 0x40f967
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.0040c3e8
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, 0x40f967
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.0040c3e8
lea eax, [ebp - 0x814]
push eax
call fcn.0040c3e8
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 0x40e034
push eax
call fcn.00407280
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 0x40a935
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411488
cmp edx, dword [eax]
je 0x40a957
add eax, 8
inc ecx
cmp eax, 0x411518
jl 0x40a948
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411488]
jne 0x40aa85
mov eax, dword [0x491ec0]
cmp eax, 1
je 0x40aa5f
test eax, eax
jne 0x40a988
cmp dword [0x4110b4], 1
je 0x40aa5f
cmp edx, 0xfc
je 0x40aa85
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a9bf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407370
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407460
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40aa02
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407460
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d5b0
push edi
call fcn.0040abe0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407370
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407380
lea eax, [ebp - 0xa0]
push 0x40d590
push eax
call fcn.00407380
push dword [esi + 0x41148c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407380
push pe_overlay
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040bcb8
add esp, 0x2c
pop edi
jmp 0x40aa85
lea eax, [ebp + 8]
lea esi, [esi + 0x41148c]
push 0
push eax
push dword [esi]
call fcn.00407460
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x404d30
Capabilities:
Get disk information

Disassembly:
sub esp, 0x83c
mov eax, dword [esp + 0x840]
mov ecx, dword [eax]
push ebx
mov ebx, dword [0x43d768]
push ebp
mov ebp, dword [0x43d76c]
push esi
mov esi, dword [eax + 4]
push edi
xor edi, edi
lea eax, [esp + 0x10]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x3c], 0x9e3779b9
call fcn.00404d00
mov eax, dword [0x43d770]
mov edx, dword [0x43d774]
add dword [esp + 0x10], 0x23f
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x30], 0x20
jmp 0x404d96
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x20], 2
add dword [esp + 0x20], 3
mov eax, dword [0x6fd7f4]
shl ecx, 4
add ecx, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
cmp eax, 0xfa9
jne 0x404dc6
mov dword [0x6fd7f0], 0xedeb2e40
jmp 0x404dd3
cmp eax, 0x3eb
jne 0x404dd3
mov dword [0x6fa6f8], edi
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
shr eax, 5
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x18]
mov dword [0x6fd7ec], 0xf4ea3dee
call fcn.00404d10
mov eax, dword [esp + 0x24]
xor dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
xor dword [esp + 0x18], eax
cmp dword [0x6fd7f4], 0x213
jne 0x404e67
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x34]
push eax
push edi
push edi
push edi
mov dword [esp + 0x44], edi
call dword [sym.imp.KERNEL32.dll_GetWriteWatch]
lea ecx, [esp + 0x4c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
lea edx, [esp + 0x44]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
sub esi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
mov eax, esi
mov dword [esp + 0x2c], esi
call fcn.00404cf0
add dword [esp + 0x14], ebx
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x10]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
nop
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, esi
shr eax, 5
add eax, ebp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
xor dword [esp + 0x14], eax
cmp dword [0x6fd7f4], 0x121
jne 0x404ec7
push edi
push edi
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
mov ecx, dword [esp + 0x14]
xor ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
mov dword [esp + 0x14], ecx
call fcn.00404d20
mov eax, dword [esp + 0x3c]
sub dword [esp + 0x10], eax
sub dword [esp + 0x30], 1
jne 0x404d92
mov eax, dword [esp + 0x850]
mov edx, dword [esp + 0x28]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x83c
ret 4
Function at 0x408e0d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c208]
jne 0x408e17
repz ret
jmp fcn.00410c2c

Function at 0x414821
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.0040e2d8
and dword [ebp - 4], 0
cmp dword [0x43fa30], 0
mov ebx, eax
jne 0x4148d2
push 0x402d70
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x414983
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402d64
push edi
call esi
test eax, eax
je 0x414983
push eax
call fcn.0040e266
mov dword [esp], 0x402d54
push edi
mov dword [0x43fa30], eax
call esi
push eax
call fcn.0040e266
mov dword [esp], 0x402d40
push edi
mov dword [0x43fa34], eax
call esi
push eax
call fcn.0040e266
mov dword [esp], 0x402d24
push edi
mov dword [0x43fa38], eax
call esi
push eax
call fcn.0040e266
pop ecx
mov dword [0x43fa40], eax
test eax, eax
je 0x4148d2
push 0x402d0c
push edi
call esi
push eax
call fcn.0040e266
pop ecx
mov dword [0x43fa3c], eax
mov eax, dword [0x43fa3c]
cmp eax, ebx
je 0x41492a
cmp dword [0x43fa40], ebx
je 0x41492a
push eax
call fcn.0040e2e1
push dword [0x43fa40]
mov esi, eax
call fcn.0040e2e1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41492a
test edi, edi
je 0x41492a
call esi
test eax, eax
je 0x414921
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x414921
test byte [ebp - 0xc], 1
jne 0x41492a
or dword [ebp + 0x10], 0x200000
jmp 0x414963
mov eax, dword [0x43fa34]
cmp eax, ebx
je 0x414963
push eax
call fcn.0040e2e1
pop ecx
test eax, eax
je 0x414963
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x414963
mov eax, dword [0x43fa38]
cmp eax, ebx
je 0x414963
push eax
call fcn.0040e2e1
pop ecx
test eax, eax
je 0x414963
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43fa30]
call fcn.0040e2e1
pop ecx
test eax, eax
je 0x414983
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x414985
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret