joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4043b0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x10]
push eax
push esi
push edi
mov dword [esp + 0x14], 0
call fcn.00404290
test eax, eax
je 0x404401
lea ecx, [esp + 0x14]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0x43d5f0
push 0
push esi
push edi
mov dword [esp + 0x38], 2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40443c
mov edx, dword [esp + 0x18]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 1
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
pop ecx
ret 0x10
pop edi
xor eax, eax
pop esi
pop ecx
ret 0x10

Function at 0x404450
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
push ebp
lea eax, [esp + 4]
push esi
push eax
mov eax, dword [esp + 0x14]
xor ebp, ebp
push edx
push eax
mov dword [esp + 0x14], ebp
call fcn.00404290
mov esi, eax
cmp esi, ebp
jne 0x4044e5
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x18]
push edi
mov edi, dword [esp + 0x28]
push ecx
push ebp
push ebp
push ebp
push edi
push edx
mov dword [esp + 0x34], ebp
call ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebp
mov ebp, dword [esp + 0x24]
jbe 0x4044c3
cmp eax, dword [ebp]
ja 0x4044c3
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push edi
push edx
mov dword [esp + 0x30], 4
call ebx
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
test esi, esi
jne 0x4044e5
cmp dword [ebp], 0
jle 0x4044e5
pop esi
mov eax, 1
pop ebp
pop ecx
ret 0x14
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0x14

Function at 0x4044f0
Capabilities:
Delete registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
mov eax, dword [esp + 0x10]
xor esi, esi
push edx
push eax
mov dword [esp + 0x10], esi
call fcn.00404290
test eax, eax
jne 0x404527
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 4]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret 0xc
Function at 0x4084d0
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x42cf2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
call fcn.004296dc
mov ecx, dword [eax + 4]
call fcn.00421fd8
mov eax, dword [0x438ca8]
mov dword [esp + 0x94], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
push 0x67
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 2
call fcn.00422b5b
push 0x76
lea ecx, [esp + 0x14]
call fcn.00422b5b
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x48]
lea edx, [esp + 0x48]
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
push ecx
mov dword [esp + 0x28], eax
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x44], eax
push eax
mov eax, dword [esp + 0xbc]
push eax
push 0
mov dword [esp + 0x70], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4085cd
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0x30
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x94], 1
call fcn.004210e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x94], 0
call fcn.004210e4
mov dword [esp + 0x94], 0xffffffff
call fcn.004296dc
mov ecx, dword [eax + 4]
call fcn.00421fed
or eax, 0xffffffff
jmp 0x408687
mov eax, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xa
push eax
call edi
mov ebp, dword [sym.imp.USER32.dll_WaitMessage]
mov esi, eax
call ebp
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
push 0
push 0x16
push 0x16
lea ecx, [esp + 0x38]
push 0
push ecx
call ebx
test eax, eax
jne 0x408623
test esi, esi
je 0x40862a
mov edx, dword [esp + 0x1c]
push 0xa
push edx
call edi
mov esi, eax
call ebp
push 0
push 0x16
push 0x16
lea eax, [esp + 0x38]
push 0
push eax
call ebx
test eax, eax
je 0x4085ff
push 0
call fcn.00411df7
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call fcn.004296dc
mov ecx, dword [eax + 4]
call fcn.00422002
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
mov byte [esp + 0x94], 1
call fcn.004210e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x94], 0
call fcn.004210e4
mov dword [esp + 0x94], 0xffffffff
call fcn.004296dc
mov ecx, dword [eax + 4]
call fcn.00421fed
mov eax, esi
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x88
ret 4
Function at 0x4161a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43a4d0
cmp edx, dword [eax]
je 0x4161c7
add eax, 8
inc ecx
cmp eax, 0x43a560
jl 0x4161b8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43a4d0]
jne 0x4162f5
mov eax, dword [0x43f660]
cmp eax, 1
je 0x4162cf
test eax, eax
jne 0x4161f8
cmp dword [0x439a34], 1
je 0x4162cf
cmp edx, 0xfc
je 0x4162f5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41622f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00418920
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00412b70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x416272
lea eax, [ebp - 0x1a4]
push eax
call fcn.00412b70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x431128
push edi
call fcn.00419320
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00418920
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00418930
lea eax, [ebp - 0xa0]
push 0x431108
push eax
call fcn.00418930
push dword [esi + 0x43a4d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00418930
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00419e79
add esp, 0x2c
pop edi
jmp 0x4162f5
lea eax, [ebp + 8]
lea esi, [esi + 0x43a4d4]
push 0
push eax
push dword [esi]
call fcn.00412b70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41f760
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00412e10
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41f82b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41f82b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41f7de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41f7e9
or bh, 8
and edi, 0x8000000
je 0x41f804
mov eax, dword [0x440dbc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41f82b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fc00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41fc2b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41fc4f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41fc6a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4223ee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x422410
cmp dword [edi + 0x3c], 0
jne 0x422410
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004296dc
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0042243d
pop edi
pop esi
pop ebx
ret 8

Function at 0x424fec
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 0x42502e
call fcn.004296dc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42502e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x425025
xor eax, eax
jmp 0x425036
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042503c
pop edi
pop esi
pop ebx
ret 4

Function at 0x429d4d
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 0x429d7b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x429d99
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00429cb3
jmp 0x429d99
mov eax, dword [esi + 0x14]
test eax, eax
je 0x429d99
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00429cb3
test edi, edi
mov eax, edi
jne 0x429d83
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x40e280
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
jmp 0x40e29a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40e2a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40e290
mov eax, 1
add ebx, ebx
jne 0x40e2b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40e2a8
jne 0x40e2c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e2a8
xor ecx, ecx
sub eax, 3
jb 0x40e2d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40e34a
mov ebp, eax
add ebx, ebx
jne 0x40e2e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40e2f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40e314
inc ecx
add ebx, ebx
jne 0x40e300
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40e2f5
jne 0x40e311
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e2f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40e334
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40e325
jmp 0x40e296
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40e334
add edi, ecx
jmp 0x40e296
pop esi
mov edi, esi
mov ecx, 0xa8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40e352
cmp byte [edi], 5
jne 0x40e352
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40e357
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x40e3c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10810]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10838]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40e384
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1083c]
or eax, eax
je 0x40e3c0
mov dword [ebx], eax
add ebx, 4
jmp 0x40e3a1
call dword [esi + 0x1084c]
mov ebp, dword [esi + 0x10840]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40e3fa
sub esp, 0xffffff80
jmp 0x401d5b
Function at 0x401990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x290
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0x29c]
push 0x200
push 0
push edi
call sym._memset
add esp, 0xc
mov dword [ebp - 0x1c], 0x80
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlTimeZoneInformation
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401a67
lea eax, [ebp - 0x1c]
lea ebx, [ebp - 0x9c]
push eax
push ebx
push 0
push 0
push str.TimeZoneKeyName
push dword [ebp - 0x18]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x401a67
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionTime_Zones
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401a67
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401a67
mov dword [ebp - 0x1c], 0x200
lea eax, [ebp - 0x1c]
push eax
push edi
push 0
push 0
push str.Display
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
push 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
add esi, 0xfffffff7
push edi
push str.__s__02u_:__s
push esi
push str.Time_Zone:_s__s_n
push eax
call dbg.fwprintf
add esp, 0x14
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x18]
call esi
add esp, 0x290
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.ucrtbase.dll_strlen]
add esp, 4
test eax, eax
je 0x40202d
mov esi, eax
xor eax, eax
cmp byte [esi + edi - 1], 0xa
je 0x40200a
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov ecx, 0x4060cc
lock xchg dword [ecx], eax
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push eax
push esi
push 1
push edi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
jmp 0x40202f
xor eax, eax
pop esi
pop edi
pop ebp
ret
Function at 0x4024b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xcc
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [0x406040]
test ecx, ecx
jne 0x40250b
mov edi, dword fs:[0x18]
mov ebx, dword [edi + 0x34]
push 0x404878
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.__wine_dbg_get_channel_flags
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
cmovne ecx, eax
mov eax, 0x406040
lock xchg dword [eax], ecx
mov dword [edi + 0x34], ebx
mov edi, dword [ebp + 8]
mov ecx, dword [0x406040]
push esi
call ecx
add esp, 4
movzx eax, al
bt eax, edi
jae 0x4026c5
mov ecx, dword [0x4060cc]
mov ebx, dword fs:[0x18]
xor eax, eax
cmp ecx, dword [ebx + 0x24]
je 0x4026ca
lea edi, [ebp - 0xd8]
test byte [0x406015], 8
je 0x4025d4
mov ecx, dword [0x406040]
test ecx, ecx
jne 0x40258d
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x10], eax
push 0x404878
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.__wine_dbg_get_channel_flags
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
cmovne ecx, eax
mov eax, 0x406040
lock xchg dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x34], eax
mov ecx, dword [0x406040]
push 0x406015
call ecx
add esp, 4
test al, 8
je 0x4025d4
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ecx, eax
mov edx, 0x10624dd3
mul edx
shr edx, 6
imul eax, edx, 0x3e8
sub ecx, eax
lea eax, [ebp - 0xd8]
push ecx
push edx
push str._3u._03u:
push eax
call dbg.sprintf
add esp, 0x10
lea edi, [eax + ebp]
add edi, 0xffffff28
test byte [0x406025], 8
je 0x402643
mov ecx, dword [0x406040]
test ecx, ecx
jne 0x402622
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x10], eax
push 0x404878
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.__wine_dbg_get_channel_flags
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
cmovne ecx, eax
mov eax, 0x406040
lock xchg dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x34], eax
mov ecx, dword [0x406040]
push 0x406025
call ecx
add esp, 4
test al, 8
je 0x402643
push dword [ebx + 0x20]
push str._04x:
push edi
call dbg.sprintf
add esp, 0xc
add edi, eax
push dword [ebx + 0x24]
push str._04x:
push edi
call dbg.sprintf
add esp, 0xc
mov edx, dword [ebp + 8]
cmp edx, 3
ja 0x402698
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x402698
add edi, eax
lea eax, [ebp - 0xd8]
sub eax, edi
add eax, 0xc8
mov edx, dword [edx*4 + 0x40489c]
inc esi
sub esp, 0x18
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov dword [esp], edi
mov dword [esp + 4], eax
call dbg.snprintf
add esp, 0x18
lea edi, [ebp - 0xd8]
push edi
call dword [sym.imp.ucrtbase.dll_strlen]
add esp, 4
mov esi, eax
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push eax
push esi
push 1
push edi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
jmp 0x4026ca
mov eax, 0xffffffff
add esp, 0xcc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402740
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push 1
call sym.__configure_wide_argv
add esp, 4
call sym.__initialize_wide_environment
call sym.___p___argc
mov edi, dword [eax]
call sym.___p___wargv
mov ebx, dword [eax]
call sym.__get_initial_wide_environment
mov esi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
xor edx, edx
cmp word [eax + ecx + 0x5c], 2
sete dl
inc edx
push edx
call sym.__set_app_type
add esp, 4
push esi
push ebx
push edi
call dbg.wmain
add esp, 0xc
push eax
call sym._exit
jmp dword [sym.imp.oleaut32.dll_SysAllocString]
Function at 0x2c3200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x24
mov eax, dword [ecx + 4]
push ebx
push esi
mov dword [esp + 0x14], edx
lea esi, [ecx + 4]
mov edx, dword [ecx]
add esi, 4
xor eax, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
push edi
movd xmm0, edx
mov edi, eax
pshufd xmm0, xmm0, 0
movdqa xmmword [esp + 0x20], xmm0
test al, 3
je 0x2c3240
and edi, 0xfffffffc
add edi, 4
mov eax, dword [0x2cdddc]
test eax, eax
jne 0x2c3264
mov ecx, 0x802173e5
call fcn.002c3df0
mov edx, 0x51a2922a
mov ecx, eax
call fcn.002c3d50
mov dword [0x2cdddc], eax
call eax
mov ebx, eax
mov eax, dword [0x2ce1fc]
test eax, eax
jne 0x2c328c
mov ecx, 0x802173e5
call fcn.002c3df0
mov edx, 0xb1fe2c86
mov ecx, eax
call fcn.002c3d50
mov dword [0x2ce1fc], eax
push edi
push 8
push ebx
call eax
mov dword [esp + 0xc], eax
test eax, eax
je 0x2c3342
shr edi, 2
xor edx, edx
lea ecx, [esi + edi*4]
mov edi, eax
mov ebx, ecx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, ecx
mov ecx, eax
cmova ebx, edx
test ebx, ebx
je 0x2c3332
cmp ebx, 8
jb 0x2c3317
lea eax, [esi - 4]
lea eax, [eax + ebx*4]
cmp ecx, eax
ja 0x2c32d6
lea eax, [ecx - 4]
lea eax, [eax + ebx*4]
cmp eax, esi
jae 0x2c3317
movdqa xmm1, xmmword [esp + 0x20]
mov eax, ebx
and eax, 7
mov dword [esp + 0xc], ebx
sub dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
lea ecx, [ecx]
movdqu xmm0, xmmword [esi]
add edx, 8
pxor xmm0, xmm1
movdqu xmmword [edi], xmm0
movdqu xmm0, xmmword [esi + 0x10]
add esi, 0x20
pxor xmm0, xmm1
movdqu xmmword [edi + 0x10], xmm0
add edi, 0x20
cmp edx, eax
jb 0x2c32f0
cmp edx, ebx
jae 0x2c3332
sub edi, esi
lea ecx, [ecx]
mov eax, dword [esi]
lea esi, [esi + 4]
xor eax, dword [esp + 0x14]
inc edx
mov dword [edi + esi - 4], eax
cmp edx, ebx
jb 0x2c3320
mov edx, dword [esp + 0x18]
test edx, edx
je 0x2c3340
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret