joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b8bf
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [esi + 4]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 8], ebx
je 0x42b917
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42b917
push str.6D9D15F4_C3EF_4c4c_903A_FC2A53899C58
push ebx
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42b917
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x42b90e
push eax
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x84
push 0x400000
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 1
push 0x80
push dword [esi + 4]
mov dword [esi + 0x3cc], eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 8]
push eax
call fcn.0042bbdd
cmp eax, ebx
mov dword [esi + 0x428], eax
je 0x42b957
mov dword [esi + 0x33c], ebx
mov eax, esi
call fcn.0042ba09
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x42bbdd
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x42bc26
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x42bc23
cmp dword [ebp - 4], 2
jl 0x42bc23
push str._reupd
push dword [esi + 4]
call fcn.0043b307
test eax, eax
pop ecx
pop ecx
jne 0x42bc2a
mov eax, dword [ebp + 8]
mov dword [eax], 1
xor eax, eax
pop esi
leave
ret 4
push str._slient
push dword [esi + 4]
call fcn.0043b307
test eax, eax
pop ecx
pop ecx
je 0x42bc50
push 0x46477c
push dword [esi + 4]
call fcn.0043b307
test eax, eax
pop ecx
pop ecx
jne 0x42bc23
xor eax, eax
inc eax
jmp 0x42bc25

Function at 0x42c30e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x42c3a6
push edi
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], ebx
mov edi, eax
jne 0x42c39c
cmp edi, 0x200000
ja 0x42c39c
lea eax, [edi + 2]
push esi
push eax
call fcn.00435667
pop ecx
push ebx
mov esi, eax
lea eax, [ebp + 8]
push eax
push edi
push esi
push dword [ebp - 8]
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42c39b
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x42c39b
mov byte [eax + esi], bl
mov eax, dword [ebp + 8]
mov byte [eax + esi + 1], bl
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [ebp - 0xc], 1
pop esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 0xc
Function at 0x42d12d
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x42d145
mov eax, dword [esp + 4]
add eax, ecx
xor byte [eax], 0xef
inc ecx
cmp ecx, dword [esp + 8]
jb 0x42d135
ret 8

Function at 0x42fab4
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46f190]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov word [ebp - 0x20c], di
call fcn.00438440
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x465550
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00438fed
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [0x471c70], eax
je 0x42fc65
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinHttpOpen
push eax
call esi
push str.WinHttpConnect
push dword [0x471c70]
mov dword [0x471c14], eax
call esi
push str.WinHttpOpenRequest
push dword [0x471c70]
mov dword [0x471c18], eax
call esi
push str.WinHttpAddRequestHeaders
push dword [0x471c70]
mov dword [0x471c1c], eax
call esi
push str.WinHttpSendRequest
push dword [0x471c70]
mov dword [0x471c20], eax
call esi
push str.WinHttpReceiveResponse
push dword [0x471c70]
mov dword [0x471c24], eax
call esi
push str.WinHttpQueryHeaders
push dword [0x471c70]
mov dword [0x471c28], eax
call esi
push str.WinHttpReadData
push dword [0x471c70]
mov dword [0x471c2c], eax
call esi
push str.WinHttpCloseHandle
push dword [0x471c70]
mov dword [0x471c30], eax
call esi
push str.WinHttpCrackUrl
push dword [0x471c70]
mov dword [0x471c34], eax
call esi
push str.WinHttpSetOption
push dword [0x471c70]
mov dword [0x471c38], eax
call esi
push str.WinHttpSetTimeouts
push dword [0x471c70]
mov dword [0x471c3c], eax
call esi
cmp dword [0x471c14], edi
mov dword [0x471c40], eax
je 0x42fc5f
cmp dword [0x471c20], edi
je 0x42fc5f
cmp dword [0x471c34], edi
je 0x42fc5f
cmp dword [0x471c18], edi
je 0x42fc5f
cmp dword [0x471c1c], edi
je 0x42fc5f
cmp dword [0x471c2c], edi
je 0x42fc5f
cmp dword [0x471c30], edi
je 0x42fc5f
cmp dword [0x471c28], edi
je 0x42fc5f
cmp dword [0x471c24], edi
je 0x42fc5f
cmp dword [0x471c38], edi
je 0x42fc5f
cmp dword [0x471c3c], edi
je 0x42fc5f
cmp eax, edi
je 0x42fc5f
inc edi
mov dword [0x471c10], edi
mov ecx, dword [ebp - 4]
mov eax, dword [0x471c10]
pop edi
xor ecx, ebp
pop esi
call fcn.004372f9
leave
ret
Function at 0x42fc78
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46f190]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov word [ebp - 0x20c], di
call fcn.00438440
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.wininet.dll
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00438fed
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [0x471c74], eax
je 0x42fdf5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetOpenW
push eax
call esi
push str.InternetConnectW
push dword [0x471c74]
mov dword [0x471c48], eax
call esi
push str.HttpOpenRequestW
push dword [0x471c74]
mov dword [0x471c4c], eax
call esi
push str.HttpAddRequestHeadersW
push dword [0x471c74]
mov dword [0x471c50], eax
call esi
push str.HttpSendRequestW
push dword [0x471c74]
mov dword [0x471c54], eax
call esi
push str.HttpQueryInfoW
push dword [0x471c74]
mov dword [0x471c58], eax
call esi
push str.InternetReadFile
push dword [0x471c74]
mov dword [0x471c5c], eax
call esi
push str.InternetCloseHandle
push dword [0x471c74]
mov dword [0x471c60], eax
call esi
push str.InternetCrackUrlW
push dword [0x471c74]
mov dword [0x471c64], eax
call esi
push str.InternetSetOptionW
push dword [0x471c74]
mov dword [0x471c68], eax
call esi
cmp dword [0x471c48], edi
mov dword [0x471c6c], eax
je 0x42fdef
cmp dword [0x471c4c], edi
je 0x42fdef
cmp dword [0x471c50], edi
je 0x42fdef
cmp dword [0x471c54], edi
je 0x42fdef
cmp dword [0x471c58], edi
je 0x42fdef
cmp dword [0x471c5c], edi
je 0x42fdef
cmp dword [0x471c60], edi
je 0x42fdef
cmp dword [0x471c64], edi
je 0x42fdef
cmp dword [0x471c68], edi
je 0x42fdef
cmp eax, edi
je 0x42fdef
inc edi
mov dword [0x471c44], edi
mov ecx, dword [ebp - 4]
mov eax, dword [0x471c44]
pop edi
xor ecx, ebp
pop esi
call fcn.004372f9
leave
ret
Function at 0x432acb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x432ad6
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x432b88
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x463788]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x463788]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x463788]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x463788]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x463788]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x463788]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x463788]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x463788]
inc ecx
sub eax, 8
dec edi
jne 0x432aed
pop edi
test eax, eax
je 0x432ba1
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x463788]
inc ecx
dec eax
jne 0x432b8c
mov eax, esi
pop ebx
not eax
pop esi
ret

Function at 0x432ba8
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x463788]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x463788]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x4332a4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4332d4
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4332cf
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4332fc
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4332e5
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00437950
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x433ef5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x433f6e
cmp dword [esi + 4], 0xffffffff
jne 0x433f6e
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.00436932
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
pop ecx
je 0x433f3e
cmp ax, 0x2f
je 0x433f3e
push 0x463fb4
push edi
call fcn.00437db3
pop ecx
pop ecx
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.0043319a
test eax, eax
pop ecx
pop ecx
jne 0x433f55
mov eax, dword [ebp + 8]
jmp 0x433f73
push eax
call fcn.0043351d
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x433f73
mov eax, 0x1000000
pop edi
pop ebp
ret 4

Function at 0x4344cb
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x46f190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
je 0x4344ff
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4344ff
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x4345aa
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x43451e
cmp cx, 0x5c
jne 0x434520
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x434512
cmp eax, esi
je 0x43455f
sub eax, esi
sar eax, 1
push edi
add eax, eax
mov edi, eax
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00437950
and word [ebp + edi - 0x414], 0
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.004344cb
add esp, 0x14
pop edi
and word [ebp - 0x20c], 0
test ebx, ebx
je 0x43457a
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00437ddd
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00437db3
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4345aa
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004372f9
leave
ret
Function at 0x434b38
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x458240
call fcn.0043ddba
mov eax, dword [0x471fb4]
mov ecx, 0x471fb4
xor ebx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea edi, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00429187
mov esi, dword [ebp - 0x18]
cmp dword [esi - 0xc], ebx
je 0x434bcf
push esi
lea eax, [ebp - 0x14]
push eax
call fcn.004210a8
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004291f4
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x434bc4
lea eax, [ebp - 0x28]
push eax
call fcn.0042c2b5
mov byte [ebp - 4], 2
push dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
call fcn.0042d047
test eax, eax
lea eax, [ebp - 0x28]
push eax
je 0x434bbb
call fcn.0042c9ee
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 1
call fcn.0042c2e1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405754
lea eax, [esi - 0x10]
call fcn.00405754
mov eax, ebx
call fcn.0043de59
ret

Function at 0x436168
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x46f190]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004360a7
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.00438440
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 0x4361b7
cmp dword [ebp - 0x1c], 5
jb 0x4361cf
jmp 0x4361cb
cmp dword [ebp - 0x10], 1
jne 0x4361cf
cmp dword [ebp - 0x1c], 4
ja 0x4361cb
jne 0x4361cf
cmp dword [ebp - 0x18], 0
jbe 0x4361cf
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x45977c
call fcn.00435f54
test eax, eax
jge 0x4361f0
mov byte [0x473618], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004372f9
add ebp, 0x78
leave
ret

Function at 0x4363a2
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x471f9c], 0
push esi
jne 0x436315
call fcn.00436240
test eax, eax
je 0x436358
mov eax, dword [0x471f9c]
cmp eax, 1
jne 0x436336
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x436358
pop esi
ret
push eax
call dword [0x471fa4]
test eax, eax
jne 0x4363a0
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 0x43635c
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x471f9c]
call dword [0x471fa4]
mov edi, eax
test edi, edi
je 0x436383
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x43639f
lea edi, [esi + 0xff0]
push esi
push dword [0x471f9c]
call dword [0x471fa0]
add esi, 0x10
cmp esi, edi
jb 0x436389
mov eax, esi
pop edi
pop esi
ret
jmp 0x436302

Function at 0x4372f9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46f190]
jne 0x437303
repz ret
jmp fcn.004432fb
Function at 0x4433ff
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 + 0x46fa58]
je 0x44341a
inc edi
cmp edi, 0x17
jb 0x44340b
cmp edi, 0x17
jae 0x44359a
push ebp
push 3
call fcn.0044f622
cmp eax, 1
pop ecx
je 0x443566
push 3
call fcn.0044f622
test eax, eax
pop ecx
jne 0x44344e
cmp dword [0x46f17c], 1
je 0x443566
cmp ebx, 0xfc
je 0x443599
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x472520
push ebp
call fcn.0044315f
add esp, 0xc
test eax, eax
je 0x443484
push esi
push esi
push esi
push esi
push esi
call fcn.00436802
add esp, 0x14
push 0x104
mov esi, 0x472539
push esi
push 0
mov byte [0x47263d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4434c8
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044315f
add esp, 0xc
test eax, eax
je 0x4434c8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00436802
add esp, 0x14
push esi
call fcn.00436ca0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44350d
push esi
call fcn.00436ca0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x472834
push 0x45a884
sub ecx, eax
push ecx
push eax
call fcn.0044e5c6
add esp, 0x14
test eax, eax
je 0x44350d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00436802
add esp, 0x14
jmp 0x44350f
xor esi, esi
push 0x45a880
push ebx
push ebp
call fcn.0044e501
add esp, 0xc
test eax, eax
je 0x44352f
push esi
push esi
push esi
push esi
push esi
call fcn.00436802
add esp, 0x14
push dword [edi*8 + 0x46fa5c]
push ebx
push ebp
call fcn.0044e501
add esp, 0xc
test eax, eax
je 0x443551
push esi
push esi
push esi
push esi
push esi
call fcn.00436802
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044f465
add esp, 0xc
jmp 0x443599
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x443599
cmp ebp, 0xffffffff
je 0x443599
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x46fa5c]
push dword [esi]
call fcn.00436ca0
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 0x44f465
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00440e80
xor ebx, ebx
cmp dword [0x472a58], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44f53b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44f61b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x44f61b
push eax
call fcn.00440e12
mov dword [esp], 0x45eec8
push edi
mov dword [0x472a58], eax
call esi
push eax
call fcn.00440e12
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x472a5c], eax
call esi
push eax
call fcn.00440e12
mov dword [0x472a60], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043fa14
test eax, eax
pop ecx
pop ecx
je 0x44f509
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00436802
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44f53b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00440e12
cmp eax, ebx
pop ecx
mov dword [0x472a68], eax
je 0x44f53b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00440e12
pop ecx
mov dword [0x472a64], eax
mov eax, dword [0x472a64]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x44f5c0
cmp dword [0x472a68], ecx
je 0x44f5c0
push eax
call fcn.00440e89
push dword [0x472a68]
mov esi, eax
call fcn.00440e89
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x44f5c0
cmp edi, ebx
je 0x44f5c0
call esi
cmp eax, ebx
je 0x44f58d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44f58d
test byte [ebp - 0x18], 1
jne 0x44f5c0
lea eax, [ebp - 0x10]
push eax
call fcn.0043fa4b
test eax, eax
pop ecx
je 0x44f5a8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00436802
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x44f5b7
or dword [ebp + 0x10], 0x200000
jmp 0x44f5fb
or dword [ebp + 0x10], 0x40000
jmp 0x44f5fb
mov eax, dword [0x472a5c]
cmp eax, dword [ebp - 8]
je 0x44f5fb
push eax
call fcn.00440e89
cmp eax, ebx
pop ecx
je 0x44f5fb
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44f5fb
mov eax, dword [0x472a60]
cmp eax, dword [ebp - 8]
je 0x44f5fb
push eax
call fcn.00440e89
cmp eax, ebx
pop ecx
je 0x44f5fb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x472a58]
call fcn.00440e89
cmp eax, ebx
pop ecx
je 0x44f61b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44f61d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x71f140
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2d5000]
push edi
jmp 0x71f15a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x71f161
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x71f150
mov eax, 1
add ebx, ebx
jne 0x71f173
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x71f184
jne 0x71f1a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x71f1a3
dec eax
add ebx, ebx
jne 0x71f190
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x71f168
add ebx, ebx
jne 0x71f19f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x71f1f5
xor ecx, ecx
sub eax, 3
jb 0x71f1bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x71f22a
sar eax, 1
mov ebp, eax
jmp 0x71f1c6
add ebx, ebx
jne 0x71f1c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x71f194
inc ecx
add ebx, ebx
jne 0x71f1d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x71f194
add ebx, ebx
jne 0x71f1e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x71f1d6
jne 0x71f1f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x71f1d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x71f214
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x71f206
jmp 0x71f156
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x71f214
add edi, ecx
jmp 0x71f156
pop esi
mov edi, esi
mov ecx, 0x467
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x71f232
cmp byte [edi], 7
jne 0x71f232
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x71f237
lea edi, [esi + 0x31d000]
mov eax, dword [edi]
or eax, eax
je 0x71f2a6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3a91c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3a91fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x71f264
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3a9204]
or eax, eax
je 0x71f2a0
mov dword [ebx], eax
add ebx, 4
jmp 0x71f281
call dword [esi + 0x3a9200]
mov ebp, dword [esi + 0x3a9208]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x71f2da
sub esp, 0xffffff80
jmp 0x40125d