joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ad00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], ecx
movzx eax, word [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0xe8
call fcn.00440540
movzx ecx, al
test ecx, ecx
jne 0x43ad2a
xor al, al
jmp 0x43aebe
mov ecx, dword [ebp - 0x14]
add ecx, 0x78
call fcn.0043e7f0
cmp eax, 1
jne 0x43ad41
xor al, al
jmp 0x43aebe
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx + 0xe4]
test eax, eax
je 0x43ad56
xor al, al
jmp 0x43aebe
mov ecx, dword [ebp - 0x14]
add ecx, 0x20
call fcn.0043f980
movzx ecx, word [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xe8
call fcn.00440570
mov ecx, dword [ebp - 0x14]
call fcn.0043af90
mov ecx, eax
call fcn.00442e70
movzx edx, al
test edx, edx
je 0x43adc3
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x43ada0
xor al, al
jmp 0x43aebe
mov ecx, dword [ebp - 0x14]
call fcn.0043d430
mov ecx, dword [ebp - 0x14]
call fcn.0043d520
movzx edx, al
test edx, edx
jne 0x43adc1
push 0xffffffffffffff94
mov ecx, dword [ebp - 0x14]
call fcn.0043aa10
jmp 0x43adcc
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0043af90
mov dx, word [eax + 0xe]
mov word [ebp - 4], dx
movzx eax, word [ebp - 4]
test eax, eax
je 0x43adf7
movzx ecx, word [ebp - 4]
cmp ecx, 8
je 0x43adf7
push 0xffffffffffffff9b
mov ecx, dword [ebp - 0x14]
call fcn.0043aa10
movzx edx, word [ebp - 4]
cmp edx, 8
jne 0x43ae4d
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 4]
test ecx, ecx
je 0x43ae19
mov edx, dword [ebp - 0x14]
add edx, 0xc8
mov dword [ebp - 0x18], edx
jmp 0x43ae20
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x50], ecx
push 0x38
push 0x496a18
push 0xfffffffffffffff1
mov edx, dword [ebp - 0x14]
add edx, 0x28
push edx
call fcn.00480770
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0043af60
mov ecx, dword [ebp - 0x14]
call fcn.0043af90
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + 0x18]
mov dword [ecx + 0x64], edx
mov ecx, dword [ebp - 0x14]
call fcn.0043af90
mov ecx, eax
call fcn.00442e70
movzx eax, al
test eax, eax
je 0x43ae83
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x64]
sub edx, 0xc
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x64], edx
mov ecx, dword [ebp - 0x14]
call fcn.0043af90
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + 0x1c]
mov dword [ecx + 0x60], edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x68], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x3c], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x2c], 0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0xe4], 0xff
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x43bf50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a389
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4b9b20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041a8d0
mov dword [ebp - 4], 0
push 0x49ebf0
lea ecx, [ebp - 0x10]
call fcn.00421b90
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.0043bb80
add esp, 8
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.004197d0
neg eax
sbb eax, eax
add eax, 1
movzx edx, al
test edx, edx
jne 0x43c008
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0043c120
add esp, 4
cmp eax, 0xffffffff
je 0x43c008
mov dword [ebp - 0x80], 0
jmp 0x43c00f
mov dword [ebp - 0x80], 1
mov dl, byte [ebp - 0x80]
mov byte [ebp - 0x11], dl
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
and eax, 1
je 0x43c030
and dword [ebp - 0x28], 0xfffffffe
lea ecx, [ebp - 0x18]
call fcn.00419b80
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x43c053
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00419b80
mov al, byte [ebp - 0x19]
jmp 0x43c10d
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.0043bb80
add esp, 8
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x60], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
push edx
call fcn.0043bf50
add esp, 4
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x1a], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00419b80
movzx ecx, byte [ebp - 0x1a]
test ecx, ecx
je 0x43c0c9
mov byte [ebp - 0x21], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00419b80
mov al, byte [ebp - 0x21]
jmp 0x43c10d
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x70], edx
push 0
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43c0f7
mov byte [ebp - 0x22], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00419b80
mov al, byte [ebp - 0x22]
jmp 0x43c10d
mov byte [ebp - 0x23], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00419b80
mov al, byte [ebp - 0x23]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4526e9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x4b9b20]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x452781
push 0x498fbc
push 4
push eax
call fcn.0046bfa5
push eax
call fcn.00419180
add esp, 0x10
push ebx
push edi
call fcn.0046c28d
mov edi, dword [eax]
call fcn.0046c28d
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00468e79
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0046c28d
cmp dword [eax], ebx
je 0x452798
call fcn.0046c28d
push dword [eax]
call fcn.00444911
pop ecx
jmp 0x45279f
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x45272c
jmp 0x452826
call fcn.0046c28d
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x452822
cmp dword [ebp - 0x234], esi
jae 0x452822
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.004661f0
add esp, 0xc
push 0x4982a4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x452811
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x452811
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x452811
push ebx
push ebx
push esi
jmp 0x45281a
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x452824
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00466e70
leave
ret

Function at 0x4539c2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x453a0a
call fcn.0044e8ff
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x453a0a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x453a4d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x453a36
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x453a36
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x453a4a
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x463ba2
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4b9b20]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x463bd7
xor eax, eax
jmp 0x463c2a
lea eax, [ebp - 0x210]
push eax
call fcn.0046a562
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x463c08
push 0x49ebf0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00469f78
add esp, 0xc
test eax, eax
jne 0x463bd3
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00469f78
add esp, 0xc
test eax, eax
jne 0x463bd3
lea eax, [ebp - 0x210]
push eax
call fcn.0044369d
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00466e70
leave
ret

Function at 0x466e70
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b9b20]
jne 0x466e7a
repz ret
jmp fcn.00471b2c

Function at 0x47832b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0046da29
and dword [ebp - 4], 0
cmp dword [0x4c278c], 0
mov ebx, eax
jne 0x4783dc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47848d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x47848d
push eax
call fcn.0046d9b7
mov dword [esp], 0x49ba20
push edi
mov dword [0x4c278c], eax
call esi
push eax
call fcn.0046d9b7
mov dword [esp], 0x49ba0c
push edi
mov dword [0x4c2790], eax
call esi
push eax
call fcn.0046d9b7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4c2794], eax
call esi
push eax
call fcn.0046d9b7
pop ecx
mov dword [0x4c279c], eax
test eax, eax
je 0x4783dc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046d9b7
pop ecx
mov dword [0x4c2798], eax
mov eax, dword [0x4c2798]
cmp eax, ebx
je 0x478434
cmp dword [0x4c279c], ebx
je 0x478434
push eax
call fcn.0046da32
push dword [0x4c279c]
mov esi, eax
call fcn.0046da32
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x478434
test edi, edi
je 0x478434
call esi
test eax, eax
je 0x47842b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47842b
test byte [ebp - 0xc], 1
jne 0x478434
or dword [ebp + 0x10], 0x200000
jmp 0x47846d
mov eax, dword [0x4c2790]
cmp eax, ebx
je 0x47846d
push eax
call fcn.0046da32
pop ecx
test eax, eax
je 0x47846d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x47846d
mov eax, dword [0x4c2794]
cmp eax, ebx
je 0x47846d
push eax
call fcn.0046da32
pop ecx
test eax, eax
je 0x47846d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c278c]
call fcn.0046da32
pop ecx
test eax, eax
je 0x47848d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47848f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404030
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, eax
test esi, esi
push edi
mov edi, ecx
jne 0x40403f
pop edi
pop esi
pop ecx
ret
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
xor ebx, ebx
lea esp, [esp]
cmp esi, 0x1000000
mov eax, 0x1000000
ja 0x40405f
mov eax, esi
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push edx
mov dword [esp + 0x24], 0
call ebp
mov ecx, dword [esp + 0x10]
add edi, ecx
sub esi, ecx
add ebx, ecx
test eax, eax
je 0x404089
test esi, esi
ja 0x404050
pop ebp
mov eax, ebx
pop ebx
pop edi
pop esi
pop ecx
ret

Function at 0x4041d0
Capabilities:
Check if file exists
Create directory
Get disk information
Get file attributes

Disassembly:
sub esp, 0x404
mov eax, dword [0x46e3d0]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, dword [esp + 0x40c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4042c5
push edi
push 0x1fe
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.00443e10
add esp, 0xc
lea edi, [esp + 8]
mov edx, esi
call fcn.00404160
test eax, eax
pop edi
je 0x404270
lea ecx, [esp + 4]
push ecx
call fcn.004041d0
add esp, 4
test eax, eax
je 0x404258
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0043ef12
add esp, 0x404
ret
xor eax, eax
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0043ef12
add esp, 0x404
ret
push 0x1fe
lea edx, [esp + 0x20a]
push 0
push edx
mov word [esp + 0x210], 0
call fcn.00443e10
push esi
push 0x45f914
push 0x200
lea eax, [esp + 0x21c]
push pe_nt_image_headers32
push eax
call fcn.0043ef21
add esp, 0x20
lea ecx, [esp + 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x404258
test eax, eax
je 0x404258
mov ecx, dword [esp + 0x404]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0043ef12
add esp, 0x404
ret
Function at 0x404c30
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x410
mov eax, dword [0x46e3d0]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x41c]
push esi
push edi
push 0x45fc88
mov esi, ecx
push 0x7e3
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
push esi
push 0x45fc90
push 0x400
lea eax, [esp + 0x28]
push 0x200
push eax
call fcn.0043ef21
mov edx, dword [0x471b30]
add esp, 0x18
test edx, edx
je 0x404ce0
lea eax, [esp + 0x18]
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404cb2
sub eax, edi
push edx
sar eax, 1
lea ecx, [eax + eax]
push ecx
lea edx, [esp + 0x20]
push 1
push edx
call fcn.0043fe21
mov eax, dword [0x471b30]
push eax
call fcn.004402ef
add esp, 0x14
test ebx, ebx
jne 0x404ce9
or eax, 0xffffffff
jmp 0x404d5e
push esi
push ebx
mov ecx, ebp
call fcn.004042e0
mov esi, eax
push esi
push str.ret___d__r_n
push 0x400
lea ecx, [esp + 0x2c]
push 0x200
push ecx
call fcn.0043ef21
mov edx, dword [0x471b30]
add esp, 0x1c
test edx, edx
je 0x404d51
lea eax, [esp + 0x18]
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404d22
sub eax, edi
push edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x20]
push 1
push eax
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043ef12
add esp, 0x410
ret
Function at 0x404d80
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x410
mov eax, dword [0x46e3d0]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [esp + 0x414]
push ebx
push ebp
push esi
push edi
push 0x45fc88
mov esi, ecx
push 0x7e5
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
push esi
push 0x45fcf8
push 0x400
lea ecx, [esp + 0x28]
push 0x200
push ecx
call fcn.0043ef21
mov edx, dword [0x471b30]
add esp, 0x18
test edx, edx
je 0x404e33
lea eax, [esp + 0x18]
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404e04
sub eax, edi
push edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x20]
push 1
push eax
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
test ebx, ebx
jne 0x404e3c
or eax, 0xffffffff
jmp 0x404e55
mov ecx, dword [esp + 0x14]
push esi
push ebx
call fcn.004042e0
add esp, 8
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043ef12
add esp, 0x410
ret

Function at 0x404e70
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x410
mov eax, dword [0x46e3d0]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [esp + 0x414]
push ebx
push ebp
push esi
push edi
push 0x45fc88
mov esi, ecx
push 0x7ef
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
push esi
push 0x45fd40
push 0x400
lea ecx, [esp + 0x28]
push 0x200
push ecx
call fcn.0043ef21
mov edx, dword [0x471b30]
add esp, 0x18
test edx, edx
je 0x404f23
lea eax, [esp + 0x18]
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404ef4
sub eax, edi
push edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x20]
push 1
push eax
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
test ebx, ebx
jne 0x404f2c
or eax, 0xffffffff
jmp 0x404f45
mov ecx, dword [esp + 0x14]
push esi
push ebx
call fcn.004042e0
add esp, 8
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043ef12
add esp, 0x410
ret
Function at 0x404f60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebp
push esi
mov esi, dword [ecx]
xor ebp, ebp
and esi, 7
cmp eax, 5
jae 0x404f7d
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x14]
push ebx
lea ebx, [edx + eax - 4]
push edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
lea edi, [edx + ebp]
cmp edi, ebx
jae 0x404faf
lea ebx, [ebx]
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x404faf
add edi, 1
cmp edi, ebx
jb 0x404fa0
mov ebp, edi
sub ebp, edx
mov eax, ebp
sub eax, dword [esp + 0x10]
cmp edi, ebx
jae 0x4050b8
cmp eax, 3
jbe 0x404fe4
xor esi, esi
mov al, byte [edi + 4]
test al, al
mov dword [esp + 0x10], ebp
je 0x405021
cmp al, 0xff
je 0x405021
and esi, 3
add esi, esi
or esi, 1
add ebp, 1
jmp 0x404f93
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x404fc8
movzx ecx, byte [esi + 0x460288]
mov eax, edi
sub eax, ecx
cmp byte [esi + 0x460280], 0
mov al, byte [eax + 4]
je 0x40500d
test al, al
je 0x40500d
cmp al, 0xff
jne 0x404fc8
and esi, 3
add esi, esi
mov dword [esp + 0x10], ebp
or esi, 1
add ebp, 1
jmp 0x404f93
movzx ecx, byte [edi + 2]
xor edx, edx
mov dh, al
movzx eax, byte [edi + 1]
mov dl, byte [edi + 3]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
lea ebx, [ebx]
sub edx, ebp
sub edx, 5
test esi, esi
mov eax, edx
je 0x405089
movzx edx, byte [esi + 0x460288]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
test bl, bl
je 0x40506c
cmp bl, 0xff
jne 0x405085
mov ebx, dword [esp + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, eax
jmp 0x405040
mov ebx, dword [esp + 0x14]
mov ecx, eax
shr ecx, 0x18
and cl, 1
sub cl, 1
not cl
mov byte [edi + 4], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
mov byte [edi + 3], dl
mov edx, dword [esp + 0x1c]
mov byte [edi + 2], cl
mov byte [edi + 1], al
add ebp, 5
jmp 0x404f93
cmp eax, 3
pop edi
pop ebx
jbe 0x4050cf
mov edx, dword [esp + 0x18]
xor esi, esi
mov dword [edx], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x18]
lea ecx, [eax - 1]
shl esi, cl
mov eax, ebp
and esi, 7
mov dword [edx], esi
pop esi
pop ebp
add esp, 8
ret

Function at 0x405370
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x473a80], ecx
add edx, 1
cmp edx, 0x100
jb 0x405372
ret
Function at 0x405430
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
or eax, 0xffffffff
test ecx, ecx
push esi
mov esi, edx
jbe 0x40545f
lea ebx, [ebx]
movzx edx, byte [esi]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x473a80]
sub ecx, 1
add esi, 1
test ecx, ecx
ja 0x405440
pop esi
ret
Function at 0x407640
Capabilities:
Hide graphical window

Disassembly:
push ecx
push esi
mov esi, eax
movzx eax, word [esp + 0xc]
cmp eax, 0x3f5
jg 0x40766b
je 0x40765f
sub eax, 2
je 0x407672
sub eax, 6
je 0x407672
pop esi
pop ecx
ret
push 6
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ecx
ret
cmp eax, 0x3f9
jne 0x4076e8
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x470f74], 1
call fcn.00406bc0
call fcn.0040fee0
push 0
call fcn.00407900
mov ecx, dword [0x471e7c]
add esp, 4
test ecx, ecx
je 0x4076b0
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
push 1
push 0xb
push 0x40
call edx
cmp dword [0x471f80], 0
je 0x4076e1
mov eax, dword [0x471b68]
cmp eax, 2
je 0x4076e1
mov ecx, dword [0x471b68]
cmp ecx, 3
je 0x4076e1
push 0
push 0xc8
push 0xd
push esi
call dword [sym.imp.USER32.dll_SetTimer]
pop esi
pop ecx
ret
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
pop esi
pop ecx
ret

Function at 0x407bf0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x458498
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x46e3d0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x46e3d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
push edi
mov ebx, 0x46042c
lea esi, [esp + 0x14]
call fcn.00408750
add esp, 4
push 0xe
push 0x460430
mov ecx, esi
mov dword [esp + 0x40], 0
call fcn.00406e50
mov eax, dword [esp + 0x14]
mov esi, 8
cmp dword [esp + 0x28], esi
jae 0x407c5e
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407c8c
cmp dword [edi + 0x18], esi
jb 0x407c7d
mov edi, dword [edi + 4]
push 5
push edi
push 0
push 0x460430
jmp 0x407ca3
push 5
add edi, 4
push edi
push 0
push 0x460430
jmp 0x407ca3
cmp dword [edi + 0x18], esi
jb 0x407c96
mov edi, dword [edi + 4]
jmp 0x407c99
add edi, 4
push 5
push edi
push 0
push str.QTalkWhatsnew.txt
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x28], esi
jb 0x407cc3
mov eax, dword [esp + 0x14]
push eax
call fcn.0043ef40
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0043ef12
add esp, 0x2c
ret