joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4858f0
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4aa151
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d9114]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
cmp byte [esp + 0x34], 0
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x485943
mov edi, dword [esi]
push 0x80
push edi
call ebp
push edi
call ebx
mov eax, dword [esi]
push eax
call fcn.00485440
add esp, 4
push esi
test al, al
jne 0x485973
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.00403c4b
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 1
jmp 0x485a82
lea ecx, [esp + 0x18]
call fcn.00403c4b
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x14]
push 0x2e
push eax
call fcn.00488386
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x4859a4
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x4859a7
mov eax, dword [ecx - 0xc]
push 0x4c3750
push eax
lea ecx, [esp + 0x1c]
call fcn.0040f11c
lea ecx, [esp + 0x30]
call fcn.0040387f
mov byte [esp + 0x24], 2
xor edi, edi
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.004120c7
add esp, 0xc
cmp byte [esp + 0x34], 0
je 0x4859f1
mov eax, dword [esp + 0x30]
push 0x80
push eax
mov esi, eax
call ebp
push esi
call ebx
mov eax, dword [esp + 0x30]
push eax
call fcn.00485440
add esp, 4
test al, al
je 0x485a98
inc edi
cmp edi, 0x2710
jb 0x4859c6
mov edx, dword [0x4eb73c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4eb73c
call eax
mov esi, dword [esp + 0x2c]
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x24], 2
mov dword [esp + 0x18], 1
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485a5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485a82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.00403c4b
mov dword [esp + 0x18], 1
mov byte [esp + 0x24], 1
lea ecx, [esp + 0x30]
call fcn.00403910
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
call fcn.00403910
jmp 0x485a82
Function at 0x485d00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4aa1e1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4d9114]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push esi
push edi
mov eax, dword [0x4d9114]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, dword [esp + 0x48]
xor ebx, ebx
mov dword [esp + 0x10], ebx
push ebx
xor eax, eax
push 0x104
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], ax
call fcn.00410682
mov dword [esp + 0x40], 1
mov eax, dword [esp + 0x1c]
mov edi, 8
cmp dword [esp + 0x30], edi
jae 0x485d7c
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
push 1
push ecx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x485d9d
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x20]
call fcn.00406082
jmp 0x485de2
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], edi
jae 0x485dab
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x485db0
mov ecx, dword [esp + 0x2c]
sub eax, edx
sar eax, 1
cmp eax, ecx
ja 0x485dd5
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x20]
call fcn.00406082
jmp 0x485de2
sub eax, ecx
push ebx
push eax
lea ecx, [esp + 0x20]
call fcn.00410efc
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], edi
jae 0x485df0
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00403c71
mov dword [esp + 0x10], 1
mov byte [esp + 0x40], bl
cmp dword [esp + 0x30], edi
jb 0x485e17
mov edx, dword [esp + 0x1c]
push edx
call fcn.004876dd
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], ax
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004876e8
add esp, 0x34
ret

Function at 0x485e50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4aa231
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4d9114]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
push 0x800
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x400
mov byte [esp + 0x20], 1
call fcn.00488f5f
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x485eaf
push 0x800
push ebx
push esi
call fcn.00489de0
add esp, 0xc
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], 1
push ebx
push 0x25
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [esp + 0x30]
push esi
mov ecx, edi
call fcn.00403c71
mov dword [esp + 0x10], 1
mov byte [esp + 0x28], bl
cmp esi, ebx
je 0x485eef
push esi
call fcn.00488e42
add esp, 4
mov dword [esp + 0x14], ebx
mov eax, edi
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x4865b0
Capabilities:
Access peb ldr_data
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4aa4d1
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d9114]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
push 0x4c2cb8
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], 0
call fcn.00403c71
mov ebx, 1
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x14]
lea ecx, [esi + 0x25c]
push eax
call fcn.00404d62
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
call fcn.00403910
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea esp, [esp]
cmp byte [esi + 8], 0
jne 0x486655
mov eax, dword [esi]
lea ecx, [esi + 0xc]
push ecx
push eax
mov byte [esi + 8], bl
call ebp
mov edi, eax
mov eax, dword [esi + 0x260]
cmp edi, eax
je 0x48664a
cmp eax, 0xffffffff
je 0x48664a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x260], edi
cmp edi, 0xffffffff
jmp 0x48666d
mov eax, dword [esi + 0x260]
cmp eax, 0xffffffff
je 0x48668e
lea edx, [esi + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x48668e
lea eax, [esi + 0x38]
push eax
call fcn.00485020
add esp, 4
test al, al
jne 0x486620
lea ecx, [esi + 4]
push ecx
lea ecx, [esi + 0x25c]
call fcn.00404d62
add esi, 0xc
push esi
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.00486460
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], ebx
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4

Function at 0x4876e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d9114]
jne 0x4876f2
repz ret
jmp fcn.0048dc98
Function at 0x49b465
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.0048e4f3
and dword [ebp - 4], 0
cmp dword [0x4ec51c], 0
mov ebx, eax
jne 0x49b516
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x49b5c7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x49b5c7
push eax
call fcn.0048e481
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4ec51c], eax
call esi
push eax
call fcn.0048e481
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4ec520], eax
call esi
push eax
call fcn.0048e481
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4ec524], eax
call esi
push eax
call fcn.0048e481
pop ecx
mov dword [0x4ec52c], eax
test eax, eax
je 0x49b516
push 0x4bf130
push edi
call esi
push eax
call fcn.0048e481
pop ecx
mov dword [0x4ec528], eax
mov eax, dword [0x4ec528]
cmp eax, ebx
je 0x49b56e
cmp dword [0x4ec52c], ebx
je 0x49b56e
push eax
call fcn.0048e4fc
push dword [0x4ec52c]
mov esi, eax
call fcn.0048e4fc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x49b56e
test edi, edi
je 0x49b56e
call esi
test eax, eax
je 0x49b565
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49b565
test byte [ebp - 0xc], 1
jne 0x49b56e
or dword [ebp + 0x10], 0x200000
jmp 0x49b5a7
mov eax, dword [0x4ec520]
cmp eax, ebx
je 0x49b5a7
push eax
call fcn.0048e4fc
pop ecx
test eax, eax
je 0x49b5a7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x49b5a7
mov eax, dword [0x4ec524]
cmp eax, ebx
je 0x49b5a7
push eax
call fcn.0048e4fc
pop ecx
test eax, eax
je 0x49b5a7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ec51c]
call fcn.0048e4fc
pop ecx
test eax, eax
je 0x49b5c7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49b5c9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a0af1
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 0x3c], 0
je 0x4a0afb
or eax, 0xffffffff
ret
cmp dword [esi + 4], 0
jne 0x4a0b44
call fcn.0048bd87
and dword [eax], 0
push dword [esi + 0x40]
push 0x4000
push 1
push dword [esi + 0x44]
call fcn.004a6830
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x4a0b3f
push dword [esi + 0x40]
mov dword [esi + 0x3c], 1
call fcn.004a655c
pop ecx
test eax, eax
je 0x4a0af7
or dword [esi + 0x38], 0xffffffff
jmp 0x4a0af7
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi]
dec dword [esi + 4]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
ret
Function at 0x4a0b52
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
mov edi, dword [esi + 4]
inc ebx
cmp edi, 2
jae 0x4a0bc4
test edi, edi
je 0x4a0b71
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov al, byte [eax]
mov byte [ecx], al
call fcn.0048bd87
and dword [eax], 0
push dword [esi + 0x40]
mov ecx, edi
mov eax, 0x4000
sar eax, cl
push eax
mov eax, dword [esi + 0x44]
add eax, edi
push ebx
push eax
call fcn.004a6830
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4a0bac
push dword [esi + 0x40]
call fcn.004a655c
pop ecx
test eax, eax
je 0x4a0bac
or dword [esi + 0x38], 0xffffffff
add dword [esi + 4], edi
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
cmp eax, 2
jae 0x4a0bc4
mov dword [esi + 0x58], eax
jmp 0x4a0c7d
mov eax, dword [esi]
cmp byte [eax], 0x1f
jne 0x4a0c7a
cmp byte [eax + 1], 0x8b
jne 0x4a0c7a
add dword [esi + 4], 0xfffffffe
add eax, 2
mov dword [esi], eax
call fcn.004a0af1
mov edi, eax
call fcn.004a0af1
mov ebx, eax
cmp edi, 8
jne 0x4a0c71
test bl, 0xe0
jne 0x4a0c71
push 6
pop edi
call fcn.004a0af1
dec edi
jne 0x4a0bfd
test bl, 4
je 0x4a0c2c
call fcn.004a0af1
mov edi, eax
call fcn.004a0af1
shl eax, 8
add edi, eax
mov eax, edi
dec edi
test eax, eax
je 0x4a0c2c
call fcn.004a0af1
cmp eax, 0xffffffff
jne 0x4a0c1b
test bl, 8
je 0x4a0c3f
call fcn.004a0af1
test eax, eax
je 0x4a0c3f
cmp eax, 0xffffffff
jne 0x4a0c31
test bl, 0x10
je 0x4a0c52
call fcn.004a0af1
test eax, eax
je 0x4a0c52
cmp eax, 0xffffffff
jne 0x4a0c44
test bl, 2
je 0x4a0c62
push 2
pop edi
call fcn.004a0af1
dec edi
jne 0x4a0c5a
mov eax, dword [esi + 0x3c]
neg eax
sbb eax, eax
and eax, 0xfffffffd
mov dword [esi + 0x38], eax
jmp 0x4a0c7d
mov dword [esi + 0x38], 0xfffffffd
jmp 0x4a0c7d
mov dword [esi + 0x58], ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4a0d1b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4a0dbd
cmp byte [esi + 0x5c], 0x77
jne 0x4a0dbd
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [esi], eax
mov dword [esi + 4], ebx
test ebx, ebx
je 0x4a0da3
push edi
mov edi, 0x4000
cmp dword [esi + 0x10], 0
jne 0x4a0d6e
push dword [esi + 0x40]
mov eax, dword [esi + 0x48]
push edi
push 1
push eax
mov dword [esi + 0xc], eax
call fcn.004a64da
add esp, 0x10
cmp eax, edi
jne 0x4a0d9e
mov dword [esi + 0x10], edi
mov eax, dword [esi + 4]
add dword [esi + 0x64], eax
mov eax, dword [esi + 0x10]
add dword [esi + 0x68], eax
push 0
push esi
call fcn.004a14bf
pop ecx
pop ecx
mov ecx, dword [esi + 4]
sub dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x10]
sub dword [esi + 0x68], ecx
mov dword [esi + 0x38], eax
test eax, eax
jne 0x4a0da2
cmp dword [esi + 4], eax
jne 0x4a0d4c
jmp 0x4a0da2
or dword [esi + 0x38], 0xffffffff
pop edi
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x4c]
call fcn.004a41f1
mov dword [esi + 0x4c], eax
add esp, 0xc
mov eax, ebx
sub eax, dword [esi + 4]
pop ebx
jmp 0x4a0dc0
push 0xfffffffffffffffe
pop eax
pop esi
pop ebp
ret
Function at 0x4a0dc3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
cmp esi, ebx
je 0x4a0e6d
cmp byte [esi + 0x5c], 0x77
jne 0x4a0e6d
mov dword [esi + 4], ebx
mov edi, 0x4000
sub edi, dword [esi + 0x10]
je 0x4a0e10
push dword [esi + 0x40]
push edi
push 1
push dword [esi + 0x48]
call fcn.004a64da
add esp, 0x10
cmp eax, edi
jne 0x4a0e65
mov eax, dword [esi + 0x48]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x4000
test ebx, ebx
jne 0x4a0e57
push dword [ebp + 8]
mov eax, dword [esi + 0x10]
add dword [esi + 0x68], eax
push esi
call fcn.004a14bf
pop ecx
pop ecx
mov ecx, dword [esi + 0x10]
sub dword [esi + 0x68], ecx
mov dword [esi + 0x38], eax
test edi, edi
jne 0x4a0e3a
cmp eax, 0xfffffffb
jne 0x4a0e3a
and dword [esi + 0x38], edi
test ecx, ecx
jne 0x4a0e48
cmp dword [esi + 0x38], 1
je 0x4a0e48
xor ebx, ebx
jmp 0x4a0e4b
xor ebx, ebx
inc ebx
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4a0de4
cmp eax, 1
je 0x4a0de4
mov esi, dword [esi + 0x38]
mov eax, esi
dec eax
neg eax
sbb eax, eax
and eax, esi
jmp 0x4a0e70
or eax, 0xffffffff
mov dword [esi + 0x38], eax
jmp 0x4a0e70
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4a1f37
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x4a1fc6
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0048a010
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4a1f86
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4a1fa8
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x4a2084
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x4a1fee
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x4a1ff9
xor eax, eax
jmp 0x4a2045
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x4a2016
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.004a4234
jmp 0x4a2026
cmp ecx, 2
jne 0x4a202f
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.004a41f1
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.0048a010
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x4a2070
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x4a2084
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x4a1f44
pop edi
pop ebx
leave
ret
Function at 0x401759
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x403028]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push ecx
call fcn.00401611
xor esi, esi
cmp dword [section..data], 5
jbe 0x4017d1
mov ecx, dword [0x40300c]
mov edx, 0x20000
and ecx, edx
mov eax, esi
or eax, ecx
je 0x4017d1
mov ecx, dword [0x403014]
mov eax, ecx
and eax, edx
cmp esi, dword [0x403010]
jne 0x4017d1
cmp eax, ecx
jne 0x4017d1
lea eax, [ebp - 0x38]
mov dword [ebp - 0x18], 0x401110
push eax
push 3
push esi
push esi
push 0x401251
push section..data
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x12
mov dword [ebp - 0xc], esi
call fcn.004016b8
push 1
push esi
push esi
push 0x401124
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00401800
leave
ret 0x10
Function at 0x401ce0
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x402068
call fcn.00401fc0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x403398
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x401aab
cmp eax, esi
jne 0x401a9e
xor esi, esi
inc esi
mov edi, esi
jmp 0x401aae
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x401a82
xor esi, esi
inc esi
cmp dword [0x40339c], esi
jne 0x401ac0
push 0x1f
call fcn.00401e16
pop ecx
jmp 0x401afa
cmp dword [0x40339c], ebx
jne 0x401af4
mov dword [0x40339c], esi
push 0x4010e0
push 0x4010d4
call fcn.00401c3a
pop ecx
pop ecx
test eax, eax
je 0x401afa
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401c24
mov dword [0x403360], esi
cmp dword [0x40339c], esi
jne 0x401b1d
push 0x4010d0
push 0x4010c8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40339c], 2
test edi, edi
jne 0x401b2a
xor eax, eax
mov ecx, 0x403398
xchg dword [ecx], eax
cmp dword [0x4033a0], 0
je 0x401b56
push 0x4033a0
call fcn.00401e90
pop ecx
test eax, eax
je 0x401b56
push ebx
push 2
push ebx
mov esi, dword [0x4033a0]
mov ecx, esi
call dword [0x404098]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x401ae3
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, si
ja 0x401bc1
test ax, ax
je 0x401b90
test edx, edx
jne 0x401bc1
test ax, ax
je 0x401b90
cmp ax, si
ja 0x401b90
add ecx, 2
mov dword [ebp - 0x20], ecx
movzx eax, word [ecx]
jmp 0x401b7b
test byte [ebp - 0x3c], 1
je 0x401b9c
movzx eax, word [ebp - 0x38]
jmp 0x401b9f
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x40335c], eax
cmp dword [0x403374], 0
jne 0x401c09
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x401bd2
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x1c], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x401b6a
cmp dword [0x403360], 0
jne 0x401c1d
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x40335c]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00401923
jmp 0x401a59

Function at 0x401d60
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x402088
call fcn.00401fc0
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401dc0
cmp eax, 0xffffffff
je 0x401dc0
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401db9
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401db9
cmp edx, 0x10000000
jae 0x401db9
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x401db6
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401e16
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test eax, eax
je 0x401e0b
push eax
call fcn.00401d60
test eax, eax
je 0x401e0b
movzx ecx, word [eax + 0x5c]
push 2
pop eax
mov edi, 0x118
call 0x401e06
pop ebx
add ebx, 0x41
add byte [eax], al
xor dword [ebx], 0x87be50c5
not dword [ebx]
xor dword [ebx], 0x87be50c5
xor eax, ebp
push eax
mov esi, 0xc5038187
push eax
mov esi, 0xc5038187
push eax
mov esi, 0x8113f787
xor eax, ebp
push eax
mov esi, 0xc52b8187
sub eax, ebp
push eax
mov esi, 0xc52b8187
push eax
mov esi, 0x4c38387
sub edi, 4
jne 0x401e0d
int 0x7b
mov esi, 0xdf92d997
xor al, 0x25
inc dword [edx]
pop edx
inc esp
invalid

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5c8e3fc4
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x44a85974
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
jmp 0x401219