joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420a5f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x453010]
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.0041bc9c
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.0041bc9c
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 0x420ad6
cmp word [ecx], dx
je 0x420ad6
mov eax, dword [0x448e94]
push edi
dec eax
push eax
push 0x448d80
call fcn.00420c4f
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x420b49
cmp word [eax], dx
je 0x420b49
mov eax, dword [edi]
test eax, eax
je 0x420afa
cmp word [eax], dx
je 0x420afa
lea eax, [ebp - 0x10]
push eax
call fcn.00420cb0
jmp 0x420b03
lea eax, [ebp - 0x10]
push eax
call fcn.00420f9e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x420b73
mov eax, dword [0x448d7c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x448a70
call fcn.00420c4f
add esp, 0xc
test al, al
je 0x420b73
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x420b3e
cmp word [eax], di
je 0x420b3e
lea eax, [ebp - 0x10]
push eax
call fcn.00420cb0
pop ecx
jmp 0x420b75
lea eax, [ebp - 0x10]
push eax
call fcn.00420f9e
jmp 0x420b3b
mov eax, dword [edi]
test eax, eax
je 0x420b60
cmp word [eax], dx
je 0x420b60
lea eax, [ebp - 0x10]
push eax
call fcn.004210d2
pop ecx
jmp 0x420b73
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 0x420c3e
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004211c4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x420c3e
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.DLL_IsValidCodePage]
test eax, eax
je 0x420c3e
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_IsValidLocale]
test eax, eax
je 0x420c3e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x420bcb
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041c74b
test ebx, ebx
je 0x420c39
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041c74b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x420c3e
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 0x420c3e
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004161cb
add esp, 0x10
xor eax, eax
inc eax
jmp 0x420c40
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406639
leave
ret
Function at 0x4212ca
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041bc9c
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 0x421339
cmp esi, dword [ebp - 4]
je 0x421334
cmp dword [ebp + 0xc], 0
je 0x421334
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x421311
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00421393
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42133b
xor eax, eax
inc eax
jmp 0x42133b
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4216e2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x453010]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x42172d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00421858
test al, al
jne 0x421727
sub edx, 2
cmp edx, edi
jne 0x42170d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42174f
lea eax, [edi + 2]
cmp edx, eax
je 0x42174f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042162e
add esp, 0x10
jmp 0x421849
push esi
lea ecx, [ebp - 0x255]
call fcn.00421858
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x421792
push dword [ebp - 0x25c]
jmp 0x42173f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4217cf
cmp word [ebp - 0x226], 0
je 0x4217f0
cmp word [ebp - 0x226], ax
jne 0x4217cf
cmp word [ebp - 0x224], 0
je 0x4217f0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042162e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42183c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4217a9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x421824
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
jmp 0x421849
push 0x42187c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00428a90
add esp, 0x10
jmp 0x421819
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406639
leave
ret
Function at 0x42218f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4221a0
pop esi
ret
push ebx
push edi
push esi
call fcn.004221dd
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041de26
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4221c8
push ebx
push esi
push edi
call fcn.004092e0
add esp, 0xc
push 0
call fcn.0041b634
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x422214
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042221f
Function at 0x424aff
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 + 0x4555c8]
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 0x424b3f
cmp byte [ebx], 0xa
jne 0x424b3f
or byte [edi + eax + 0x28], 4
jmp 0x424b44
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 0x424c43
mov dl, byte [eax]
cmp dl, 0x1a
je 0x424c26
inc eax
cmp dl, 0xd
je 0x424b70
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x424b96
cmp eax, ecx
jae 0x424ba4
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 0x424b58
jmp 0x424c43
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 0x424c21
cmp dword [ebp - 0x10], 0
je 0x424c21
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4555c8]
test byte [eax + edi + 0x28], 0x48
je 0x424bfb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x424be6
mov byte [esi], dl
jmp 0x424bf7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4555c8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x424c43
cmp byte [ebp - 1], 0xa
jne 0x424c0a
cmp esi, ebx
jne 0x424c0a
mov byte [esi], 0xa
jmp 0x424c42
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00424e46
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x424c43
mov byte [esi], 0xd
jmp 0x424c42
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4555c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x424c40
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x424c43
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x424c4c
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 + 0x4555c8]
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 0x424c92
cmp word [ebx], dx
jne 0x424c92
or byte [eax + edi + 0x28], 4
jmp 0x424c97
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 0x424dfa
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 0x424dda
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x424cd8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x424d0e
cmp eax, edx
jae 0x424d1c
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 0x424cb3
jmp 0x424dfa
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 0x424dd5
cmp dword [ebp - 0x18], 0
je 0x424dd5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4555c8]
test byte [eax + edi + 0x28], 0x48
je 0x424dab
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 0x424d6f
mov word [esi], cx
jmp 0x424da6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4555c8]
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 + 0x4555c8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4555c8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x424dfa
pop eax
cmp word [ebp - 4], ax
jne 0x424dbb
cmp esi, ebx
jne 0x424dbb
mov word [esi], ax
jmp 0x424df7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00424e46
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x424dfa
push 0xd
pop eax
jmp 0x424db6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4555c8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x424df4
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x424dfa
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 0x433820
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x404d80
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword fs:[0], eax
test byte [ecx + 4], 1
jne 0x4338b7
movzx edi, byte [ebp + 0x18]
mov eax, dword [esi]
mov ebx, dword [eax + 0x18]
mov ecx, ebx
call dword [section..00cfg]
movsx eax, byte [ebp + 0x14]
mov ecx, esi
push edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
call ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
shr al, 7
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
mov dword [edx], esi
test al, al
je 0x4338a9
push ecx
call fcn.00405d0c
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
jmp 0x433887
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea esi, [ebp - 0x30]
push esi
call fcn.0042cc60
mov dword [ebp - 0x10], 0
mov ecx, esi
push 0x455e60
call fcn.0043f1e0
mov esi, eax
mov edi, dword [ebp - 0x30]
xor ebx, ebx
dec ebx
mov eax, ebx
lock xadd dword [edi + 4], eax
test eax, eax
jne 0x433906
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], 0xffffffff
call dword [section..00cfg]
mov ecx, edi
call dword [ebp - 0x24]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov eax, dword [esi]
mov cl, byte [ebp + 0x18]
xor cl, 1
movzx ecx, cl
mov edi, dword [eax + ecx*4 + 0x14]
mov dword [ebp - 0x10], ebx
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
lea eax, [ebp - 0x30]
push eax
call edi
movzx eax, byte [ebp - 0x25]
test al, al
js 0x433940
mov edx, eax
and edx, 0x7f
jmp 0x433943
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
test edx, edx
je 0x433891
test al, al
lea eax, [ebp - 0x30]
cmovns ecx, eax
mov dword [ebp - 0x24], ecx
jmp 0x433971
mov esi, dword [ebp - 0x2c]
mov edx, ecx
add edx, esi
mov esi, dword [ebp - 0x24]
inc esi
mov dword [ebp - 0x24], esi
cmp esi, edx
je 0x433891
cmp dword [ebp - 0x20], 0
je 0x4339a7
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [edx + 0x1c]
je 0x4339b0
lea edx, [ecx + 1]
mov esi, dword [ebp - 0x20]
mov dword [esi + 0x18], edx
mov byte [ecx], al
movzx eax, byte [ebp - 0x25]
mov ecx, dword [ebp - 0x30]
test al, al
js 0x43395b
mov esi, eax
and esi, 0x7f
lea edx, [ebp - 0x30]
jmp 0x433960
mov dword [ebp - 0x20], 0
jmp 0x433992
movzx edi, al
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov esi, dword [eax + 0x30]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, esi
call dword [section..00cfg]
mov dword [ebp - 0x10], 1
mov ecx, ebx
push edi
call esi
xor ecx, ecx
cmp eax, 0xffffffff
je 0x4339e0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
jmp 0x433992
Function at 0x40157f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.0045b9c0
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x4015d8
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x401686
mov eax, dword [ebp - 0x94]
dec eax
je 0x401672
dec eax
jne 0x401686
cmp dword [ebp - 0xa0], 6
jne 0x401623
inc eax
cmp dword [ebp - 0x9c], eax
jne 0x40160b
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
add ecx, 8
jmp 0x40161f
cmp dword [ebp - 0x9c], edi
jne 0x40165f
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x401686
cmp dword [ebp - 0xa0], 5
jne 0x401652
cmp dword [ebp - 0x9c], 2
jne 0x401639
push 5
jmp 0x40166f
cmp dword [ebp - 0x9c], 1
jne 0x401646
push 6
jmp 0x40166f
cmp dword [ebp - 0x9c], edi
jne 0x401686
push 3
jmp 0x40166f
cmp dword [ebp - 0xa0], 4
ja 0x401686
push 4
jmp 0x40166f
cmp dword [ebp - 0x9c], 2
jne 0x401686
cmp byte [ebp + 0x76], al
jne 0x401686
push 0xa
pop edi
jmp 0x401686
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret
Function at 0x401d7e
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4943ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x100
push ebx
push esi
push edi
push 6
xor ebx, ebx
pop ecx
xor eax, eax
mov dword [esp + 0x14], ebx
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x30]
call fcn.00413381
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x114], ebx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor edi, edi
inc edi
push edi
push ecx
sub eax, edx
mov dword [esp + 0x30], eax
mov eax, esp
mov dword [esp + 0x18], esp
push str.0_0__0__0
sub esi, ecx
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], esi
call fcn.0041e037
push ecx
mov byte [esp + 0x120], 1
mov eax, esp
mov dword [esp + 0x18], esp
push 0x4a0e5c
push eax
call fcn.0041e037
lea ecx, [esp + 0x3c]
mov byte [esp + 0x120], bl
call fcn.004131c9
lea eax, [esp + 0x14]
push eax
push ebx
push 0x47
lea ecx, [esp + 0x3c]
call fcn.0041f9c2
push edi
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
mov esi, 0x49d50c
push esi
push eax
call fcn.0041e037
push ecx
mov byte [esp + 0x120], 2
mov eax, esp
mov dword [esp + 0x1c], esp
push str.margin_left
push eax
call fcn.0041e037
lea ecx, [esp + 0x3c]
mov byte [esp + 0x120], bl
call fcn.004131c9
push edi
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push esi
push eax
call fcn.0041e037
push ecx
mov byte [esp + 0x120], 3
mov eax, esp
mov dword [esp + 0x1c], esp
push str.margin_right
push eax
call fcn.0041e037
lea ecx, [esp + 0x3c]
mov byte [esp + 0x120], bl
call fcn.004131c9
push edi
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push esi
push eax
call fcn.0041e037
push ecx
mov byte [esp + 0x120], 4
mov eax, esp
mov dword [esp + 0x1c], esp
push str.margin_top
push eax
call fcn.0041e037
lea ecx, [esp + 0x3c]
mov byte [esp + 0x120], bl
call fcn.004131c9
push edi
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push esi
push eax
call fcn.0041e037
push ecx
mov byte [esp + 0x120], 5
mov eax, esp
mov dword [esp + 0x1c], esp
push str.margin_bottom
push eax
call fcn.0041e037
lea ecx, [esp + 0x3c]
mov byte [esp + 0x120], bl
call fcn.004131c9
push edi
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push str.cnm_showdow
push eax
call fcn.0041e037
push ecx
mov byte [esp + 0x120], 6
mov eax, esp
mov dword [esp + 0x1c], esp
push str.skin
push eax
call fcn.0041e037
lea ecx, [esp + 0x3c]
mov byte [esp + 0x120], bl
call fcn.004131c9
push ebx
push dword [ebp + 8]
lea ecx, [esp + 0x38]
push 0xf
call fcn.0041f9c2
or dword [esp + 0x114], 0xffffffff
mov eax, dword [esp + 0x104]
add eax, 0xfffffff0
call fcn.00405ffd
lea ecx, [esp + 0x30]
call fcn.0041e9ff
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4020a7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
inc edi
cmp dword [ebp + 0xc], 0x4e
jne 0x4020dc
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0x3e8
jne 0x4020dc
mov ecx, esi
mov dword [esi + 0x3a0], edi
call fcn.00402015
mov dword [ebx], eax
cmp dword [esi + 0x3a0], 0
je 0x4020dc
mov eax, edi
jmp 0x402123
push 0
push ebx
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00447734
test eax, eax
jne 0x4020d8
mov eax, dword [ebp + 0xc]
cmp eax, 0x402
jne 0x402128
push 5
push dword [esi + 4]
lea eax, [esi + 0x3a0]
mov dword [ebp + 0xc], eax
mov dword [eax], edi
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [ebx], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x4020d8
xor eax, eax
pop edi
pop ebp
ret 0x10
cmp eax, 0x403
jne 0x402162
mov eax, dword [esi + 0x3a8]
mov dword [esi + 0x28], eax
xor eax, eax
push eax
push eax
push eax
mov dword [esi + 0x3a0], edi
mov dword [esi + 0x390], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
and dword [ebx], 0
cmp dword [esi + 0x3a0], 0
jmp 0x40211f
cmp eax, 0x465
jne 0x40218f
lea ecx, [esi + 0x2c]
mov dword [esi + 0x3a0], edi
call fcn.004028ff
mov dword [esi + 0x410], eax
mov eax, dword [esi + 0x30]
push 5
lea ecx, [esi + 0x3d4]
call fcn.00451353
jmp 0x402156
cmp eax, 0x110
jne 0x402121
lea eax, [esi + 0x3a0]
push ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [ebp + 0xc], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, esi
call fcn.004019cb
mov dword [ebx], eax
jmp 0x402119
Function at 0x40292c
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x10
mov eax, dword [0x4bab2c]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], edi
je 0x402947
mov esi, dword [eax + 4]
jmp 0x402949
xor esi, esi
cmp esi, edi
jne 0x402959
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, edi
je 0x40297e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x40297e
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40297e
push edi
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x18], 1
mov ebx, dword [esp + 0x24]
push esi
mov eax, ebx
mov dword [ebx + 0x34c], edi
call fcn.00402e61
mov ecx, eax
cmp ecx, edi
mov dword [esp + 0x14], ecx
jne 0x4029aa
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x402ac3
mov eax, dword [0x4bab2c]
cmp eax, edi
mov dword [esp + 0x1c], edi
je 0x4029c1
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov dword [eax + 4], ecx
lea eax, [ebx + 4]
push eax
mov eax, esi
call fcn.0040ce45
cmp dword [ebx + 0x33c], edi
je 0x402a63
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
push edi
push edi
push 0x2001
mov ebp, eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push edi
push edi
push edi
push edi
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp ebx, ebp
je 0x402a1d
push 1
push ebx
push ebp
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebx, ebp
je 0x402a34
push edi
push ebx
push ebp
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [esp + 0x24]
push 0xffffffffffffffec
add eax, 4
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x402a5f
mov eax, dword [esp + 0x24]
push edi
push edi
push 0xf
add eax, 4
push dword [eax]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, dword [esp + 0x24]
mov eax, ebx
call fcn.00402fb5
push 0x97
push edi
lea ebp, [ebx + 4]
push ebp
mov dword [ebx + 0x34c], edi
call fcn.0040ce28
cmp dword [esp + 0x18], edi
je 0x402aa4
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, edi
je 0x402aa4
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x402aa4
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x4bab2c]
cmp eax, edi
je 0x402ab4
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
push dword [ebp]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x350]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4