joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003ca27
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x1006075f
call fcn.10044dac
mov ebx, dword [ebp + 8]
xor edi, edi
or esi, 0xffffffff
test edi, edi
jne 0x1003ca50
cmp dword [0x1009b838], edi
je 0x1003cb3a
push 2
pop ebx
jmp 0x1003ca6a
cmp edi, 1
jne 0x1003cb3a
mov eax, ebx
call fcn.1003d8f8
test al, al
je 0x1003cb3a
xor ebx, ebx
lea ecx, [ebp - 0xd]
mov dword [ebp - 0x1c], ebx
call fcn.1003d91a
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
movzx eax, word [ecx + 0xc]
shr eax, 1
and eax, 0x10
or eax, ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ecx + 8]
jmp 0x1003cb1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1003cab1
mov eax, dword [ebx]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push ecx
push 0
push dword [ebp + 0x18]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov esi, eax
call fcn.1003d111
test eax, eax
je 0x1003cb4e
push 0x1c049f
push 0
call fcn.10048ae2
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
and dword [eax + 0x10069520], 0
push ebx
mov ecx, 0x1009b848
call fcn.10048ae2
movzx eax, word [esi + 0xc]
and dword [ebp - 0x14], 0
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x1c]
push 0
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
call fcn.1003d228
mov esi, eax
test esi, esi
je 0x1003ca9d
mov ebx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.1003d93b
inc edi
cmp edi, 2
jl 0x1003ca38
mov eax, esi
call fcn.10044e84
ret 0x18
push ebx
mov ecx, 0x1009b848
call fcn.10048ae2
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x1003cb2e
movzx ecx, word [ebx + 0xc]
mov eax, ecx
and eax, 0xf
cmp dword [ebp - 0x20], eax
je 0x1003cb89
cmp dword [ebp - 0x20], 3
jne 0x1003cb84
mov eax, dword [ebp + 0x14]
cmp dword [eax], 4
jne 0x1003cb84
and cl, 0xf
cmp cl, 4
je 0x1003cb89
push 2
pop esi
jmp 0x1003cb2e
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0xd]
mov dword [eax], 1
call fcn.1003d93b
xor eax, eax
jmp 0x1003cb46
Function at 0x1003d012
Capabilities:
Query or enumerate registry value

Disassembly:
push 4
mov eax, 0x100607d0
call fcn.10044dac
mov esi, dword [ebp + 8]
cmp esi, dword [0x1009b844]
jne 0x1003d030
xor al, al
jmp 0x1003d109
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x1003d041
xor ecx, ecx
cmp dword [0x1009b838], ecx
jmp 0x1003d04c
mov eax, esi
call fcn.1003d8f8
xor ecx, ecx
test al, al
sete cl
test ecx, ecx
jne 0x1003d029
xor edi, edi
lea ecx, [ebp + 0xf]
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edi
call fcn.1003d91a
mov dword [ebp - 4], edi
movzx edi, bl
neg edi
sbb edi, edi
and edi, 2
xor ebx, ebx
jmp 0x1003d0ca
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1003d080
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push dword [esi]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov ebx, eax
call fcn.1003d111
test eax, eax
je 0x1003d0ef
push 0x1c04c2
xor ebx, ebx
push ebx
call fcn.10048ae2
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp + 8]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x1009b848
mov dword [eax + 0x10069520], ebx
call fcn.10048ae2
mov dword [ebp + 8], ebx
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
push ebx
or eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call fcn.1003d228
mov ebx, eax
test ebx, ebx
je 0x1003d074
jmp 0x1003d0fc
push dword [ebp + 8]
mov ecx, 0x1009b848
call fcn.10048ae2
lea ecx, [ebp + 0xf]
call fcn.1003d93b
test ebx, ebx
sete al
call fcn.10044e84
ret 8
Function at 0x1003d95c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x10060826
call fcn.10044dac
mov esi, dword [ebp + 8]
cmp esi, dword [0x1009b844]
jne 0x1003d97a
xor eax, eax
jmp 0x1003dadf
and dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], ecx
xor ebx, ebx
or edi, 0xffffffff
test ebx, ebx
jne 0x1003d99d
cmp dword [0x1009b838], ebx
je 0x1003da9f
push 2
pop edi
jmp 0x1003d9b7
cmp ebx, 1
jne 0x1003da9f
mov eax, esi
call fcn.1003d8f8
test al, al
je 0x1003da9f
xor edi, edi
and dword [ebp - 0x10], 0
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x20], edi
call fcn.1003d91a
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
push eax
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, edi
jmp 0x1003da62
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1003d9eb
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push dword [esi]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
cmp dword [ebp - 0x18], 2
mov edi, eax
jae 0x1003da17
cmp dword [ebp - 0x1c], 1
je 0x1003da14
cmp dword [ebp - 0x1c], 2
jne 0x1003da17
push 2
pop edi
mov eax, edi
call fcn.1003d111
test eax, eax
je 0x1003da7f
push 0x1c0496
xor edi, edi
push edi
call fcn.10048ae2
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp - 0x10]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x1009b848
mov dword [eax + 0x10069520], edi
call fcn.10048ae2
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push edi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call fcn.1003d228
mov edi, eax
test edi, edi
je 0x1003d9df
jmp 0x1003da90
push dword [ebp - 0x10]
mov ecx, 0x1009b848
call fcn.10048ae2
test edi, edi
je 0x1003daab
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.1003d93b
mov ecx, dword [ebp - 0x18]
inc ebx
cmp ebx, 2
jl 0x1003d985
jmp 0x1003daba
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.1003d93b
mov ecx, dword [ebp - 0x18]
test edi, edi
jne 0x1003dad5
cmp dword [ebp - 0x1c], 2
je 0x1003dacd
mov al, byte [esi + 0xc]
and al, 0xf
cmp al, 2
jne 0x1003dadd
push ecx
call fcn.10048ae2
jmp 0x1003dadb
push esi
call fcn.10048ae2
mov ecx, eax
mov eax, ecx
call fcn.10044e84
ret 4
Function at 0x100443d6
Capabilities:
Accept command line arguments

Disassembly:
push 8
push 0x10065410
call fcn.100491c2
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x10044464
call fcn.10049190
test eax, eax
jne 0x100443fa
xor eax, eax
jmp 0x10044530
call fcn.10048570
test eax, eax
jne 0x1004440a
call fcn.100491ae
jmp 0x100443f3
call fcn.10049144
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x100a4814], eax
call fcn.10048ae2
mov dword [0x1009c15c], eax
call fcn.10048ae2
test eax, eax
jns 0x10044434
call fcn.10048249
jmp 0x10044403
call fcn.10048ae2
test eax, eax
js 0x1004445d
call fcn.10048d7a
test eax, eax
js 0x1004445d
push 0
call fcn.10048ae2
pop ecx
test eax, eax
jne 0x1004445d
inc dword [0x1009c158]
jmp 0x1004452d
call fcn.10048d27
jmp 0x1004442d
xor edi, edi
cmp eax, edi
jne 0x100444c3
cmp dword [0x1009c158], edi
jle 0x100443f3
dec dword [0x1009c158]
mov dword [ebp - 4], edi
cmp dword [0x1009c4d4], edi
jne 0x10044488
call fcn.10048ab5
cmp dword [ebp + 0x10], edi
jne 0x1004449c
call fcn.10048d27
call fcn.10048249
call fcn.100491ae
mov dword [ebp - 4], 0xfffffffe
call fcn.100444af
jmp 0x1004452d
cmp eax, 2
jne 0x10044521
call fcn.10048215
push 0x214
push 1
call fcn.10048ae2
pop ecx
pop ecx
mov esi, eax
cmp esi, edi
je 0x100443f3
push esi
push dword [0x10099c00]
push dword [0x1009c4b4]
call dword [sym.imp.kernel32.dll_DecodePointer]
call eax
test eax, eax
je 0x10044515
push edi
push esi
call fcn.1004828a
pop ecx
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
jmp 0x1004452d
push esi
call fcn.10048ae2
pop ecx
jmp 0x100443f3
cmp eax, 3
jne 0x1004452d
push edi
call fcn.10048ae2
pop ecx
xor eax, eax
inc eax
call fcn.10049207
ret 0xc

Function at 0x10044d52
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10099bf8]
jne 0x10045df9
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1009c280], eax
mov dword [0x1009c27c], ecx
mov dword [0x1009c278], edx
mov dword [0x1009c274], ebx
mov dword [0x1009c270], esi
mov dword [0x1009c26c], edi
mov word [0x1009c298], ss
mov word [0x1009c28c], cs
mov word [0x1009c268], ds
mov word [0x1009c264], es
mov word [0x1009c260], fs
mov word [0x1009c25c], gs
pushfd
pop dword [0x1009c290]
mov eax, dword [ebp]
mov dword [0x1009c284], eax
mov eax, dword [ebp + 4]
mov dword [0x1009c288], eax
lea eax, [ebp + 8]
mov dword [0x1009c294], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1009c1d0], 0x10001
mov eax, dword [0x1009c288]
mov dword [0x1009c184], eax
mov dword [0x1009c178], 0xc0000409
mov dword [0x1009c17c], 1
mov eax, dword [0x10099bf8]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10099bfc]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1009c1c8], eax
push 1
call fcn.1004cb7b
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10010bdc
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1009c1c8], 0
jne 0x10045ee5
push 1
call fcn.1004cb7b
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x10048ae2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x10048af1
pop dword [ebp - 0x2c]
mov eax, 0x3591a59d
add eax, 0xda72e554
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xe6c63b40
sub dword [ebp - 0x3c], 0x9873f5f5
mov dword [ebp - 0x38], 0xebebafb2
sub dword [ebp - 0x38], 0xb9b8636d
mov dword [ebp - 0x34], 0x3a2de89f
sub dword [ebp - 0x34], 0xede1a471
mov dword [ebp - 0x30], 0x1e2591f7
add dword [ebp - 0x30], 0xe1da6e09
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x8824b0da
sub eax, 0x78249e52
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xcfe787d2
sub dword [ebp - 0x3c], 0x5b751e7c
mov dword [ebp - 0x38], 0xe249322b
sub dword [ebp - 0x38], 0xa0dcd0b6
mov dword [ebp - 0x34], 0x5af8a8f9
sub dword [ebp - 0x34], 0xf7893c8d
mov dword [ebp - 0x30], 0xed15e9c7
sub dword [ebp - 0x30], 0xed15e9c7
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xf359018f
add eax, 0x1ca710bd
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x43c4f
push 0
call eax
mov ecx, 0xa2184f3e
sub ecx, 0xa2181e9e
xor esi, esi
add esi, eax
mov edi, 0x8d0e9c44
add edi, 0x82fe87bc
add edi, dword [ebp - 0x2c]
mov edx, 0xd3397d19
sub edx, 0x1441ab7f
mov dword [ebp - 4], 0x90cb7574
mov ebx, dword [edi]
xor ebx, edx
mov dword [ebp - 0x18], 0x6dc03607
mov dword [esi], ebx
xor dword [ebp - 0x24], 0x1ef103e6
add esi, 0x653f103e
add esi, 0x9ac0efc6
add edi, 0xd52aa435
add edi, 0x2ad55bcf
loop 0x10048c15
add eax, 0xb553
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x10015217
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002d711
call fcn.10017005
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015234
xor eax, eax
jmp 0x10015311
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001530f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x100152e5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000128b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000128b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10023f77
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x100152ef
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x10015264
jmp 0x10015308
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016faf
ret

Function at 0x10023f77
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x10023f86
pop dword [ebp - 0x50]
mov eax, 0x10023f86
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3e3e6
push 0
mov eax, 0x58e5f5bd
add eax, 0xb71cfb9f
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x294a6b7f
add ecx, 0xd6b5d466
xor edx, edx
add edx, eax
mov ebx, 0x1004ac00
add ebx, dword [ebp - 0x50]
mov esi, 0xa69f0c7b
sub esi, 0x445bd816
mov edi, dword [ebx]
xor dword [ebp - 0x44], ecx
add edi, esi
mov dword [edx], edi
add dword [ebp - 0x1c], 0x12cbc03f
add edx, 0x42c9d3ea
add edx, 0xbd362c1a
add ebx, 0x7dc712f0
add ebx, 0x8238ed14
loop 0x10023fdc
add eax, 0xefe79717
sub eax, 0xefe6a4b0
mov ebx, eax
add eax, 5
mov ecx, 0xd44d453d
add ecx, 0x3bb2bac3
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x405e40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x41da8c], 0
jne 0x40611a
push esi
push str.0:db1:lk0:hs0:ld0:ll0:hb1:pj52.4_.4202:zb0.1:bb
mov byte [0x41da8c], 1
call fcn.0040773f
push 0x12a0
push 0
push 0x41c7d8
call fcn.0040c840
push 0
push 0x41c7f6
push 0x4175ec
call fcn.00405d70
push 0
push 0x41c9f4
push 0x4175f4
call fcn.00405d70
push 0x41ca30
push 0
push 0x4175fc
call fcn.00405d70
push 0
push 0x41ca34
push 0x417604
call fcn.00405d70
add esp, 0x40
push 0
push 0x41cc32
push 0x41760c
call fcn.00405d70
push 0x41cc70
push 0
push 0x417614
call fcn.00405d70
push 0
push 0x41cc74
push 0x41761c
call fcn.00405d70
push 0
push 0x41ce72
push 0x417624
call fcn.00405d70
push 0x41ceb0
push 0
push 0x41762c
call fcn.00405d70
push 0
push 0x41ceb4
push 0x417634
call fcn.00405d70
add esp, 0x48
push 0
push 0x41cef0
push 0x41763c
call fcn.00405d70
push 0
push 0x41cf2c
push 0x417644
call fcn.00405d70
push 0
push 0x41cf90
push 0x41764c
call fcn.00405d70
push 0
push 0x41cff4
push 0x417654
call fcn.00405d70
push 0x41d058
push 0
push 0x41765c
call fcn.00405d70
push 0x41d05c
push 0
push 0x417664
call fcn.00405d70
add esp, 0x48
push 0x41d060
push 0
push 0x41766c
call fcn.00405d70
push 0x41d064
push 0
push 0x417674
call fcn.00405d70
push 0x41d068
push 0
push 0x41767c
call fcn.00405d70
push 0x41d06c
push 0
push 0x417684
call fcn.00405d70
push 0x41d070
push 0
push 0x41768c
call fcn.00405d70
push 0x41d074
push 0
push 0x417694
call fcn.00405d70
add esp, 0x48
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.Console
push connect
mov dword [ebp - 8], 3
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406042
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
push str.IpDate
push eax
call esi
cmp dword [ebp - 4], 0xa
jbe 0x406119
push 0x7d0
push 0
push str.0:db1:lk0:hs0:ld0:ll0:hb1:pj52.4_.4202:zb0.1:bb
call fcn.0040c840
mov eax, dword [ebp - 0xc]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push str.0:db1:lk0:hs0:ld0:ll0:hb1:pj52.4_.4202:zb0.1:bb
lea edx, [ebp - 8]
push edx
push 0
push str.IpDate
push eax
call esi
push 0
push 0x41c7f6
push 0x4175ec
call fcn.00405d70
push 0
push 0x41c9f4
push 0x4175f4
call fcn.00405d70
push 0x41ca30
push 0
push 0x4175fc
call fcn.00405d70
push 0
push 0x41ca34
push 0x417604
call fcn.00405d70
push 0
push 0x41cc32
push 0x41760c
call fcn.00405d70
push 0x41cc70
push 0
push 0x417614
call fcn.00405d70
add esp, 0x48
push 0
push 0x41cc74
push 0x41761c
call fcn.00405d70
push 0
push 0x41ce72
push 0x417624
call fcn.00405d70
push 0x41ceb0
push 0
push 0x41762c
call fcn.00405d70
add esp, 0x24
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c52c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4191b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00409846
and dword [ebp - 0x14], 0
cmp dword [0x41b8f4], 0
mov dword [ebp - 0x18], eax
jne 0x40c5df
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c687
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40c687
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41b8f4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41b8f8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41b8fc], eax
call edi
push eax
call esi
mov dword [0x41b904], eax
test eax, eax
je 0x40c5df
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41b900], eax
mov eax, dword [0x41b900]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c638
cmp dword [0x41b904], ecx
je 0x40c638
push eax
call esi
push dword [0x41b904]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c638
test ebx, ebx
je 0x40c638
call edi
test eax, eax
je 0x40c62f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c62f
test byte [ebp - 8], 1
jne 0x40c638
or dword [ebp + 0x10], 0x200000
jmp 0x40c66b
mov eax, dword [0x41b8f8]
cmp eax, dword [ebp - 0x18]
je 0x40c66b
push eax
call esi
test eax, eax
je 0x40c66b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c66b
mov eax, dword [0x41b8fc]
cmp eax, dword [ebp - 0x18]
je 0x40c66b
push eax
call esi
test eax, eax
je 0x40c66b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41b8f4]
call esi
test eax, eax
je 0x40c687
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c689
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004069d5
leave
ret

Function at 0x438c89
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x438a14
mov esi, dword [esp]
add esp, 4
add edi, 0x8bdc65f1
sub eax, 0x75f5e6c0
call fcn.00438cdd
and eax, eax
xor dword [ecx], esi
mov edi, 0x469bf053
add ecx, 1
mov eax, 0x466cb0ca
or edi, eax
cmp ecx, edx
jne fcn.00438c89
sub eax, 0xb5ebff5c
dec eax
ret
Function at 0x40d3c8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a428]
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.00408b07
mov dword [ebp - 0x14], eax
cmp dword [0x819a60], esi
jne 0x40d4bb
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d448
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d59b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d59b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d59b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x819a60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x819a64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x819a68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x819a70], eax
test eax, eax
je 0x40d4b8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x819a6c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d4e0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d4d3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d4f5
push 4
pop eax
jmp 0x40d59d
cmp dword [ebp - 0x14], esi
je 0x40d4f5
push dword [0x819a60]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d4da
mov eax, dword [0x819a6c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d553
cmp dword [0x819a70], edi
je 0x40d553
push eax
call ebx
push dword [0x819a70]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d553
test eax, eax
je 0x40d553
call ecx
test eax, eax
je 0x40d548
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 0x40d548
test byte [ebp - 8], 1
jne 0x40d553
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d583
mov eax, dword [0x819a64]
cmp eax, edi
je 0x40d580
push eax
call ebx
test eax, eax
je 0x40d580
call eax
mov esi, eax
test esi, esi
je 0x40d580
mov eax, dword [0x819a68]
cmp eax, edi
je 0x40d580
push eax
call ebx
test eax, eax
je 0x40d580
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x819a60]
call ebx
test eax, eax
je 0x40d59b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d59d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403f70
mov esp, ebp
pop ebp
ret