joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004ebb2
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x1004ebfe
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1004ebed
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1004ebe6
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1004ebc3
pop ebx
push dword [esi]
push 0
push dword [0x100dc910]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret

Function at 0x1004ec00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
imul esi, ecx, 0x2c
push edi
mov edi, edx
mov dword [ebp - 0x10], edi
add esi, dword [0x100dcac0]
mov dword [ebp - 8], esi
mov al, byte [esi + 0x14]
mov ebx, dword [esi]
and al, 1
je 0x1004ec26
sub ebx, 5
movzx eax, al
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1004ec4d
push 0xa
pop eax
jmp 0x1004eccd
test edi, edi
je 0x1004ec6e
mov byte [ebx], 0xe9
mov eax, dword [esi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [esi + 0x14], 1
je 0x1004ec8d
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1004ec8d
test byte [esi + 0x14], 1
je 0x1004ec82
lea esi, [esi + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
jmp 0x1004ec8d
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
mov al, byte [esi + 0x10]
mov byte [ebx + 4], al
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x10]
mov cl, dl
add cl, cl
shl dl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor dl, cl
and dl, 4
xor dl, cl
xor eax, eax
mov byte [esi + 0x14], dl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1004f797
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x100dcab4]
push esi
xor esi, esi
jmp 0x1004f7a9
cmp dword [edx + 4], esi
jne 0x1004f7fd
mov edx, dword [edx]
test edx, edx
jne 0x1004f7a2
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x1004f7f9
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x1004f7d0
mov eax, dword [0x100dcab4]
mov dword [edx], eax
mov dword [0x100dcab4], edx
pop edi
test edx, edx
jne 0x1004f7fd
xor eax, eax
pop esi
ret
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
Function at 0x401460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ecx + 0x75ffffff]
push esi
mov esi, dword [ebp + 8]
cmp eax, 3
ja case.default.0x40148e
jmp dword [eax*4 + 0x4015cc]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
jmp 0x401515
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
jmp 0x401515
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x104
push 0x4213e0
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00412195
add esp, 0x10
jmp 0x401515
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
jmp 0x401515
push 1
push ecx
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401520
sub eax, edx
sar eax, 1
push edi
mov edi, eax
cmp edi, 0x10
jb 0x401546
lea ecx, [edi + edi + 2]
push ecx
call fcn.0041018b
add esp, 4
jmp 0x401549
lea eax, [esi + 0xc]
inc edi
xor edx, edx
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], edi
mov word [eax], dx
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401564
sub eax, edx
mov edx, dword [esi]
sar eax, 1
mov edi, eax
lea eax, [edi + edi]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push edx
call fcn.00410610
mov eax, dword [esi + 8]
add esp, 0xc
mov ecx, edi
cmp edi, eax
pop edi
jb 0x401598
lea ecx, [eax - 1]
test eax, eax
jne 0x4015b0
mov dword [esi + 4], eax
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004104b1
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004104b1
mov esp, ebp
pop ebp
ret

Function at 0x401c40
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ecx]
push esi
lea eax, [ebp - 4]
push eax
or esi, 0xffffffff
push edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
xor ecx, ecx
mov dword [ebp - 8], eax
and eax, ecx
cmp eax, esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
je 0x401c89
call esi
test eax, eax
jne 0x401c89
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
test edi, edi
je 0x401cae
mov dword [edi], 0
pop esi
mov esp, ebp
pop ebp
ret
call esi
test eax, eax
je 0x401c9d
jle 0x401ca2
and eax, 0xffff
or eax, 0x80070000
jmp 0x401ca2
mov eax, 0x8007054f
mov edx, dword [ebp - 4]
test edi, edi
je 0x401cab
mov dword [edi], eax
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404800
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x42145c]
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov ecx, dword [0x421458]
mov dword [ebp - 0x424], ecx
mov ecx, dword [0x421460]
xor ebx, ebx
push ebx
mov dword [ebp - 0x41c], ecx
push esi
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x420], edx
mov edx, dword [0x421464]
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x420], 7
call fcn.00401ab0
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x404977
push ebx
lea edx, [ebp - 0x414]
push edx
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push 0xc
lea edx, [ebp - 0x410]
push edx
push 0x2d1400
push eax
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x414], ebx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x4048de
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
je 0x4048cd
jle 0x4048d2
and eax, 0xffff
or eax, 0x80070000
jmp 0x4048d2
mov eax, 0x8007054f
cmp esi, ebx
je 0x404963
mov dword [esi], eax
jmp 0x404959
cmp esi, ebx
je 0x4048e4
mov dword [esi], ebx
cmp dword [ebp - 0x414], 0x28
jb 0x404959
cmp dword [ebp - 0x3e8], 0xe
jne 0x404959
mov edx, dword [ebp - 0x3f4]
cmp edx, 0x400
jae 0x404959
mov eax, 9
mov ecx, 0x421760
lea edx, [ebp + edx - 0x404]
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x404957
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x404915
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x404957
cmp dword [ebp - 0x3e4], 0x14
jb 0x404953
lea edx, [ebp - 0x3dc]
call fcn.00404bc0
test eax, eax
je 0x404953
test esi, esi
je 0x404977
mov dword [esi], 0
jmp 0x404977
test esi, esi
jmp 0x40495b
xor ebx, ebx
cmp esi, ebx
je 0x404963
mov dword [esi], 0x80070032
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x404977
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi], 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004104b1
mov esp, ebp
pop ebp
ret 8
Function at 0x405a20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov dword [ebp - 0x34], eax
xor eax, eax
push 0x40
mov dword [esi + 8], eax
push eax
lea ecx, [ebp - 0x74]
mov dword [esi + 0xc], eax
push ecx
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0xffffffff
call fcn.004104c0
mov dx, word [ebp + 0xc]
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x78], 0x44
mov word [ebp - 0x48], dx
call fcn.00401300
test edi, edi
jne 0x405a86
lea edi, [ebp - 0x78]
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x405a92
mov eax, 0x421594
movzx ecx, byte [ebp + 0x14]
push esi
push edi
push 0
push 0
push 0
push ecx
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x405ad8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x405ac8
jle 0x405acd
and eax, 0xffff
or eax, 0x80070000
jmp 0x405acd
mov eax, 0x8007054f
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x405ae5
mov dword [ecx], eax
jmp 0x405ae5
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x405ae5
mov dword [eax], 0
cmp dword [esi], 0
jne 0x405af0
mov dword [esi], 0xffffffff
cmp dword [esi + 4], 0
jne 0x405afd
mov dword [esi + 4], 0xffffffff
mov eax, dword [ebp - 0x30]
pop edi
pop esi
pop ebx
test eax, eax
je 0x405b17
lea edx, [ebp - 0x24]
cmp eax, edx
je 0x405b17
push eax
call fcn.0041021f
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004104b1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x409100
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.004104c0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x40916d
mov eax, dword [ebp - 0x114]
cmp eax, 5
jae 0x40915d
cmp eax, 4
jne 0x40916d
cmp dword [ebp - 0x110], 0x5a
jb 0x40916d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004104b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.004104b1
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push edi
or ecx, 0x2001f
push ecx
xor ebx, ebx
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x208], ebx
call fcn.0040c610
mov edi, eax
cmp edi, ebx
je 0x40cdba
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x40cda5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004104b1
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
mov dword [ebp - 0x214], 0x100
call ebx
test eax, eax
jne 0x40ce38
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.0040cd40
mov edi, eax
test edi, edi
jne 0x40ce71
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push eax
push eax
push eax
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push edi
push edx
mov dword [ebp - 0x214], 0x100
call ebx
test eax, eax
je 0x40cdf0
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp eax, edi
je 0x40ce53
push eax
call ebx
mov dword [ebp - 0x210], edi
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x20c], edi
push eax
cmp ecx, edi
je 0x40ce9b
mov edx, dword [esi]
push edx
call fcn.0040c3e0
jmp 0x40cea4
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x40cda5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004104b1
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x210]
cmp eax, edi
je 0x40ceb3
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004104b1
mov esp, ebp
pop ebp
ret 4
Function at 0x40e5a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x40c], ecx
xor ecx, ecx
push 2
push ecx
push eax
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x408], ecx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40e5ef
call fcn.0040c320
mov esi, eax
jmp 0x40e696
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40e608
call fcn.0040c320
jmp 0x40e68d
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40e61d
call fcn.0040c320
jmp 0x40e68d
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x40e635
mov esi, 0x8007000e
jmp 0x40e68f
push eax
lea ecx, [ebp - 0x408]
call fcn.0040d500
mov eax, dword [ebp - 0x408]
test eax, eax
jne 0x40e652
mov esi, 0x8007000e
jmp 0x40e68f
push esi
push eax
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
jne 0x40e66b
call fcn.0040c320
jmp 0x40e68d
mov edx, dword [ebp - 0x408]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x408]
push eax
push ecx
lea ecx, [ebp - 0x410]
call fcn.0040e2d0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea edx, [ebp - 0x404]
cmp dword [ebp - 0x408], edx
je 0x40e6b0
lea ecx, [ebp - 0x408]
call fcn.0040cce0
nop
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004104b1
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40f2e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
test ecx, ecx
je 0x40f2ee
lea edi, [ecx - 0x20]
jmp 0x40f2f0
xor edi, edi
cmp byte [ecx + 0x1c], 0
mov esi, dword [ebp + 0xc]
je 0x40f327
mov eax, dword [edi + 4]
push 0xe801
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, 2
jne 0x40f318
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40f32c
test esi, esi
jne 0x40f327
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40f32c
cmp esi, 1
je 0x40f342
mov eax, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0x10
movsx edx, cx
cwde
push edx
push eax
lea ecx, [edi + 0x20]
call fcn.0040f0b0
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x40fd0a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x425464], 0
push esi
push edi
jne 0x40fc80
call fcn.0040fbec
test eax, eax
je 0x40fcc5
mov eax, dword [0x425464]
cmp eax, 1
jne 0x40fca1
push 0xd
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x40fcc5
jmp 0x40fd07
mov edi, dword [sym.imp.KERNEL32.DLL_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x40fd07
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40fcc9
xor eax, eax
jmp 0x40fd07
mov eax, dword [esi]
push dword [0x425464]
call edi
mov edi, eax
test edi, edi
je 0x40fceb
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, edi
jmp 0x40fd07
lea edi, [esi + 0xff0]
push esi
push dword [0x425464]
call dword [sym.imp.KERNEL32.DLL_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x40fcf1
mov eax, esi
pop edi
pop esi
ret
jmp 0x40fc6c

Function at 0x4104b1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424308]
jne 0x4104bb
repz ret
jmp fcn.0041493f
Function at 0x4183ec
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004158ea
and dword [ebp - 0x14], 0
cmp dword [0x42627c], 0
mov dword [ebp - 0x18], eax
jne 0x41849f
push 0x420b20
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x418547
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x420b14
push ebx
call edi
test eax, eax
je 0x418547
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push 0x420b04
push ebx
mov dword [0x42627c], eax
call edi
push eax
call esi
push 0x420af0
push ebx
mov dword [0x426280], eax
call edi
push eax
call esi
push 0x420ad4
push ebx
mov dword [0x426284], eax
call edi
push eax
call esi
mov dword [0x42628c], eax
test eax, eax
je 0x41849f
push 0x420abc
push ebx
call edi
push eax
call esi
mov dword [0x426288], eax
mov eax, dword [0x426288]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x4184f8
cmp dword [0x42628c], ecx
je 0x4184f8
push eax
call esi
push dword [0x42628c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4184f8
test ebx, ebx
je 0x4184f8
call edi
test eax, eax
je 0x4184ef
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4184ef
test byte [ebp - 8], 1
jne 0x4184f8
or dword [ebp + 0x10], 0x200000
jmp 0x41852b
mov eax, dword [0x426280]
cmp eax, dword [ebp - 0x18]
je 0x41852b
push eax
call esi
test eax, eax
je 0x41852b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41852b
mov eax, dword [0x426284]
cmp eax, dword [ebp - 0x18]
je 0x41852b
push eax
call esi
test eax, eax
je 0x41852b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42627c]
call esi
test eax, eax
je 0x418547
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x418549
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004104b1
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40915c
mov ecx, 0x23150a75
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x1b401c2a
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x100294f
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push dword [0x1004024]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100298d
push dword [0x1004028]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x100ac01
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movzx eax, word [esi]
pop esi
add esi, dword [edi + eax*4]
ret 4
mov esi, ebx
mov eax, ebx
add eax, dword [ebx + 0x3c]
add edx, dword [eax + 0x78]
push 0xffffffffffffffff
jmp 0x10060c3
sbb eax, dword [esp + 4]
jne 0x10060c7
lea edi, [ebx]
lea esi, [ebx]
add edi, dword [edx + 0x1c]
jmp 0x100ac19
add esi, dword [edx + 0x20]
pop ecx
lodsd eax, dword [esi]
jmp 0x100abad
cmp byte [edi], 1
pop eax
ja 0x100aca2
xor eax, 0x3993acd1
jmp 0x1006094
inc ecx
cmp ecx, dword [edx + 0x18]
lea edi, [eax + ebx]
je 0x100ac46
push 0
jmp 0x100aca1
mov edx, ebx
jmp 0x1006072
add esi, dword [edx + 0x24]
push ebx
lea esi, [esi + ecx*2]
jmp 0x100601e
ret
pop eax
imul eax, eax, 0xf
push eax
jmp 0x100acab
movzx eax, byte [edi]
lea edi, [edi + 1]
sub dword [esp], eax
jmp 0x10060dc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404ab4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x404af6
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x404b16
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00407ef8
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x404d38
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040716c
test esi, esi
jne 0x404d6e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004072f4
jmp 0x404d8c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404c7c
mov edi, eax
test esi, esi
je 0x404d8c
cmp dword [ebx], 0
je 0x404d8c
dec esi
jmp 0x404d75
add esp, 0x20c
pop edi
pop esi
pop ebx
ret