joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101451fe
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1014523d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1014523d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1014523d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1014523d
cmp dword [ecx + 0x74], 0xe
jbe 0x1014523d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x101468f4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x101add08]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10146934
cmp byte [ebx], 0xa
jne 0x10146934
or byte [edi + eax + 0x28], 4
jmp 0x10146939
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10146a38
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10146a1b
inc eax
cmp dl, 0xd
je 0x10146965
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1014698b
cmp eax, ecx
jae 0x10146999
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1014694d
jmp 0x10146a38
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10146a16
cmp dword [ebp - 0x10], 0
je 0x10146a16
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101add08]
test byte [eax + edi + 0x28], 0x48
je 0x101469f0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x101469db
mov byte [esi], dl
jmp 0x101469ec
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101add08]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10146a38
cmp byte [ebp - 1], 0xa
jne 0x101469ff
cmp esi, ebx
jne 0x101469ff
mov byte [esi], 0xa
jmp 0x10146a37
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.101420a3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10146a38
mov byte [esi], 0xd
jmp 0x10146a37
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101add08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10146a35
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10146a38
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10146a41
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x101add08]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10146a87
cmp word [ebx], dx
jne 0x10146a87
or byte [eax + edi + 0x28], 4
jmp 0x10146a8c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10146bef
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10146bcf
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10146acd
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10146b03
cmp eax, edx
jae 0x10146b11
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10146aa8
jmp 0x10146bef
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10146bca
cmp dword [ebp - 0x18], 0
je 0x10146bca
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x101add08]
test byte [eax + edi + 0x28], 0x48
je 0x10146ba0
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10146b64
mov word [esi], cx
jmp 0x10146b9b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x101add08]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x101add08]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x101add08]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10146bef
pop eax
cmp word [ebp - 4], ax
jne 0x10146bb0
cmp esi, ebx
jne 0x10146bb0
mov word [esi], ax
jmp 0x10146bec
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.101420a3
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10146bef
push 0xd
pop eax
jmp 0x10146bab
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x101add08]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10146be9
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10146bef
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1014898e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10182244
push 0x1018223c
push 0x10180088
push 0x1f
call fcn.101487b9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101489c2
push dword [ebp + 8]
mov ecx, esi
call dword [0x1015f3cc]
call esi
jmp 0x101489c8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10148a0c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10182254
push 0x1018224c
push 0x101800ac
push 0x21
call fcn.101487b9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10148a43
push dword [ebp + 8]
mov ecx, esi
call dword [0x1015f3cc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10148a4b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1018225c
push 0x10182254
push 0x101800c0
push 0x22
call fcn.101487b9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10148a85
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1015f3cc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1014d2a6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.101309d0
mov eax, dword [0x101a7680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1014c047
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1014d2e8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1014d444
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.101304d0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x101add08]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10142085
mov ecx, dword [esi*4 + 0x101add08]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1014d43d
cmp eax, dword [ecx + edi + 0x24]
jne 0x1014d43d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1014d43d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10142085
add esp, 0x14
test edx, edx
jl 0x1014d43d
jg 0x1014d3b3
test eax, eax
jb 0x1014d43d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1014d43d
jl 0x1014d3cd
cmp dword [ebp - 0x1008], eax
ja 0x1014d43d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1014d3eb
test ebx, ebx
je 0x1014d424
cmp ecx, edi
jae 0x1014d424
mov al, byte [ecx]
cmp al, 0xd
jne 0x1014d405
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1014d411
cmp byte [ecx + 1], 0xa
jne 0x1014d411
inc ecx
jmp 0x1014d411
movzx eax, al
movsx eax, byte [eax + 0x101a7838]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1014d3eb
cmp edx, ebx
jne 0x1014d3eb
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1014d442
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1012fb43
leave
ret
Function at 0x1014ff61
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1014fffe
push ebx
push esi
call fcn.1014ff2a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1014b129
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1014ffab
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1014fffd
push edi
push eax
call fcn.1014af89
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1014ffcb
call fcn.101484da
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1014fffc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1014b129
add esp, 0x20
test eax, eax
jne 0x1014ffea
push edi
call fcn.101484da
jmp 0x1014fff2
push ebx
call fcn.101484da
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10150001
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10150012
pop esi
ret
push ebx
push edi
push esi
call fcn.1014ff2a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1014af89
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1015003a
push ebx
push esi
push edi
call fcn.10131920
add esp, 0xc
push 0
call fcn.101484da
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1015040a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1015004f

Function at 0x101529b4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10148192
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10152a23
cmp esi, dword [ebp - 4]
je 0x10152a1e
cmp dword [ebp + 0xc], 0
je 0x10152a1e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x101529fb
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10152506
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10152a25
xor eax, eax
inc eax
jmp 0x10152a25
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10152a8a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101a7680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10148192
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10148192
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10152b01
cmp word [ecx], dx
je 0x10152b01
mov eax, dword [0x10185304]
push edi
dec eax
push eax
push 0x101851f0
call fcn.10152a29
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10152b74
cmp word [eax], dx
je 0x10152b74
mov eax, dword [edi]
test eax, eax
je 0x10152b25
cmp word [eax], dx
je 0x10152b25
lea eax, [ebp - 0x10]
push eax
call fcn.1015240c
jmp 0x10152b2e
lea eax, [ebp - 0x10]
push eax
call fcn.101524a7
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10152b9e
mov eax, dword [0x101851ec]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10184ee0
call fcn.10152a29
add esp, 0xc
test al, al
je 0x10152b9e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10152b69
cmp word [eax], di
je 0x10152b69
lea eax, [ebp - 0x10]
push eax
call fcn.1015240c
pop ecx
jmp 0x10152ba0
lea eax, [ebp - 0x10]
push eax
call fcn.101524a7
jmp 0x10152b66
mov eax, dword [edi]
test eax, eax
je 0x10152b8b
cmp word [eax], dx
je 0x10152b8b
lea eax, [ebp - 0x10]
push eax
call fcn.101523c1
pop ecx
jmp 0x10152b9e
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10152c69
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.101528ae
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10152c69
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10152c69
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10152c69
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10152bf6
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10148c27
test ebx, ebx
je 0x10152c64
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10148c27
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10152c69
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10152c69
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.101564b9
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10152c6b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012fb43
leave
ret
Function at 0x10157b10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10157b3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10157b3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431b78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x441674]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x403921
cmp byte [edi + 0x49], bl
je 0x403921
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x403915
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x403874
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40388c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4038b5
dec eax
je 0x4038b9
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x403910
jmp 0x40391c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4038c9
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4038f2
cmp ebx, 0x10
jae 0x4038d8
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00419b08
add esp, 0x10
cmp esi, eax
jne 0x40390d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x403919
test esi, esi
jne 0x403880
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.004034c0
jmp 0x40387a
lea ecx, [ebp - 0x2c]
call fcn.004055b0
xor al, al
jmp 0x403923
lea ecx, [ebp - 0x2c]
call fcn.004055b0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418ceb
mov esp, ebp
pop ebp
ret
Function at 0x403ab0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4315db
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x441674]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041809b
push 4
mov dword [ebp - 4], 0
call fcn.00419410
mov edi, eax
add esp, 4
test edi, edi
je 0x403b2c
call fcn.004184e3
mov dword [edi], eax
call fcn.004182a2
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004181d7
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403b22
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004181ff
jmp 0x403b2e
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 4
Function at 0x40be90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431de7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x441674]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x438c24
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov esi, dword [edx + 4]
add esi, ebx
mov dword [ebp - 0x10], 1
call fcn.00403e80
lea edi, [ebx + 4]
push esi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0
call fcn.00403be0
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x40bf1d
mov eax, dword [esi + 0xc]
or eax, 4
or eax, 4
push 0
mov ecx, esi
call fcn.00405430
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push edi
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.00403ab0
lea edx, [edi + 8]
mov dword [edi + 0x10], edx
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], ecx
lea edx, [edi + 0x1c]
mov dword [edi + 0x24], edx
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [edi + 0x50], 0
mov byte [edi + 0x49], 0
lea ecx, [edi + 0x28]
mov dword [edi + 0x30], ecx
xor ecx, ecx
lea eax, [edi + 0xc]
mov dword [edi + 0x14], eax
lea edx, [edi + 0x2c]
mov dword [edi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [edi + 0x24]
mov dword [eax], ecx
mov edx, dword [edi + 0x34]
mov dword [edx], ecx
mov eax, dword [edi + 0x10]
mov dword [eax], ecx
mov edx, dword [edi + 0x20]
mov dword [edx], ecx
mov eax, dword [edi + 0x30]
mov edx, dword [0x443da8]
mov dword [eax], ecx
mov dword [edi + 0x54], ecx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4164a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_IsCharLowerA]
push 0x41
call edi
push 0x61
call dword [sym.imp.USER32.dll_IsCharAlphaNumericA]
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, esi
je 0x4164da
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetParent]
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x41
call edi
push 0x42
call dword [sym.imp.USER32.dll_IsCharUpperA]
pop edi
pop esi
pop ebp
ret 4
Function at 0x418ceb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x441674]
jne 0x418cf5
repz ret
jmp fcn.0041f3e3

Function at 0x428274
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x441674]
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.004221e7
and dword [ebp - 0x14], 0
cmp dword [0x443d80], 0
mov dword [ebp - 0x18], eax
jne 0x428327
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4283cf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4283cf
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x443d80], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x443d84], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x443d88], eax
call edi
push eax
call esi
mov dword [0x443d90], eax
test eax, eax
je 0x428327
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x443d8c], eax
mov eax, dword [0x443d8c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x428380
cmp dword [0x443d90], ecx
je 0x428380
push eax
call esi
push dword [0x443d90]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x428380
test ebx, ebx
je 0x428380
call edi
test eax, eax
je 0x428377
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x428377
test byte [ebp - 8], 1
jne 0x428380
or dword [ebp + 0x10], 0x200000
jmp 0x4283b3
mov eax, dword [0x443d84]
cmp eax, dword [ebp - 0x18]
je 0x4283b3
push eax
call esi
test eax, eax
je 0x4283b3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4283b3
mov eax, dword [0x443d88]
cmp eax, dword [ebp - 0x18]
je 0x4283b3
push eax
call esi
test eax, eax
je 0x4283b3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x443d80]
call esi
test eax, eax
je 0x4283cf
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4283d1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418ceb
leave
ret

Function at 0x43b658
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop esi
add edi, 0xd5d64330
sub edi, 0x23c2659
mov edi, edi
call fcn.0043b689
sub edi, edi
xor dword [ecx], esi
dec edi
inc ecx
inc eax
cmp ecx, ebx
jne fcn.0043b658
sub edi, edi
ret