joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413cc0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x449814]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [esp + 4]
mov edx, dword [ecx]
cmp eax, edx
jb 0x413ce7
mov ecx, dword [ecx + 8]
add ecx, edx
cmp eax, ecx
ja 0x413ce7
sub eax, edx
inc eax
ret 4
xor eax, eax
ret 4

Function at 0x413cf0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x449814]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov eax, dword [esp + 4]
dec eax
add eax, ecx
ret 4

Function at 0x418ea5
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x418f3b
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x418f38
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x418f38
lea eax, [esi - 1]
push eax
push dword [0x44c884]
call fcn.0040d39e
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x418f3a
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x418f28
mov edx, 0xfa01
cmp word [ecx], dx
je 0x418f33
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x418f18
jmp 0x418f38
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x418fe1
push eax
call esi
test al, al
jns 0x418fe1
push 0x11
call esi
test al, al
js 0x418fe1
push 0x10
call esi
test al, al
js 0x418fe1
push 0x12
call esi
test al, al
js 0x418fe1
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x418fe1
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.0041c3e6
add esp, 0xc
test eax, eax
je 0x418fb5
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.0041c3e6
add esp, 0xc
test eax, eax
jne 0x418fcc
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x419022
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.004119b4
pop ecx
pop ecx
test eax, eax
je 0x419022
test ebp, ebp
je 0x419005
push 0x11
call esi
test al, al
js 0x418ffd
push 0x10
call esi
test al, al
js 0x418ffd
push 0x12
call esi
test al, al
jns 0x419005
push 1
push ebp
call fcn.00419146
test ebx, ebx
je 0x419019
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x419022
test edi, edi
je 0x419022
mov eax, dword [edi + 8]
jmp 0x419024
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x41b468
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00424940
mov eax, dword [0x449b90]
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.00420cca
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b4aa
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41b606
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424890
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 + 0x44cc50]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00424418
mov ecx, dword [esi*4 + 0x44cc50]
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 0x41b5ff
cmp eax, dword [ecx + edi + 0x24]
jne 0x41b5ff
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 0x41b5ff
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00424418
add esp, 0x14
test edx, edx
jl 0x41b5ff
jg 0x41b575
test eax, eax
jb 0x41b5ff
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41b5ff
jl 0x41b58f
cmp dword [ebp - 0x1008], eax
ja 0x41b5ff
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41b5ad
test ebx, ebx
je 0x41b5e6
cmp ecx, edi
jae 0x41b5e6
mov al, byte [ecx]
cmp al, 0xd
jne 0x41b5c7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41b5d3
cmp byte [ecx + 1], 0xa
jne 0x41b5d3
inc ecx
jmp 0x41b5d3
movzx eax, al
movsx eax, byte [eax + 0x449bb0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41b5ad
cmp edx, ebx
jne 0x41b5ad
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41b604
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00420e42
leave
ret

Function at 0x41ba70
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x41baa8
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41baa3
xor eax, eax
cmp dword [esp + 0xc], esi
pop edi
sete al
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call fcn.00411440
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x41c680
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x449814]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
add eax, dword [esp + 4]
ret 4

Function at 0x41c6a0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x41c79f
cmp word [edx], 0
je 0x41c79f
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x41c6ce
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x41c724
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c6e0
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x41c706
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00425570
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
lea eax, [esp + 0x14]
push eax
xor eax, eax
cmp ecx, 2
push edx
setne al
dec eax
and eax, 0xfde9
push eax
call fcn.00425690
mov edi, eax
test edi, edi
je 0x41c71a
cmp dword [esi + 4], 0
je 0x41c772
push dword [esp + 0x14]
push edi
push esi
call fcn.00425570
push edi
push 0
push dword [0x44bf74]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x44bf74]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
Function at 0x41c879
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x44c9ac], 0
push ebx
push esi
mov esi, 0x44c9b4
jne 0x41c8a5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x44c9cc], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x44c9ac], 1
push dword [0x44c9cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x41c942
push 0x14
push 8
push dword [0x44bf74]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x41c96c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x44c9b0]
test eax, eax
je 0x41c8e7
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x44c9b0], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41c9ef
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x44c9cc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x44bf74]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41c96c
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x41cd00
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x449814]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
mov dword [eax + 8], ecx
mov eax, dword [eax]
add eax, ecx
ret 4

Function at 0x41ded2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4369f0
push 0x4369e8
push str.FlsAlloc
push 0x1f
call fcn.0041e2e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41df06
push dword [ebp + 8]
mov ecx, esi
call dword [0x442d80]
call esi
jmp 0x41df0c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41df50
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436a00
push 0x4369f8
push str.FlsGetValue
push 0x21
call fcn.0041e2e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41df87
push dword [ebp + 8]
mov ecx, esi
call dword [0x442d80]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41df8f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436a08
push 0x436a00
push str.FlsSetValue
push 0x22
call fcn.0041e2e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41dfc9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x442d80]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x423f19
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 + 0x44cc50]
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 0x423f59
cmp byte [ebx], 0xa
jne 0x423f59
or byte [edi + eax + 0x28], 4
jmp 0x423f5e
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 0x42405d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x424040
inc eax
cmp dl, 0xd
je 0x423f8a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x423fb0
cmp eax, ecx
jae 0x423fbe
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 0x423f72
jmp 0x42405d
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 0x42403b
cmp dword [ebp - 0x10], 0
je 0x42403b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x44cc50]
test byte [eax + edi + 0x28], 0x48
je 0x424015
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x424000
mov byte [esi], dl
jmp 0x424011
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x44cc50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42405d
cmp byte [ebp - 1], 0xa
jne 0x424024
cmp esi, ebx
jne 0x424024
mov byte [esi], 0xa
jmp 0x42405c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004243ba
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42405d
mov byte [esi], 0xd
jmp 0x42405c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x44cc50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42405a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42405d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x424066
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 + 0x44cc50]
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 0x4240ac
cmp word [ebx], dx
jne 0x4240ac
or byte [eax + edi + 0x28], 4
jmp 0x4240b1
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 0x424214
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 0x4241f4
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4240f2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x424128
cmp eax, edx
jae 0x424136
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 0x4240cd
jmp 0x424214
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 0x4241ef
cmp dword [ebp - 0x18], 0
je 0x4241ef
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x44cc50]
test byte [eax + edi + 0x28], 0x48
je 0x4241c5
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 0x424189
mov word [esi], cx
jmp 0x4241c0
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x44cc50]
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 + 0x44cc50]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x44cc50]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x424214
pop eax
cmp word [ebp - 4], ax
jne 0x4241d5
cmp esi, ebx
jne 0x4241d5
mov word [esi], ax
jmp 0x424211
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004243ba
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x424214
push 0xd
pop eax
jmp 0x4241d0
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x44cc50]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42420e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x424214
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 0x425570
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x10], 0
cmp dword [edi + 0x1c], 0
jne 0x425687
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x4255bd
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x10]
push 1
neg eax
cdq
push ecx
push eax
push dword [edi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
push esi
mov esi, dword [esp + 0x24]
cmp eax, esi
jle 0x425646
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x42562f
sub eax, 1
je 0x425616
sub eax, 2
je 0x4255ff
push esi
push dword [esp + 0x24]
push ecx
call fcn.00411440
add esp, 0xc
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov ax, word [eax]
mov word [ecx], ax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov al, byte [eax]
mov byte [ecx], al
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
push edi
call fcn.00409e60
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x425675
push 0
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x2c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov ecx, dword [edi + 4]
sub ecx, dword [edi + 0xc]
push esi
push dword [esp + 0x24]
add ecx, eax
jmp 0x4255e7
xor eax, eax
pop edi
add esp, 8
ret 0xc

Function at 0x4258df
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x449b90]
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.0041d792
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.0041d792
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 0x428c7c
cmp word [ecx], dx
je 0x428c7c
mov eax, dword [0x438a0c]
push edi
dec eax
push eax
push 0x4388f8
call fcn.00428df5
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x428cef
cmp word [eax], dx
je 0x428cef
mov eax, dword [edi]
test eax, eax
je 0x428ca0
cmp word [eax], dx
je 0x428ca0
lea eax, [ebp - 0x10]
push eax
call fcn.00428e56
jmp 0x428ca9
lea eax, [ebp - 0x10]
push eax
call fcn.00429144
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x428d19
mov eax, dword [0x4388f4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4385e8
call fcn.00428df5
add esp, 0xc
test al, al
je 0x428d19
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x428ce4
cmp word [eax], di
je 0x428ce4
lea eax, [ebp - 0x10]
push eax
call fcn.00428e56
pop ecx
jmp 0x428d1b
lea eax, [ebp - 0x10]
push eax
call fcn.00429144
jmp 0x428ce1
mov eax, dword [edi]
test eax, eax
je 0x428d06
cmp word [eax], dx
je 0x428d06
lea eax, [ebp - 0x10]
push eax
call fcn.00429278
pop ecx
jmp 0x428d19
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 0x428de4
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0042936a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x428de4
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x428de4
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x428de4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x428d71
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041e12c
test ebx, ebx
je 0x428ddf
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041e12c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x428de4
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 0x428de4
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041cab8
add esp, 0x10
xor eax, eax
inc eax
jmp 0x428de6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420e42
leave
ret
Function at 0x429470
Capabilities:
Get geographical location

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

Function at 0x429570
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42959d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42959d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x43139f
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 0x43143c
push ebx
push esi
call fcn.0043143f
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.00425dda
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4313e9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43143b
push edi
push eax
call fcn.0041d064
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x431409
call fcn.0041d02a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43143a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00425dda
add esp, 0x20
test eax, eax
jne 0x431428
push edi
call fcn.0041d02a
jmp 0x431430
push ebx
call fcn.0041d02a
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 0x450cad
Capabilities:
Hide graphical window

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.0040a850
push 0
mov eax, str.Progman
push eax
call sub.USER32.dll_FindWindowW
mov dword [esp], eax
push dword [esp + 0xc]
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x450ce4
push 8
push dword [esp + 8]
call sub.USER32.dll_ShowWindow
jmp 0x450cfc
mov ebx, 1
cmp ebx, dword [esp]
jne 0x450cfc
push 0
push dword [esp + 8]
call sub.USER32.dll_ShowWindow
pop eax
xor eax, eax
add esp, 4
pop ebx
ret 4

Function at 0x4512d9
Capabilities:
Find taskbar

Disassembly:
push ebp
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4512df
call fcn.0040a850
push 0
mov eax, str.Shell_TrayWnd
push eax
call sub.USER32.dll_FindWindowW
mov dword [esp], eax
lea eax, [esp + 4]
lea ebp, [esp + 4]
mov dword [ebp], 0x24
mov eax, dword [esp]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [ebp + 0x20], eax
lea eax, [esp + 4]
push eax
push 0xa
call sub.SHELL32.dll_SHAppBarMessage
movzx eax, al
jmp 0x451336
add esp, 0x28
pop ebp
ret 4