joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414bee
Capabilities:
Delete file
Read file on windows

Disassembly:
push 0x20
mov eax, 0x43aa78
call fcn.00436abd
lea ebx, [ebp - 0x1c]
call fcn.0040abde
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00415352
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401977
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 3
push 0xc0000000
lea esi, [ebp - 0x24]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call fcn.0040f860
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040ad69
test eax, eax
jge 0x414c6a
cmp dword [ebp - 0x10], edi
je 0x414c55
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00401977
mov eax, edi
call fcn.00436b95
ret 4
lea eax, [ebp - 0x10]
push eax
lea esi, [ebp - 0x20]
call fcn.0040ad9b
push dword [ebp - 0x20]
call fcn.0041c1be
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x28], edi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414c9f
call fcn.0040af2c
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push esi
mov dword [ebp - 0x1c], eax
call fcn.00414175
add esp, 0xc
push esi
mov dword [ebp - 0x14], eax
call fcn.0041be06
cmp dword [ebp - 0x10], edi
pop ecx
je 0x414cce
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
je 0x414d3f
mov esi, dword [ebp - 0x1c]
add esi, esi
push esi
call fcn.0041c1be
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x414d31
push esi
push edi
push ebx
call fcn.0041be10
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x18]
dec esi
push eax
dec esi
push ebx
mov dword [ebp - 0x18], esi
call fcn.004071a9
push dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.0041be06
add esp, 0xc
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
je 0x414d2a
mov ecx, dword [ebp + 8]
push ebx
call fcn.00414d5e
mov dword [ebp - 0x18], eax
push ebx
call fcn.0041be06
pop ecx
cmp dword [ebp - 0x14], edi
je 0x414d3f
push dword [ebp - 0x14]
call fcn.0041be06
pop ecx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x10], edi
je 0x414d56
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x18]
jmp 0x414c55
Function at 0x414d5e
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x43aa38
call fcn.00436b26
mov eax, dword [ebp + 8]
mov esi, ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00404198
and dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
lea edi, [ebp - 0x44]
call fcn.004142f9
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x4c]
mov ebx, dword [esi + 0x48]
lea ecx, [ebp - 0x30]
call fcn.00412df2
test al, al
jne 0x414dcc
mov byte [ebp - 4], al
lea eax, [ebp - 0x40]
mov byte [0x4491e7], 2
mov dword [ebp - 0x44], vtable.CConfigRead.0
call fcn.00416a4a
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00404bfc
xor eax, eax
call fcn.00436ba9
ret 4
mov ebx, dword [esi + 0x48]
lea edi, [esi + 0x30]
lea eax, [ebx + 0x4c]
call fcn.0040138c
lea eax, [ebx + 0x50]
lea edi, [esi + 0x34]
call fcn.0040138c
lea eax, [esi + 0x44]
push eax
lea eax, [esi + 0x40]
push eax
lea eax, [esi + 0x3c]
push eax
push dword [esi + 0x4c]
lea edi, [esi + 8]
mov ecx, edi
call fcn.0040f59d
test eax, eax
jne 0x414e1f
xor ebx, ebx
mov byte [ebp - 4], bl
lea eax, [ebp - 0x40]
mov byte [0x4491e5], bl
mov dword [ebp - 0x44], vtable.CConfigRead.0
call fcn.00416a4a
push ebx
jmp 0x414db8
mov al, byte [edi]
mov byte [0x4491e5], al
mov eax, dword [esi + 0x30]
cmp dword [eax - 0xc], 0
jne 0x414e57
xor esi, esi
mov byte [ebp - 4], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], vtable.CConfigRead.0
call fcn.00416a4a
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00404bfc
mov eax, esi
jmp 0x414dc4
lea ebx, [ebp - 0x34]
call fcn.0040abde
add esi, 0x38
mov edi, esi
mov byte [ebp - 4], 2
call fcn.0040138c
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
call fcn.00401977
call fcn.00413ef4
mov eax, str.Download_
mov ecx, esi
call fcn.004019e7
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, str.QQPCDownload.exe
mov ecx, esi
call fcn.004019e7
xor esi, esi
inc esi
jmp 0x414e31
Function at 0x414eab
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0xb8
lea ebp, [esp - 4]
mov eax, dword [0x446074]
xor eax, ebp
mov dword [ebp + 0xb8], eax
push 0x14
mov eax, 0x439130
call fcn.00436abd
mov eax, dword [ebp + 0xc4]
mov esi, ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x20], eax
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x14]
push dword [esi + 0x10]
mov eax, dword [ecx]
mov dword [ebp - 0x1c], esi
call dword [eax + 4]
mov eax, dword [0x4482cc]
mov ecx, 0x4482cc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push dword [esi + 4]
lea eax, [ebp - 0x10]
push str.http:__c.pc.qq.com_fcgi_bin_xmldownurlquery_id
push str._s_d
push eax
call fcn.0040ff1e
add esp, 0x10
lea ebx, [ebp - 0x14]
call fcn.0040abde
push eax
lea eax, [ebp - 0x18]
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00415352
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401977
lea edi, [ebp]
call fcn.00413e80
mov byte [ebp - 4], 4
call dword [section..data]
cmp dword [ebp - 0x10], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x14], eax
je 0x414f6e
push dword [ebp - 0x10]
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x414f72
xor eax, eax
jmp 0x414f8d
lea edi, [eax + eax]
mov eax, edi
call fcn.004269f0
mov esi, esp
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
call fcn.0041963e
mov esi, dword [ebp - 0x1c]
push eax
lea ecx, [ebp]
call fcn.00404b50
mov eax, dword [ebp - 0x18]
test eax, eax
mov dword [ebp - 0x20], eax
je 0x414fab
push eax
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x414faf
xor eax, eax
jmp 0x414fca
lea edi, [eax + eax]
mov eax, edi
call fcn.004269f0
mov esi, esp
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x20]
call fcn.0041963e
mov esi, dword [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00404b50
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
lea edx, [ebp]
push edx
call dword [eax + 8]
mov dword [esi + 0x24], eax
lea esi, [ebp]
call fcn.00415033
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401977
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401977
xor eax, eax
lea esp, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xb8]
xor ecx, ebp
call fcn.0041bf18
add ebp, 0xbc
leave
ret 4
Function at 0x41507b
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x20fc]
mov eax, 0x217c
call fcn.004305b0
mov eax, dword [0x446074]
xor eax, ebp
mov dword [ebp + 0x20f8], eax
mov eax, dword [ebp + 0x2104]
push ebx
push closesocket
push eax
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ebx
call fcn.0040ad69
test eax, eax
jge 0x4150d1
cmp dword [ebp - 0x1c], ebx
je 0x4150ca
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4151b6
push esi
push edi
xor eax, eax
mov byte [ebp + 0x20e8], bl
lea edi, [ebp + 0x20e9]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea esi, [ebp - 0x80]
stosb byte es:[edi], al
call fcn.004066a6
push ebx
lea eax, [ebp - 0x20]
push eax
push 0x2000
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x415112
call fcn.0040af2c
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x415126
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x80]
call fcn.00406df0
jmp 0x4150ef
cmp dword [ebp - 0x1c], ebx
je 0x415137
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], ebx
lea eax, [ebp + 0x20e8]
push eax
lea esi, [ebp - 0x80]
call fcn.00406ffb
push 0xfe
lea eax, [ebp + 0x1fea]
push ebx
push eax
mov word [ebp + 0x1fe8], bx
call fcn.0041be10
add esp, 0x10
lea esi, [ebp + 0x1fe8]
xor edi, edi
movzx eax, byte [ebp + edi + 0x20e8]
push eax
push str._.2x
push 3
push esi
call fcn.0041cbdd
add esp, 0x10
add esi, 4
inc edi
cmp edi, 0x10
jb 0x41516a
push dword [ebp - 0x24]
lea eax, [ebp + 0x1fe8]
push eax
call fcn.00420b7d
mov esi, eax
neg esi
sbb esi, esi
pop ecx
inc esi
cmp dword [ebp - 0x1c], ebx
pop ecx
je 0x4151b2
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp + 0x20f8]
xor ecx, ebp
pop ebx
call fcn.0041bf18
add ebp, 0x20fc
leave
ret 4
Function at 0x4151ce
Capabilities:
Delete file

Disassembly:
push 0xc0
mov eax, 0x4390db
call fcn.00436b26
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
mov dword [ebx + 0x20], eax
mov dword [ecx + 4], eax
mov ecx, dword [ebx + 0x14]
push dword [ebx + 0xc]
mov eax, dword [ecx]
call dword [eax + 4]
lea edi, [ebp - 0xc8]
call fcn.00413e80
and dword [ebp - 4], 0
call dword [section..data]
mov esi, dword [ebx + 0x30]
test esi, esi
mov dword [ebp - 0xcc], eax
je 0x415225
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x415229
xor eax, eax
jmp 0x415244
lea edi, [eax + eax]
mov eax, edi
call fcn.004269f0
mov eax, esp
push dword [ebp - 0xcc]
push edi
push esi
mov esi, eax
call fcn.0041963e
push eax
lea ecx, [ebp - 0xc8]
call fcn.00404b50
mov edi, dword [ebx + 0x38]
test edi, edi
je 0x415266
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41526a
xor eax, eax
jmp 0x415285
lea esi, [eax + eax]
mov eax, esi
call fcn.004269f0
mov eax, esp
push dword [ebp - 0xcc]
push esi
push edi
mov esi, eax
call fcn.0041963e
push eax
lea ecx, [ebp - 0xac]
call fcn.00404b50
push dword [ebx + 0x38]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx]
lea edx, [ebp - 0xc8]
push edx
call dword [eax + 8]
lea esi, [ebp - 0xc8]
mov dword [ebx + 0x24], eax
call fcn.00415033
xor al, al
lea esp, [ebp - 0xdc]
call fcn.00436ba9
ret 4

Function at 0x415352
Capabilities:
Create directory

Disassembly:
push 4
mov eax, 0x43892a
call fcn.00436abd
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov eax, dword [eax]
sub eax, 0x10
call fcn.0040163d
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.00413ef4
mov eax, str.Download_
mov ecx, esi
call fcn.004019e7
mov eax, dword [esi]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, str.QQPCDownloadModule.xml
mov ecx, esi
call fcn.004019e7
mov edi, dword [ebp + 8]
add edi, 0x1c
mov eax, esi
call fcn.0040138c
mov eax, esi
call fcn.00436b95
ret 0xc

Function at 0x4153c4
Capabilities:
Delete file

Disassembly:
push 0x24
mov eax, 0x43ab88
call fcn.00436abd
lea ecx, [ebp - 0x14]
call fcn.0041ac18
lea ecx, [ebp - 0x10]
push str.dr.dll
push ecx
xor esi, esi
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.00403896
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401977
push dword [ebp - 0x10]
call fcn.00413f28
cmp eax, esi
pop ecx
jne 0x41541e
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401977
mov eax, esi
call fcn.00436b95
ret
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
call fcn.004090e0
mov byte [ebp - 4], 3
call fcn.00437d00
lea ecx, [ebp - 0x30]
mov ebx, eax
call fcn.00437f10
push esi
push 1
lea esi, [ebp - 0x30]
mov ebx, eax
mov byte [ebp - 4], 2
call fcn.00409471
call fcn.00437d00
mov edi, eax
call fcn.00417491
test ebx, ebx
je 0x415469
call fcn.00437d00
mov edi, eax
call fcn.00437ea0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
inc esi
jmp 0x41540b
Function at 0x41ab62
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x446074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x43f808
xor esi, esi
push 0x8d
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x41ab9a
xor eax, eax
jmp 0x41abe6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x41ab96
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x41ab96
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, esi
je 0x41abe3
push esi
push 0x80
push 2
push esi
push 1
push 0x10000000
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41abf4
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041bf18
leave
ret
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41ac13
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x41abe5
xor esi, esi
inc esi
jmp 0x41ac08

Function at 0x41bafa
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x446074]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0041ba39
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0041be10
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x41bb49
cmp dword [ebp - 0x1c], 5
jb 0x41bb61
jmp 0x41bb5d
cmp dword [ebp - 0x10], 1
jne 0x41bb61
cmp dword [ebp - 0x1c], 4
ja 0x41bb5d
jne 0x41bb61
cmp dword [ebp - 0x18], 0
jbe 0x41bb61
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43b418
call fcn.0041b8e6
test eax, eax
jge 0x41bb82
mov byte [0x449178], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041bf18
add ebp, 0x78
leave
ret
Function at 0x41be01
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x448350], 0
push esi
jne 0x41bd74
call fcn.0041bc9f
test eax, eax
je 0x41bdb7
mov eax, dword [0x448350]
cmp eax, 1
jne 0x41bd95
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41bdb7
pop esi
ret
push eax
call dword [0x448358]
test eax, eax
jne 0x41bdff
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 0x41bdbb
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x448350]
call dword [0x448358]
mov edi, eax
test edi, edi
je 0x41bde2
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x41bdfe
lea edi, [esi + 0xff0]
push esi
push dword [0x448350]
call dword [0x448354]
add esi, 0x10
cmp esi, edi
jb 0x41bde8
mov eax, esi
pop edi
pop esi
ret
jmp 0x41bd61

Function at 0x41bf18
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x446074]
jne 0x41bf22
repz ret
jmp fcn.00421d40
Function at 0x4290a8
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x446ad0]
je 0x4290c3
inc edi
cmp edi, 0x17
jb 0x4290b4
cmp edi, 0x17
jae 0x429243
push ebp
push 3
call fcn.004311c2
cmp eax, 1
pop ecx
je 0x42920f
push 3
call fcn.004311c2
test eax, eax
pop ecx
jne 0x4290f7
cmp dword [0x446070], 1
je 0x42920f
cmp ebx, 0xfc
je 0x429242
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x448968
push ebp
call fcn.00420ca9
add esp, 0xc
test eax, eax
je 0x42912d
push esi
push esi
push esi
push esi
push esi
call fcn.0041ceec
add esp, 0x14
push 0x104
mov esi, 0x448981
push esi
push 0
mov byte [0x448a85], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x429171
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00420ca9
add esp, 0xc
test eax, eax
je 0x429171
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041ceec
add esp, 0x14
push esi
call fcn.0041e8d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4291b6
push esi
call fcn.0041e8d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x448c7c
push 0x43be34
sub ecx, eax
push ecx
push eax
call fcn.0042e954
add esp, 0x14
test eax, eax
je 0x4291b6
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041ceec
add esp, 0x14
jmp 0x4291b8
xor esi, esi
push 0x43be30
push ebx
push ebp
call fcn.0042fc3d
add esp, 0xc
test eax, eax
je 0x4291d8
push esi
push esi
push esi
push esi
push esi
call fcn.0041ceec
add esp, 0x14
push dword [edi*8 + 0x446ad4]
push ebx
push ebp
call fcn.0042fc3d
add esp, 0xc
test eax, eax
je 0x4291fa
push esi
push esi
push esi
push esi
push esi
call fcn.0041ceec
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00431005
add esp, 0xc
jmp 0x429242
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x429242
cmp ebp, 0xffffffff
je 0x429242
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x446ad4]
push dword [esi]
call fcn.0041e8d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x431005
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00422adb
xor ebx, ebx
cmp dword [0x448f20], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4310db
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4311bb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4311bb
push eax
call fcn.00422a6d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x448f20], eax
call esi
push eax
call fcn.00422a6d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x448f24], eax
call esi
push eax
call fcn.00422a6d
mov dword [0x448f28], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042322c
test eax, eax
pop ecx
pop ecx
je 0x4310a9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041ceec
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4310db
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00422a6d
cmp eax, ebx
pop ecx
mov dword [0x448f30], eax
je 0x4310db
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00422a6d
pop ecx
mov dword [0x448f2c], eax
mov eax, dword [0x448f2c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x431160
cmp dword [0x448f30], ecx
je 0x431160
push eax
call fcn.00422ae4
push dword [0x448f30]
mov esi, eax
call fcn.00422ae4
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x431160
cmp edi, ebx
je 0x431160
call esi
cmp eax, ebx
je 0x43112d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43112d
test byte [ebp - 0x18], 1
jne 0x431160
lea eax, [ebp - 0x10]
push eax
call fcn.00423263
test eax, eax
pop ecx
je 0x431148
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041ceec
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x431157
or dword [ebp + 0x10], 0x200000
jmp 0x43119b
or dword [ebp + 0x10], 0x40000
jmp 0x43119b
mov eax, dword [0x448f24]
cmp eax, dword [ebp - 8]
je 0x43119b
push eax
call fcn.00422ae4
cmp eax, ebx
pop ecx
je 0x43119b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43119b
mov eax, dword [0x448f28]
cmp eax, dword [ebp - 8]
je 0x43119b
push eax
call fcn.00422ae4
cmp eax, ebx
pop ecx
je 0x43119b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x448f20]
call fcn.00422ae4
cmp eax, ebx
pop ecx
je 0x4311bb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4311bd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret

Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
enter 0x84, 0
sub ebp, 0x82
mov dword [ebp - 2], 0
call fcn.00401533
mov ebx, eax
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, ebx
or al, 0x40
push eax
mov eax, 0x401dc7
sub eax, fcn.00401592
push eax
push fcn.00401592
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x40107a
mov eax, ebx
lea edx, [ebp - 2]
call fcn.00401461
mov eax, ebx
lea ecx, [ebx + 0x1b600]
call fcn.004014b3
mov esi, ecx
mov eax, ebx
or si, 1
cdq
idiv esi
lea edx, [eax + ecx]
mov eax, ebx
lea ebx, [ebp - 2]
or eax, 0x402054
call fcn.00401592
xor eax, eax
lea esp, [ebp + 0x82]
pop ebp
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401533
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ecx
push edx
enter 0x11c, 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.DLL_GetCursorPos]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 1
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x11c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
movzx eax, byte [ebp - 0x18]
sub eax, 0x41
leave
pop edx
pop ecx
ret