joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a310
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45a4bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45a49c
mov dl, 1
mov eax, dword [0x416820]
call fcn.0040372c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040464c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45a48b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004481b8
test al, al
je 0x45a47e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45a4cc
lea eax, [ebp - 0x254]
call fcn.00409844
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45a47e
xor eax, eax
push ebp
push 0x45a477
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45a504
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45a460
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048bc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45a460
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a47e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45a381
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041ae3c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a4c2
lea eax, [ebp - 0x260]
call fcn.0040464c
ret

Function at 0x45ae04
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x494bec]
cmp byte [eax + 0xa5], 0
jne 0x45ae75
cmp dword [0x494c04], 0
jne 0x45ae36
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45adc0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x494c04], eax
cmp dword [0x494c00], 0
jne 0x45ae51
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x494c00], eax
cmp dword [0x494c08], 0
jne 0x45ae75
push esp
push 0
push 0
push 0x45ad64
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x494c08], eax
pop edx
ret
Function at 0x45b500
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x494bec]
cmp dword [eax + 0x30], 0
je 0x45b5aa
cmp dword [ebx + 0x94], 0
jne 0x45b5a4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45b490
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45b5a4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45b56a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45b5a4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418abc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45b579
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45c10c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45c141
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040473c
jmp 0x45c14e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004046a0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45d1c8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45d209
mov eax, esi
call fcn.00443828
test al, al
je 0x45d209
mov eax, dword [ebx + 0x84]
call fcn.00443524
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d209
push 0
mov eax, dword [ebx + 0x84]
call fcn.00443524
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45e0a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x415568]
call fcn.004050c8
xor eax, eax
push ebp
push 0x45e1e4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x491df8], 0
jne 0x45e0f3
mov ecx, dword [0x493248]
mov dl, 1
mov eax, dword [0x407b08]
call fcn.0040c2e4
call fcn.00403fc0
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403160
mov eax, ebx
call fcn.00404ebc
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x45e1f4
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406140
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404ecc
test eax, eax
jle 0x45e18b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x45e184
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004048d4
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004048bc
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004089dc
test eax, eax
jne 0x45e184
mov ebx, 0x15
jmp 0x45e190
mov ebx, 0x10
jmp 0x45e190
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x491df8]
call fcn.0045dff8
mov eax, dword [ebp - 8]
call fcn.0045dff8
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406158
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e1eb
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404670
lea eax, [ebp - 0x10]
mov edx, dword [0x415568]
call fcn.00405198
ret

Function at 0x46cd60
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x46cd8e
mov eax, ebx
call fcn.0046d814
cmp dword [ebx + 0x40], 0
je 0x46cd87
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x46cdff
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x46cdf1
cmp dword [ebx + 8], 0
je 0x46cdb0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46cdc2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46cdf1
cmp dword [ebx + 8], 0
je 0x46cda3
cmp eax, 3
je 0x46cdd5
dec eax
jne 0x46cda3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46cda3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46cda3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x46ce1d
cmp dword [ebx + 0x14], 0xcc
je 0x46ce1d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046ce28
pop ebx
ret
Function at 0x47d68c
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404afc
mov eax, dword [ebp - 8]
call fcn.00404afc
xor eax, eax
push ebp
push 0x47d760
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x14
mov dword [ebp - 0x20], 0x14
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x38], 2
mov eax, dword [ebp - 8]
call fcn.00404b0c
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 3
mov eax, 0x47d76c
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00404b0c
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x20]
push eax
push 0x4b
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetSetOptionA
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d767
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404670
ret

Function at 0x47d774
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404afc
mov eax, dword [ebp - 8]
call fcn.00404afc
mov eax, dword [ebp - 0xc]
call fcn.00404afc
mov eax, dword [ebp + 0xc]
call fcn.00404afc
xor eax, eax
push ebp
push 0x47d88d
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x14
mov dword [ebp - 0x24], 0x14
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x3c], 2
mov eax, dword [ebp - 8]
call fcn.00404b0c
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], 3
mov eax, 0x47d89c
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00404b0c
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
push 0
push 0
push 3
mov eax, dword [ebp + 0xc]
call fcn.00404b0c
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404b0c
push eax
mov ax, word [ebp + 8]
push eax
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetConnectA
push ebx
lea eax, [ebp - 0x24]
push eax
push 0x4b
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetOptionA
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d894
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404670
lea eax, [ebp + 0xc]
call fcn.0040464c
ret
Function at 0x47ef3c
Capabilities:
Create http request

Disassembly:
push ebx
add esp, 0xffffffc4
mov ebx, 0x14
mov dword [esp + 4], 0x14
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], 3
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 3
mov dword [esp + 0x24], 2
mov eax, 0x47efdc
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 3
mov eax, 0x47efe0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], eax
push 0
push 0
push 0
push 1
push 0x47efdc
call sub.wininet.dll_InternetOpenA
mov dword [esp], eax
push ebx
lea eax, [esp + 8]
push eax
push 0x4b
mov eax, dword [esp + 0xc]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
mov eax, dword [esp + 0xc]
push eax
call sub.wininet.dll_InternetSetOptionA
mov eax, dword [esp]
push eax
call sub.wininet.dll_InternetCloseHandle
add esp, 0x3c
pop ebx
ret

Function at 0x47ef9b
Capabilities:
Create http request

Disassembly:
push ebx
add esp, 0xffffffc4
mov ebx, 0x14
mov dword [esp + 4], 0x14
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], 3
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 3
mov dword [esp + 0x24], 2
mov eax, 0x47efdc
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 3
mov eax, 0x47efe0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], eax
push 0
push 0
push 0
push 1
push 0x47efdc
call sub.wininet.dll_InternetOpenA
mov dword [esp], eax
push ebx
lea eax, [esp + 8]
push eax
push 0x4b
mov eax, dword [esp + 0xc]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
mov eax, dword [esp + 0xc]
push eax
call sub.wininet.dll_InternetSetOptionA
mov eax, dword [esp]
push eax
call sub.wininet.dll_InternetCloseHandle
add esp, 0x3c
pop ebx
ret

Function at 0x47f140
Capabilities:
Get geographical location

Disassembly:
add esp, 0xfffffff4
mov eax, esp
xor ecx, ecx
mov edx, 0xa
call fcn.00403160
push 0xa
lea eax, [esp + 4]
push eax
push 0xd
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
cmp byte [esp], 0x31
jne 0x47f16e
mov al, 1
jmp 0x47f170
xor eax, eax
add esp, 0xc
ret

Function at 0x47f158
Capabilities:
Get geographical location

Disassembly:
add esp, 0xfffffff4
mov eax, esp
xor ecx, ecx
mov edx, 0xa
call fcn.00403160
push 0xa
lea eax, [esp + 4]
push eax
push 0xd
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
cmp byte [esp], 0x31
jne 0x47f16e
mov al, 1
jmp 0x47f170
xor eax, eax
add esp, 0xc
ret
Function at 0x40ae70
Capabilities:
Encode data using xor

Disassembly:
dec ebp
adc dword [esi], eax
ficom word [ebx - 0x3e50ca70]
sti
mov bl, 0x15
pop ds
clc
xchg ebx, eax
xor dword [ecx], 0x77
js 0x40ae7a
xchg byte [esi - 0x570e413a], ah
sub dword [eax], esp
dec esp
jbe 0x40ae7a
dec ebx
test eax, 0x79fa3bff
invalid
Function at 0x10007c1f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x10007c2e
pop dword [ebp - 0x28]
mov eax, 0x5262c7d
sub eax, 0xf525b04f
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x59d58cf5
add dword [ebp - 0x38], 0xf47cb856
mov dword [ebp - 0x34], 0x679785f2
add dword [ebp - 0x34], 0xca9bc653
mov dword [ebp - 0x30], 0xfd6c3eed
add dword [ebp - 0x30], 0x4ee00541
mov dword [ebp - 0x2c], 0x93b23837
add dword [ebp - 0x2c], 0x6c4dc7c9
lea eax, [ebp - 0x38]
push eax
mov eax, 0x31a03b52
add eax, 0xde604502
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x3c58fed0
sub dword [ebp - 0x38], 0xc7e6957a
mov dword [ebp - 0x34], 0xccc5a974
add dword [ebp - 0x34], 0x74a6b801
mov dword [ebp - 0x30], 0xe58b6ce7
sub dword [ebp - 0x30], 0x821c007b
mov dword [ebp - 0x2c], 0x5a261148
add dword [ebp - 0x2c], 0xa5d9eeb8
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xe70b61bb
sub eax, 0xd70ae16b
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x34496
push 0
call eax
mov ecx, 0x2881465d
sub ecx, 0x288107e3
mov edi, eax
mov edx, 0x8bcec30e
sub edx, 0x7bcdc90e
add edx, dword [ebp - 0x28]
mov esi, 0xec09aa2e
add esi, 0x990057c2
mov ebx, dword [edx]
xor dword [ebp - 0x24], 0x78da29cf
add ebx, esi
mov dword [edi], ebx
add edi, 0x95b362f7
sub edi, 0x95b362f3
add edx, 0xf60de36d
sub edx, 0xf60de369
loop 0x10007d50
add eax, 0xd046613a
add eax, 0x2fba8b81
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x40d29e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407cfb
mov dword [ebp - 0x14], eax
cmp dword [0x4308d8], esi
jne 0x40d391
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d31e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d471
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d471
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d471
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4308d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4308dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4308e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4308e8], eax
test eax, eax
je 0x40d38e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4308e4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3b6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3a9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push 4
pop eax
jmp 0x40d473
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push dword [0x4308d8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3b0
mov eax, dword [0x4308e4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d429
cmp dword [0x4308e8], edi
je 0x40d429
push eax
call ebx
push dword [0x4308e8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d429
test eax, eax
je 0x40d429
call ecx
test eax, eax
je 0x40d41e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d41e
test byte [ebp - 8], 1
jne 0x40d429
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d459
mov eax, dword [0x4308dc]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
call eax
mov esi, eax
test esi, esi
je 0x40d456
mov eax, dword [0x4308e0]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4308d8]
call ebx
test eax, eax
je 0x40d471
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d473
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040440e
mov esp, ebp
pop ebp
ret
Function at 0x47ef50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4e000]
mov dword [edi + 0x70378], 0x4f101441
push edi
jmp 0x47ef7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47ef81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47ef70
mov eax, 1
add ebx, ebx
jne 0x47ef93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47efa4
jne 0x47efc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47efc3
dec eax
add ebx, ebx
jne 0x47efb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x47ef88
add ebx, ebx
jne 0x47efbf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47f015
xor ecx, ecx
sub eax, 3
jb 0x47efdb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47f04a
sar eax, 1
mov ebp, eax
jmp 0x47efe6
add ebx, ebx
jne 0x47efe6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47efb4
inc ecx
add ebx, ebx
jne 0x47eff4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47efb4
add ebx, ebx
jne 0x47f001
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47eff6
jne 0x47f012
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47eff6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47f034
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47f026
jmp 0x47ef76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47f034
add edi, ecx
jmp 0x47ef76
pop esi
mov edi, esi
mov ecx, 0x1fa7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47f052
cmp byte [edi], 0x19
jne 0x47f052
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 0x47f057
lea edi, [esi + 0x79000]
mov eax, dword [edi]
or eax, eax
je 0x47f0c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7f1dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7f270]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47f084
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7f278]
or eax, eax
je 0x47f0c0
mov dword [ebx], eax
add ebx, 4
jmp 0x47f0a1
call dword [esi + 0x7f274]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x47f0f7
cmp al, 0xef
ja 0x47f0ea
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x47f0cc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x47f0d9
mov ebp, dword [esi + 0x7f27c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x47f12b
sub esp, 0xffffff80
jmp 0x42c2b4