joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45dd30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x45dd47
cmp dword [ebp + 0x14], 0
jne 0x45dd4b
xor eax, eax
jmp 0x45ddad
push 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x45dd72
xor eax, eax
jmp 0x45ddad
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x45dd9e
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x45ddad
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x45ddc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
cmp dword [ebp + 8], 0
jne 0x45ddde
xor eax, eax
jmp 0x45de3a
lea eax, [ebp - 8]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x45ddfd
xor eax, eax
jmp 0x45de3a
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x45de2b
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x45de3a
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x45de40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x45de57
cmp dword [ebp + 0x14], 0
jne 0x45de5b
xor eax, eax
jmp 0x45debd
push 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x45de82
xor eax, eax
jmp 0x45debd
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 3
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x45deae
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x45debd
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x46059e
Capabilities:
Accept command line arguments

Disassembly:
push 0x60
push 0x48b1f8
call fcn.00463ffc
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x46075f
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
test eax, eax
jne 0x4605fa
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46075f
mov eax, dword [esi + 0x10]
mov dword [0x4963e4], eax
mov eax, dword [esi + 4]
mov dword [0x4963f0], eax
mov eax, dword [esi + 8]
mov dword [0x4963f4], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x4963e8], eax
xor ebx, ebx
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x4963e4], 2
je 0x46063b
or byte [0x4963e9], 0x80
mov eax, dword [0x4963f0]
shl eax, 8
add eax, dword [0x4963f4]
mov dword [0x4963ec], eax
call fcn.00460542
mov dword [ebp - 0x1c], eax
push ebx
call fcn.004640cb
pop ecx
test eax, eax
jne 0x460682
cmp dword [0x4963b8], 1
jne 0x46066f
call fcn.00465588
push 0x1c
call fcn.004653fc
push 0xff
call fcn.00463abd
pop ecx
pop ecx
mov dword [ebp - 4], 1
call fcn.00465c03
test eax, eax
jge 0x46069a
push 0x1b
call fcn.004604ef
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x497fdc], eax
call fcn.00465adb
mov dword [0x4963b0], eax
call fcn.00465a38
test eax, eax
jge 0x4606c0
push 8
call fcn.004604ef
pop ecx
call fcn.004657ea
test eax, eax
jge 0x4606d1
push 9
call fcn.004604ef
pop ecx
call fcn.00463b30
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x4606e4
push eax
call fcn.004604ef
pop ecx
call fcn.0046578b
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4606f8
movzx eax, word [ebp - 0x40]
jmp 0x4606fb
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push ebx
push 0x400000
call fcn.00410530
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x46071a
push esi
call fcn.00463c06
call fcn.00463c34
jmp 0x46074c
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x460764
mov eax, 0xff
call fcn.00464037
ret
Function at 0x463dce
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x463dff
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x463e06
cmp ebx, dword [ebp + 8]
jae 0x463e06
xor eax, eax
jmp 0x463ff6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x463e17
xor eax, eax
inc eax
jmp 0x463ff5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x463e2d
cmp ecx, edx
jae 0x463f72
cmp dword [eax + 4], 0
je 0x463e36
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x463e1e
cmp dword [ebp + 8], 0
je 0x463e58
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x463f72
cmp eax, esi
jae 0x463f72
mov eax, dword [0x496448]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x463e7d
cmp dword [esi*4 + 0x496450], edi
je 0x463f76
inc esi
cmp esi, eax
jl 0x463e6b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x463ff2
cmp dword [ebp - 8], 0x1000000
jne 0x463ff2
test byte [ebp - 0xc], 0xcc
je 0x463efb
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x463ff2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x463ff2
cmp word [eax + 0x18], 0x10b
jne 0x463ff2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x463ff2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x463efb
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x463efb
test byte [ecx + 0x27], 0x80
jne 0x463f72
push 1
push 0x496490
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x463e0f
mov ecx, dword [0x496448]
test ecx, ecx
mov edx, ecx
jle 0x463f2f
lea eax, [ecx*4 + 0x49644c]
cmp dword [eax], edi
je 0x463f2f
dec edx
sub eax, 4
test edx, edx
jg 0x463f23
test edx, edx
jne 0x463f60
push 0xf
pop ebx
cmp ecx, ebx
jg 0x463f3c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x463f54
lea eax, [edx*4 + 0x496450]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x463f42
cmp ecx, 0x10
jge 0x463f60
inc ecx
mov dword [0x496448], ecx
push 0
push 0x496490
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x463e0f
xor eax, eax
jmp 0x463ff5
test esi, esi
jle 0x463e0f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x496490
call ebx
test eax, eax
jne 0x463e0f
cmp dword [esi*4 + 0x496450], edi
je 0x463fcc
mov eax, dword [0x496448]
lea esi, [eax - 1]
test esi, esi
jl 0x463fba
cmp dword [esi*4 + 0x496450], edi
je 0x463fb6
dec esi
jns 0x463faa
test esi, esi
jge 0x463fca
cmp eax, 0x10
jge 0x463fc5
inc eax
mov dword [0x496448], eax
lea esi, [eax - 1]
jmp 0x463fcc
je 0x463fe4
xor ecx, ecx
test esi, esi
jl 0x463fe4
lea eax, [ecx*4 + 0x496450]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x463fd2
push 0
push 0x496490
call ebx
jmp 0x463e0f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4653fc
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ecx, dword [esi*8 + 0x490a18]
je 0x46541e
inc esi
cmp esi, 0x13
mov dword [ebp - 4], esi
jb 0x46540c
cmp esi, 0x13
je 0x46555a
mov eax, dword [0x4963b8]
cmp eax, 1
push ebx
je 0x465529
test eax, eax
jne 0x465447
cmp dword [0x4909a0], 1
je 0x465529
cmp ecx, 0xfc
je 0x465559
push edi
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, 0x496498
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x4964b2
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x4965b6], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x465495
push 5
pop ecx
mov esi, str._program_name_unknown_
mov edi, 0x4964b2
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46549a
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x4654cd
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4654ae
sub eax, edx
push 3
lea eax, [eax + 0x496477]
push 0x46fad0
push eax
call fcn.0045e560
add esp, 0xc
mov edx, 0x496498
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4654d5
mov eax, dword [ebp - 4]
mov eax, dword [eax*8 + 0x490a1c]
mov esi, 0x488d70
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4654f1
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4654fd
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.00467087
add esp, 0xc
pop edi
jmp 0x465559
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x465559
mov edx, dword [esi*8 + 0x490a1c]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x465541
push 0
sub ecx, esi
lea esi, [ebp - 8]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x465adb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4968c0]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x465b27
call esi
mov edi, eax
cmp edi, ebx
je 0x465b0d
mov dword [0x4968c0], 1
jmp 0x465b2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x465b22
push 2
pop eax
mov dword [0x4968c0], eax
jmp 0x465b27
mov eax, dword [0x4968c0]
cmp eax, 1
jne 0x465ba4
cmp edi, ebx
jne 0x465b38
call esi
mov edi, eax
cmp edi, ebx
je 0x465bad
cmp word [edi], bx
mov eax, edi
je 0x465b4d
inc eax
inc eax
cmp word [eax], bx
jne 0x465b3f
inc eax
inc eax
cmp word [eax], bx
jne 0x465b3f
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 8], ecx
je 0x465b9b
call fcn.004639f3
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x465b9b
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x465b98
push dword [ebp - 4]
call fcn.0045fe48
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x465bfc
cmp eax, 2
je 0x465bb1
cmp eax, ebx
je 0x465bb1
xor eax, eax
jmp 0x465bfe
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x465bad
cmp byte [esi], bl
je 0x465bce
inc eax
cmp byte [eax], bl
jne 0x465bc4
inc eax
cmp byte [eax], bl
jne 0x465bc4
sub eax, esi
inc eax
mov edi, eax
mov ecx, edi
call fcn.004639f3
cmp eax, ebx
je 0x465bf5
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46640b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x497e84]
mov eax, dword [0x4909d4]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], edi
jae 0x4665f1
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x497ea0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x424], ebx
je 0x4665f1
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0x46647c
xor eax, eax
jmp 0x466605
test al, 0x20
je 0x46648f
push 2
push 0
push 0
push ecx
call fcn.00467fdf
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x46654f
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0x4665cb
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x4664fe
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4664ec
inc dword [ebp - 0x420]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x424]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4664c8
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46657d
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0x466589
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0x4664b4
jmp 0x466589
push 0
lea ecx, [ebp - 0x418]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46657d
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0x466589
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x4665e9
cmp dword [ebp - 0x40c], eax
je 0x4665c5
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0x4665b7
mov dword [0x4963d8], 9
mov dword [0x4963dc], eax
jmp 0x466602
push dword [ebp - 0x40c]
call fcn.00467cf8
pop ecx
jmp 0x466602
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4665dd
cmp byte [edi], 0x1a
je 0x466475
mov dword [0x4963d8], 0x1c
jmp 0x4665fb
sub eax, dword [ebp - 0x420]
jmp 0x466605
mov dword [0x4963d8], 9
and dword [0x4963dc], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004686ac
leave
ret
Function at 0x467087
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4968d4], ebx
push esi
push edi
jne 0x467109
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x467144
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48bcc4
push edi
call esi
test eax, eax
mov dword [0x4968d4], eax
je 0x467144
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4968d8], eax
call esi
cmp dword [0x4963e4], 2
mov dword [0x4968dc], eax
jne 0x467109
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4968e4], eax
je 0x467109
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4968e0], eax
mov eax, dword [0x4968e0]
test eax, eax
je 0x46714e
call eax
test eax, eax
je 0x467135
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4968e4]
test eax, eax
je 0x467135
test byte [ebp - 8], 1
jne 0x46714e
cmp dword [0x4963f0], 4
jb 0x467148
or byte [ebp + 0x12], 0x20
jmp 0x46716d
xor eax, eax
jmp 0x46717d
or byte [ebp + 0x12], 4
jmp 0x46716d
mov eax, dword [0x4968d8]
test eax, eax
je 0x46716d
call eax
mov ebx, eax
test ebx, ebx
je 0x46716d
mov eax, dword [0x4968dc]
test eax, eax
je 0x46716d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4968d4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x467947
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.0045f430
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x467a43
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x4963e4], 2
jne 0x4679c8
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x4679c8
push str.SetThreadStackGuarantee
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4679c8
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x4679c8
cmp dword [ebp - 4], esi
jbe 0x4679c8
mov esi, dword [ebp - 4]
mov edx, dword [0x4963e4]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x4679f1
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x4679fd
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x467a0f
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x467a43
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x467a43
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x467a43
xor eax, eax
inc eax
jmp 0x467a45
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4686ac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4909d4]
jne 0x4686bd
test ecx, 0xffff0000
jne 0x4686bd
ret
jmp fcn.004686c2

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..idata
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x47b32435
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x38812c0a
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40334c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004050b0
test esi, esi
jne 0x403382
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004051a0
jmp 0x4033a0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403250
mov edi, eax
test esi, esi
je 0x4033a0
cmp dword [ebx], 0
je 0x4033a0
dec esi
jmp 0x403389
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403fa8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x496020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404040
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404020
xor eax, eax
push ebp
push 0x404019
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40405c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404020
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x496020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x496020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404e5c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49904c], 0
je 0x404ebd
cmp word [0x499220], 0xd7b2
jne 0x404e85
cmp dword [0x499228], 0
jbe 0x404e85
mov eax, 0x49921c
call dword [0x499238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404ee4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49602c], 0
jne 0x404ed9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405034
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x496034], 0
je 0x40505a
mov edx, esi
mov eax, ebx
call dword [0x496034]
jmp 0x405069
mov eax, 8
call fcn.00402f54
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x49904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404ffc
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc