joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d3340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x647d6c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4d3520
sub esp, 0x40
mov eax, 0
mov dword [esp + 0x3c], eax
mov byte [esp + 0x13], 0
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x44]
movzx ecx, byte [eax + 0x50]
mov byte [esp + 0x12], cl
test cl, cl
je 0x4d342d
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
lea eax, [0x53a7bb]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x51e740]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
lea eax, [0x569ab8]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 4], ecx
mov dword [esp + 8], 2
mov dword [esp + 0xc], 2
call sym.go_parser._parser_.printTrace
mov eax, dword [esp + 0x44]
inc dword [eax + 0x54]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
lea ecx, [sym.go_parser._parser_.parseReturnStmt.func1]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x13], 1
mov ecx, dword [eax + 0x78]
mov dword [esp + 0x1c], ecx
mov dword [esp], eax
mov dword [esp + 4], 0x50
call sym.go_parser._parser_.expect
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x7c]
cmp ecx, 0x39
je 0x4d3498
cmp ecx, 0x38
jne 0x4d345d
xor edx, edx
xor ecx, ecx
xor ebx, ebx
jmp 0x4d349e
movzx ecx, byte [eax + 0x94]
mov byte [esp + 0x11], cl
mov byte [eax + 0x94], 1
mov dword [esp], eax
call sym.go_parser._parser_.parseExprList
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
movzx ebx, byte [esp + 0x11]
mov ebp, dword [esp + 0x44]
mov byte [ebp + 0x94], bl
mov ebx, eax
mov eax, ebp
jmp 0x4d349e
xor edx, edx
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ebx
mov dword [esp], eax
call sym.go_parser._parser_.expectSemi
lea eax, [0x524cc0]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x647e70]
test ecx, ecx
jne 0x4d34e8
mov ecx, dword [esp + 0x20]
jmp 0x4d34f3
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [eax + 4], ecx
mov dword [esp + 0x48], eax
movzx eax, byte [esp + 0x12]
test al, 1
je 0x4d3513
and eax, 0xfffffffe
mov byte [esp + 0x13], al
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
call eax
add esp, 0x40
ret
call sym.runtime.morestack_noctxt
jmp sym.go_parser._parser_.parseReturnStmt
Function at 0x4f3170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x647d6c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4f3335
sub esp, 0x30
mov eax, dword [esp + 0x34]
movzx ecx, byte [eax + 0x28]
test cl, cl
je 0x4f31c5
movzx ecx, byte [esp + 0x38]
cmp cl, 0xa
ja 0x4f31a9
cmp cl, 9
je 0x4f31ae
cmp cl, 0xa
je 0x4f31ba
jmp 0x4f31ca
cmp cl, 0xb
jne 0x4f31b5
mov ecx, 0x20
jmp 0x4f31ca
cmp cl, 0xc
jne 0x4f31ca
mov byte [eax + 0x28], 0
mov ecx, 0xc
jmp 0x4f31ca
movzx ecx, byte [esp + 0x38]
mov byte [esp + 0x23], cl
cmp dword [eax + 0x7c], 1
jne 0x4f31e5
mov edx, dword [eax + 8]
add edx, dword [eax + 0x1c]
mov dword [esp + 0x24], edx
xor ebx, ebx
jmp 0x4f32aa
mov edx, dword [esp + 0x3c]
xor ebx, ebx
jmp 0x4f31f5
mov dword [eax + 0x14], esi
mov byte [esi + edi - 1], cl
inc ebx
cmp edx, ebx
jle 0x4f3272
mov ebp, dword [eax + 0x18]
mov esi, dword [eax + 0x14]
inc esi
mov edi, dword [eax + 0x10]
cmp ebp, esi
jae 0x4f31ed
mov dword [esp + 0x2c], ebx
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x51ea80]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x34]
mov dword [ebx + 0x18], eax
mov eax, dword [0x647e70]
test eax, eax
je 0x4f3257
call sym.runtime.gcWriteBarrier2
mov dword [edi], ecx
mov eax, dword [ebx + 0x10]
mov dword [edi + 4], eax
mov dword [ebx + 0x10], ecx
mov eax, ebx
mov ebx, dword [esp + 0x2c]
mov esi, edx
mov edi, ecx
movzx ecx, byte [esp + 0x23]
mov edx, dword [esp + 0x3c]
jmp 0x4f31ed
add dword [eax + 0x60], edx
cmp cl, 0xa
je 0x4f327f
cmp cl, 0xc
jne 0x4f3297
add dword [eax + 0x64], edx
add dword [eax + 0x78], edx
mov dword [eax + 0x68], 1
mov dword [eax + 0x7c], 1
add esp, 0x30
ret
add dword [eax + 0x68], edx
add dword [eax + 0x7c], edx
add esp, 0x30
ret
mov dword [eax + 0x14], esi
mov byte [esi + edi - 1], 9
inc ebx
cmp ebx, edx
jge 0x4f3327
mov ebp, dword [eax + 0x18]
mov esi, dword [eax + 0x14]
inc esi
mov edi, dword [eax + 0x10]
cmp ebp, esi
jae 0x4f32a1
mov dword [esp + 0x28], ebx
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x51ea80]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x34]
mov dword [ebx + 0x18], eax
mov eax, dword [0x647e70]
test eax, eax
je 0x4f330c
call sym.runtime.gcWriteBarrier2
mov dword [edi], ecx
mov eax, dword [ebx + 0x10]
mov dword [edi + 4], eax
mov dword [ebx + 0x10], ecx
mov eax, ebx
mov ebx, dword [esp + 0x28]
mov esi, edx
mov edi, ecx
movzx ecx, byte [esp + 0x23]
mov edx, dword [esp + 0x24]
jmp 0x4f32a1
add dword [eax + 0x60], edx
add dword [eax + 0x68], edx
add dword [eax + 0x7c], edx
jmp 0x4f31e5
call sym.runtime.morestack_noctxt
jmp sym.go_printer._printer_.writeByte
Function at 0x4fae50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [0x647d6c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4faf41
sub esp, 0x1c
mov ecx, dword [esp + 0x20]
test byte [ecx], al
mov edx, dword [esp + 0x24]
and edx, 0x7f
shl edx, 5
add ecx, edx
mov dword [esp + 0x18], ecx
xor eax, eax
jmp 0x4fae8c
mov ebx, dword [esp + 0xc]
inc ebx
mov ecx, dword [esp + 0x18]
mov eax, ebx
cmp eax, 4
jge 0x4faec5
mov dword [esp + 0xc], eax
lea edx, [ecx + eax*8]
mov dword [esp], edx
call sym.sync_atomic.LoadUint64
mov eax, dword [esp + 0x24]
cmp dword [esp + 4], eax
sete cl
mov edx, dword [esp + 0x28]
cmp dword [esp + 8], edx
sete bl
and ebx, ecx
test bl, bl
je 0x4fae81
mov byte [esp + 0x2c], 1
add esp, 0x1c
ret
xor eax, eax
mov edx, 0x84222325
jmp 0x4faecf
inc eax
cmp eax, 4
jge 0x4faee4
mov dword [esp + 0x14], eax
lea ebx, [ecx + eax*8]
mov ebp, dword [ebx]
mov ebx, dword [ebx + 4]
xor esi, esi
jmp 0x4faf3a
and edx, 3
lea eax, [ecx + edx*8]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call sym.sync_atomic.StoreUint64
mov byte [esp + 0x2c], 0
add esp, 0x1c
ret
mov edi, ebp
and edi, 0xff
xor edx, edi
shr ebp, 8
mov edi, ebx
shl edi, 0x18
mov dword [esp + 0x10], edi
mov eax, edx
mov edi, 0x1b3
mul edi
inc esi
mov edi, dword [esp + 0x10]
or ebp, edi
shr ebx, 8
mov edx, eax
mov eax, dword [esp + 0x14]
cmp esi, 8
jl 0x4faf0b
jmp 0x4faece
call sym.runtime.morestack_noctxt
jmp sym.internal_bisect._dedup_.seenLossy
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40c040
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40c0f5
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov ebp, dword [sym.imp.USER32.dll_ReleaseDC]
nop dword [eax]
push 0
push 0
call ebp
add byte [edi + ebx], 0x5f
push 0
push 0
call ebp
add byte [edi + ebx], 0xc0
push 0
push 0
call ebp
add byte [edi + ebx], 0x1c
push 0
push 0
call ebp
xor byte [edi + ebx], 0x70
push 0
push 0
call ebp
add byte [edi + ebx], 0x4d
push 0
push 0
call ebp
add byte [edi + ebx], 0xad
push 0
push 0
call ebp
add byte [edi + ebx], 0x6b
push 0
push 0
call ebp
xor byte [edi + ebx], 0x21
push 0
push 0
call ebp
add byte [edi + ebx], 0x6a
push 0
push 0
call ebp
add byte [edi + ebx], 0xbc
push 0
push 0
call ebp
xor byte [edi + ebx], 0xb0
push 0
push 0
call ebp
add byte [edi + ebx], 0xa6
push 0
push 0
call ebp
xor byte [edi + ebx], 0x4e
push 0
push 0
call ebp
add byte [edi + ebx], 0x28
inc ebx
cmp esi, ebx
jne 0x40c060
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402cc5
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40c100
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x3c]
mov edi, dword [eax + 0x10]
cmp dword [eax + 0x14], 0x10
mov ebx, eax
jb 0x40c118
mov ebx, dword [eax]
mov esi, dword [esp + 0x40]
xor esi, edi
cmp edi, 4
jae 0x40c127
mov ecx, edi
jmp 0x40c195
mov dword [esp + 0x24], edi
shr edi, 2
xor ebp, ebp
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp], xmm0
mov dword [esp + 0x20], 0
call dword [sym.imp.GDI32.dll_ArcTo]
sub esp, 0x24
mov dword [esp + 4], str.Z81xbyuAua
mov dword [esp], 0x4d4860
call fcn.00402d5b
mov dword [esp], eax
call fcn.004060eb
imul eax, dword [ebx + ebp*4], 0x5bd1e991
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul eax, ecx, 0x5bd1e991
imul esi, esi, 0x5bd1e991
xor esi, eax
inc ebp
cmp edi, ebp
jne 0x40c130
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x10]
mov edi, dword [esp + 0x24]
and edi, 0xfffffffc
and ecx, 3
xor eax, eax
cmp ecx, 1
je 0x40c1be
cmp ecx, 2
je 0x40c1b4
cmp ecx, 3
jne 0x40c1cc
movsx eax, byte [ebx + edi + 2]
shl eax, 0x10
movsx ecx, byte [ebx + edi + 1]
shl ecx, 8
xor eax, ecx
movsx ecx, byte [ebx + edi]
xor ecx, eax
imul eax, ecx, 0x5bd1e991
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e991
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4035bc
Capabilities:
Terminate process

Disassembly:
jmp 0x453cc3
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x453cd4
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004058c1
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 0x402e8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [0x4200c8]
test eax, eax
jne 0x402ec4
push 0x417988
push 0x6f
push eax
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x402ebd
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x402ebd
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x402ebf
xor eax, eax
mov dword [0x4200c8], eax
test eax, eax
push esi
mov esi, eax
je 0x402f0c
push ebx
mov bl, byte [eax]
jmp 0x402eef
push 2
lea eax, [esi + 1]
push eax
push dword [esp + 0x14]
call sub.msvcrt.dll__memicmp
add esp, 0xc
test eax, eax
movzx eax, bl
je 0x402ef6
lea esi, [esi + eax + 3]
mov bl, byte [esi]
sub bl, 0x41
jne 0x402ed0
jmp 0x402f0b
push eax
add esi, 3
push esi
push edi
call sub.msvcrt.dll_memcpy
movzx eax, bl
add esp, 0xc
mov byte [eax + edi], 0
pop ebx
cmp byte [edi], 0
pop esi
jne 0x402f1e
push dword [esp + 4]
push edi
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
xor eax, eax
inc eax
ret 4

Function at 0x402f24
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4200cc]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
mov dword [ebp - 4], ebx
jne 0x402f66
push 0x417988
push 0x70
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
cmp eax, ebx
je 0x402f5f
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, ebx
je 0x402f5f
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x402f61
xor eax, eax
mov dword [0x4200cc], eax
cmp eax, ebx
mov esi, eax
je 0x402fb1
mov bl, byte [eax]
jmp 0x402f8e
push 2
lea eax, [esi + 1]
push eax
push dword [ebp + 8]
call sub.msvcrt.dll__memicmp
add esp, 0xc
test eax, eax
movzx eax, bl
je 0x402f95
lea esi, [esi + eax + 3]
mov bl, byte [esi]
sub bl, 0x41
jne 0x402f70
jmp 0x402fb1
push eax
add esi, 3
push esi
push edi
call sub.msvcrt.dll_memcpy
movzx eax, bl
add esp, 0xc
mov byte [eax + edi], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4

Function at 0x4030e6
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.00404a7a
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 8], eax
je 0x403151
push ebx
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
lea edi, [ebx + 0xa]
mov eax, esi
call fcn.00405f1b
push ebx
push dword [esi]
push dword [ebp + 8]
call fcn.0040535b
mov eax, dword [esi]
mov byte [ebx + eax], 0
mov eax, dword [esi]
add esp, 0xc
push dword [ebp + 8]
mov byte [eax + ebx + 1], 0
mov eax, dword [esi]
mov byte [eax + ebx + 2], 0
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [esi + 0xc], 0
lea ecx, [esi + 0x10]
mov eax, esi
call fcn.0040319f
xor eax, eax
pop edi
inc eax
pop ebx
jmp 0x403153
xor eax, eax
pop ebp
ret 4
Function at 0x4032cd
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, 0x1000
mov eax, 0x8000
lea edx, [esp + 0x38]
mov dword [edi + 0x88], 0x1388
mov dword [edi + 0x38], ecx
mov dword [edi + 0x34], eax
mov dword [edi + 0x78], ecx
mov dword [edi + 0x74], eax
call fcn.004030a7
push dword [ebp + 0xc]
mov esi, edx
call fcn.004030e6
test eax, eax
je 0x40348c
push 0x417994
mov eax, esi
call fcn.00403213
mov dword [esp + 0x10], eax
push str.country_name
mov eax, esi
call fcn.00403213
mov dword [esp + 0x14], eax
push str.city_name
mov eax, esi
call fcn.00403213
mov dword [esp + 0x18], eax
push str.country_iso_code
mov eax, esi
call fcn.00403213
mov dword [esp + 0x20], eax
push str.subdivision_1_name
mov eax, esi
call fcn.00403213
mov dword [esp + 0x1c], eax
xor ecx, ecx
mov eax, esi
call fcn.0040319f
test eax, eax
je 0x40348c
lea ebx, [edi + 0x80]
mov ecx, dword [esp + 0x10]
or dword [esp + 0x28], 0xffffffff
or dword [esp + 0x2c], 0xffffffff
or dword [esp + 0x30], 0xffffffff
lea eax, [esp + 0x68]
mov byte [esp + 0x34], 0
mov byte [esp + 0x35], 0
call fcn.00405a3b
push eax
call sub.msvcrt.dll__wtoi
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x68]
call fcn.00405a3b
xor esi, esi
cmp word [eax], si
je 0x4033cf
push eax
mov eax, edi
call fcn.004059c5
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x68]
call fcn.00405a3b
cmp word [eax], si
je 0x4033f1
push eax
add edi, 0x20
call fcn.004058f1
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x68]
call fcn.00405a3b
cmp word [eax], si
je 0x403413
push eax
add edi, 0x60
call fcn.004058f1
mov edi, dword [ebp + 8]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x68]
call fcn.00405a3b
cmp word [eax], si
je 0x403432
mov cl, byte [eax]
mov al, byte [eax + 2]
mov byte [esp + 0x34], cl
mov byte [esp + 0x35], al
mov esi, dword [ebx + 0xc]
test esi, esi
jl 0x403479
cmp esi, 0xffffffff
mov eax, dword [ebx + 8]
jne 0x40344a
push dword [ebx]
call sub.msvcrt.dll_free
jmp 0x40345a
push eax
push 0x14
lea eax, [ebx + 4]
mov edx, esi
mov edi, ebx
call fcn.00404d07
pop ecx
lea eax, [esi + 1]
cmp dword [ebx + 0xc], eax
pop ecx
jge 0x403466
mov dword [ebx + 0xc], eax
mov edi, esi
imul edi, edi, 0x14
add edi, dword [ebx]
push 5
pop ecx
lea esi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
xor ecx, ecx
lea eax, [esp + 0x38]
call fcn.0040319f
test eax, eax
jne 0x40337e
lea edi, [esp + 0x38]
call fcn.004030cc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x404aac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcslen
pop ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
leave
ret
Function at 0x404c33
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.00404a7a
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x404cc5
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x404cae
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x404cae
shr esi, 1
and word [edi + esi*2], 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x404cb7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x404cce
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x404ee4
Capabilities:
Get common file path

Disassembly:
cmp word [0x4200d0], 0
push esi
mov esi, 0x4200d0
jne 0x404f05
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov dword [0x4202dc], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x4202dc]
pop ecx
pop ecx
pop esi
ret

Function at 0x4051e9
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x41752c
push eax
push eax
push dword [esp + 0x14]
push 0x417d5c
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x40537a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x418468
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
leave
ret

Function at 0x4057ff
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
and word [ebp - 0x800], 0
push esi
push 0x7fe
lea eax, [ebp - 0x7fe]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp word [0x4202e0], 0
mov esi, 0x4202e0
jne 0x405847
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov dword [0x4204ec], eax
lea eax, [ebp - 0x800]
push esi
push eax
call sub.msvcrt.dll_wcscpy
lea esi, [ebp - 0x800]
call fcn.00404ad0
push dword [ebp + 8]
mov eax, esi
push eax
call sub.msvcrt.dll_wcscat
mov eax, esi
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
add esp, 0x10
push eax
call esi
test eax, eax
jne 0x405881
push dword [ebp + 8]
call esi
pop esi
leave
ret
Function at 0x405d71
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x405d9d
lea eax, [esi + 0x28c]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov dword [esp + 4], ecx
jmp 0x405db8
lea ecx, [esi + 0x28c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
mov dword [esp + 4], eax
jne 0x405dbf
call fcn.00405e0a
cmp dword [esp + 4], 0
je 0x405e03
push ebx
push ebp
push edi
lea edi, [esi + 0x4dc]
lea ebx, [esi + 0x2b8]
add esi, 0x764
push esi
call sub.msvcrt.dll_wcslen
push ebx
mov ebp, eax
call sub.msvcrt.dll_wcslen
lea eax, [eax + ebp + 1]
cmp eax, 0x143
pop ecx
pop ecx
jae 0x405dfc
push ebx
push esi
mov eax, edi
call fcn.00404ec0
pop ecx
pop ecx
jmp 0x405e00
and word [edi], 0
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 4]
pop esi
pop ecx
ret

Function at 0x4062db
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.00404a7a
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 8], eax
je 0x40633c
push ebx
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
lea edi, [ebx + 0xa]
mov eax, esi
call fcn.00405f1b
push ebx
push dword [esi]
push dword [ebp + 8]
call fcn.0040535b
mov eax, dword [esi]
mov byte [ebx + eax], 0
mov eax, dword [esi]
add esp, 0xc
push dword [ebp + 8]
mov byte [eax + ebx + 1], 0
mov eax, dword [esi]
mov byte [eax + ebx + 2], 0
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [esi + 0xc], 0
xor eax, eax
pop edi
inc eax
pop ebx
jmp 0x40633e
xor eax, eax
pop ebp
ret 4

Function at 0x40743f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 8]
mov esi, eax
xor ebx, ebx
call fcn.00404a7a
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 8], eax
je 0x4074ae
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, ebx
jbe 0x4074a4
call fcn.004070ed
lea eax, [edi + 1]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push edi
push eax
push dword [ebp + 8]
mov dword [esi], eax
call fcn.0040535b
mov eax, dword [esi]
mov byte [edi + eax], bl
add esp, 0x10
mov dword [esi + 0xc], ebx
call fcn.00407116
mov eax, dword [esi]
cmp eax, ebx
je 0x4074a1
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi], ebx
xor ebx, ebx
inc ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4

Function at 0x407b9a
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x41f788
push dword [esp + 0xc]
push esi
push 0x41752c
push dword [esp + 0x14]
push 0x41f998
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov eax, esi
ret