joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d690
Capabilities:
Encode data using xor
Hash data using murmur2
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x18]
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x40d78f
mov ecx, dword [eax + esi + 0x20]
add ecx, esi
mov dword [esp + 8], ecx
mov ecx, eax
mov dword [esp], eax
mov eax, dword [eax + esi + 0x24]
add eax, esi
mov dword [esp + 4], eax
xor ebp, ebp
nop
nop
nop
mov eax, dword [esp + 8]
mov ebx, dword [eax + ebp*4]
add ebx, esi
push ebx
call fcn.00415c60
add esp, 4
mov ecx, eax
xor ecx, 0x20
cmp eax, 4
jl 0x40d720
nop
nop
nop
nop
imul edi, dword [ebx], 0x5bd1e995
mov edx, edi
shr edx, 0x18
xor edx, edi
imul edx, edx, 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
xor ecx, edx
add ebx, 4
lea edx, [eax - 4]
cmp eax, 7
mov eax, edx
ja 0x40d6f0
cmp edx, 1
jne 0x40d727
jmp 0x40d743
mov edx, eax
cmp edx, 1
je 0x40d743
cmp edx, 2
je 0x40d73a
cmp edx, 3
jne 0x40d74e
movzx eax, byte [ebx + 2]
shl eax, 0x10
xor ecx, eax
movzx eax, byte [ebx + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [ebx]
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0x5bd1e995
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
cmp ecx, dword [esp + 0x28]
je 0x40d775
inc ebp
cmp ebp, dword [esp + 0xc]
jne 0x40d6d0
jmp 0x40d78f
mov eax, dword [esp + 4]
movzx eax, word [eax + ebp*2]
test eax, eax
je 0x40d78f
mov ecx, dword [esp]
mov ecx, dword [esi + ecx + 0x1c]
add ecx, esi
add esi, dword [ecx + eax*4]
jmp 0x40d791
xor esi, esi
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40d7a0
Capabilities:
Get os information via kuser_shared_data

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebp, dword [esp + 0x14]
mov edx, dword [0x7ffe026c]
mov esi, dword [0x7ffe0270]
mov edi, dword [0x7ffe0260]
mov ebx, dword [0x7ffe0264]
xor eax, eax
cmp edx, 5
je 0x40d7de
cmp edx, 6
je 0x40d7f9
cmp edx, 0xa
jne 0x40d845
xor eax, eax
cmp ebx, 2
sete al
add eax, 0xd
jmp 0x40d845
test esi, esi
je 0x40d812
cmp esi, 1
je 0x40d819
cmp esi, 2
jne 0x40d845
xor eax, eax
cmp ebx, 2
sete al
add eax, 3
jmp 0x40d845
cmp esi, 3
ja 0x40d845
jmp dword [esi*4 + 0x42bc68]
mov eax, 1
jmp 0x40d845
mov eax, 2
jmp 0x40d845
xor ecx, ecx
cmp ebx, 2
sete cl
mov dword [ebp + 8], edi
mov dword [ebp + 4], esi
mov dword [ebp], edx
mov dword [ebp + 0xc], ecx
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40deef
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x431bb0]
test eax, eax
je 0x40df2e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40df2e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40df2e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40df2e
cmp dword [ecx + 0x74], 0xe
jbe 0x40df2e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x419ad0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x419afd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x419afd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405f06
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00403f0f
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x405f2d
jmp 0x4058ec
cmp dword [ebp - 0x37c], 0
je 0x405f3b
jmp 0x405ff0
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x405f94
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x405f99
jmp 0x4058ec
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x405fe0
lea eax, [ebp - 0x714]
push eax
call fcn.00403f5a
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00403f0f
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x405feb
jmp 0x405ff0
jmp 0x4058ec

Function at 0x4060f5
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
invalid
pop esi
or dh, cl
stosb byte es:[edi], al
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x40610e
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00403f4a
les edi, [eax + 0x70]
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
push esp
pop es
js 0x406128
xlatb
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00403f4a
stosb byte es:[edi], al
sahf
stc
mov ch, 0x49
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x406137
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x406137
call fcn.00403f4a
mov dl, byte [ebp - 0x62]
jbe 0x4060e5
pop edx
and al, 3
fbld tbyte [esi - 0x75]
or al, 0x4b
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00403f4a
pop dword [0x75ffe9bc]
or bh, bh
jne 0x406180
mov eax, dword [ebx]
invalid
push dword [ebp]
call fcn.0040474a
enter 0xffffffffffffc223, 0xffffffffffffff81
loope 0x406169
invalid
invalid

Function at 0x4061fd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040619c
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x40626d
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x40626d
cmp dword [ebp + 0xc], 1
je 0x406271
cmp dword [ebp + 0xc], 2
je 0x406271
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406699
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4066bd
xor eax, eax
test eax, eax
je 0x4066d0
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4066d0
xor ecx, ecx
jmp 0x4066d3
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4
Function at 0x100024f2
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x1541b0]
mov eax, dword [ecx + 0x3c]
sub esp, 0x2c
add eax, ecx
movzx edx, word [eax + 0x14]
push ebx
push esi
movzx esi, word [eax + 6]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
lea eax, [edx + eax + 0x18]
xor edx, edx
cmp dword [eax + 4], ebx
jne 0x10002528
cmp dword [eax], 0x7373622e
jne 0x10002528
mov edx, eax
add eax, 0x28
dec esi
je 0x10002532
test edx, edx
je 0x10002519
test edx, edx
je 0x10002550
mov eax, dword [edx + 0xc]
test eax, eax
je 0x1000254c
mov edx, dword [edx + 0x10]
test edx, edx
je 0x1000254c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edx
jmp 0x10002553
push 0xb
jmp 0x10002552
push 2
pop ebx
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x10002660
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
and esi, 0xfff
neg esi
sbb esi, esi
shr eax, 0xc
neg esi
add esi, eax
mov eax, dword [ebp - 0x18]
add eax, ecx
mov dword [ebp - 0xc], eax
mov eax, esi
shl eax, 0xc
push eax
call fcn.100024dd
mov ebx, eax
mov dword [ebp - 0x2c], ebx
test ebx, ebx
je 0x10002659
lea edx, [edi - 1]
and edx, 1
cmp edx, esi
jae 0x1000262f
sub eax, dword [ebp - 0xc]
mov ecx, edx
lea edi, [eax + edi + 0x1551b9]
mov eax, dword [ebp - 0xc]
shl ecx, 0xc
add ecx, ebx
sub eax, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
sub eax, edx
and dword [ebp - 0x1c], 0
lea eax, [eax + ebx - 0x7e47c835]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0x400
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 4]
mov eax, dword [eax + ebx]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x10002605
mov ebx, dword [ebp - 0x1c]
sub ebx, dword [ebp - 0x24]
add eax, ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ebx], eax
jmp 0x1000260c
mov dword [ebp - 8], 1
dec dword [ebp - 8]
jne 0x100025dc
mov eax, dword [edi + 4]
sub eax, dword [edi + 8]
add ecx, 0x1000
add eax, dword [edi + 0xc]
inc edx
mov dword [0x1541c0], eax
cmp edx, esi
jb 0x100025bc
mov ebx, dword [ebp - 0x2c]
jmp 0x10002634
mov eax, dword [0x1541c0]
cmp eax, 0x43175ac3
jne 0x1000264a
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edx, ebx
call 0x10002da2
jmp 0x10002651
mov dword [ebp - 0x14], 0x15
push ebx
call 0x10002932
jmp 0x10002660
mov dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402f7c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x46d008], 0x8088405
inc edx
mov dword [ebx + 0x46d008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40367c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46d024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403714
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4036f4
xor eax, eax
push ebp
push 0x4036ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403730
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4036f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x46d024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46d024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404520
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4db048], 0
je 0x404581
cmp word [0x4db21c], 0xd7b2
jne 0x404549
cmp dword [0x4db224], 0
jbe 0x404549
mov eax, 0x4db218
call dword [0x4db234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4045a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46d030], 0
jne 0x40459d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408098
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408128
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408128
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4080db
test edx, 3
jne 0x4080ca
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4080d5
jmp 0x4080db
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4080db
cmp dword [ecx - 8], 1
je 0x4080e5
mov edx, ebx
or edx, 3
call fcn.00404dec
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4080f7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046a0

Function at 0x408134
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4081c4
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4081c4
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408177
test edx, 3
jne 0x408166
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408171
jmp 0x408177
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408177
cmp dword [ecx - 8], 1
je 0x408181
mov edx, ebx
or edx, 3
call fcn.00404dec
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408193
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046a0

Function at 0x40b428
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b461
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404790
jmp 0x40b46a
mov eax, ebx
mov edx, esi
call fcn.004046f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b474
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b496
movzx eax, byte [esp]
jmp 0x40b498
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40bb28
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b9a0
mov eax, dword [0x4da1a4]
cmp byte [eax], 0
je 0x40bba4
mov eax, dword [0x4d9fb4]
call fcn.00403044
call fcn.00402de8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408bc0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bbec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bbda
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4d9f58]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4dd7f4]
call fcn.00405840
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c438
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c50e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404738
lea eax, [ebp - 4]
call fcn.00404bb4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b64
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c4f8
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c4f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b64
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c4db
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c520
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c4db
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4f8
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c515
lea eax, [ebp - 4]
call fcn.004046a0
ret
Function at 0x41b0f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4de300
cmp dword [edi], 0
jne 0x41b16c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4de2fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46dad8
mov ecx, 2
call fcn.00402e7c
mov edx, 0x41b0c8
lea eax, [esi + 5]
call fcn.0041b0e8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b0e8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41b141
mov dword [0x4de2fc], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41d698
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404b64
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d6f0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4da2c0]
mov dl, 1
mov eax, dword [0x41d1bc]
call fcn.0040bce8
call fcn.004040e8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d2c4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41e7a8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41e7ae
ret
Function at 0x42a8d8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004046a0
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42a926
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404910
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42e9a8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42eadb
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x41d21c]
call fcn.0041d2ec
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x42eab1
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d38c
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404910
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x42eaf0
call fcn.004049b0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d3f0
lea ecx, [ebp - 4]
mov edx, 0x42eb2c
mov eax, dword [ebp - 0xc]
call fcn.0041d620
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d784
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x42ea94
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x42eb38
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x46e438]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ea9b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x42eb88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x42ebcf
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42ebb2
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42ebc3
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x42ebcf
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4336c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x4de534], 0
je 0x433809
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4da144]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x433809
mov eax, dword [0x4de538]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4de534]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4337d8
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4de534]
call fcn.004141d8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4337d0
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x4337d0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4337d0
mov eax, dword [ebp - 0x14]
call fcn.0043d8e4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4337d0
push ebp
call fcn.0043367c
pop ecx
test al, al
jne 0x4337d0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403a70
test al, al
je 0x4337d0
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00403a70
cmp byte [ebp - 1], 0
je 0x4337d0
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4337d0
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4de538]
call fcn.00432dec
inc edi
dec ebx
jne 0x433725
mov eax, dword [0x4de538]
cmp dword [eax + 8], 0
jle 0x4337f0
mov eax, dword [0x4de538]
call fcn.00432ea4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x433809
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004334e0
pop ecx
test al, al
jne 0x433809
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret