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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x479fcc]
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.0042f190
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.0042f190
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 0x439be0
cmp word [ecx], dx
je 0x439be0
mov eax, dword [0x46eee4]
push edi
dec eax
push eax
push 0x46edd0
call fcn.00439b08
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x439c53
cmp word [eax], dx
je 0x439c53
mov eax, dword [edi]
test eax, eax
je 0x439c04
cmp word [eax], dx
je 0x439c04
lea eax, [ebp - 0x10]
push eax
call fcn.004394eb
jmp 0x439c0d
lea eax, [ebp - 0x10]
push eax
call fcn.00439586
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x439c7d
mov eax, dword [0x46edcc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x46eac0
call fcn.00439b08
add esp, 0xc
test al, al
je 0x439c7d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x439c48
cmp word [eax], di
je 0x439c48
lea eax, [ebp - 0x10]
push eax
call fcn.004394eb
pop ecx
jmp 0x439c7f
lea eax, [ebp - 0x10]
push eax
call fcn.00439586
jmp 0x439c45
mov eax, dword [edi]
test eax, eax
je 0x439c6a
cmp word [eax], dx
je 0x439c6a
lea eax, [ebp - 0x10]
push eax
call fcn.004394a0
pop ecx
jmp 0x439c7d
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 0x439d48
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0043998d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x439d48
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x439d48
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x439d48
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x439cd5
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042fb6a
test ebx, ebx
je 0x439d43
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042fb6a
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x439d48
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 0x439d48
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0043eb4d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x439d4a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004197d1
leave
ret
Function at 0x43c010
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 + 0x49f900]
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 0x43c050
cmp byte [ebx], 0xa
jne 0x43c050
or byte [edi + eax + 0x28], 4
jmp 0x43c055
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 0x43c154
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43c137
inc eax
cmp dl, 0xd
je 0x43c081
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x43c0a7
cmp eax, ecx
jae 0x43c0b5
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 0x43c069
jmp 0x43c154
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 0x43c132
cmp dword [ebp - 0x10], 0
je 0x43c132
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x49f900]
test byte [eax + edi + 0x28], 0x48
je 0x43c10c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43c0f7
mov byte [esi], dl
jmp 0x43c108
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x49f900]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43c154
cmp byte [ebp - 1], 0xa
jne 0x43c11b
cmp esi, ebx
jne 0x43c11b
mov byte [esi], 0xa
jmp 0x43c153
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043bfb2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43c154
mov byte [esi], 0xd
jmp 0x43c153
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x49f900]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43c151
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43c154
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43c15d
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 + 0x49f900]
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 0x43c1a3
cmp word [ebx], dx
jne 0x43c1a3
or byte [eax + edi + 0x28], 4
jmp 0x43c1a8
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 0x43c30b
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 0x43c2eb
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x43c1e9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43c21f
cmp eax, edx
jae 0x43c22d
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 0x43c1c4
jmp 0x43c30b
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 0x43c2e6
cmp dword [ebp - 0x18], 0
je 0x43c2e6
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x49f900]
test byte [eax + edi + 0x28], 0x48
je 0x43c2bc
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 0x43c280
mov word [esi], cx
jmp 0x43c2b7
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x49f900]
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 + 0x49f900]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x49f900]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43c30b
pop eax
cmp word [ebp - 4], ax
jne 0x43c2cc
cmp esi, ebx
jne 0x43c2cc
mov word [esi], ax
jmp 0x43c308
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043bfb2
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43c30b
push 0xd
pop eax
jmp 0x43c2c7
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x49f900]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43c305
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43c30b
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 0x43f145
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0043f0c1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43f2b4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43f2b4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43f269
jg 0x43f1a1
test eax, eax
je 0x43f25f
push 1
push 0x1000
call fcn.0042f47b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43f1c4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43f256
push 0x8000
push ebx
call fcn.004247ef
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43f1ed
jg 0x43f1e8
cmp ecx, 0x1000
jb 0x43f1ed
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00431c98
add esp, 0x10
cmp eax, 0xffffffff
je 0x43f232
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43f1e8
jl 0x43f219
test ecx, ecx
jne 0x43f1da
push dword [ebp - 0xc]
push ebx
call fcn.004247ef
push esi
call fcn.0042f4d8
add esp, 0xc
xor ebx, ebx
jmp 0x43f2c2
cmp byte [edi + 0x24], 0
je 0x43f249
cmp dword [edi + 0x20], 5
jne 0x43f249
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43f254
mov ebx, dword [edi + 0x18]
jmp 0x43f256
xor ebx, ebx
push esi
call fcn.0042f4d8
pop ecx
jmp 0x43f2c2
test ecx, ecx
jg 0x43f22b
jl 0x43f269
test eax, eax
jae 0x43f22b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043bfb2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43f289
cmp byte [edi + 0x1c], 0
je 0x43f22b
jmp 0x43f2ba
push ebx
call fcn.004245fb
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43f22b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43f2c2
cmp byte [edi + 0x1c], 0
je 0x43f2bf
mov ebx, dword [edi + 0x18]
jmp 0x43f2c2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0043bfb2
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43f850
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43f87d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43f87d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404e51
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
movzx eax, word [eax + ecx*2]
and eax, 1
jne 0x404e54
mov eax, dword [ebp + 0x10]
push dword [eax]
add dword [ebp - 4], 0xc
push 0x600280
push dword [0x6003a0]
push 3
push 0
push eax
push dword [ebp + 0x18]
dec edi
push edx
push eax
call esi
test eax, eax
je 0x404e76
mov eax, dword [ebp - 0x20]
cmp eax, edi
jne 0x404e7e
dec ebx
jne 0x404e7c
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x404e90
movzx esi, byte [eax + 2]
movzx ebx, byte [ecx + 2]
push esp
mov esi, 0x54e8
push 0x3ff818
call fcn.00406997
sub esi, ebx
jne 0x404ec9
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
mov dword [esi], eax
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
push ebx
sub cl, 0x61
cmp cl, 0x19
ja 0x404ecc
fnstsw ax
test ah, 0x41
jp 0x404ee7
xor eax, eax
ret
or ecx, edx
lea esi, [edi + edi]
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x18], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], esi
cmp al, 0x27
jne 0x404ef8
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x30]
mov ecx, edi
call fcn.00403c91
mov eax, dword [ebx]
push dword [edi + eax]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
cmp dword [edi + 8], 0
jne 0x404f1e
neg eax
dec eax
jne 0x404f59
mov edi, dword [0x404014]
xor dl, 0x55
add bh, 0x41
xor eax, eax
push 0x3ffc17
call fcn.00405b37
mov ecx, dword [ebp + 0x10]
or edx, 0xffffffff
cmp eax, edx
je 0x404f2e
test al, 0x40
je 0x404f4e
push ebx
push eax
push 0x1f
push dword [ebp - 4]
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
cmp ebx, esi
jae 0x404f7a
test eax, eax
jne 0x404f5f
mov eax, dword [ebp - 0x14]
and dword [eax + 0x70], 0xfffffffd
mov eax, dword [ebp - 4]
jmp 0x404f64
Function at 0x40e17b
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x40e198
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x40e189
add dl, dl
jne 0x40e1a3
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x40e1ef
xor eax, eax
add dl, dl
jne 0x40e1b0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x40e28c
add dl, dl
jne 0x40e1bf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x40e1ca
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x40e1d5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x40e1e0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x40e1ea
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x40e18f
mov eax, 1
add dl, dl
jne 0x40e1fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x40e208
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x40e1f4
sub eax, 2
jne 0x40e237
mov ecx, 1
add dl, dl
jne 0x40e21d
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x40e228
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x40e214
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40e18f
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x40e24e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x40e259
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x40e245
cmp eax, 0x7d00
jae 0x40e27c
cmp eax, 0x500
jb 0x40e277
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40e18f
cmp eax, 0x7f
ja 0x40e27f
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40e18f
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x40e2a8
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40e18f
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret
Function at 0x4091f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x45a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov esi, 0x44747c
mov dword [ebp - 0x18], eax
lea edi, [ebp - 0x14]
push 0x40
push 0x3000
movsd dword es:[edi], dword [esi]
push 0x1a
push 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x40928f
mov eax, dword [ebp - 0x18]
push 0xfffffffffffffffc
push eax
mov dword [esi], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [esi + 4], eax
lea ebx, [esi + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, ebx
mov dword [esi + 8], eax
lea esi, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
sub eax, ebx
movsd dword es:[edi], dword [esi]
sub eax, 0xd
push 0x1a
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x1c]
push esi
mov dword [ebx + 4], esi
mov dword [ebx + 9], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [ebp - 0x18]
push ebx
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp 0x409297
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00430697
leave
ret 0x10
Function at 0x409f8b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push esi
push edi
push 0x11
call ebx
movzx esi, ax
push 0x10
shr esi, 0xf
call ebx
mov edi, esi
or edi, 2
bt ax, 0xf
push 0x12
cmovae edi, esi
call ebx
mov cx, ax
mov eax, 0x8000
and cx, ax
mov eax, edi
or eax, 4
test cx, cx
cmove eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x40a099
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x446293
call fcn.00430bd2
xor eax, eax
push eax
push eax
push 0xe
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp + 8]
xor ecx, ecx
lea ebx, [eax*2 + 2]
xor eax, eax
mov dword [esi], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 7
mov word [esi], ax
push ecx
mov dword [ebp - 4], ecx
mov ecx, esi
push ebx
mov dword [ebp - 0x10], 1
call fcn.0040dce1
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40a0f1
mov eax, dword [esi]
push eax
push ebx
push 0xd
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
call fcn.00430baf
ret 8

Function at 0x40a9cf
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov ecx, 0x800000
mov eax, dword [esi + 0x10]
test ecx, eax
jne 0x40aa1b
push esi
push dword [ebp + 8]
or eax, ecx
mov dword [esi + 0x10], eax
call fcn.0040a364
push 4
push dword [esi + 0x134]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x90000000
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
pop ebp
ret 8
Function at 0x40e36e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov ax, word [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
test ax, ax
je 0x40e3e4
push dword [ebp + 0xc]
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40e3ed
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40e3ed
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40e3ed
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x40e3ed
mov esi, dword [ebp + 0x10]
lea eax, [ebp + 0xb]
push eax
push ebx
mov ecx, esi
call fcn.0040dd7c
push ebx
push dword [ebp + 0xc]
push dword [esi]
call fcn.00431ee0
add esp, 0xc
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
xor eax, eax
jmp 0x40e3e6

Function at 0x414e3c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jae 0x414e4a
or eax, 0xffffffff
jmp 0x414e71
push esi
mov esi, dword [ebp + 8]
or ecx, 0xffffffff
xor edx, edx
movzx eax, byte [edx + esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x447670]
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x414e53
not ecx
mov eax, ecx
pop esi
pop ebp
ret 8

Function at 0x414ef5
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x45a040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x208], eax
je 0x414fe1
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, esi
mov edx, esi
mov al, byte [edx + edi]
mov byte [ebp + ecx - 0x204], al
lea eax, [edx + 1]
xor edx, edx
mov byte [ebp + ecx - 0x104], cl
inc ecx
cmp eax, dword [ebp + 0x14]
cmovne edx, eax
cmp ecx, 0x100
jb 0x414f26
push ebx
mov edi, esi
mov ebx, esi
mov dl, byte [ebp + edi - 0x104]
movzx eax, byte [ebp + edi - 0x204]
add eax, ebx
movzx ecx, dl
add ecx, eax
movzx ebx, cl
mov al, byte [ebp + ebx - 0x104]
mov byte [ebp + edi - 0x104], al
inc edi
mov byte [ebp + ebx - 0x104], dl
cmp edi, 0x100
jb 0x414f50
mov ebx, esi
mov edi, esi
cmp dword [ebp + 0xc], ebx
jbe 0x414fde
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [ebp + esi - 0x104]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
mov al, byte [ebp + ebx - 0x104]
mov byte [ebp + esi - 0x104], al
mov byte [ebp + ebx - 0x104], cl
movzx eax, byte [ebp + esi - 0x104]
mov ecx, dword [ebp - 0x208]
add eax, edx
movzx eax, al
mov al, byte [ebp + eax - 0x104]
xor byte [ecx + edi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x414f90
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430697
leave
ret 0x10
Function at 0x419b5a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x419b7a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
ret 8

Function at 0x41aa34
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x30
test byte [eax + 0x10], 8
je 0x41aaae
test byte [eax + 0x12c], 3
jne 0x41aaae
push esi
mov esi, dword [eax + 0x1c]
lea ecx, [ebp - 0x30]
push ecx
push 1
push dword [eax + 0x148]
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
push dword [esi + 0x140]
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x41aaad
test byte [ebp - 0x24], 3
jne 0x41aaad
mov eax, dword [esi + 0xa4]
push 0
push dword [ebp - 0x20]
push 0x111
push dword [eax + 0x94]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_EndMenu]
pop esi
leave
ret 8

Function at 0x4306e3
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x430718
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x430715
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x430721
add edx, 0x28
cmp edx, esi
jne 0x430703
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x43071e

Function at 0x4314c3
Capabilities:
Parse pe header

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