joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
cmp eax, 2
mov edi, 1
jl 0x40101c
mov eax, dword [esi + 4]
cmp byte [eax], 0x2d
je 0x401036
mov ecx, dword [esi]
push ecx
push 0x40903c
call fcn.00401c10
add esp, 8
push 1
call fcn.00401b00
add esp, 4
mov edx, dword [esi + 4]
movsx eax, byte [edx + 1]
add eax, 0xffffff9d
cmp eax, 0x10
ja case.0x40104d.103
xor ecx, ecx
mov cl, byte [eax + 0x401108]
jmp dword [ecx*4 + 0x4010f4]
mov edx, dword [esi + 8]
push edx
call fcn.00401ac0
add esp, 4
mov edi, eax
mov eax, dword [esi + 0xc]
push eax
call fcn.00401ac0
add esp, 4
push eax
push 0
push 0x8000
push edi
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov edi, eax
jmp 0x4010b3
mov ecx, dword [esi + 8]
push ecx
call fcn.00401ac0
add esp, 4
mov edi, eax
push edi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4010d1
push edi
push 0x409078
call fcn.00401c10
add esp, 8
xor edi, edi
test edi, edi
je 0x4010c4
push 0
call fcn.00401b00
add esp, 4
pop edi
pop esi
ret
push 2
call fcn.00401b00
add esp, 4
pop edi
pop esi
ret
push 0x63
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4010b3
call fcn.00401120
jmp 0x4010b3
call fcn.00401180
jmp 0x4010b3

Function at 0x401180
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push ebp
push esi
push edi
call fcn.00401480
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push 0x40c1c0
mov edi, eax
call fcn.004012a0
add esp, 4
mov ebx, eax
push 0x3e8
call fcn.00401c50
add esp, 4
call esi
push 0x40f1e0
mov esi, eax
call fcn.004012a0
sub esi, edi
xor edi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
fild qword [esp + 0x14]
add esp, 4
cmp eax, edi
fmul qword [0x4080e0]
fstp qword [esp + 0x10]
jle 0x40127d
mov esi, 0x40f1e4
mov ebp, eax
mov edx, dword [esi]
lea eax, [edi + edi*2]
shl eax, 3
cmp edx, dword [eax + 0x40c1c4]
je 0x40123d
lea eax, [edi + 1]
cmp eax, ebx
jge 0x401234
lea ecx, [eax + eax*2]
lea ecx, [ecx*8 + 0x40c1c4]
cmp edx, dword [ecx]
je 0x40121f
inc eax
add ecx, 0x18
cmp eax, ebx
jl 0x401213
cmp eax, ebx
jge 0x401234
fld qword [esi + 0xc]
mov edi, eax
lea eax, [eax + eax*2]
fsub qword [eax*8 + 0x40c1d0]
jmp 0x401246
fld qword [0x4080f0]
dec edi
jmp 0x40124c
fld qword [esi + 0xc]
fsub qword [eax + 0x40c1d0]
fmul qword [0x4080e8]
fdiv qword [esp + 0x10]
mov ecx, dword [esi + 4]
sub esp, 8
fmul qword [0x4080f8]
fstp qword [esp]
push ecx
push edx
mov edx, dword [esi - 4]
push edx
push 0x4090a4
call fcn.00401c10
add esp, 0x18
add esi, 0x18
inc edi
dec ebp
jne 0x4011f2
test ebx, ebx
jle 0x40128d
mov eax, dword [0x40bd78]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x1c]
cmp dword [edi], 0
jne 0x40158e
mov eax, dword [esi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [edi], eax
mov ebp, dword [esp + 0x18]
mov ecx, dword [esi]
mov eax, dword [edi]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
cmp ebx, 0xea
jne 0x4015dd
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esi]
add edx, 0x400
mov eax, edx
mov dword [esi], edx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [edi], eax
cmp dword [edi], 0
je 0x4015ec
cmp ebx, 0xea
jne 0x4015ff
jmp 0x401592
mov ecx, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
Function at 0x401610
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebp
push esi
lea edx, [esp + 0x10]
push edi
mov edi, dword [esp + 0x24]
xor esi, esi
push edx
push 0x20019
push esi
push 0x40913c
mov dword [eax], esi
push edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [ecx], esi
call ebx
mov ebp, eax
cmp ebp, esi
jne 0x4017a6
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x409174
push eax
mov dword [esp + 0x3c], 4
call esi
mov ebp, eax
test ebp, ebp
jne 0x4017aa
lea ecx, [esp + 0x24]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push ebp
push 0x409184
push ecx
call esi
test eax, eax
je 0x4016cc
lea edx, [esp + 0x10]
mov esi, 0x40918c
push edx
push 0x20019
push ebp
push 0x409198
push edi
call ebx
mov ebp, eax
test ebp, ebp
jne 0x4017aa
jmp 0x4016d9
mov eax, dword [esp + 0x28]
mov esi, 0x4091d4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
push 0
push edx
push 0
push esi
push eax
call ebx
mov ebp, eax
test ebp, ebp
jne 0x4017aa
mov ecx, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ecx
push eax
call edi
mov ebp, dword [esp + 0x2c]
test eax, eax
mov dword [ebp], eax
jne 0x401722
mov ebp, 8
jmp 0x4017a6
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
lea ecx, [eax*4 + 4]
push ecx
push 0x40
call edi
mov edx, dword [esp + 0x30]
test eax, eax
mov dword [edx], eax
jne 0x401745
mov ebp, 8
jmp 0x4017a6
mov ecx, dword [ebp]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push esi
push eax
call ebx
mov ebp, eax
test ebp, ebp
jne 0x4017aa
mov ecx, dword [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [ecx]
push esi
call ebx
mov edi, eax
test edi, edi
je 0x4017a6
push esi
call fcn.00401ac0
mov edx, dword [esp + 0x38]
add esp, 4
lea esi, [esi + edi + 1]
cmp eax, dword [edx]
ja 0x401796
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
mov dword [edx + eax*4], esi
push esi
call ebx
lea esi, [esi + eax + 1]
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x401778
test ebp, ebp
je 0x4017ca
mov eax, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [eax]
test eax, eax
je 0x4017bd
push eax
call esi
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
test eax, eax
je 0x4017ca
push eax
call esi
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4017db
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4017ec
cmp eax, dword [esp + 0x28]
je 0x4017ec
push eax
call esi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x401b40
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40bdc4]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x401b5f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40bdc0], 1
mov byte [0x40bdbc], bl
jne 0x401bb9
mov ecx, dword [0x41332c]
test ecx, ecx
je 0x401ba7
mov esi, dword [0x413328]
sub esi, 4
cmp esi, ecx
jb 0x401ba7
mov eax, dword [esi]
test eax, eax
je 0x401ba0
call eax
mov ecx, dword [0x41332c]
sub esi, 4
cmp esi, ecx
jae 0x401b92
push 0x40901c
push 0x409014
call fcn.00401bf0
add esp, 8
push 0x409024
push 0x409020
call fcn.00401bf0
add esp, 8
test ebx, ebx
jne 0x401be0
push ebp
mov dword [0x40bdc4], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x401ce0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408108
push 0x404098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40bd94], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40bd90], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40bd8c], ecx
shr eax, 0x10
mov dword [0x40bd88], eax
call fcn.00403f60
test eax, eax
jne 0x401d4a
push 0x1c
call fcn.00401e30
add esp, 4
mov dword [ebp - 4], 0
call fcn.00403d60
call fcn.00403d50
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x413324], eax
call fcn.00403710
mov dword [0x40bdd0], eax
test eax, eax
je 0x401d7d
mov eax, dword [0x413324]
test eax, eax
jne 0x401d87
push 0xffffffffffffffff
call fcn.00401b00
add esp, 4
call fcn.00403460
call fcn.00403370
call fcn.00401ad0
mov eax, dword [0x40bda4]
mov dword [0x40bda8], eax
push eax
mov eax, dword [0x40bd9c]
push eax
mov ecx, dword [0x40bd98]
push ecx
call section..text
add esp, 0xc
mov dword [ebp - 0x1c], eax
push eax
call fcn.00401b00
jmp 0x401de2
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401e30
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40bdd8], 2
je 0x401e3e
call fcn.00404170
mov eax, dword [esp + 4]
push eax
call fcn.004041b0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403710
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40bf08]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x403752
call edi
mov esi, eax
test esi, esi
je 0x40373c
mov eax, 1
jmp 0x40374d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40385f
mov eax, 2
mov dword [0x40bf08], eax
cmp eax, 1
jne 0x4037f2
test esi, esi
jne 0x40376b
call edi
mov esi, eax
test esi, esi
je 0x40385f
cmp word [esi], 0
mov eax, esi
je 0x403785
add eax, 2
cmp word [eax], 0
jne 0x403773
add eax, 2
cmp word [eax], 0
jne 0x403773
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4037e4
push edi
call fcn.004044d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4037e4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4037d6
push ebx
call fcn.00405790
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40385f
test ebx, ebx
jne 0x403803
call ebp
mov ebx, eax
test ebx, ebx
je 0x40385f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40381b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40380b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40380b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004044d0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40383d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4041b0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x409860
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4041d4
add eax, 8
inc ebp
cmp eax, 0x4098f0
jb 0x4041c5
cmp ecx, dword [ebp*8 + 0x409860]
jne 0x40437b
mov eax, dword [0x40bdd8]
cmp eax, 1
je 0x40433d
test eax, eax
jne 0x404200
cmp dword [0x4091f8], 1
je 0x40433d
cmp ecx, 0xfc
je 0x40437b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40423b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x404284
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4084a4
add ebx, ecx
push ebx
call fcn.004061f0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x408484
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x409864]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00406160
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x412200]
test eax, eax
je 0x40434e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x404358
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x409864]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x406370
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x412300]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40651d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x412200]
lea edi, [ecx*4 + 0x412200]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40651d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x4063de
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x4063ef
push 2
push ebp
push eax
call fcn.00406590
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40654e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x406499
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40644a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x406437
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40641a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40653f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x406495
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x406416
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40650e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4064e2
cmp eax, 5
jne 0x4064cb
mov dword [0x40bd80], eax
mov dword [0x40bd7c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00407540
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x406502
cmp byte [ebp], 0x1a
jne 0x406502
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40bd7c], 0x1c
jmp 0x406527
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40bd7c], 9
pop edi
pop esi
pop ebp
mov dword [0x40bd80], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x406495
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40657f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x406499
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x406499
Function at 0x401aa0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401adf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401adf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401adf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401adf
cmp dword [ecx + 0x74], 0xe
jbe 0x401adf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x405a24
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x405a5f

Function at 0x405c78
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
mov bh, 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.004059e4
lahf
mov al, byte [0x458db524]
test al, 0x50
call fcn.004059f4
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.004059a9
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x405cd2
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004059e4
int1
dec ebp
push cs
or dword [ebp - 0x17af3fbb], ecx
invalid

Function at 0x4060c0
Capabilities:
Inspect section memory permissions

Disassembly:
or byte [ebx + 0x104c78c], 0
add byte [ebx + 0x108c794], cl
add byte [eax], al
Function at 0x40611e
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4060bb
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4060d9
movzx eax, ax
lea eax, [eax + eax*4]
or byte [ebx + 0x104c78c], 0
add byte [ebx + 0x108c794], cl
add byte [eax], al
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x406137
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je fcn.0040611e
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x406127
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x406131
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x406113
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40609d
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x406184
dec eax
je 0x40617b
sub eax, 3
je 0x406172
mov dword [ebp - 4], 0x40
jmp 0x4061a1
mov dword [ebp - 4], 4
jmp 0x406187
mov dword [ebp - 4], 0x20
jmp 0x406187
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4061d3
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x406153
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004059e4
add al, 0x6f
shl dword [eax + 0x6a1475ff], cl
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x4061df
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d5a0
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, reloc.advapi32.dll_RegOpenKeyExA
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219