joyce8/EMBER2024-capa huggingface dataset:
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 0x413e50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd000]
push edi
or ebp, 0xffffffff
jmp 0x413e72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x413e79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x413e68
mov eax, 1
add ebx, ebx
jne 0x413e8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x413e80
jne 0x413e9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413e80
xor ecx, ecx
sub eax, 3
jb 0x413eb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x413f22
mov ebp, eax
add ebx, ebx
jne 0x413ebb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x413ec8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x413eec
inc ecx
add ebx, ebx
jne 0x413ed8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x413ecd
jne 0x413ee9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413ecd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x413f0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x413efd
jmp 0x413e6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x413f0c
add edi, ecx
jmp 0x413e6e
pop esi
mov edi, esi
mov ecx, 0xaf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x413f2a
cmp byte [edi], 1
jne 0x413f2a
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 0x413f2f
lea edi, [esi + 0x11000]
mov eax, dword [edi]
or eax, eax
je 0x413fa7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14cac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x14d68]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x413f5c
mov ecx, edi
jns 0x413f8b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x14d70]
or eax, eax
je 0x413fa1
mov dword [ebx], eax
add ebx, 4
jmp 0x413f79
call dword [esi + 0x14d6c]
mov ebp, dword [esi + 0x14d74]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x413fdb
sub esp, 0xffffff80
jmp 0x403966
Function at 0x4372f3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x437302
pop dword [ebp - 0x38]
mov eax, 0x970768c6
sub eax, 0x96c3f5c4
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xad91bf86
sub dword [ebp - 0x48], 0x5f3f7a3b
mov dword [ebp - 0x44], 0xc92f1e27
add dword [ebp - 0x44], 0x69042e1e
mov dword [ebp - 0x40], 0x87d3b365
sub dword [ebp - 0x40], 0x3b876f37
mov dword [ebp - 0x3c], 0xc83b513d
add dword [ebp - 0x3c], 0x37c4aec3
lea eax, [ebp - 0x48]
push eax
mov eax, 0xa9c6f36a
sub eax, 0xa9834156
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x775e32f5
sub dword [ebp - 0x48], 0x2ebc99f
mov dword [ebp - 0x44], 0xdd913ab8
sub dword [ebp - 0x44], 0x9c24d943
mov dword [ebp - 0x40], 0x4c56c669
add dword [ebp - 0x40], 0x1718a603
mov dword [ebp - 0x3c], 0xf805f87c
add dword [ebp - 0x3c], 0x7fa0784
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x4289f
push 0
call eax
mov ecx, 0x9a4e4c15
sub ecx, 0x9a4e0bb9
xor ebx, ebx
add ebx, eax
mov edi, 0x8f150101
sub edi, 0x8eceb301
add edi, dword [ebp - 0x38]
mov edx, 0x58a40568
add edx, 0x4122fca
add dword [ebp - 0x1c], 0xe8a56257
mov esi, dword [edi]
sub dword [ebp - 0x14], edi
xor esi, edx
mov dword [ebp - 0xc], 0x6457d6c2
mov dword [ebx], esi
xor dword [ebp - 0x10], 0x80197c6e
add ebx, 4
add edi, 4
loop 0x437421
add eax, 0xe3afc14e
add eax, 0x1c5132f5
mov ebx, eax
add eax, 0x4765968b
sub eax, 0x47659686
mov ecx, 0x2592958
sub ecx, 0x2192958
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

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 0x62e42de8
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x18]
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
push edi
push dword [ebp + 0xc]
mov dword [eax], ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [0x10011c4]
cmp dword [ebp + 0x10], ebx
je 0x62e42e36
lea eax, [ebp - 4]
push eax
push 0x20019
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.62e42d70
mov edi, eax
cmp edi, ebx
jl 0x62e42efb
jmp 0x62e42e3c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x1001240]
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov edi, eax
cmp edi, 0xc0000023
je 0x62e42e70
cmp edi, ebx
jl 0x62e42efa
mov edi, 0xc0000001
jmp 0x62e42efa
mov eax, dword fs:[0x18]
push dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
mov ebx, dword [0x10011d0]
call ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x62e42edb
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0xc]
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov edi, eax
test edi, edi
jl 0x62e42efa
mov esi, dword [ebp - 8]
mov eax, dword [esi + 4]
cmp eax, dword [ebp + 0x14]
je 0x62e42eba
mov edi, 0xc0000024
jmp 0x62e42efa
sub dword [ebp + 0xc], 0xc
mov eax, dword fs:[0x18]
push dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
xor edi, edi
push edi
push dword [eax + 0x18]
call ebx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp eax, edi
jne 0x62e42ee2
mov edi, 0xc000009a
jmp 0x62e42efa
push dword [ebp + 0xc]
add esi, 0xc
push esi
push eax
call fcn.62e336d0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add esp, 0xc
mov dword [ecx], eax
pop esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
je 0x62e42f0a
push eax
call dword [0x10011b8]
cmp dword [ebp - 8], 0
je 0x62e42f27
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [0x10011d8]
mov eax, edi
pop edi
pop ebx
leave
ret 0x18
Function at 0x62ed4ada
Capabilities:
Encode data using xor

Disassembly:
jo 0x62ed4a74
bound ebx, qword [esi + 0x6d55661c]
sbb al, 0x66
push ebp
insd dword es:[edi], dx
adc bl, ch
mov bl, byte [ebx]
jne 0x62ed4a7b
fisttp qword [edx - 0x6efd8ae5]
xchg ecx, eax
xchg edi, eax
push cs
cmp ebp, esp
invalid
in eax, 0x36
xor cl, bl
imul ebp, dword [edi - 0x63], 0x4c
add cl, byte [edx - 0x29]
mov eax, dword [0x7bb204d9]
mov ch, 0x65
mov esi, ebp
mov esi, ebp
adc ebx, dword [edi - 0x5cedd919]
lahf
and dword [ecx], eax
pop esp
mov cl, 0xde
sti
push eax
xchg byte [eax + 0x34a3b4fc], dl
aas
and byte [ebx], al
jle 0x62ed4b18
adc ecx, esi
scasb al, byte es:[edi]
push 0xc57a3c8e
add eax, 0x9ca5cc49
les edx, [ebx - 0x2152adfa]
aaa
test eax, 0xc9e3500d
out dx, al
mov ecx, 0x3b76abd2
jle 0x62ed4af4
dec ecx
int3
sbb dword [ebx + ebx*4 + 0x72], ebp
xchg edi, eax
wait
jb 0x62ed4a6b
daa
adc esp, ecx
imul ecx, ebx, 0xf3a573be
jae 0x62ed4a81
lcall 0xe1a5, 0x31399f8c
mov esi, 0x9af3a573
mov word [edi - 0x1e5acec7], ds
jae 0x62ed4a81
lcall 0xe1a5, 0x31399f8c
loope 0x62ed4a6f
mov bh, byte [esi]
cmp al, 0x26
psadbw mm4, qword [edi + 0x72]
cmp esi, dword [esi - 0x3a]
xor eax, 0x9461f375
or bh, dl
xlatb
add eax, 0x28846d13
mov eax, 0xe228750
pop edi
loopne 0x62ed4b4d
jno 0x62ed4a92
pop ss
insd dword es:[edi], dx
test dl, dh
mov bh, 0xcb
or al, 0x53
clc
jnp 0x62ed4b20
js 0x62ed4ab7
insb byte es:[edi], dx
xchg byte [edi + edi*2], ch
mov byte [0x10f5fd5f], al
and cl, ch
js 0x62ed4ad9
cmc
adc byte [edx], ah
int 0x78
mov ebx, 0xa5f62279
in al, 0x83
jne 0x62ed4ae3
jns 0x62ed4b42
mul byte [ebp - 0x428a7c1c]
mov ebp, 0xb35da975
invalid
jne 0x62ed4ad1
pop ebp
mov bl, 0xfe
fmul st(6), st(0)
rcr byte [ebx - 0x4d588dea], 0x9d
salc
jne 0x62ed4b8a
push esi
dec ebx
or al, 0x56
out dx, eax
sal dword [ecx], 1
invalid
adc al, 0x89
xchg dword [edx + 0x77], esi
sub al, byte [edx]
inc edi
or byte [edi], cl
movsb byte es:[edi], byte [esi]
xor cl, byte [ebp - 0x459c843d]
push eax
stc
xor eax, dword [0x71b7be18]
sub al, 0xa4
jno 0x62ed4b9a
sub al, 0xa4
sbb ebp, dword [esp + edi - 0x537c842e]
fimul word [ebx + 0x42]
jp 0x62ed4b4d
ja 0x62ed4b9e
pop edx
leave
daa
stosb byte es:[edi], al
outsd dx, dword [esi]
inc eax
jne 0x62ed4b5a
jns 0x62ed4b25
test al, 0xb7
and dword [edi + ecx*4], ebp
push edi
out dx, al
rcr byte [esi + 0x154992c], 1
loopne 0x62ed4baf
mov dh, 0x86
adc dword [edx - 0x73], esp
out 0xcc, al
xchg dword [ebx + esi*4], ecx
or byte [ebx - 0x74], dh
ljmp 0xaa2d
dec ebx
lea eax, [ebx]
iretd
dec edx
retf 0x8244
push ebp
add byte [edi - 0x44], al
stosd dword es:[edi], eax
inc ecx
cdq
out 0x85, al
fidiv dword [ecx - 0x645f3935]
and dword [ecx + 0x5d], ebx
dec ebp
adc edi, edx
or ecx, edx
dec ecx
test dword [edi - 0x560aece5], ebx
pop esp
inc ebx
xchg ebp, eax
xor eax, 0x2f8311a9
adc ecx, edi
jb 0x62ed4bdc
jmp 0x3ef2a8f5
add eax, 0xff8b13dc
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
call fcn.62ef4cf2
pop ebp
ret
Function at 0x40298c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
nop
lea eax, [ebp - 0x44]
push eax
call sub.kernel32.dll_GetStartupInfoA
mov eax, dword [ebp - 0x18]
and eax, 1
cmp eax, 0
je 0x4029ba
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x50], eax
jmp 0x4029c2
mov eax, 0xa
mov dword [ebp - 0x50], eax
mov eax, 0
mov dword [ebp - 0x48], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
cmp eax, 0
je 0x4029f1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x4c]
push eax
call sub.msvcrt.dll_strstr
add esp, 8
mov dword [ebp - 0x48], eax
mov eax, 0
mov ecx, dword [ebp - 0x48]
cmp eax, ecx
jne 0x402a17
mov eax, 0x4039b4
push eax
call sub.msvcrt.dll__strdup
add esp, 4
mov dword [ebp - 0x48], eax
jmp 0x402a40
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jbe 0x402a40
mov eax, dword [ebp - 0x48]
add eax, 0xffffffff
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x402a40
mov eax, dword [ebp - 0x48]
add eax, 0xffffffff
mov dword [ebp - 0x48], eax
mov eax, 0x30000
push eax
mov eax, 0x10000
push eax
call sub.msvcrt.dll__controlfp
add esp, 8
mov eax, 0
push eax
call sub.kernel32.dll_GetModuleHandleA
mov ecx, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, 0
push ecx
push eax
call fcn.00402643
leave
ret
Function at 0x1013058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.010131a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x101307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x101306a
add dl, dl
jne 0x1013089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10130dc
xor eax, eax
add dl, dl
jne 0x1013096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x101317d
add dl, dl
jne 0x10130a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10130b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10130bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10130c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10130d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1013075
mov eax, 1
add dl, dl
jne 0x10130ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10130f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10130e1
sub eax, ebx
mov ebx, 1
jne 0x1013128
mov ecx, 1
add dl, dl
jne 0x101310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1013119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1013105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1013075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x101313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x101314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1013136
cmp eax, 0x7d00
jae 0x101316d
cmp eax, 0x500
jb 0x1013168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1013075
cmp eax, 0x7f
ja 0x1013170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1013075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x101319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1013075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4023a0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42129c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0x14], ebx
xor esi, esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4023f9
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x402401
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x402412
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x10], ebx
cmp esi, ebx
je 0x402427
push 0x41f9b0
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], esi
call fcn.0040b26a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040528e
mov esp, ebp
pop ebp
ret

Function at 0x402440
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x42129c]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.004023a0
test eax, eax
jne 0x4024d2
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4024d2
push 0x38
lea ecx, [ebp - 0x140]
push 0
push ecx
mov dword [ebp - 0x144], 0x3c
call fcn.0040a280
add esp, 0xc
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x108]
push eax
mov dword [ebp - 0x138], str.runas
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x128], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x4024e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040528e
mov esp, ebp
pop ebp
ret
push 0
call fcn.004068b6
int3
Function at 0x404060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419b88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42129c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x44], 0
je 0x40420f
cmp byte [ebx + 0x49], 0
je 0x40420f
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x404203
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x4040d6
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4040f3
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40412a
dec eax
je 0x40412e
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x40420a
call fcn.00402720
xor al, al
jmp 0x404211
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40413e
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40416b
cmp edi, 0x10
jae 0x40414d
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00406487
add esp, 0x10
cmp esi, eax
jne 0x4041fb
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x404207
test esi, esi
jne 0x4040e7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40422d
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40422d
cmp edi, esi
jae 0x4041e4
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004047e0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x4040e7
mov ecx, eax
cmp edi, 0x10
jae 0x4041c0
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x4041db
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x4040e1
test esi, esi
jne 0x4041b6
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x4041f3
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x4040e1
lea ecx, [ebp - 0x2c]
call fcn.00402720
xor al, al
jmp 0x404211
lea ecx, [ebp - 0x2c]
call fcn.00402720
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040528e
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.004136e0
int3
Function at 0x404590
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419aab
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x42129c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00413834
push 4
mov dword [ebp - 4], 0
call fcn.0040691e
mov edi, eax
add esp, 4
test edi, edi
je 0x404610
call fcn.004135fc
mov dword [edi], eax
call fcn.004133bb
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004137f5
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404606
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041381d
jmp 0x404612
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40528e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42129c]
jne 0x405298
repz ret
jmp fcn.00406b32

Function at 0x409f46
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x409f6d
call fcn.004071f6
mov dword [eax], esi
call fcn.004071e3
push 0x16
pop esi
mov dword [eax], esi
call fcn.00407191
mov eax, esi
jmp 0x409fc2
test dword [ebp + 0xc], 0xfffffff9
jne 0x409f53
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x409f9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407209
pop ecx
call fcn.004071e3
mov eax, dword [eax]
jmp 0x409fc2
test al, 0x10
jne 0x409fc0
test al, 1
je 0x409fc0
test byte [ebp + 0xc], 2
je 0x409fc0
call fcn.004071f6
mov dword [eax], 5
call fcn.004071e3
mov dword [eax], 0xd
jmp 0x409f91
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40f733
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42129c]
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.00407e3c
and dword [ebp - 0x14], 0
cmp dword [0x423454], 0
mov dword [ebp - 0x18], eax
jne 0x40f7e6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40f88e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40f88e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x423454], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x423458], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42345c], eax
call edi
push eax
call esi
mov dword [0x423464], eax
test eax, eax
je 0x40f7e6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x423460], eax
mov eax, dword [0x423460]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40f83f
cmp dword [0x423464], ecx
je 0x40f83f
push eax
call esi
push dword [0x423464]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40f83f
test ebx, ebx
je 0x40f83f
call edi
test eax, eax
je 0x40f836
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40f836
test byte [ebp - 8], 1
jne 0x40f83f
or dword [ebp + 0x10], 0x200000
jmp 0x40f872
mov eax, dword [0x423458]
cmp eax, dword [ebp - 0x18]
je 0x40f872
push eax
call esi
test eax, eax
je 0x40f872
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40f872
mov eax, dword [0x42345c]
cmp eax, dword [ebp - 0x18]
je 0x40f872
push eax
call esi
test eax, eax
je 0x40f872
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x423454]
call esi
test eax, eax
je 0x40f88e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40f890
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040528e
leave
ret

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