joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4026c0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40c648]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x402702
call edi
mov esi, eax
test esi, esi
je 0x4026ec
mov eax, 1
jmp 0x4026fd
call ebp
mov ebx, eax
test ebx, ebx
je 0x40280f
mov eax, 2
mov dword [0x40c648], eax
cmp eax, 1
jne 0x4027a2
test esi, esi
jne 0x40271b
call edi
mov esi, eax
test esi, esi
je 0x40280f
cmp word [esi], 0
mov eax, esi
je 0x402735
add eax, 2
cmp word [eax], 0
jne 0x402723
add eax, 2
cmp word [eax], 0
jne 0x402723
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x402794
push edi
call fcn.00403d70
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402794
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x402786
push ebx
call fcn.00403d00
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40280f
test ebx, ebx
jne 0x4027b3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40280f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4027cb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4027bb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4027bb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00403d70
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4027ed
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x402fc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x40923c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x40302e
push 0x74
push 1
call fcn.00404370
mov esi, eax
add esp, 8
test esi, esi
je 0x403024
mov ecx, dword [0x40923c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x403024
push esi
call fcn.00402fa0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.004012b0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x403290
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x409258
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4032b4
add eax, 8
inc ebp
cmp eax, 0x4092e8
jb 0x4032a5
cmp ecx, dword [ebp*8 + 0x409258]
jne 0x40345b
mov eax, dword [0x40c4f8]
cmp eax, 1
je 0x40341d
test eax, eax
jne 0x4032e0
cmp dword [0x409088], 1
je 0x40341d
cmp ecx, 0xfc
je 0x40345b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40331b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x403364
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x407440
add ebx, ecx
push ebx
call fcn.00404bd0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x407420
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40925c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00404b40
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40daa0]
test eax, eax
je 0x40342e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x403438
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40925c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x4035f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40361c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x40daa0]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x403657
push 2
push ebp
push ecx
call fcn.004034f0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4037b9
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x403701
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4036b2
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40369f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x403682
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4037aa
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4036fd
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40367e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x403799
mov eax, dword [esp + 0x18]
test eax, eax
je 0x403755
cmp eax, 5
jne 0x40373e
call fcn.00404d50
mov dword [eax], 9
call fcn.00404d60
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00404cd0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x403775
cmp byte [ebp], 0x1a
jne 0x403775
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.00404d50
mov dword [eax], 0x1c
call fcn.00404d60
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4036fd
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4037ea
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x403701
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x403701
Function at 0x406c70
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x40ca68]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x406cb8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x406c9c
mov eax, 1
jmp 0x406cb3
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x406d98
mov eax, 2
mov dword [0x40ca68], eax
cmp eax, 2
jne 0x406cd8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x406daa
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x406cf3
mov ecx, dword [0x40c8f0]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x406d12
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00403d70
mov esi, eax
add esp, 4
test esi, esi
jne 0x406d29
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x406d8f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x406d70
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x406d8f
push esi
call fcn.00403d00
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x406d9f
push esi
call fcn.00403d00
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00403d00
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x447e80
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x280
mov eax, 0x44dbbb
call fcn.0043056f
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x284], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x288], eax
test edi, edi
jne 0x447ec3
test ebx, ebx
je 0x447ec3
push 0x57
pop eax
jmp 0x44806a
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x280]
and dword [ebp - 0x14], 0
call fcn.00447693
and dword [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00447693
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x280]
push esi
call fcn.004474b2
mov esi, eax
test esi, esi
jne 0x44803d
test ebx, ebx
jne 0x447f29
test edi, edi
jne 0x447f29
push eax
push eax
push dword [ebp - 0x288]
push eax
push dword [ebp - 0x270]
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
jmp 0x44803d
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 0x270]
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x44803d
cmp dword [ebp - 0x18], 2
je 0x447f7f
cmp dword [ebp - 0x18], 7
je 0x447f7f
cmp dword [ebp - 0x18], 1
je 0x447f7f
test ebx, ebx
jne 0x447f6f
mov eax, dword [ebp - 0x14]
jmp 0x44803b
push edi
push ebx
push dword [ebp - 0x288]
push dword [ebp - 0x28c]
jmp 0x447f10
push dword [ebp - 0x14]
lea ecx, [ebp - 0x150]
call fcn.004475f0
mov esi, eax
test esi, esi
jne 0x44803d
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x140]
push dword [ebp - 0x288]
push dword [ebp - 0x28c]
push dword [ebp - 0x270]
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x44803d
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x150]
dec eax
push eax
call fcn.00446df3
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x150]
call fcn.00447596
mov esi, eax
test esi, esi
jne 0x44803d
mov ecx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x1c], ecx
test ebx, ebx
jne 0x447ffa
lea eax, [ecx + ecx]
jmp 0x44803b
mov eax, dword [edi]
shr eax, 1
cmp ecx, eax
jbe 0x448009
mov esi, 0xea
jmp 0x447ff5
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x150]
and dword [ebp - 0x20], 0
dec eax
push eax
call fcn.00446df3
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x150]
call fcn.0044760e
mov esi, eax
test esi, esi
jne 0x44803d
mov eax, dword [ebp - 0x20]
add eax, eax
mov dword [edi], eax
mov edi, 0x40d0e4
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x150], edi
call fcn.00446cfb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x280], edi
call fcn.00446cfb
mov eax, esi
call fcn.0043051e
ret 0x18

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4013dd
Capabilities:
Identify system language via api

Disassembly:
push esi
push edi
call dword [sym.imp.kernel32.dll_GetUserDefaultUILanguage]
movzx edx, ax
mov ecx, 0x40e00c
xor eax, eax
movzx edi, dx
mov esi, ecx
cmp edi, dword [esi]
je 0x401401
inc eax
add esi, 0x10
cmp eax, 0x11
jb 0x4013f4
cmp eax, 0x11
jne 0x401427
mov esi, 0x3ff
xor eax, eax
and edx, esi
push ebx
mov di, word [ecx]
mov ebx, esi
and di, bx
cmp dx, di
je 0x401426
inc eax
add ecx, 0x10
cmp eax, 0x10
jb 0x401410
pop ebx
pop edi
pop esi
ret
Function at 0x40145c
Capabilities:
Accept command line arguments
Check os version
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
mov ebx, dword [sym.imp.kernel32.dll_GetModuleHandleW]
push esi
push edi
push str.SetDllDirectoryA
mov edi, str.kernel32.dll
push edi
call ebx
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push eax
call esi
test eax, eax
je 0x40148f
push 0x40a1cc
call eax
cmp byte [ebp + 0x10], 0
je 0x4015c0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 4], 3
mov dword [ebp + 0x10], eax
jl 0x4015ad
push dword [eax + 4]
push str._stdio
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_StrCmpW]
test eax, eax
jne 0x4015ad
push eax
push eax
push 4
push eax
push eax
mov eax, dword [ebp + 0x10]
push 0xc0000000
push dword [eax + 8]
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4014f8
push 5
call dword [sym.imp.kernel32.dll_ExitProcess]
push 0x11c
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.00401f60
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], 0x11c
call dword [sym.imp.kernel32.dll_GetVersionExW]
cmp dword [ebp - 0x120], 0xa
sbb al, al
inc al
mov byte [ebp + 0x13], al
je 0x40155c
push str.AllocConsole
push edi
call ebx
push eax
call esi
test eax, eax
je 0x40155c
call eax
push 0
push str.ConsoleWindowClass
call dword [sym.imp.USER32.dll_FindWindowA]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 8]
mov esi, dword [sym.imp.kernel32.dll_SetStdHandle]
push 0xfffffffffffffff6
call esi
test eax, eax
je 0x4014f0
push dword [ebp - 8]
push 0xfffffffffffffff5
call esi
test eax, eax
je 0x4014f0
cmp byte [ebp + 0x13], 0
je 0x4015c0
push 0
push dword [ebp - 8]
call fcn.00401e44
push 0x40bf74
push eax
call fcn.004018df
add esp, 0x10
push 1
push eax
call fcn.004018ad
pop ecx
push eax
call fcn.004017a0
pop ecx
pop ecx
jmp 0x4015c0
push str.AttachConsole
push edi
call ebx
push eax
call esi
test eax, eax
je 0x4015c0
push 0xffffffffffffffff
call eax
and dword [ebp - 4], 0
and dword [ebp + 0x10], 0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040107e
mov edi, eax
xor esi, esi
add esp, 0x10
cmp edi, esi
je 0x401608
call fcn.004013dd
push esi
push 0x30
push str.Adobe_AIR
push esi
push eax
call fcn.0040142a
pop ecx
pop ecx
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxExW]
mov eax, edi
jmp 0x401612
push dword [ebp + 0x10]
push esi
call ebx
push eax
call dword [ebp - 4]
push eax
jmp 0x4014f2

Function at 0x4047d3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e754]
jne 0x4047dd
repz ret
jmp fcn.00406e81
Function at 0x4050cf
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.00403cfa
and dword [ebp - 4], 0
cmp dword [0x40f62c], 0
mov ebx, eax
jne 0x405180
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405231
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405231
push eax
call fcn.00403c88
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40f62c], eax
call esi
push eax
call fcn.00403c88
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40f630], eax
call esi
push eax
call fcn.00403c88
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40f634], eax
call esi
push eax
call fcn.00403c88
pop ecx
mov dword [0x40f63c], eax
test eax, eax
je 0x405180
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403c88
pop ecx
mov dword [0x40f638], eax
mov eax, dword [0x40f638]
cmp eax, ebx
je 0x4051d8
cmp dword [0x40f63c], ebx
je 0x4051d8
push eax
call fcn.00403d03
push dword [0x40f63c]
mov esi, eax
call fcn.00403d03
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4051d8
test edi, edi
je 0x4051d8
call esi
test eax, eax
je 0x4051cf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4051cf
test byte [ebp - 0xc], 1
jne 0x4051d8
or dword [ebp + 0x10], 0x200000
jmp 0x405211
mov eax, dword [0x40f630]
cmp eax, ebx
je 0x405211
push eax
call fcn.00403d03
pop ecx
test eax, eax
je 0x405211
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405211
mov eax, dword [0x40f634]
cmp eax, ebx
je 0x405211
push eax
call fcn.00403d03
pop ecx
test eax, eax
je 0x405211
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40f62c]
call fcn.00403d03
pop ecx
test eax, eax
je 0x405231
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405233
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x445900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xf8
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x78]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 0
jmp 0x44596c
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x18]
jae 0x4459b3
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0049ab28
add esp, 8
test eax, eax
jne 0x4459b1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x4459b5
jmp 0x445963
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x475870
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc147
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4f9f3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.00474760
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.00474760
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.00474760
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x44
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.00475170
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.00475170
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.00475170
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x30]
mov word [edx + 0x30], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x32]
mov word [edx + 0x32], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4