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

Disassembly:
mov eax, dword [0x414cb4]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40565f
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 [0x414cb0], 1
mov byte [0x414cac], bl
jne 0x4056b9
mov ecx, dword [0x416810]
test ecx, ecx
je 0x4056a7
mov esi, dword [0x41680c]
sub esi, 4
cmp esi, ecx
jb 0x4056a7
mov eax, dword [esi]
test eax, eax
je 0x4056a0
call eax
mov ecx, dword [0x416810]
sub esi, 4
cmp esi, ecx
jae 0x405692
push 0x41101c
push 0x411014
call fcn.004056f0
add esp, 8
push 0x411024
push 0x411020
call fcn.004056f0
add esp, 8
test ebx, ebx
jne 0x4056e0
push ebp
mov dword [0x414cb4], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x406f00
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10c
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x406f80
lea ecx, [esp + 4]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x406f80
mov eax, dword [esp + 4]
cmp al, 0x5c
je 0x406f35
cmp al, 0x2f
jne 0x406f42
cmp al, ah
jne 0x406f42
xor eax, eax
add esp, 0x10c
ret
and eax, 0xff
mov byte [esp], 0x3d
push eax
call fcn.0040a180
add esp, 4
mov byte [esp + 1], al
lea edx, [esp + 4]
lea eax, [esp]
push edx
push eax
mov byte [esp + 0xa], 0x3a
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x406f80
xor eax, eax
add esp, 0x10c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040a110
add esp, 4
or eax, 0xffffffff
add esp, 0x10c
ret
Function at 0x407300
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x4157e0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x4074ad
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x4156e0]
lea edi, [ecx*4 + 0x4156e0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x4074ad
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40736e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40737f
push 2
push ebp
push eax
call fcn.00409d60
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4074de
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x407429
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4073da
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4073c7
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 0x4073aa
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 0x4074cf
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x407425
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4073a6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40749e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x407472
cmp eax, 5
jne 0x40745b
mov dword [0x414c70], eax
mov dword [0x414c6c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0040a110
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 0x407492
cmp byte [ebp], 0x1a
jne 0x407492
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x414c6c], 0x1c
jmp 0x4074b7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x414c6c], 9
pop edi
pop esi
pop ebp
mov dword [0x414c70], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x407425
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 0x40750f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x407429
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x407429
Function at 0x407520
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f350
push 0x40bd18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
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 [0x414c84], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x414c80], ecx
shl ecx, 8
add ecx, edx
mov dword [0x414c7c], ecx
shr eax, 0x10
mov dword [0x414c78], eax
call fcn.00408590
test eax, eax
jne 0x40758a
push 0x1c
call fcn.004076f0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00409f10
call fcn.0040bc10
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x416808], eax
call fcn.0040b5d0
mov dword [0x414ce0], eax
test eax, eax
je 0x4075bd
mov eax, dword [0x416808]
test eax, eax
jne 0x4075c7
push 0xffffffffffffffff
call fcn.00405600
add esp, 4
call fcn.0040b320
call fcn.0040b230
call fcn.004055d0
mov esi, dword [0x416808]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4076a6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40760e
test al, al
je 0x40760e
and eax, 0xff
push eax
call fcn.0040b1d0
add esp, 4
test eax, eax
je 0x4075e8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4075e8
cmp byte [esi], 0x22
jne 0x407617
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x407627
cmp al, 0x20
ja 0x407627
inc esi
mov dword [ebp - 0x64], esi
jmp 0x407617
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x407648
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40764d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00405600
jmp 0x40768b
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
cmp byte [esi], 0x20
jbe 0x407617
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4076a6

Function at 0x4076f0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x414ce8], 1
jne 0x4076fe
call fcn.0040bdf0
mov eax, dword [esp + 4]
push eax
call fcn.0040be30
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40b5d0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x414f18]
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 0x40b612
call edi
mov esi, eax
test esi, esi
je 0x40b5fc
mov eax, 1
jmp 0x40b60d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40b71f
mov eax, 2
mov dword [0x414f18], eax
cmp eax, 1
jne 0x40b6b2
test esi, esi
jne 0x40b62b
call edi
mov esi, eax
test esi, esi
je 0x40b71f
cmp word [esi], 0
mov eax, esi
je 0x40b645
add eax, 2
cmp word [eax], 0
jne 0x40b633
add eax, 2
cmp word [eax], 0
jne 0x40b633
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 0x40b6a4
push edi
call fcn.004058d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40b6a4
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 0x40b696
push ebx
call fcn.00406fc0
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 0x40b71f
test ebx, ebx
jne 0x40b6c3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40b71f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40b6db
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40b6cb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40b6cb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004058d0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40b6fd
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 0x40be30
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4149c0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40be54
add eax, 8
inc ebp
cmp eax, 0x414a50
jb 0x40be45
cmp ecx, dword [ebp*8 + 0x4149c0]
jne 0x40bffb
mov eax, dword [0x414ce8]
cmp eax, 1
je 0x40bfbd
test eax, eax
jne 0x40be80
cmp dword [0x412114], 1
je 0x40bfbd
cmp ecx, 0xfc
je 0x40bffb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40bebb
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 0x40bf04
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 0x40f6f0
add ebx, ecx
push ebx
call fcn.0040cc10
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, 0x40f6d0
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 + 0x4149c4]
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.0040d430
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4156e0]
test eax, eax
je 0x40bfce
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40bfd8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4149c4]
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 0x40d810
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.0040dad0
mov eax, dword [0x4157e0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x40d972
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x4156e0]
test byte [edx + ecx*8 + 4], 1
je 0x40d972
push 1
push ebp
push ebx
call fcn.00409d60
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x40d97c
push 2
push ebp
push ebx
call fcn.00409d60
add esp, 0xc
cmp eax, 0xffffffff
je 0x40d97c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x40d918
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.0040da50
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x40d8bf
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00407300
add esp, 0xc
cmp eax, 0xffffffff
je 0x40d8db
sub esi, eax
test esi, esi
jle 0x40d8f1
jmp 0x40d8b0
cmp dword [0x414c70], 5
jne 0x40d8ee
mov dword [0x414c6c], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.0040da50
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00409d60
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x40d959
push 0
push ecx
push ebx
call fcn.00409d60
add esp, 0xc
push ebx
call fcn.0040c790
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x40d959
mov dword [0x414c6c], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x414c70], eax
push 0
push edi
push ebx
call fcn.00409d60
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x414c6c], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x40de00
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x40dfbe
push 0x3d
push edi
call fcn.0040e100
mov esi, eax
add esp, 8
test esi, esi
je 0x40dfbe
cmp edi, esi
je 0x40dfbe
mov dl, byte [esi + 1]
mov ecx, dword [0x414c98]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x414c94]
cmp eax, ecx
jne 0x40de57
push eax
call fcn.0040e090
add esp, 4
mov dword [0x414c94], eax
test eax, eax
jne 0x40ded2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40de7e
mov eax, dword [0x414c9c]
test eax, eax
je 0x40de7e
call fcn.0040d9d0
test eax, eax
je 0x40decd
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x40de8a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.004058d0
add esp, 4
mov dword [0x414c94], eax
test eax, eax
je 0x40dfbe
mov dword [eax], 0
mov eax, dword [0x414c9c]
test eax, eax
jne 0x40decd
push 4
call fcn.004058d0
add esp, 4
mov dword [0x414c9c], eax
test eax, eax
je 0x40dfbe
mov dword [eax], 0
mov eax, dword [0x414c94]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.0040e010
mov esi, eax
add esp, 8
test esi, esi
jl 0x40dfcf
cmp dword [ebx], 0
je 0x40dfcf
test ebp, ebp
je 0x40dfc7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.00406fc0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x40df29
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x40df18
lea eax, [esi*4]
push eax
push ebx
call fcn.004070c0
add esp, 8
test eax, eax
je 0x40df43
mov dword [0x414c94], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40dfb6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.004058d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40dfb6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00406fc0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x40df47
test ebp, ebp
jne 0x40dfb6
test esi, esi
jge 0x40dfd9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.004070c0
add esp, 8
test eax, eax
je 0x40dfbe
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x414c94], eax
jmp 0x40df47
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219

Function at 0x438c86
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop edi
sub esi, 0x3db33453
call fcn.00438cc6
push 0x3bd39f18
pop esi
and edx, esi
xor dword [ebx], edi
add esi, 0xa566840a
mov edx, 0x8a1ae803
add esi, 0xf0dd245d
inc ebx
sub esi, esi
sub esi, esi
mov edx, edx
cmp ebx, ecx
jne fcn.00438c86
or edx, esi
add esi, esi
or esi, esi
ret
Function at 0x401de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x44d790]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x24
mov eax, 0x43b0fa
call fcn.00422097
and dword [ebp - 4], 0
mov edi, dword [ebp + 0x214]
and dword [ebp - 0x18], 0
mov ecx, edi
mov dword [ebp - 0x1c], edi
call fcn.00401650
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x20]
push eax
push str.Path
push str.SOFTWAREShadow_Defender
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, 0x104
test eax, eax
je 0x401e77
push esi
lea eax, [ebp]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp]
push 0x5c
push eax
call fcn.0042233a
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
push 0x43d8dc
lea eax, [ebp]
push esi
push eax
call fcn.00421be6
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push dword [ebp]
call fcn.00437810
test eax, eax
je 0x401eb0
cmp dword [ebp - 0x2c], 1
jne 0x401eb0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
push eax
mov dword [ebp - 0x14], esi
call fcn.00438390
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.00401c98
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00422088
add ebp, 0x20c
leave
ret
Function at 0x401f3a
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x120c]
mov eax, 0x120c
call fcn.00422950
push 0xffffffffffffffff
push 0x43b143
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x44d790]
xor eax, ebp
mov dword [ebp + 0x1208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x1214]
mov esi, ecx
add esi, 0xa4
mov dword [ebp - 0x14], eax
mov ecx, dword [esi]
mov dword [ebp - 0x1c], ebx
cmp dword [ecx - 0xc], eax
jne 0x402013
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1000]
push eax
lea eax, [ebp - 0x20]
push eax
push str.Path
push str.SOFTWAREShadow_Defender
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edi, 0x104
test eax, eax
je 0x401ff0
push edi
lea eax, [ebp + 0x1000]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x1000]
push 0x5c
push eax
call fcn.0042233a
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
push str._res.ini
lea eax, [ebp + 0x1000]
push edi
push eax
call fcn.00421be6
add esp, 0xc
lea eax, [ebp + 0x1000]
push eax
mov ecx, esi
call fcn.00401c98
lea ecx, [ebp - 0x10]
call fcn.00401650
xor edi, edi
inc edi
mov dword [ebp - 4], edi
push dword [ebp + 0x1218]
lea eax, [ebp - 0x10]
push 0x43d950
push eax
call fcn.00401cbd
add esp, 0xc
push dword [esi]
lea eax, [ebp]
push 0x1000
push eax
push 0x43d94c
push dword [ebp - 0x10]
push 0x43d93c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.00401ef2
push 0x43d938
push 0x43d930
mov ecx, ebx
mov dword [ebp - 0x14], edi
call fcn.004018b8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040167a
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1208]
xor ecx, ebp
call fcn.00422088
add ebp, 0x120c
leave
ret 8
Function at 0x40371a
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
push 0x40
lea esi, [ecx + 0x5c]
push eax
push esi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
call fcn.004221b0
add esp, 0xc
mov byte [esi], 0x80
pop esi
ret

Function at 0x40432c
Capabilities:
Create directory

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.00421bcc
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00404a28
pop ecx
pop ecx
push esi
push esi
mov edi, eax
call fcn.00421bcc
pop ecx
inc eax
push eax
push edi
call fcn.0042297b
push 0x5c
push edi
call fcn.00422314
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 0x14
jmp 0x40438e
xor eax, eax
mov word [esi], ax
call ebx
push 0x5c
pop eax
mov word [esi], ax
push eax
add esi, 2
push esi
call fcn.00422314
pop ecx
pop ecx
mov esi, eax
push 0
push edi
test esi, esi
jne 0x404375
call ebx
push edi
mov esi, eax
call fcn.00404a1d
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
ret