joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403dfe
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea eax, [esp + 0x10]
push edi
push 0xf0000000
xor ebp, ebp
mov edi, edx
push 1
push ebp
push ebp
push eax
mov ebx, ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
call esi
test eax, eax
jne 0x403e55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x403e41
xor eax, eax
jmp 0x403ef5
push 0xf0000008
push 1
push ebp
push ebp
lea eax, [esp + 0x24]
push eax
call esi
test eax, eax
je 0x403e3a
lea eax, [esp + 0x10]
push eax
push ebp
push ebp
push 0x8003
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x403e3a
push ebp
push edi
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x403e3a
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 4
pop ecx
push ebp
push eax
push edi
push ecx
push dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
call ebx
test eax, eax
je 0x403e3a
push dword [edi]
call fcn.004057c4
push dword [edi]
mov esi, eax
mov eax, dword [esp + 0x28]
push ebp
push esi
mov dword [eax], esi
call fcn.0040bf90
add esp, 0x10
push ebp
push edi
push esi
push 2
push dword [esp + 0x20]
call ebx
test eax, eax
je 0x403e3a
cmp dword [esp + 0x10], ebp
je 0x403ee1
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [esp + 0x14], ebp
je 0x403ef2
push ebp
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4040d4
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push 0x41e94c
push ecx
call fcn.00406295
mov esi, eax
mov dword [esp + 0x20], esi
pop ecx
pop ecx
test esi, esi
je 0x404277
push 2
push 0
push esi
call fcn.00406a70
add esp, 0xc
test eax, eax
jne 0x404277
push esi
call fcn.00406975
mov ebx, eax
pop ecx
test ebx, ebx
jle 0x404277
lea ecx, [ebx + 1]
push edi
push ecx
call fcn.004057c4
mov edi, eax
pop ecx
test edi, edi
jne 0x404130
push 0xa
jmp 0x404154
push 0
push 0
push esi
call fcn.00406a70
add esp, 0xc
test eax, eax
jne 0x404152
push esi
push ebx
push 1
push edi
call fcn.00406539
add esp, 0x10
cmp eax, ebx
je 0x40415a
push 6
pop ebp
jmp 0x40426d
lea edx, [esp + 0x18]
mov byte [edi + ebx], 0
mov ecx, 0x41e964
mov dword [esp + 0x18], edi
mov byte [esp + 0x13], 0
xor ebp, ebp
call fcn.00404020
test eax, eax
je 0x404265
mov esi, dword [esp + 0x28]
mov cl, byte [eax]
cmp cl, 0x23
je 0x40424b
cmp cl, 0x3b
je 0x40424b
mov edx, eax
mov ecx, 0x41e968
call fcn.00403ff8
mov ebx, eax
mov dword [esp + 0x14], ebx
mov al, byte [ebx]
test al, al
je 0x40424b
cmp al, 0x5b
jne 0x404200
inc ebx
lea edx, [esp + 0x14]
mov ecx, 0x41e960
mov dword [esp + 0x14], ebx
call fcn.00404020
test eax, eax
je 0x4041f9
lea edx, [esp + 0x14]
mov ecx, 0x41e968
call fcn.00404020
test eax, eax
jne 0x4041f9
push 8
push str.Strings
push ebx
call fcn.0041052e
add esp, 0xc
test eax, eax
sete byte [esp + 0x13]
jmp 0x40424b
mov byte [esp + 0x13], 0
jmp 0x40424b
cmp byte [esp + 0x13], 0
je 0x40424b
lea edx, [esp + 0x14]
mov ecx, 0x41e95c
call fcn.00404020
test eax, eax
je 0x40424b
mov edx, ebx
call fcn.0040407a
test eax, eax
js 0x40424b
cmp eax, 1
jae 0x40424b
imul ebx, eax, 0x258
push 0x257
push dword [esp + 0x18]
add ebx, esi
push ebx
call fcn.00405840
add esp, 0xc
mov byte [ebx + 0x257], 0
inc ebp
lea edx, [esp + 0x18]
mov ecx, 0x41e964
call fcn.00404020
test eax, eax
jne 0x404183
mov esi, dword [esp + 0x1c]
dec ebp
neg ebp
sbb ebp, ebp
and ebp, 5
push edi
call fcn.00405799
pop ecx
pop edi
jmp 0x40427a
push 6
pop ebp
test esi, esi
je 0x404285
push esi
call fcn.00406b5f
pop ecx
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x404776
Capabilities:
Copy file
Create process on windows

Disassembly:
sub esp, 0x514
mov eax, dword [0x421050]
xor eax, esp
mov dword [esp + 0x50c], eax
push ebx
push ebp
push esi
push edi
push 0xf003f
xor ebx, ebx
mov dword [esp + 0x20], ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4047ae
xor eax, eax
jmp 0x40498d
push 0xf01ff
push str.MozillaMaintenance
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
push edi
test esi, esi
jne 0x4047ce
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4047a7
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x4047f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4047f8
push esi
call edi
jmp 0x4047a7
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x1c], eax
call fcn.004057c4
mov ebp, eax
pop ecx
test ebp, ebp
je 0x40481d
push dword [esp + 0x18]
push ebx
push ebp
call fcn.0040bf90
add esp, 0xc
jmp 0x40481f
mov ebp, ebx
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
push esi
test eax, eax
jne 0x40483c
call edi
jmp 0x404980
call edi
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
xor eax, eax
mov esi, 0x208
push esi
mov word [esp + 0x30c], ax
lea eax, [esp + 0x30e]
push ebx
push eax
call fcn.0040bf90
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x314]
push str.maintenanceservice_tmp.exe
call fcn.004043b9
add esp, 0x10
test eax, eax
je 0x404980
xor eax, eax
push esi
mov word [esp + 0xfc], ax
lea eax, [esp + 0xfe]
push ebx
push eax
call fcn.0040bf90
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x104]
push 0x104
push esi
push eax
call fcn.0040517b
add esp, 0x18
lea ecx, [esp + 0xf8]
mov edx, 0x41d244
call fcn.004049a6
push ebx
lea eax, [esp + 0x30c]
push eax
lea eax, [esp + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x404980
push 0x40
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.0040bf90
xor eax, eax
mov dword [esp + 0x2c], ebx
lea edi, [esp + 0x30]
mov dword [esp + 0x3c], 0x44
stosd dword es:[edi], eax
push 0x7e
push ebx
mov dword [esp + 0x4c], 0x41dda8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [esp + 0x8c], ax
lea eax, [esp + 0x8e]
push eax
call fcn.0040bf90
push 0x3f
lea eax, [esp + 0x94]
push str.dummyparam.exe_upgrade
push eax
call fcn.0040517b
add esp, 0x24
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test ebx, ebx
je 0x404980
push dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x24]
call esi
test ebp, ebp
je 0x40498b
push ebp
call fcn.00405799
pop ecx
mov eax, ebx
mov ecx, dword [esp + 0x51c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040502c
add esp, 0x514
ret
Function at 0x4049f1
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x234
mov eax, dword [0x421050]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
xor eax, eax
xor edi, edi
push 0x208
mov word [esp + 0x34], ax
mov ebx, edx
lea eax, [esp + 0x36]
mov esi, ecx
push edi
push eax
call fcn.0040bf90
push 0x104
lea eax, [esp + 0x40]
push esi
push eax
call fcn.0040517b
add esp, 0x18
lea ecx, [esp + 0x30]
mov edx, str.update.status
call fcn.004049a6
test eax, eax
je 0x404abb
push ebp
push edi
push edi
push 2
push edi
push edi
push 0x40000000
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x404a6c
xor eax, eax
jmp 0x404aba
push ebx
lea eax, [esp + 0x18]
push str.failed:__d
push eax
call fcn.00406bd6
lea ebx, [esp + 0x20]
add esp, 0xc
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x404a86
push edi
lea eax, [esp + 0x14]
sub ebx, ecx
push eax
push ebx
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x404ab8
cmp dword [esp + 0x10], ebx
jne 0x404ab8
xor edi, edi
inc edi
mov eax, edi
pop ebp
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040502c
add esp, 0x234
ret
Function at 0x404ad3
Capabilities:
Query service status

Disassembly:
sub esp, 0x2c
mov eax, dword [0x421050]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x404b20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 5
je 0x404b16
xor eax, eax
cmp ecx, 0x429
setne al
add eax, 0xfe
jmp 0x404c0f
mov eax, 0xfd
jmp 0x404c0f
push ebp
push esi
push 4
push str.MozillaMaintenance
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, eax
test ebp, ebp
jne 0x404b8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub esi, 5
je 0x404b82
dec esi
je 0x404b78
sub esi, 0x75
je 0x404b6e
sub esi, 0x3a9
je 0x404b64
mov eax, 0xef
jmp 0x404c0d
mov eax, 0xee
jmp 0x404c0d
mov eax, 0xed
jmp 0x404c0d
mov eax, 0xec
jmp 0x404c0d
mov eax, 0xeb
jmp 0x404c0d
xor esi, esi
mov dword [esp + 0x14], 0xcf
push edi
lea eax, [esp + 0x10]
push eax
push 0x24
lea eax, [esp + 0x1c]
push eax
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x404bde
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7c
jbe 0x404c1f
cmp eax, 0x41c
je 0x404be7
cmp eax, 0x424
jbe 0x404c33
cmp eax, 0x426
jbe 0x404be7
cmp eax, 0x45b
jne 0x404c33
mov edi, 0xde
jmp 0x404c38
mov edi, dword [esp + 0x18]
cmp edi, 1
je 0x404bfe
push 0x32
add esi, 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x7530
jb 0x404b97
mov edi, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call esi
push ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x2c]
pop ebx
xor ecx, esp
call fcn.0040502c
add esp, 0x2c
ret
je 0x404c5a
sub eax, 5
je 0x404c53
dec eax
je 0x404c4c
sub eax, 0x51
je 0x404c45
sub eax, 0x23
je 0x404c3e
mov edi, 0xdf
mov dword [esp + 0x18], edi
jmp 0x404bfe
mov edi, 0xdb
jmp 0x404c38
mov edi, 0xdc
jmp 0x404c38
mov edi, 0xd9
jmp 0x404c38
mov edi, 0xda
jmp 0x404c38
mov edi, 0xdd
jmp 0x404c38

Function at 0x404c61
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x421050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404c90
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404ced
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x404cb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x404ce4
lea eax, [ebp - 0x20c]
push eax
push 0x41d244
call fcn.0041329f
pop ecx
pop ecx
test eax, eax
je 0x404ce4
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x404cb6
mov edi, 0x490
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040502c
mov esp, ebp
pop ebp
ret
Function at 0x404cfd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x421050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x208
mov word [ebp - 0x210], ax
mov edi, edx
lea eax, [ebp - 0x20e]
mov esi, ecx
push ebx
push eax
call fcn.0040bf90
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x404d3c
sub ecx, edx
mov eax, 0x104
sar ecx, 1
cmp ecx, eax
jbe 0x404d58
xor eax, eax
jmp 0x404d90
push eax
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040517b
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 3
neg eax
sbb eax, eax
inc eax
mov dword [edi], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040502c
mov esp, ebp
pop ebp
ret

Function at 0x405022
Capabilities:
Encrypt data using rc4 prga

Disassembly:
inc edx
inc edx
push eax
inc ecx
push ecx
dec edx
dec edx
push edx
inc ecx
push ebx
Function at 0x40502c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
inc ecx
push esp
inc ecx
push ebp
push esi
mov eax, edi
push eax
mov eax, ecx
inc eax
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
and dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 9
mov dword [ebp - 8], 0xd
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x33da
mov dword [ebp - 0x48], 0x7969
add dword [ebp - 0x28], 0x4136
mov eax, 0x8c
mul dword [ebp - 0x48]
mov dword [ebp - 0x78], eax
mov ebx, eax
mov dword [ebp - 0x14], 0x8c90f494
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x1c]
sub eax, 0xd
mov dword [ebp - 0x10], eax
add dword [ebp - 0x28], 0x2f8f0
dec dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x233a
add ebx, 0x1dbe
sub ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x1c]
sub edx, 0xc
sub eax, edx
mov esi, eax
add esi, dword [ebp - 0x18]
mov eax, 0x1b
mov ecx, dword [ebp - 0xc]
cdq
idiv ecx
mov edi, eax
add edi, dword [ebp - 0x18]
cmp esi, edi
jbe 0x40512b
mov al, byte [ebx + esi]
mov byte [ebp - 1], al
movzx edx, byte [ebp - 1]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x7c], eax
mov eax, 0x4e
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 8]
cdq
idiv ecx
mov dword [ebp - 0x88], eax
mov ecx, eax
mov eax, dword [ebp - 0x7c]
xor edx, edx
div ecx
mov dword [ebp - 0x8c], eax
mov edi, eax
add edi, dword [ebp - 0x14]
mov edx, edi
and edx, 0xff
mov edi, dword [ebp - 0x84]
xor edi, edx
mov edx, edi
mov byte [ebp - 1], dl
mov al, byte [ebp - 1]
mov byte [ebx + esi], al
dec esi
jmp 0x4050bb
mov dword [ebp - 0x4c], 0x42872a
inc dword [ebp - 0x10]
mov dword [ebp - 0x40], 0x4af000
mov eax, dword [ebp - 0x1c]
add eax, 6
cmp eax, dword [ebp - 0x10]
jae 0x4050a8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x4c]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0x25e30
xor byte [esi + 2], bl
add byte [edx - 0x1b], dh
mov dword [ebp - 0x50], 0x5c0000
mov dword [ebp - 0x54], 0x44e72a
mov dword [ebp - 0x58], 0x10000000
inc ebp
test al, 0
add byte [eax], al
adc byte [ebx + 0x4503f445], cl
in al, 0x83
call 0xd085da96
Function at 0x40e624
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x421050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040985d
mov dword [ebp - 0x14], eax
cmp dword [0x42311c], esi
jne 0x40e717
push 0x800
push esi
push 0x4196a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40e6a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40e7f7
push esi
push esi
push 0x4196a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40e7f7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e7f7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42311c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x423120], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x423124], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42312c], eax
test eax, eax
je 0x40e714
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x423128], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40e73c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40e72f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40e751
push 4
pop eax
jmp 0x40e7f9
cmp dword [ebp - 0x14], esi
je 0x40e751
push dword [0x42311c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40e736
mov eax, dword [0x423128]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40e7af
cmp dword [0x42312c], edi
je 0x40e7af
push eax
call ebx
push dword [0x42312c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40e7af
test eax, eax
je 0x40e7af
call ecx
test eax, eax
je 0x40e7a4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40e7a4
test byte [ebp - 8], 1
jne 0x40e7af
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40e7df
mov eax, dword [0x423120]
cmp eax, edi
je 0x40e7dc
push eax
call ebx
test eax, eax
je 0x40e7dc
call eax
mov esi, eax
test esi, esi
je 0x40e7dc
mov eax, dword [0x423124]
cmp eax, edi
je 0x40e7dc
push eax
call ebx
test eax, eax
je 0x40e7dc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42311c]
call ebx
test eax, eax
je 0x40e7f7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40e7f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040502c
mov esp, ebp
pop ebp
ret
Function at 0x40129f
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 0x38], esi
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b5c0]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b5c4]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], eax
call fcn.00401298
mov ebx, dword [ebp - 0x10]
mov eax, dword [0x41b5c8]
add ebx, 0x23f
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5cc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov ecx, dword [0xae3484]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40132c
push 0x418300
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [ebp - 4]
mov ecx, dword [0xae3484]
add eax, dword [ebp - 0x28]
mov edx, 0xedeb2e40
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
mov eax, dword [0xae3480]
cmove eax, edx
xor edx, edx
mov dword [0xae3480], eax
cmp ecx, 0x3eb
mov eax, dword [0xae33d8]
cmove eax, edx
mov dword [0xae33d8], eax
lea eax, [ebx + edi]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], edx
mov dword [0xae347c], 0xf4ea3dee
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
mov dword [ebp - 0x18], esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 4]
add ebx, 0x61c88647
shr edx, cl
add edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], edx
xor edx, dword [ebp - 0x20]
xor eax, edx
mov dword [ebp - 0x10], ebx
sub edi, eax
mov dword [ebp - 4], eax
dec dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
jne 0x4012fa
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d328
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a35c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00405145
mov dword [ebp - 0x14], eax
cmp dword [0x43ec38], esi
jne 0x40d41b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d3a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d4fb
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d4fb
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d4fb
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43ec38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43ec3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43ec40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ec48], eax
test eax, eax
je 0x40d418
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ec44], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d440
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d433
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d455
push 4
pop eax
jmp 0x40d4fd
cmp dword [ebp - 0x14], esi
je 0x40d455
push dword [0x43ec38]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d43a
mov eax, dword [0x43ec44]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d4b3
cmp dword [0x43ec48], edi
je 0x40d4b3
push eax
call ebx
push dword [0x43ec48]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d4b3
test eax, eax
je 0x40d4b3
call ecx
test eax, eax
je 0x40d4a8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d4a8
test byte [ebp - 8], 1
jne 0x40d4b3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d4e3
mov eax, dword [0x43ec3c]
cmp eax, edi
je 0x40d4e0
push eax
call ebx
test eax, eax
je 0x40d4e0
call eax
mov esi, eax
test esi, esi
je 0x40d4e0
mov eax, dword [0x43ec40]
cmp eax, edi
je 0x40d4e0
push eax
call ebx
test eax, eax
je 0x40d4e0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43ec38]
call ebx
test eax, eax
je 0x40d4fb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d4fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404457
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
jmp 0x55269b
jmp dword [sym.imp.ucrtbased.dll__beginthreadex]