joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4308e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x486824]
sub esp, 0xc
push esi
imul esi, dword [ebp + 8], 0x2238
cmp dword [esi + eax + 0x14], 0
ja 0x430908
cmp dword [esi + eax + 0x10], 0
ja 0x430908
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x487680
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x430935
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x486824]
push 0
mov ecx, dword [esi + eax + 8]
mov eax, dword [esi + eax + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ecx
push ebx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x430964
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x486824]
push edi
mov eax, dword [esi + eax + 0x10]
push eax
mov dword [ebp + 8], eax
call fcn.00436e70
mov edi, eax
add esp, 4
test edi, edi
jne 0x430990
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jbe 0x4309f1
push 0x44f384
push dword [ebp + 0xc]
call fcn.00437d7e
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4309d6
push edi
call fcn.00436e38
add esp, 4
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x486824]
push ebx
push 1
push dword [esi + eax + 0x10]
push edi
call fcn.0043a76a
push ebx
call fcn.00437cbb
add esp, 0x14
push edi
call fcn.00436e38
add esp, 4
mov eax, 1
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430c30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, str.Unknown
push edi
mov edi, dword [ebp + 0xc]
mov edx, edi
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x430c54
push 0x44f350
push esi
call fcn.00437d7e
mov esi, eax
add esp, 8
test esi, esi
jne 0x430c87
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436f02
mov esp, ebp
pop ebp
ret
push esi
push 1
lea eax, [ebp - 0x94]
push 0x80
push eax
call fcn.00438062
push esi
call fcn.00437cbb
add esp, 0x14
xor eax, eax
jmp 0x430cb0
mov cl, byte [ebp + eax - 0x94]
cmp cl, 0x76
jne 0x430cda
cmp byte [ebp + eax - 0x93], 0x69
jne 0x430cda
cmp byte [ebp + eax - 0x92], 0x64
jne 0x430cda
cmp byte [ebp + eax - 0x91], 0x73
je 0x430d07
cmp cl, 0x56
jne 0x430cfd
cmp byte [ebp + eax - 0x93], 0x49
jne 0x430cfd
cmp byte [ebp + eax - 0x92], 0x44
jne 0x430cfd
cmp byte [ebp + eax - 0x91], 0x53
je 0x430d07
inc eax
cmp eax, 0x80
jl 0x430cb0
jmp 0x430d46
movsx ecx, byte [ebp + eax - 0x90]
mov word [edi], cx
movsx ecx, byte [ebp + eax - 0x8f]
mov word [edi + 2], cx
movsx ecx, byte [ebp + eax - 0x8e]
movsx ax, byte [ebp + eax - 0x8d]
push edi
mov word [edi + 4], cx
mov word [edi + 6], ax
xor eax, eax
mov word [edi + 8], ax
call fcn.0043a305
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00436f02
mov esp, ebp
pop ebp
ret
Function at 0x431010
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4853f8], 0
je 0x431045
xor eax, eax
cmp dword [0x4853ec], eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436f02
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x90
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.00437570
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [ebp - 0x88], 2
push str.USER32
sete al
mov dword [0x4853fc], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x43112e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44fb6c
push esi
call edi
mov dword [0x4853dc], eax
test eax, eax
je 0x43112e
push str.MonitorFromWindow
push esi
call edi
mov dword [0x4853e0], eax
test eax, eax
je 0x43112e
push str.MonitorFromRect
push esi
call edi
mov dword [0x4853e4], eax
test eax, eax
je 0x43112e
push str.MonitorFromPoint
push esi
call edi
mov dword [0x4853e8], eax
test eax, eax
je 0x43112e
push str.EnumDisplayMonitors
push esi
call edi
mov dword [0x4853f0], eax
test eax, eax
je 0x43112e
push str.EnumDisplayDevicesW
push esi
call edi
mov dword [0x4853f4], eax
test eax, eax
je 0x43112e
cmp dword [0x4853fc], 0
je 0x431116
push str.GetMonitorInfoW
jmp 0x43111b
push str.GetMonitorInfoA
push esi
call edi
mov dword [0x4853ec], eax
test eax, eax
je 0x43112e
mov eax, 1
jmp 0x431176
mov dword [0x4853dc], 0
xor eax, eax
mov dword [0x4853e0], 0
mov dword [0x4853e4], 0
mov dword [0x4853e8], 0
mov dword [0x4853ec], 0
mov dword [0x4853f0], 0
mov dword [0x4853f4], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [0x4853f8], 1
pop esi
call fcn.00436f02
mov esp, ebp
pop ebp
ret

Function at 0x431190
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x736
push ebx
call edi
push 0
push 0
push 0x735
push ebx
call edi
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x431220
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0x10], 0
je 0x43120b
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43120b
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
sub eax, dword [ebp - 0x10]
movzx eax, ax
push eax
push 0x72d
push ebx
call edi
mov eax, dword [ebp + 0x14]
neg eax
push 0
sbb eax, eax
and eax, 0x65
push eax
push 0x72c
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00436f02
mov esp, ebp
pop ebp
ret
Function at 0x432180
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x432286
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push 0
push 0
push 0x469
push edi
call ebx
push 0
push 0
push 0x467
push edi
mov esi, eax
call ebx
sub esi, eax
mov eax, 0x66666667
imul esi
push 0x11
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4321e2
mov eax, esi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x432200
mov eax, 0x66666667
imul esi
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
push 0
mov eax, 1
push 0x65
cmp esi, eax
push 0x808
cmovg eax, esi
push edi
mov dword [ebp - 4], eax
call ebx
push 0
push 0
push 0x4ca
push edi
call ebx
mov esi, eax
mov eax, dword [ebp + 0xc]
cmp ax, 1
jne 0x432235
add esi, dword [ebp - 4]
jmp 0x43223d
test ax, ax
jne 0x43223d
sub esi, dword [ebp - 4]
push 0
push 0
push 0x469
push edi
call ebx
cmp esi, eax
jle 0x43225b
push 0
push 0
push 0x469
push edi
call ebx
mov esi, eax
test esi, esi
jns 0x43226d
push 0
push 0
push 0x467
push edi
call ebx
mov esi, eax
push esi
push 0
push 0x807
push edi
call ebx
push 0
push 0
push 0x806
push edi
call ebx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x447367
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0043bff4
mov dword [ebp - 0x14], eax
cmp dword [0x4862b4], esi
jne 0x44745a
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4473e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x44753a
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x44753a
push 0x455d7c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44753a
push eax
call ebx
push 0x455d88
push edi
mov dword [0x4862b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4862b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4862bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4862c4], eax
test eax, eax
je 0x447457
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4862c0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x44747f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x447472
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x447494
push 4
pop eax
jmp 0x44753c
cmp dword [ebp - 0x14], esi
je 0x447494
push dword [0x4862b4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x447479
mov eax, dword [0x4862c0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4474f2
cmp dword [0x4862c4], edi
je 0x4474f2
push eax
call ebx
push dword [0x4862c4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4474f2
test eax, eax
je 0x4474f2
call ecx
test eax, eax
je 0x4474e7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4474e7
test byte [ebp - 8], 1
jne 0x4474f2
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x447522
mov eax, dword [0x4862b8]
cmp eax, edi
je 0x44751f
push eax
call ebx
test eax, eax
je 0x44751f
call eax
mov esi, eax
test esi, esi
je 0x44751f
mov eax, dword [0x4862bc]
cmp eax, edi
je 0x44751f
push eax
call ebx
test eax, eax
je 0x44751f
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4862b4]
call ebx
test eax, eax
je 0x44753a
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x44753c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00436f02
mov esp, ebp
pop ebp
ret
Function at 0x4259d4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [fcn.0040e020]
test eax, eax
je 0x425a13
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425a13
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425a13
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x425a13
cmp dword [ecx + 0x74], 0xe
jbe 0x425a13
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x430ec0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x430eed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x430eed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412d00
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x412eaa
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x5b
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x3b
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xa2
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x15
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc5
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x73
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x16
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x95
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xe8
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xb4
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x93
add esp, 0x40
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x74
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x96
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xef
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc7
add esp, 0x30
inc esi
cmp esi, edi
jb 0x412d20
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x451ba9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451bba
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405907
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b052
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b063
pop esi
ret
push ebx
push edi
push esi
call fcn.0049af39
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fda
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b08b
push ebx
push esi
push edi
call fcn.004056fa
add esp, 0xc
push 0
call fcn.00406244
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4072c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
or ebp, 0xffffffff
jmp 0x4072e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4072e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4072d8
mov eax, 1
add ebx, ebx
jne 0x4072fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4072f0
jne 0x40730c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4072f0
xor ecx, ecx
sub eax, 3
jb 0x407320
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x407392
mov ebp, eax
add ebx, ebx
jne 0x40732b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407338
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40735c
inc ecx
add ebx, ebx
jne 0x407348
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40733d
jne 0x407359
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40733d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40737c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40736d
jmp 0x4072de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40737c
add edi, ecx
jmp 0x4072de
pop esi
mov edi, esi
mov ecx, 0xd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40739a
cmp byte [edi], 0
jne 0x40739a
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 0x40739f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x40740e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x79bc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7a64]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4073cc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7a6c]
or eax, eax
je 0x407408
mov dword [ebx], eax
add ebx, 4
jmp 0x4073e9
call dword [esi + 0x7a68]
mov ebp, dword [esi + 0x7a70]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x407442
sub esp, 0xffffff80
jmp 0x402a30
Function at 0x10001050
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x95c
mov eax, dword [0x10012004]
xor eax, esp
mov dword [esp + 0x958], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [0x10013298], ecx
mov dword [0x10013294], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
test eax, eax
je 0x100011b2
push eax
lea eax, [esp + 0x54]
mov byte [esp + 0x2c], 0
push eax
call esi
push str.ClarigoForestClientClientConfig.xml
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10001176
push 0
lea eax, [esp + 0x28]
push eax
push 0x800
lea eax, [esp + 0x164]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10001168
mov eax, dword [esp + 0x24]
cmp eax, 0x35
jbe 0x10001168
cmp eax, 0x801
jae 0x100011d2
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrA]
mov byte [esp + eax + 0x158], 0
lea eax, [esp + 0x158]
push str._UserId_
push eax
call esi
mov edi, eax
lea eax, [esp + 0x158]
push str.__UserId_
push eax
call esi
test edi, edi
je 0x10001162
test eax, eax
je 0x10001162
add edi, 8
mov byte [eax], 0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001145
sub ecx, edx
cmp ecx, 0x28
jae 0x10001162
lea eax, [esp + 0x28]
push edi
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x10001178
xor eax, eax
test eax, eax
je 0x100011a7
lea ecx, [esp + 0xc]
call fcn.10001420
lea edx, [esp + 0xc]
lea ecx, [esp + 0x28]
call fcn.100014d0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x958]
xor ecx, esp
call fcn.100019d3
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10013298]
mov eax, dword [0x10013294]
push 0x10010d1c
lea eax, [eax + ecx*2]
push eax
call esi
mov ecx, dword [esp + 0x964]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100019d3
mov esp, ebp
pop ebp
ret
call fcn.10001b03
int3

Function at 0x100011e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov edx, str.Desktop
mov dword [0x10013298], eax
xor ecx, ecx
mov eax, dword [ebp + 0x10]
mov dword [0x10013294], eax
pop ebp
jmp fcn.10001260

Function at 0x10001200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov edx, str.AppDataRoaming
mov dword [0x10013298], eax
mov ecx, 0x1a
mov eax, dword [ebp + 0x10]
mov dword [0x10013294], eax
pop ebp
jmp fcn.10001260

Function at 0x10001230
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov edx, str.AppDataRoaming
mov dword [0x10013298], eax
mov ecx, 2
mov eax, dword [ebp + 0x10]
mov dword [0x10013294], eax
pop ebp
jmp fcn.10001260
Function at 0x100014d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10012004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
lea edx, [ebp - 0x14]
push edi
call fcn.10001610
mov eax, dword [esi]
lea edx, [ebp - 0x24]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 4]
lea eax, [eax + ecx*4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [esi + 8]
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0xc]
lea eax, [eax + ecx*8]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [esi + 0x10]
lea eax, [eax + ecx*4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [esi + 0x14]
lea ebx, [eax + ecx*4]
mov ecx, str.96D925D5_E12A_4832_90CA_4F5C843DF167
call fcn.10001610
mov eax, ebx
mov byte [ebp - 0x28], bl
sar eax, 8
lea ecx, [ebp - 0x12]
mov byte [ebp - 0x27], al
mov edi, 3
mov eax, ebx
sar ebx, 0x18
sar eax, 0x10
mov byte [ebp - 0x26], al
xor eax, eax
mov byte [ebp - 0x25], bl
sub edi, ecx
lea esi, [eax + 2]
nop dword [eax]
mov ecx, eax
lea edx, [ebp - 0x12]
and ecx, 3
add edx, eax
movzx ecx, byte [ebp + ecx - 0x28]
xor cl, byte [ebp + eax - 0x24]
xor byte [ebp + eax - 0x14], cl
lea ecx, [esi - 1]
and ecx, 3
movzx ecx, byte [ebp + ecx - 0x28]
xor cl, byte [ebp + eax - 0x23]
xor byte [ebp + eax - 0x13], cl
mov ecx, esi
and ecx, 3
movzx ecx, byte [ebp + ecx - 0x28]
xor cl, byte [ebp + esi - 0x24]
add esi, 4
xor byte [edx], cl
lea ecx, [edx + edi]
and ecx, 3
movzx ecx, byte [ebp + ecx - 0x28]
xor cl, byte [ebp + eax - 0x21]
xor byte [ebp + eax - 0x11], cl
add eax, 4
cmp esi, 0x12
jl 0x10001560
push 0x28
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
lea ecx, [ebp - 0x14]
mov edx, esi
call fcn.100016d0
test esi, esi
je 0x100015e9
mov edx, dword [0x10013294]
mov ecx, dword [0x10013298]
push esi
lea eax, [edx + ecx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100019d3
mov esp, ebp
pop ebp
ret

Function at 0x1000bc70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000bc9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000bc9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x438ca3
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x438a14
sub ebx, 0x674971af
sub ebx, edx
sub ebx, edx
call fcn.00438ce2
or edx, ebx
add edx, ebx
and ebx, ebx
xor dword [ecx], edi
add edx, 0xdf53bdad
sub ebx, 0xb91bad95
sub edx, 0xd8bfabc0
inc ecx
or edx, ebx
cmp ecx, eax
jne fcn.00438ca3
or edx, ebx
dec ebx
mov edx, edx
ret

Function at 0x40115f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esp
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [esp + 0x2c], 1
je 0x401178
movzx esi, word [esp + 0x30]
xor eax, eax
mov edi, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x402660], eax
mov dword [ebp - 0x4c], 0x30
call fcn.0040114f
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x401050
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str.Lyrik
mov dword [ebp - 0x20], eax
call fcn.00401142
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test eax, eax
je 0x40124c
mov eax, 0x80000000
push edi
push dword [ebp - 0x38]
push edi
push edi
push eax
push eax
push eax
push eax
push 0x80
push str.Dindom
push str.Lyrik
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x402668], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x402668]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x40124c
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x401230
pop ebx
mov esp, ebp
pop ebp
ret