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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x4027cc
jl 0x4027c0
test ecx, ecx
jne 0x4027cc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4027e5
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x402833
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x402839
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x402839
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x4028a6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x402862
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x402894
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4028a6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x402870
test edi, edi
je 0x4028a6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402c30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x408040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402c60
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004037da
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x402c9c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x402c9c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004037da
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x402d73
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x402cc4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x402cd0
movsx eax, bl
jmp 0x402d08
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x402d32
sub eax, 1
je 0x402d32
sub eax, 2
jne 0x402d73
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004037da
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402d50
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x402d73
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004037da
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004037da
mov esp, ebp
pop ebp
ret 4
Function at 0x4031f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x408040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4032ac
cmp byte [esi + 0x3d], 0
je 0x4032ac
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40329a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x403261
sub eax, 1
je 0x403265
sub eax, 2
jne 0x40329a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004037da
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403283
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40329a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004037da
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004037da
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004037da
mov esp, ebp
pop ebp
ret

Function at 0x404083
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9eb96c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9eb932
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9eb9d0
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9eba22
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9eba28
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0xa03f15
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a03bd5

Function at 0xa08d0f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a08b8e

Function at 0xa0e2c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xa0e2ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xa0e2ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0xcbe197e
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6fff1355
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x407fd5
Capabilities:
Create thread

Disassembly:
mov eax, 0x41c089
call fcn.00415f50
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x14], esi
lea ecx, [esi + 8]
mov dword [esi + 4], edi
call fcn.00401054
lea ebx, [esi + 0x58]
push 4
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.00401d4b
mov dword [ebx], 0x41e480
lea ebx, [esi + 0x6c]
push 4
mov ecx, ebx
call fcn.00401d4b
mov dword [ebx], 0x41e478
lea eax, [esi + 0x80]
mov ebx, 0x41e35c
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 4
mov dword [eax], ebx
mov dword [esi + 0x94], edi
push edi
push edi
push edi
lea ecx, [esi + 0x98]
push edi
mov byte [ebp - 4], 4
call fcn.00412fa3
lea eax, [esi + 0x9c]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 4
mov dword [eax], ebx
push edi
push edi
push edi
lea ecx, [esi + 0xb0]
push edi
mov byte [ebp - 4], 6
call fcn.00412fa3
push edi
push edi
push edi
lea ecx, [esi + 0xb4]
push 1
mov byte [ebp - 4], 7
call fcn.00412fa3
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 8
push eax
push edi
push esi
push 0x408104
push edi
push edi
mov dword [esi], 0x41e464
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, edi
mov dword [esi + 0x94], eax
jne 0x4080ce
lea eax, [ebp - 0x10]
push 0x41f1d0
push eax
mov dword [ebp - 0x10], 0x425d1
call fcn.00415fb4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x408307
Capabilities:
Create thread

Disassembly:
mov eax, 0x41c11b
call fcn.00415f50
sub esp, 0xd0
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x74]
mov ecx, dword [edi + 0x14]
push dword [ecx + eax*8 + 4]
lea eax, [ecx + eax*8]
lea ecx, [ebp - 0xdc]
push dword [eax]
call fcn.00407a85
and dword [ebp - 4], 0
lea esi, [edi + 0x6c]
lea eax, [ebp - 0xdc]
mov ecx, esi
push eax
call fcn.00408b78
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + eax*4 - 4]
call fcn.00407be2
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov eax, dword [edi + 0xb4]
mov ecx, dword [edx + ecx*4 - 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + eax*4 - 4]
lea ecx, [edi + 0x9c]
mov eax, dword [eax + 8]
push dword [eax]
call fcn.004025da
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + eax*4 - 4]
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push 0x4083e8
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
jne 0x4083bf
lea eax, [ebp - 0x10]
push 0x41f1d0
push eax
mov dword [ebp - 0x10], 0x425d0
call fcn.00415fb4
push eax
lea ecx, [edi + 0x80]
call fcn.004025da
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
call fcn.00407c56
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40e166
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push esi
push edi
push ebx
call fcn.0040d53a
xor eax, eax
mov cl, byte [esi + eax + 0x108]
xor byte [eax + edi], cl
inc eax
cmp eax, 0x10
jl 0x40e17d
xor eax, eax
mov cl, byte [eax + ebx]
mov byte [esi + eax + 0x108], cl
inc eax
cmp eax, 0x10
jl 0x40e18f
pop edi
pop esi
pop ebx
ret 8

Function at 0x40e90c
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 0x20], 0
and dword [ecx + 0x24], 0
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
ret
Function at 0x411972
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x41cc80
call fcn.00415f50
sub esp, 0x18
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x411993
mov al, 1
jmp 0x4119f5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
je 0x4119a2
xor al, al
jmp 0x4119f5
push ebx
lea ecx, [ebp - 0x18]
push dword [ebp + 8]
call fcn.0040270c
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0041382f
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push dword [ebp - 0x24]
test eax, eax
setne bl
call fcn.00415b60
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.00415b60
pop ecx
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8

Function at 0x411d38
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
jne 0x411d4c
xor al, al
jmp 0x411d5c
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
neg eax
sbb eax, eax
neg eax
ret 4

Function at 0x412349
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x41cdac
call fcn.00415f50
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 1
mov eax, dword [esi]
push 0
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
push 0
mov dword [edi + 0x18], eax
push dword [esi + 0x1c]
call fcn.00416a80
mov ecx, dword [esi + 0x20]
xor ebx, ebx
add eax, ecx
lea ecx, [ebp - 0x18]
mov dword [edi + 0x20], eax
lea eax, [esi + 0x2c]
adc edx, ebx
push eax
mov dword [edi + 0x24], edx
call fcn.0040d38e
and dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00412409
push eax
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 1
call fcn.0040c2ad
push dword [ebp - 0x24]
and byte [ebp - 4], bl
call fcn.00415b60
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.00415b60
mov eax, dword [esi + 0x24]
pop ecx
pop ecx
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x412608
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41262f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x41262f
xor al, al
jmp 0x41264f
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00416a80
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x41308d
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, ecx
push edi
mov eax, dword [esi]
and dword [esi + 4], 0
and byte [eax], 0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
test edi, edi
jne 0x4130ba
call dword [sym.imp.KERNEL32.DLL_GetLastError]
neg eax
sbb eax, eax
inc eax
jmp 0x4130f4
cmp edi, dword [esi + 8]
jl 0x4130ca
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.0040d444
mov eax, dword [esi]
inc edi
push edi
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, esi
mov edi, eax
call fcn.004120d0
test edi, edi
jne 0x4130f2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
neg eax
sbb eax, eax
neg eax
jmp 0x4130f4
mov al, 1
pop edi
pop esi
pop ebx
ret 4

Function at 0x4130fa
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x41cf28
call fcn.00415f50
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [esi]
mov dword [esi + 4], ebx
mov word [eax], bx
push dword [ecx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
cmp edi, ebx
jne 0x41319e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
je 0x4131e9
cmp eax, 0x78
je 0x413142
xor al, al
jmp 0x4131eb
push 0xf
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040d444
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], ebx
call fcn.0041308d
mov byte [ebp + 0xb], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00410b1d
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040c2ad
push dword [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00415b60
push dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
call fcn.00415b60
mov al, byte [ebp + 0xb]
pop ecx
pop ecx
jmp 0x4131eb
cmp edi, dword [esi + 8]
jl 0x4131ae
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.004029a7
mov eax, dword [esi]
inc edi
push edi
push eax
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi]
xor edx, edx
cmp word [ecx], bx
je 0x4131d1
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x4131c9
mov word [ecx + edx*2], bx
cmp eax, ebx
mov dword [esi + 4], edx
jne 0x4131e9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
neg eax
sbb eax, eax
inc eax
jmp 0x4131eb
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x413569
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
test bl, 3
mov dword [ebp - 4], ecx
je 0x41359f
test esi, esi
jbe 0x41359f
movzx edx, byte [ebx]
movzx edi, al
xor edx, edi
shr eax, 8
mov edx, dword [edx*4 + 0x426088]
xor eax, edx
dec esi
inc ebx
test bl, 3
jne 0x413580
cmp esi, 4
jb 0x4135f8
mov edi, esi
shr edi, 2
xor eax, dword [ebx]
sub esi, 4
add ebx, 4
movzx edx, al
mov dword [ebp + 0xc], edx
mov edx, eax
mov eax, dword [ebp + 0xc]
shr edx, 8
mov eax, dword [eax*4 + 0x426088]
xor eax, edx
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + 0x426088]
xor edx, eax
movzx eax, dl
shr edx, 8
mov eax, dword [eax*4 + 0x426088]
xor eax, edx
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + 0x426088]
xor eax, edx
dec edi
jne 0x4135a9
xor edx, edx
test esi, esi
jbe 0x41361b
movzx ecx, byte [edx + ebx]
movzx edi, al
xor ecx, edi
shr eax, 8
mov ecx, dword [ecx*4 + 0x426088]
xor eax, ecx
inc edx
cmp edx, esi
jb 0x4135fe
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
leave
ret 8

Function at 0x415029
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
xor ecx, ecx
mov dword [esi], eax
test eax, eax
setne cl
mov al, cl
pop esi
pop ebp
ret 0x18

Function at 0x4153fc
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41d482
call fcn.00415f50
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], edi
push 0xf
mov dword [ebp - 0x10], esi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.004029a7
lea ecx, [esi + 0x24]
push 0xf
mov dword [ebp - 4], edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.004029a7
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.00415486
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 0xa0]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 4
mov dword [eax], 0x41e574
mov dword [esi], 0x41e770
mov dword [esi + 4], 0x41e754
mov dword [esi + 8], 0x41e744
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x415486
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41d4aa
call fcn.00415f50
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi], 0x41e7c4
lea ecx, [esi + 0xc]
mov dword [esi + 8], edi
push 0xf
mov dword [ebp - 4], edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.004029a7
push edi
push edi
push edi
lea ecx, [esi + 0x38]
push 1
mov byte [ebp - 4], 1
mov dword [esi + 0x30], edi
call fcn.00412fa3
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 2
call fcn.004154f1
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x41e8ec
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x418a04
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4237e0
cmp edx, dword [eax]
je 0x418a26
add eax, 8
inc ecx
cmp eax, 0x423870
jl 0x418a17
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4237e0]
jne 0x418b54
mov eax, dword [0x4264d4]
cmp eax, 1
je 0x418b2e
test eax, eax
jne 0x418a57
cmp dword [0x423654], 1
je 0x418b2e
cmp edx, 0xfc
je 0x418b54
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x418a8e
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041a360
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041a450
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x418ad1
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041a450
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41edf4
push edi
call fcn.0041a940
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041a360
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041a370
lea eax, [ebp - 0xa0]
push 0x41edd4
push eax
call fcn.0041a370
push dword [esi + 0x4237e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041a370
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041a8af
add esp, 0x2c
pop edi
jmp 0x418b54
lea eax, [ebp + 8]
lea esi, [esi + 0x4237e4]
push 0
push eax
push dword [esi]
call fcn.0041a450
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 0x417a10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x58
mov eax, dword [0x62e038]
mov dword [esp + 4], 0
push esi
lea ecx, [eax + eax]
mov eax, dword [0x62e03c]
or ecx, eax
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x60]
fild qword [esp + 4]
test ecx, ecx