joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4091ff
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x427a98
call fcn.0040c618
mov edi, 0x94
mov eax, edi
call fcn.00408ee0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x455b50], ecx
mov eax, dword [esi + 4]
mov dword [0x455b5c], eax
mov edx, dword [esi + 8]
mov dword [0x455b60], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x455b54], esi
cmp ecx, 2
je 0x40925f
or esi, 0x8000
mov dword [0x455b54], esi
shl eax, 8
add eax, edx
mov dword [0x455b58], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], reloc.mscms.dll_AssociateColorProfileWithDeviceA
jne 0x40929a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40929a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4092b2
cmp eax, 0x20b
je 0x40929f
mov dword [ebp - 0x1c], esi
jmp 0x4092c6
cmp dword [ecx + 0x84], 0xe
jbe 0x40929a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4092c0
cmp dword [ecx + 0x74], 0xe
jbe 0x40929a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040d379
pop ecx
test eax, eax
jne 0x4092da
push 0x1c
call fcn.004091db
pop ecx
call fcn.0040d13e
test eax, eax
jne 0x4092eb
push 0x10
call fcn.004091db
pop ecx
call fcn.0040e844
mov dword [ebp - 4], esi
call fcn.0040f040
test eax, eax
jge 0x409304
push 0x1b
call fcn.004091b6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4573c0], eax
call fcn.0040ef1e
mov dword [0x455b94], eax
call fcn.0040ee7c
test eax, eax
jge 0x40932a
push 8
call fcn.004091b6
pop ecx
call fcn.0040ec49
test eax, eax
jge 0x40933b
push 9
call fcn.004091b6
pop ecx
call fcn.00408fb7
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40934e
push eax
call fcn.004091b6
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040ebe0
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x40936f
movzx eax, word [ebp - 0x34]
jmp 0x409372
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00415dd2
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x409390
push edi
call fcn.004090ef
call fcn.00409111
jmp 0x4093c2
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040c653
ret
Function at 0x41a668
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x41a69f
call fcn.004221db
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41a6b0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x41a6e9
cmp word [esi + 2], reloc.mscms.dll_AssociateColorProfileWithDeviceA
mov ecx, dword [esi]
jne 0x41a6ce
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x41a6d6
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x41a6e7
test ax, ax
jne 0x41a6e7
test si, si
je 0x41a6e9
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x41a6f8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41a94a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, reloc.mscms.dll_UninstallColorProfileA
call fcn.0040b0f0
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.004221db
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x41a998
call fcn.004221db
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41a9a9
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x41a9b5
or eax, 0xffffffff
jmp 0x41aab8
mov ecx, esi
call fcn.0041a492
mov dword [ebp - 0x14], eax
call fcn.00417b48
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x41a9f8
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41a9f8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41a9f8
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.00418e92
push dword [ebp - 0x14]
call fcn.00417aa0
push edi
push eax
push ebx
mov ecx, esi
call fcn.0041a73d
xor ebx, ebx
cmp eax, ebx
je 0x41aa6c
test byte [esi + 0x38], 0x10
je 0x41aa3a
push 4
pop edi
mov ecx, esi
call fcn.00419b09
test ah, 1
je 0x41aa32
push 5
pop edi
push edi
mov ecx, esi
call fcn.00417544
cmp dword [esi + 0x1c], ebx
je 0x41aa6c
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00419c29
jmp 0x41aa6c
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x41aa80
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x41aa99
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41aa99
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041a4cc
cmp dword [esi + 0x54], ebx
je 0x41aab5
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41d43b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x42ec98]
xor eax, dword [ebp + 4]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, pe_nt_image_headers32
cmp esi, eax
ja 0x41d48d
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x41d48d
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41d499
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.004087e5
leave
ret 8
Function at 0x421094
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x42ea04
je 0x421150
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x421138
mov esi, dword [ebx + 4]
jmp 0x421132
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x421122
cmp dword [ebp - 0xc], 4
jne 0x421122
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x42111a
or dword [eax + 0x9c], ecx
jmp 0x421122
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x4210e6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x4210c9
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x4214ed
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, reloc.mscms.dll_UninstallColorProfileA
call fcn.0040b0f0
sub esp, 0x110
mov eax, dword [0x42ec98]
xor eax, dword [ebp + 4]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x4215a8
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, 0xff
jmp 0x421571
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004052e0
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
call fcn.004214ed
mov ecx, dword [ebp - 0x1c]
mov esi, eax
test esi, esi
setne byte [ebp - 0x11]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00402270
cmp byte [ebp - 0x11], 0
jne 0x421586
push ebx
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x18]
call edi
mov esi, eax
test esi, esi
je 0x421535
cmp esi, 0x103
pop edi
pop ebx
je 0x421598
cmp esi, 0x3f2
jne 0x4215a8
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
mov eax, esi
pop esi
call fcn.004087e5
leave
ret 8

Function at 0x421a46
Capabilities:
Get thread local storage value

Disassembly:
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x421a63
mov ecx, dword [esp + 4]
cmp ecx, dword [eax + 8]
jge 0x421a63
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ecx*4]
jmp 0x421a65
xor eax, eax
ret 4
Function at 0x40f4a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f4c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f4c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f4b8
mov eax, 1
add ebx, ebx
jne 0x40f4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f4d0
jne 0x40f4ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f4d0
xor ecx, ecx
sub eax, 3
jb 0x40f500
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f572
mov ebp, eax
add ebx, ebx
jne 0x40f50b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f518
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f53c
inc ecx
add ebx, ebx
jne 0x40f528
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f51d
jne 0x40f539
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f51d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f55c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f54d
jmp 0x40f4be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f55c
add edi, ecx
jmp 0x40f4be
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f57a
cmp byte [edi], 5
jne 0x40f57a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40f57f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f5ee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10bb0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10c64]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f5ac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10c68]
or eax, eax
je 0x40f5e8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f5c9
call dword [esi + 0x10c78]
mov ebp, dword [esi + 0x10c6c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40f622
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x40520d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40521c
pop dword [ebp - 0x50]
mov eax, 0xf1937704
add eax, 0xeacdb18
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x52618
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x505c
xor edi, edi
add edi, eax
mov ebx, 0x8f69f8bf
add ebx, 0x70de9541
add ebx, dword [ebp - 0x50]
mov edx, 0xade3f7f6
sub edx, 0x3c3f10f8
xor dword [ebp - 0x3c], edi
mov esi, dword [ebx]
xor dword [ebp - 0xc], ecx
sub esi, edx
sub dword [ebp - 0x34], 0x2f9dfbc6
mov dword [edi], esi
mov dword [ebp - 0xc], 0x359fffd0
add edi, 4
add ebx, 0xce5b24ea
sub ebx, 0xce5b24e6
loop 0x405272
add eax, 0x6aa471ee
sub eax, 0x6aa33dab
xor ebx, ebx
add ebx, eax
add eax, 0xe052149b
sub eax, 0xe0521496
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x403203
pop dword [ebp - 0x10]
mov eax, 0xb4125128
sub eax, 0xb3d21f25
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x41050448
add dword [ebp - 0x20], 0xd4d4103
mov dword [ebp - 0x1c], 0x83024560
add dword [ebp - 0x1c], 0xaf3106e5
mov dword [ebp - 0x18], 0xefcf99da
add dword [ebp - 0x18], 0x5c7caa54
mov dword [ebp - 0x14], 0x8129724b
sub dword [ebp - 0x14], 0x8129724b
lea eax, [ebp - 0x20]
push eax
mov eax, 0x6dadb759
sub eax, 0x6d6d36cd
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x3c8abfab
add dword [ebp - 0x20], 0x37e7a9ab
mov dword [ebp - 0x1c], 0x35d6328b
add dword [ebp - 0x1c], 0xb962eea
mov dword [ebp - 0x18], 0x43487bfd
sub dword [ebp - 0x18], 0xdfd90f91
mov dword [ebp - 0x14], 0xa76eb568
sub dword [ebp - 0x14], 0xa76eb568
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x8bcbce88
sub eax, 0x8b8b4db4
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x38e41
push 0
call eax
mov ecx, 0xb28c62ba
add ecx, 0x4d73ee76
xor ebx, ebx
add ebx, eax
mov edi, 0x411000
add edi, dword [ebp - 0x10]
mov edx, 0x9f59f2ac
add edx, 0x31a1c4a6
xor dword [ebp - 4], edi
mov esi, dword [edi]
sub dword [ebp - 4], ecx
sub esi, edx
xor dword [ebp - 4], 0x7a65ca51
mov dword [ebx], esi
add ebx, 4
add edi, 0xa1d18040
add edi, 0x5e2e7fc4
loop 0x403321
add eax, 0x3e63b31d
add eax, 0xc19d8476
mov ebx, eax
add eax, 0x35b2a4
add eax, 0xffca4d61
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40a0d7
pop dword [ebp - 0x10]
mov eax, 0x4e617215
add eax, 0xb1df2ec2
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3d373
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x45d2
xor edi, edi
add edi, eax
mov edx, 0x435400
add edx, dword [ebp - 0x10]
mov esi, 0xbefbb74d
add esi, 0x57ef5c0a
add dword [ebp - 0xc], 0xa87d39aa
mov ebx, dword [edx]
xor dword [ebp - 4], 0xa2693250
add ebx, esi
add dword [ebp - 8], edi
mov dword [edi], ebx
sub dword [ebp - 0xc], 0x5632a775
add edi, 4
add edx, 0x9b59f9a6
add edx, 0x64a6065e
loop 0x40a127
add eax, 0x1c935390
add eax, 0xe36db68b
mov ebx, eax
add eax, 0x16018193
add eax, 0xe9fe7e72
mov ecx, 0xedf4ee6b
add ecx, 0x124b1195
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x4068e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406939
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406939
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x406928
cmp esi, edx
jae 0x406939
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x406916
cmp esi, edx
jae 0x406939
cmp word [esi], 0
je 0x406939
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x407260
Capabilities:
Create process on windows
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
movsd xmm0, qword [0x4c0488]
sub esp, 0xc
cvtss2sd xmm1, xmm1
push ebx
push esi
push edi
comisd xmm0, xmm1
mov ebx, ecx
jbe 0x40734f
push 0x4ac4d4
push 0x69
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4072fa
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x4072fa
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4072fa
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4072f3
push dword [esp + 0xc]
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4072f3
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
jne 0x407303
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0xc]
push dword [esp + 0x18]
push esi
call fcn.004810f0
add esp, 0xc
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0xc]
mov dword [esi], 0x4034b50
mov ecx, ebx
mov dword [esi + 4], 0x14
push esi
mov word [esi + 8], 8
call fcn.00407c30
test al, al
jne 0x407348
mov ecx, ebx
call fcn.00406ff0
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x4072fa
mov ecx, ebx
call fcn.00407390
push 1
push 0
push 0
push dword [ebx]
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, ebx
call fcn.00407f20
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c788
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4d0018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], 0
push 0x404
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.00481670
add esp, 0xc
mov dword [ebp - 0x424], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
jne 0x4099f9
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], eax
test esi, esi
jne 0x4099f9
call fcn.00408fc0
mov edi, eax
jmp 0x409b15
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x409a1c
call fcn.00408fc0
jmp 0x409b08
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x409a3a
call fcn.00408fc0
jmp 0x409b08
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x428], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x409a5b
mov edi, 0x8007000e
jmp 0x409b0a
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x409b4e
jb 0x409a79
cmp eax, 0xffffffff
ja 0x409b4e
cmp eax, 0x400
jbe 0x409a8e
push eax
lea ecx, [ebp - 0x424]
call fcn.0040e1a0
jmp 0x409ab4
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x409ab4
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
jne 0x409acb
mov edi, 0x8007000e
jmp 0x409b0a
push edi
push dword [ebp - 0x424]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x409aeb
call fcn.00408fc0
jmp 0x409b08
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.0040a730
mov edi, eax
test esi, esi
je 0x409b15
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x409b2e
lea ecx, [ebp - 0x424]
call fcn.0040e190
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 - 0x14]
xor ecx, ebp
call fcn.0047ecc2
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00406890
int3