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

Disassembly:
push ebx
push esi
push 0x797480
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x7973a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4f657b
push 0x4c
push 1
call fcn.00516e15
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f6543
push 0x797480
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x7973a0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x78c6e8]
inc eax
lea edx, [esi + 0xc]
mov dword [0x78c6e8], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.004fa040
add esp, 8
mov byte [esi + 0x3c], 1
push 0x797480
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x4f6a00
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.005169ed
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.00520e1c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4f6afa
call fcn.005169ed
cmp dword [eax], 0
je 0x4f6a47
call fcn.005169ed
mov ebp, dword [eax]
jmp 0x4f6a4a
or ebp, 0xffffffff
call fcn.004f6590
test esi, esi
mov dword [eax], ebp
jne 0x4f6a5f
call fcn.005169ed
cmp dword [eax], 4
je 0x4f6aaf
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x4f6a92
cmp esi, 0xffffffff
je 0x4f6ad4
test al, 6
je 0x4f6a92
call fcn.004f6590
mov ecx, dword [eax]
push ecx
push ebx
call fcn.004fa070
add esp, 4
push eax
push 0x24
push 9
call fcn.004f6de0
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x4f6af2
test al, 6
je 0x4f6aa0
test ah, 2
je 0x4f6af2
test esi, esi
jbe 0x4f6afe
test ah, 2
je 0x4f6afe
add dword [esp + 0x18], esi
sub edi, esi
call fcn.005169ed
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.00520e1c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4f6afa
jmp 0x4f6a34
call fcn.004f6590
mov eax, dword [eax]
push eax
push ebx
call fcn.004fa070
add esp, 4
push eax
push 0x24
push 2
call fcn.004f6de0
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x4f6b0b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x4f6b14
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x5195e4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x519604
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0051697a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x519627
test byte [esp + 8], 2
je 0x519627
call fcn.005169ed
mov dword [eax], 0xd
call fcn.005169f6
mov dword [eax], 5
jmp 0x519600
xor eax, eax
ret
Function at 0x52c037
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x52c06f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0052a087
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0052a05f
jmp 0x52c07b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x52d728
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x52d76a
call fcn.005334f3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x52d76a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x52d761
xor eax, eax
jmp 0x52d772
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0052d778
pop edi
pop esi
pop ebx
ret 4

Function at 0x533a23
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x533a51
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x533a6f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00533989
jmp 0x533a6f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x533a6f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00533989
test edi, edi
mov eax, edi
jne 0x533a59
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x4d8355f1
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
mov eax, section..data_1
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x52872d2b
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x630517ae
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0xbef6110
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x406558
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x421148]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], eax
push ecx
mov esi, 0x104
mov dword [eax], edi
mov edx, esi
mov dword [eax + 4], edi
lea ecx, [esp + 0x1c]
call fcn.0040577c
push 0x401828
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.004057b1
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x4065de
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x406618
mov ecx, dword [ebp + 4]
mov edx, 0xc0
push 0x4017f4
call fcn.0040626e
mov edi, eax
jmp 0x406618
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.0040643b
mov ebx, eax
test ebx, ebx
jns 0x40660a
mov ecx, dword [ebp + 4]
mov edx, 0xc6
push ebx
push 0x4017f4
call fcn.00406251
mov edi, ebx
jmp 0x406618
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x406622
push esi
call fcn.004062c3
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041fb30
mov esp, ebp
pop ebp
ret 8
Function at 0x407018
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor edx, edx
mov dword [ebp - 4], edi
push 0xc
mov esi, edx
mov ecx, edx
mov ebx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
movzx eax, word [ebx + 4]
mov dword [ebp - 0xc], eax
pop ebx
test eax, eax
je 0x40708f
mov eax, dword [edi + 0x18]
mov edi, dword [ebp + 8]
cmp dword [eax], edi
mov edi, dword [ebp - 4]
jne 0x407087
cmp dword [ebp + 0xc], edx
je 0x407076
cmp dword [edi + 0x20], edx
je 0x407076
test byte [eax + 4], 1
jne 0x407087
imul esi, ecx, 0xc
lea edi, [ebp - 0x20]
add esi, dword [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x407099
mov esi, eax
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
test byte [eax + 4], 1
jne 0x40708f
inc ecx
add eax, ebx
cmp ecx, dword [ebp - 0xc]
jb 0x40704e
mov eax, edx
test esi, esi
je 0x40715a
cmp dword [ebp + 0xc], edx
je 0x4070a6
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], edx
jne 0x4070a9
push 8
pop ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebx + eax]
test al, 4
je 0x4070bc
and ecx, 0xffffcfff
test al, 2
je 0x4070c6
and ecx, 0xfffff3ff
test al, 1
je 0x4070d0
and ecx, 0xfffffcff
test al, 8
je 0x4070df
and ecx, 0xc0ffffff
mov dword [ebp - 0xc], edx
jmp 0x4070e5
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x20], edx
je 0x407158
mov ebx, ecx
mov edi, ecx
shr ebx, 0xc
mov esi, ecx
shr edi, 0xa
mov eax, ebx
shr esi, 8
or eax, edi
or eax, esi
test al, 3
jne 0x407110
test ecx, 0x3f000000
jne 0x407110
test cl, 2
je 0x407158
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0xc], edx
mov eax, ecx
mov edx, dword [ebp - 8]
shr eax, 0x1e
mov dword [edx + 8], eax
mov eax, ecx
shr eax, 0x18
and al, 0x3f
shr ecx, 1
mov byte [edx + 4], al
and ecx, 1
mov eax, edx
mov dword [eax + 0x14], ecx
and ebx, 3
je 0x407141
mov dword [eax], ebx
jmp 0x407151
and edi, 3
je 0x40714a
mov dword [eax], edi
jmp 0x407151
and esi, 3
je 0x407151
mov dword [eax], esi
xor eax, eax
inc eax
xor edx, edx
jmp 0x40715a
mov eax, edx
mov edi, dword [ebp - 0x10]
mov esi, edx
mov ecx, dword [ebp - 4]
movzx edi, word [edi + 6]
mov ecx, dword [ecx + 0x1c]
test edi, edi
je 0x407181
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x40717e
inc esi
add ecx, 0x10
cmp esi, edi
jb 0x407170
jmp 0x407181
xor edx, edx
inc edx
mov ecx, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov dword [ecx + 0x10], edx
leave
ret 8
Function at 0x409f88
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
mov dword [0x421d14], 0x41bd60
push eax
push 0xd
push 0x400
mov dword [0x421d1c], 0xc
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
cmp word [ebp - 4], 0x31
jne 0x409fdc
mov eax, 0x3e8
mov dword [0x421ce0], 0xa006
mov dword [0x421d00], eax
mov dword [0x421d08], eax
mov eax, 0x2ee
jmp 0x409ffa
mov eax, 0x9c4
mov dword [0x421ce0], 0xa00a
mov dword [0x421d00], eax
mov dword [0x421d08], eax
mov eax, 0x7d0
mov dword [0x421d04], eax
mov dword [0x421cfc], eax
leave
ret

Function at 0x40a20a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x421148]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [0x421d50]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a285
push 0
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jle 0x40a27e
mov edx, dword [ebp - 0x408]
test edx, edx
je 0x40a27e
lea ecx, [ebp - 0x404]
call fcn.0040a115
mov edi, eax
push esi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0041fb30
leave
ret
Function at 0x40ccd1
Capabilities:
Open clipboard

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push ebx
push esi
push edi
push dword [0x422c94]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetMenu]
mov edi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 0xb0
push dword [0x422c8c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 4]
xor ebx, ebx
cmp eax, dword [ebp - 0x10]
sete bl
push ebx
push 0x300
push 1
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push ebx
push 0x301
push 1
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push ebx
push 0x303
xor ebx, ebx
inc ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40cd77
push ebx
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
xor ecx, ecx
cmp dword [ebp - 0xc], ecx
sete cl
push ecx
push 0x302
push ebx
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0
push 0
push 0xe
push dword [0x422c8c]
call dword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb esi, esi
not esi
and esi, ebx
push esi
push 0x15
push ebx
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push esi
push 0x16
push ebx
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push esi
push 0x1d
push ebx
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
xor eax, eax
cmp dword [0x422a78], eax
setne al
push eax
push 0x18
push ebx
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0
push 0
push 0xc6
push dword [0x422c8c]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
test eax, eax
sete cl
push ecx
push 0x10
push ebx
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [0x422a78]
neg eax
sbb eax, eax
and eax, 8
push eax
push 0x20
push 2
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 3
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, dword [0x422a84]
neg ecx
sbb ecx, ecx
and ecx, 8
push ecx
push 0x1b
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
test byte [0x421c80], 0x30
pop edi
pop esi
pop ebx
jne 0x40ce7f
call fcn.0040d904
xor eax, eax
mov byte [ebp - 8], 3
mov dword [ebp - 0xc], eax
sub esp, 0xc
mov dword [ebp - 0x18], eax
mov edx, 0x10f6105
mov ax, word [ebp - 8]
mov ecx, 0x421c80
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x18]
push eax
call fcn.0040e37a
leave
ret
Function at 0x40e48b
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x421148]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
inc esi
cmp ecx, esi
jne 0x40e4cc
call dword [sym.imp.api_ms_win_core_localization_obsolete_l1_2_0.dll_GetUserDefaultUILanguage]
push 0x10
lea ecx, [ebp - 0x24]
movzx eax, ax
push ecx
push 0x58
push eax
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x40e4e0
test dword [ebp - 0x16], 0x800
jne 0x40e4e2
jmp 0x40e4e0
cmp ecx, 6
je 0x40e4e2
cmp ecx, 0x17
je 0x40e4e2
cmp ecx, 0xa
je 0x40e4e2
cmp ecx, 8
je 0x40e4e2
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041fb30
leave
ret

Function at 0x40e4f1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x414
mov eax, dword [0x421148]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
push edi
push 0x294
lea eax, [esp + 0x184]
mov edi, ecx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
xor ebx, ebx
inc ebx
mov esi, ebx
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetLocalTime]
push 0x10
lea eax, [esp + 0x24]
mov dword [esp + 0x10], ebx
push eax
push 0x58
mov ebx, 0x400
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x40e588
test dword [esp + 0x2e], 0x800
je 0x40e588
push 2
lea eax, [esp + 0x10]
push eax
push 0x20001009
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
mov ecx, dword [esp + 0xc]
call fcn.0040e48b
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x10
add esi, 0x11
push 0x50
lea eax, [esp + 0xe4]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
call dword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetDateFormatW]
push 0x50
lea eax, [esp + 0x44]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 2
push ebx
call dword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetTimeFormatW]
mov ebx, 0x401c78
mov esi, 0x14a
test edi, edi
je 0x40e5d5
push ebx
mov edx, esi
lea ecx, [esp + 0x184]
call fcn.004057b1
lea eax, [esp + 0x40]
mov edx, esi
push eax
lea ecx, [esp + 0x184]
call fcn.004057b1
push 0x401c80
mov edx, esi
lea ecx, [esp + 0x184]
call fcn.004057b1
lea eax, [esp + 0xe0]
mov edx, esi
push eax
lea ecx, [esp + 0x184]
call fcn.004057b1
test edi, edi
je 0x40e624
push ebx
mov edx, esi
lea ecx, [esp + 0x184]
call fcn.004057b1
lea eax, [esp + 0x180]
push eax
push 1
push 0xc2
push dword [0x422c8c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
call fcn.0041d202
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041fb30
mov esp, ebp
pop ebp
ret

Function at 0x40e65b
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x40e687
sub esi, edx
mov ax, word [edx]
movzx ecx, byte [edx + 1]
shl ax, 8
xor cx, ax
mov word [esi + edx], cx
lea edx, [edx + 2]
sub edi, 1
jne 0x40e66d
pop edi
pop esi
pop ebp
ret 4
Function at 0x40e68d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x10], 0
mov eax, edx
mov ecx, dword [0x421cc0]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jne 0x40e6b1
xor eax, eax
inc eax
jmp 0x40e73a
push esi
lea esi, [eax - 0xfde9]
neg esi
lea ecx, [ebp - 0x10]
sbb esi, esi
and esi, ecx
xor ecx, ecx
push esi
push ecx
push ecx
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
test eax, eax
je 0x40e739
push edi
inc eax
push eax
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x40e6fb
push 8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x40e738
push esi
push 0
push dword [ebp - 4]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
mov esi, eax
test esi, esi
je 0x40e72f
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
mov esi, eax
push edi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov eax, esi
pop edi
pop esi
leave
ret 0xc

Function at 0x40e789
Capabilities:
Get graphical window text

Disassembly:
cmp dword [0x422a78], 0
je 0x40e7c2
cmp dword [0x422840], 0
je 0x40e7a5
mov ecx, 0x50200104
jmp fcn.0041b0ed
push dword [0x422810]
push dword [0x42280c]
push 0xb1
push dword [0x422c8c]
call dword [sym.imp.USER32.dll_SendMessageW]
ret
Function at 0x40fb0d
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], ebx
mov eax, ebx
mov dword [ebp - 0x10], eax
mov esi, edx
mov dword [ebp - 4], ebx
push 4
pop edi
mov dword [ebp - 0x14], edi
test ecx, ecx
je 0x40fb59
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x40fb56
cmp dword [ebp - 0xc], edi
je 0x40fb8e
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x401d00
push 0x80000001
call dword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegCreateKeyW]
test eax, eax
jne 0x40fb8e
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40fb98
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov word [esi], ax
mov eax, dword [ebp + 0x10]
lea edi, [eax + eax]
mov dword [ebp - 8], edi
test ecx, ecx
je 0x40fbd7
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push 0
push edx
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x40fbd7
cmp dword [ebp - 4], 1
je 0x40fbe4
push edi
push dword [ebp + 8]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
pop edi
pop esi
leave
ret 0xc
Function at 0x41e65c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41e6c9
xor ebx, ebx
test eax, 0x4000
je 0x41e69e
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DecryptFileW]
test eax, eax
jne 0x41e69e
mov ecx, dword [ebp + 4]
mov edx, 0xd6
push 0x40473c
call fcn.0040626e
jmp 0x41e6cb
cmp word [edi], bx
je 0x41e6c9
mov edx, edi
mov ecx, esi
call fcn.0041de31
mov esi, eax
test esi, esi
jns 0x41e6c9
mov ecx, dword [ebp + 4]
mov edx, 0xdc
push esi
push 0x40473c
call fcn.00406251
mov eax, esi
jmp 0x41e6cb
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x41ff54
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4206f0
call fcn.00420218
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x41ffb4
cmp eax, 0xffffffff
je 0x41ffb4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41ffad
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41ffad
cmp edx, 0x10000000
jae 0x41ffad
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41ffaa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x420020
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x42005e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x420056
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x420060
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x420046
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x420130
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x420161
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x420161
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x420161
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret