joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42de60
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b897
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x478584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x88], ecx
push 0x45eb7c
push eax
mov dword [ebp - 0x94], edi
mov byte [ebp - 0x81], cl
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x80], 0x67452301
mov dword [ebp - 0x7c], 0xefcdab89
mov dword [ebp - 0x78], 0x98badcfe
mov dword [ebp - 0x74], 0x10325476
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x24], cl
call fcn.0043fa7b
mov ebx, eax
push 0x100000
mov dword [ebp - 0x90], ebx
call fcn.0043fa92
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x8c], esi
test ebx, ebx
je 0x42df6d
test esi, esi
je 0x42df64
push ebx
push 0x100000
push 1
push esi
call fcn.0043f6a1
mov ebx, eax
add esp, 0x10
mov edi, ebx
test ebx, ebx
je 0x42df43
lea esp, [esp]
mov al, byte [esi]
mov ecx, dword [ebp - 0x28]
mov byte [ebp + ecx - 0x68], al
mov eax, dword [ebp - 0x28]
inc eax
dec edi
inc esi
mov dword [ebp - 0x28], eax
cmp eax, 0x40
jb 0x42df3f
lea ecx, [ebp - 0x80]
call fcn.0042d430
test edi, edi
jne 0x42df20
mov esi, dword [ebp - 0x8c]
cmp ebx, 0x100000
mov ebx, dword [ebp - 0x90]
jae 0x42df00
mov edi, dword [ebp - 0x94]
mov byte [ebp - 0x81], 1
push ebx
call fcn.0043f3e3
add esp, 4
push esi
call fcn.0043e47a
add esp, 4
cmp byte [ebp - 0x81], 0
je 0x42df9a
lea edx, [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x80]
call fcn.0042ddf0
mov esi, 1
mov dword [ebp - 4], esi
mov ebx, esi
jmp 0x42dfb5
push 0x45e71c
lea ecx, [ebp - 0x90]
call fcn.00404fd0
mov ebx, 2
mov dword [ebp - 4], ebx
lea esi, [ebx - 1]
mov dword [ebp - 0x88], ebx
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004013f0
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [ebp - 4], 2
or ebx, 4
mov dword [ebp - 0x88], ebx
mov dword [ebp - 4], esi
test bl, 2
je 0x42e014
and ebx, 0xfffffffd
mov dword [ebp - 0x88], ebx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x90]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e014
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov dword [ebp - 4], eax
test bl, 1
je 0x42e04c
and ebx, 0xfffffffe
mov dword [ebp - 0x88], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x8c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e04c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 - 0x10]
xor ecx, ebp
call fcn.0043dfbe
mov esp, ebp
pop ebp
ret
Function at 0x42f410
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0x10]
push eax
push ecx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x42f4de
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x42f4d2
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
push esi
call edi
push esi
call edi
mov edi, eax
test edi, edi
je 0x42f4d2
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x42f4d2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push edi
push eax
call fcn.0043e4c0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [ebp + 0xc]
push edx
push 1
push esi
mov dword [ebp + 0xc], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x42f4cb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
push eax
call fcn.0042f100
test eax, eax
jne 0x42f4c0
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42f8b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bb8f
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x478584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0042f6c0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.PassthroughAPP::CInternetProtocolSinkWithSP_class_CTestSink__class_ATL::CComSingleThreadModel_.0
mov dword [esi + 4], vtable.PassthroughAPP::CInternetProtocolSinkWithSP_class_CTestSink__class_ATL::CComSingleThreadModel_.2.0
mov dword [esi + 8], vtable.PassthroughAPP::CInternetProtocolSinkWithSP_class_CTestSink__class_ATL::CComSingleThreadModel_.1.0
mov dword [ebp - 4], 1
mov dword [esi], vtable.CTestSink.0
mov dword [esi + 4], vtable.CTestSink.3.0
mov dword [esi + 8], vtable.CTestSink.2.0
mov dword [esi + 0x20], vtable.CTestSink.1.0
mov eax, dword [0x47839c]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x2c]
mov ecx, 0x47839c
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
mov eax, dword [0x47839c]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x30]
mov ecx, 0x47839c
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 5
mov eax, dword [0x47839c]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x34]
mov ecx, 0x47839c
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 7
mov eax, dword [0x47839c]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x38]
mov ecx, 0x47839c
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 9
mov eax, dword [0x47839c]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x40]
mov ecx, 0x47839c
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xb
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x28], bl
mov dword [esi + 0x24], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433770
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c426
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x478584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
xor ecx, ecx
lea edx, [eax + 8]
mov dword [eax + 4], ecx
mov dword [ebp - 0x14], edx
mov dword [edx + 0xc], ecx
mov dword [ebp - 4], 1
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [ebp - 4], 2
mov edx, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [eax + 0x20], edx
mov dword [ebp - 4], 4
mov edx, dword [ebp + 8]
mov dword [eax + 0x24], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x28], edx
mov dword [eax + 0x3c], ecx
and dword [eax + 0x44], 0xfffffff8
mov dword [eax + 0x40], ecx
or ecx, 0xffffffff
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [ebp - 4], 5
mov dword [eax], vtable.WTL::CBitmapButton.0
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x4352d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x478584]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00435210
add esp, 4
test al, al
je 0x435305
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dfbe
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call ebx
test eax, eax
je 0x435327
pop ebx
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dfbe
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x4353ef
push edi
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp word [ebp - 0x414], 0
lea esi, [ebp - 0x414]
je 0x4353a7
mov edi, dword [sym.imp.USER32.dll_CharNextW]
jmp 0x435360
cmp word [esi], 0x5c
jne 0x43539c
cmp word [esi + 2], 0x5c
je 0x43539c
lea edx, [ebp - 0x414]
xor ecx, ecx
push edx
mov word [esi], cx
call fcn.00435210
add esp, 4
test al, al
jne 0x435394
push 0
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x4353c9
mov ecx, 0x5c
mov word [esi], cx
push esi
call edi
mov esi, eax
cmp word [esi], 0
jne 0x435360
lea edx, [ebp - 0x414]
push edx
call fcn.00435210
add esp, 4
test al, al
jne 0x4353dc
push 0
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
jne 0x4353dc
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dfbe
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dfbe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
xor al, al
pop esi
call fcn.0043dfbe
mov esp, ebp
pop ebp
ret
Function at 0x435410
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.0043e210
add esp, 0xc
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 0x81
je 0x435445
mov ecx, 0xa
mov word [ebp - 0x24], cx
jmp 0x43544b
xor edx, edx
mov word [ebp - 0x24], dx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x435489
mov eax, dword [ebp - 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x10]
push ecx
call esi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x439010
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x43901e
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x4390fd
mov esi, edx
shr esi, 3
push edi
jmp 0x439040
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x463aa0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x463aa0]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x463aa0]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x463aa0]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x463aa0]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x463aa0]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x463aa0]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x463aa0]
add ecx, 8
sub edx, 8
dec esi
jne 0x439040
pop edi
test edx, edx
je 0x43911a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x463aa0]
inc ecx
dec edx
jne 0x439101
not eax
pop esi
pop ebp
ret

Function at 0x439530
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x439570
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x439564
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x439581
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.0043e4c0
add dword [edi + 0x18], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
Function at 0x4397b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0
je 0x4397fb
cmp byte [esi + 1], 0
je 0x439803
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x439816
cmp byte [esi + 1], 0
je 0x43980a
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp + 8], ebx
jmp 0x43981e
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x4397d5
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp + 8], 0
mov ebx, dword [ebp + 8]
jmp 0x43981e
mov eax, dword [esi + 0x18]
mov dword [ebp + 8], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 4], edi
cmp ebx, edi
jae 0x439830
mov dword [ebp - 4], ebx
mov edi, ebx
push 0x404
call fcn.0043fa92
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x43984b
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x10], 0
cmp edi, eax
jbe 0x439959
jmp 0x43986a
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
add eax, 0x400
mov dword [ebp - 8], edi
cmp eax, edi
ja 0x439879
mov dword [ebp - 8], eax
mov eax, ebx
sub eax, dword [ebp - 8]
sub ebx, eax
mov dword [ebp - 0x18], eax
cmp ebx, 0x404
jbe 0x439890
mov ebx, 0x404
cmp byte [esi], 0
je 0x4398b5
cmp byte [esi + 1], 0
je 0x439959
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4398b8
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebx
je 0x4398e1
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4398dc
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x43990a
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x4398f2
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0xc]
push edi
add ecx, eax
push ecx
push edx
call fcn.0043e4c0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x439959
lea eax, [ebx - 3]
test eax, eax
jle 0x43994d
lea ebx, [ebx]
mov ecx, dword [ebp - 0xc]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x43993f
cmp byte [eax + ecx + 1], 0x4b
jne 0x43993f
cmp byte [eax + ecx + 2], 5
jne 0x43993f
cmp byte [eax + ecx + 3], 6
je 0x439945
test eax, eax
jg 0x439920
jmp 0x43994d
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jne 0x439959
mov edx, dword [ebp - 4]
cmp dword [ebp - 8], edx
jb 0x439861
mov eax, dword [ebp - 0xc]
push eax
call fcn.0043e47a
mov eax, dword [ebp - 0x10]
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43a750
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x478584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x43a83c
movzx eax, word [edi]
test ax, ax
je 0x43a83c
push esi
mov esi, edi
mov ecx, edi
cmp ax, 0x2f
je 0x43a790
cmp ax, 0x5c
jne 0x43a792
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x43a784
cmp esi, edi
je 0x43a7ce
sub esi, edi
sar esi, 1
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0044153f
lea edx, [ebp - 0x20c]
push edx
xor ecx, ecx
push ebx
mov word [ebp + esi*2 - 0x20c], cx
call fcn.0043a750
add esp, 0x14
lea edx, [ebp - 0x414]
mov eax, ebx
sub edx, ebx
jmp 0x43a7e0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x43a7e0
mov eax, edi
mov edx, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43a7f3
lea edi, [ebp - 0x414]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x43a810
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [ebp - 0x414]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043dfbe
mov esp, ebp
pop ebp
ret

Function at 0x43c1f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x43c28e
cmp dword [ebx + 4], 0xffffffff
jne 0x43c28e
push edi
lea edi, [ebx + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x43c220
mov eax, dword [0x45e680]
push esi
mov esi, dword [ebp + 0x10]
mov dword [edi], eax
mov edi, dword [ebp + 8]
cmp esi, 1
jne 0x43c257
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x43c257
pop esi
pop edi
mov eax, 0x2000000
pop ebx
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
push ecx
push esi
push edx
push edi
call fcn.00439400
add esp, 0x10
test eax, eax
jne 0x43c277
mov eax, dword [ebp + 0x10]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
push eax
call fcn.0043bd60
add esp, 4
pop esi
mov dword [ebx], eax
mov eax, dword [0x47a00c]
pop edi
pop ebx
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
pop ebp
ret 0xc
Function at 0x43ccbb
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x47a058], 0
push esi
push edi
jne 0x43cc31
call fcn.0043cb9d
test eax, eax
je 0x43cc76
mov eax, dword [0x47a058]
cmp eax, 1
jne 0x43cc52
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x43cc76
jmp 0x43ccb8
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x43ccb8
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 0x43cc7a
xor eax, eax
jmp 0x43ccb8
mov eax, dword [esi]
push dword [0x47a058]
call edi
mov edi, eax
test edi, edi
je 0x43cc9c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x43ccb8
lea edi, [esi + 0xff0]
push esi
push dword [0x47a058]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x43cca2
mov eax, esi
pop edi
pop esi
ret
jmp 0x43cc1d

Function at 0x43dfbe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x478584]
jne 0x43dfc8
repz ret
jmp fcn.0044460c
Function at 0x451227
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x478584]
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.00444002
and dword [ebp - 0x14], 0
cmp dword [0x47b080], 0
mov dword [ebp - 0x18], eax
jne 0x4512da
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x451382
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x466fbc
push ebx
call edi
test eax, eax
je 0x451382
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47b080], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47b084], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47b088], eax
call edi
push eax
call esi
mov dword [0x47b090], eax
test eax, eax
je 0x4512da
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47b08c], eax
mov eax, dword [0x47b08c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x451333
cmp dword [0x47b090], ecx
je 0x451333
push eax
call esi
push dword [0x47b090]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x451333
test ebx, ebx
je 0x451333
call edi
test eax, eax
je 0x45132a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45132a
test byte [ebp - 8], 1
jne 0x451333
or dword [ebp + 0x10], 0x200000
jmp 0x451366
mov eax, dword [0x47b084]
cmp eax, dword [ebp - 0x18]
je 0x451366
push eax
call esi
test eax, eax
je 0x451366
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x451366
mov eax, dword [0x47b088]
cmp eax, dword [ebp - 0x18]
je 0x451366
push eax
call esi
test eax, eax
je 0x451366
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47b080]
call esi
test eax, eax
je 0x451382
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x451384
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043dfbe
leave
ret
Function at 0x401750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ffb84
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5470bc]
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 eax, edx
mov dword [ebp - 0x68], eax
mov esi, ecx
cmp dword [eax + 0x10], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x60], ecx
je 0x4017c9
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x532800
movzx ecx, si
mov edi, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4017c9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push esi
test ebx, ebx
jne 0x4017e7
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
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.004264c2
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4017c9
test esi, esi
je 0x4017c9
push 0x48
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.004d8530
add esp, 0xc
lea ecx, [ebp - 0x5c]
push edi
call fcn.00401870
push dword [ebp - 0x60]
mov dword [ebp - 4], 0
push ecx
push dword [ebp - 0x64]
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x68]
call fcn.00401cd0
mov bl, al
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x401849
mov edx, dword [ecx]
push 1
call dword [edx]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x401865
mov edx, dword [ecx]
lea eax, [ebp - 0x54]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov al, bl
jmp 0x4017cb