joyce8/EMBER2024-capa huggingface dataset:
Function at 0x155a0
Capabilities:
Get system information on windows

Disassembly:
push 0x20
push 0x13200
call fcn.00011e1c
mov byte [ebp - 0x19], 1
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x155d7
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x156e7
mov esi, 0x50764476
push esi
push dword [ebp - 0x20]
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
call edi
mov ebx, eax
test ebx, ebx
je 0x15606
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push ebx
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jge 0x15606
mov byte [ebp - 0x19], 0
cmp byte [ebp - 0x19], 0
jne 0x1561b
test ebx, ebx
je 0x155c9
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x155c9
push esi
mov esi, 0x208
push esi
push 0
call edi
mov edi, dword [ebp + 8]
mov dword [edi], eax
test eax, eax
jne 0x1563d
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, dword [ebp + 0x10]
and dword [eax], 0
jmp 0x155c9
movzx eax, word [ebx + 0x1e]
lea eax, [eax + ebx + 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
push esi
push 0
push dword [edi]
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov edi, dword [edi]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x15671
push 0xb
pop ecx
mov eax, 0x171f4
mov esi, eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1568b
sub eax, ecx
sar eax, 1
movzx ecx, word [ebp - 0x28]
push ecx
push dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
lea eax, [ecx + eax*2]
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
jmp 0x156de
mov dword [ebp - 4], 0xfffffffe
mov al, 1
call fcn.00011e61
ret 0xc
Function at 0x158ba
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push 0x50764476
mov esi, 0x208
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
cmp edi, ebx
je 0x159e0
push esi
push ebx
push edi
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0x17240
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x240
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenSymbolicLinkObject]
test eax, eax
jl 0x15964
xor eax, eax
mov word [ebp - 0x10], ax
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov word [ebp - 0xe], si
call dword [sym.imp.ntoskrnl.exe_ZwQuerySymbolicLinkObject]
test eax, eax
jl 0x15964
movzx eax, word [ebp - 0x10]
shr eax, 1
lea esi, [eax - 1]
jmp 0x15960
cmp word [edi + esi*2], 0x5c
je 0x159ab
dec esi
cmp esi, ebx
jg 0x15958
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push 0x7ffe0030
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x159e0
cmp word [0x7ffe0032], 0x3a
jne 0x159e0
cmp word [0x7ffe0034], 0x5c
jne 0x159e0
mov eax, 0x7ffe0034
movzx ecx, word [eax]
mov edx, dword [ebp + 8]
mov word [edx + eax - 0x7ffe0034], cx
inc eax
inc eax
cmp cx, bx
jne 0x15994
jmp 0x159dc
mov ecx, dword [ebp + 8]
sub eax, esi
add eax, eax
mov dword [ebp - 8], eax
add eax, ecx
push eax
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x15964
push dword [ebp - 8]
lea eax, [edi + esi*2]
push eax
push dword [ebp + 8]
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, 1
jmp 0x159e2
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x15ca6
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
sub esp, 0x18
cmp word [eax], cx
je 0x15cc2
xor al, al
jmp 0x15dba
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
je 0x15cd7
xor al, al
jmp 0x15db9
mov eax, dword [esi + 0x3c]
movzx ecx, word [esi + 6]
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x38]
push eax
push dword [esi + 0x50]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x54]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
call fcn.00015c86
push 0x50764476
mov ebx, eax
push ebx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x15d18
xor al, al
jmp 0x15db8
push edi
push ebx
push 0
push eax
call sub.ntoskrnl.exe_memset
movzx eax, word [esi + 0x14]
lea edi, [eax + esi + 0x18]
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jbe 0x15d5c
lea esi, [edi + 8]
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
push dword [esi + 8]
call fcn.00015c86
push dword [ebp - 0x10]
mov dword [esi + 8], eax
push dword [esi]
call fcn.00015c86
mov dword [esi], eax
add esi, 0x28
dec dword [ebp - 8]
jne 0x15d3a
mov eax, dword [ebp - 4]
imul eax, eax, 0x28
add eax, edi
mov ecx, dword [eax - 0x1c]
mov edx, dword [eax - 0x18]
add edx, ecx
cmp edx, ebx
jbe 0x15d75
sub ebx, ecx
mov dword [eax - 0x18], ebx
push dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push dword [ebp + 8]
push ebx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
cmp dword [ebp - 4], 0
jbe 0x15db0
lea esi, [edi + 0x14]
mov edi, dword [ebp - 4]
mov eax, dword [esi]
add eax, dword [ebp + 8]
push dword [esi - 4]
push eax
mov eax, dword [esi - 8]
add eax, ebx
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
add esi, 0x28
dec edi
jne 0x15d93
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov al, 1
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x166c8
Capabilities:
Parse pe header

Disassembly:
push 0x114
push 0x13220
call fcn.00011e1c
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x14290]
cmp eax, ecx
je 0x16821
cmp dword [0x14284], ecx
je 0x16821
cmp dword [0x1428c], ecx
je 0x16821
cmp dword [0x14288], ecx
je 0x16821
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push ecx
call eax
lea eax, [ebp - 0x2c]
push eax
call dword [0x1428c]
sub eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
add eax, ebx
mov esi, eax
push esi
call dword [0x14288]
test al, al
je 0x16743
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x16860
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x16857
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x16857
lea esi, [eax + 0x18]
push 0x38
pop ecx
lea edi, [ebp - 0x124]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0xc4]
lea esi, [eax + ebx]
mov edi, dword [esi + 0x1c]
add edi, ebx
mov ebx, dword [esi + 0x20]
add ebx, dword [ebp + 0x10]
mov ecx, dword [esi + 0x24]
add ecx, dword [ebp + 0x10]
mov dword [ebp - 0x34], ecx
mov eax, dword [esi + 0x10]
mov dword [ebp + 0xc], eax
xor edx, edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [esi + 0x14]
jae 0x16857
mov eax, dword [ebx + edx*4]
add eax, dword [ebp + 0x10]
movzx ecx, word [ecx + edx*2]
mov edx, dword [ebp + 0xc]
lea ecx, [ecx + edx - 1]
mov ecx, dword [edi + ecx*4]
add ecx, dword [ebp + 0x10]
mov dword [ebp - 0x30], ecx
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
push dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
call dword [0x14290]
push 1
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [0x14284]
test eax, eax
lea eax, [ebp - 0x24]
push eax
jne 0x1680d
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x30]
jmp 0x16860
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x1c]
jmp 0x16798
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
sub eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov esi, eax
push esi
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x16857
jmp 0x16735
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.00011e61
ret 0xc
Function at 0x1686e
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [esi], ax
je 0x1688b
xor al, al
jmp 0x16922
mov eax, dword [esi + 0x3c]
cmp dword [esi + eax], 0x4550
jne 0x16884
push 0
push 0x17290
push 1
push esi
call fcn.00015dc4
test eax, eax
je 0x16884
sub eax, esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 5
push 1
push esi
call dword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
test eax, eax
je 0x16884
push ebx
push edi
jmp 0x16917
and dword [ebp - 4], 0
lea edx, [esi - 8]
shr edx, 1
test edx, edx
jle 0x16915
mov ecx, dword [ebp - 4]
movzx ecx, word [eax + ecx*2 + 8]
mov edi, ecx
and edi, 0xf000
mov ebx, 0x3000
cmp di, bx
jne 0x1690d
and ecx, 0xfff
add ecx, dword [eax]
add ecx, dword [ebp + 8]
mov edi, dword [ecx]
sub edi, dword [ebp + 0xc]
cmp edi, dword [ebp - 8]
jne 0x1690d
mov edi, 0x5c7
cmp word [ecx - 2], di
je 0x16927
inc dword [ebp - 4]
cmp dword [ebp - 4], edx
jl 0x168d3
add eax, esi
mov esi, dword [eax + 4]
test esi, esi
jne 0x168c6
xor al, al
pop edi
pop ebx
pop esi
leave
ret 0xc
mov eax, dword [ecx + 4]
sub eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
add eax, dword [ebp + 8]
mov dword [ecx], eax
mov al, 1
jmp 0x16920
Function at 0x4252f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18000]
push edi
or ebp, 0xffffffff
jmp 0x425312
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x425319
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x425308
mov eax, 1
add ebx, ebx
jne 0x42532b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x425320
jne 0x42533c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x425320
xor ecx, ecx
sub eax, 3
jb 0x425350
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4253c2
mov ebp, eax
add ebx, ebx
jne 0x42535b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x425368
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42538c
inc ecx
add ebx, ebx
jne 0x425378
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42536d
jne 0x425389
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42536d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4253ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42539d
jmp 0x42530e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4253ac
add edi, ecx
jmp 0x42530e
pop esi
mov edi, esi
mov ecx, 0x86d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4253ca
cmp byte [edi], 0xe
jne 0x4253ca
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 0x4253cf
lea edi, [esi + 0x23000]
mov eax, dword [edi]
or eax, eax
je 0x425447
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x29224]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x292d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4253fc
mov ecx, edi
jns 0x42542b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x292dc]
or eax, eax
je 0x425441
mov dword [ebx], eax
add ebx, 4
jmp 0x425419
call dword [esi + 0x292e0]
popal
jmp section.UPX0

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x43e710
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2a000]
push edi
jmp 0x43e72a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43e731
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43e720
mov eax, 1
add ebx, ebx
jne 0x43e743
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43e738
jne 0x43e754
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43e738
xor ecx, ecx
sub eax, 3
jb 0x43e768
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43e7da
mov ebp, eax
add ebx, ebx
jne 0x43e773
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43e780
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43e7a4
inc ecx
add ebx, ebx
jne 0x43e790
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43e785
jne 0x43e7a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43e785
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43e7c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43e7b5
jmp 0x43e726
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43e7c4
add edi, ecx
jmp 0x43e726
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43e7e2
cmp byte [edi], 9
jne 0x43e7e2
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 0x43e7e7
lea edi, [esi + 0x3c000]
mov eax, dword [edi]
or eax, eax
je 0x43e85f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4be98]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4bf60]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43e814
mov ecx, edi
jns 0x43e843
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4bf64]
or eax, eax
je 0x43e859
mov dword [ebx], eax
add ebx, 4
jmp 0x43e831
call dword [esi + 0x4bf74]
mov ebp, dword [esi + 0x4bf68]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x43e893
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x10001000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esp + 0x10]
mov byte [esi], 0xe8
sub ecx, esi
sub ecx, 5
cmp ebx, 5
mov dword [esi + 1], ecx
jbe 0x10001048
lea ecx, [ebx - 5]
push edi
mov edx, ecx
lea edi, [esi + 5]
mov eax, 0x90909090
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
pop ebx
ret
Function at 0x10001050
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push esi
cmp eax, 1
push edi
jne 0x1000127d
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x100031b4
call esi
push 0x100031a8
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10003194
push eax
call edi
push 0x10003184
mov ebx, eax
call esi
push 0x10003178
mov dword [0x10003220], eax
call esi
push 0x10003164
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push 0x15
push eax
call esi
lea edx, [esp + 0x18]
push edx
push 0x40
push 0x15
push ebx
call esi
mov eax, dword [0x10003220]
push 0x10003154
push eax
call edi
mov edx, dword [0x10003220]
lea ecx, [eax + 5]
mov dword [0x1000321c], eax
mov dword [0x10003218], ecx
mov cl, byte [eax]
lea ebx, [edx + 0x240000]
cmp cl, 0xe9
je 0x1000127d
lea ecx, [esp + 0xc]
push ebp
push ecx
push 0x40
push 5
push eax
call esi
lea edx, [esp + 0x10]
push edx
push 0x40
push 0x260
push ebx
call esi
mov eax, dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, 0x45
mov esi, 0x10003044
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push 6
lea ecx, [ebx + 6]
push eax
push ecx
call fcn.10001000
mov edx, dword [sym.imp.USER32.dll_FindWindowA]
push 6
lea eax, [ebx + 0x1b]
push edx
push eax
call fcn.10001000
mov ecx, dword [sym.imp.USER32.dll_ScreenToClient]
push 6
lea edx, [ebx + 0x22]
push ecx
push edx
call fcn.10001000
mov edx, dword [0x10003038]
lea eax, [ebx + 0x120]
mov ecx, eax
lea esi, [ebx + 0x200]
lea edi, [ebx + 0x220]
lea ebp, [ebx + 0x240]
mov dword [ecx], edx
mov edx, dword [0x1000303c]
mov dword [ecx + 4], edx
mov dx, word [0x10003040]
mov word [ecx + 8], dx
mov edx, dword [0x1000302c]
mov ecx, esi
mov dword [ecx], edx
mov edx, dword [0x10003030]
mov dword [ecx + 4], edx
mov dx, word [0x10003034]
mov word [ecx + 8], dx
mov dl, byte [0x10003036]
mov byte [ecx + 0xa], dl
mov edx, dword [0x10003020]
mov ecx, edi
mov dword [ecx], edx
mov edx, dword [0x10003024]
mov dword [ecx + 4], edx
mov dx, word [0x10003028]
mov word [ecx + 8], dx
mov dl, byte [0x1000302a]
mov byte [ecx + 0xa], dl
mov edx, dword [0x10003014]
mov ecx, ebp
mov dword [ecx], edx
mov edx, dword [0x10003018]
mov dword [ecx + 4], edx
mov dx, word [0x1000301c]
mov word [ecx + 8], dx
mov dl, byte [0x1000301e]
mov byte [ecx + 0xa], dl
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebx + 0x140]
mov dword [ebx + 0xd8], ecx
mov dword [ecx], edx
mov edx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
lea ecx, [ebx + 0x135]
mov dword [ebx + 0x2a], ecx
mov dword [ecx], edx
mov dword [ebx + 0x12], eax
mov dword [ebx + 0x17], eax
push 5
lea eax, [ebx + 0x154]
push ebx
push eax
mov dword [ebx + 0xdd], esi
mov dword [ebx + 0xed], edi
mov dword [ebx + 0xf9], ebp
mov dword [ebx + 0x150], 0x90909090
call fcn.10001000
mov ebx, dword [ebx + 0x230]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add esp, 0x30
mov esi, 0x4b0
pop ebp
push 0x40
push 0x1000
push 0x2400
push 0
call edi
mov dword [ebx], eax
add ebx, 4
dec esi
jne 0x10001265
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x401b93
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x41604c]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor esi, esi
mov dword [ebp - 0x80], esi
cmp ebx, esi
je 0x401c84
cmp edi, esi
je 0x401c84
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x401bc9
sub eax, edx
sar eax, 1
je 0x401c84
xor eax, eax
push 0x206
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push esi
push eax
call fcn.00407ca0
add esp, 0xc
cmp dword [ebp + 0x19c], esi
jne 0x401c2a
cmp dword [0x417070], 3
jne 0x401c2a
mov esi, 0x104
push esi
lea eax, [ebp - 0x78]
push eax
call dword [0x412020]
push 0x413fd0
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00404177
add esp, 0xc
jmp 0x401c3a
lea eax, [ebp - 0x78]
push eax
mov esi, 0x104
push esi
call dword [0x41208c]
push edi
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00404177
and dword [ebp - 0x7c], 0
push 0x413fd4
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004044c9
add esp, 0x18
cmp dword [ebp - 0x7c], 0
je 0x401c84
push dword [ebp - 0x7c]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.004047bc
push dword [ebp - 0x7c]
call fcn.00404850
add esp, 0x14
mov dword [ebp - 0x80], esi
mov ecx, dword [ebp + 0x190]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
pop esi
call fcn.00404168
add ebp, 0x194
leave
ret

Function at 0x401d2f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x41604c]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
xor esi, esi
call fcn.00407ca0
and dword [ebp - 0x80], esi
add esp, 0xc
test edi, edi
je 0x401dc3
lea eax, [ebp - 0x7c]
push eax
mov esi, 0x104
push esi
call dword [0x41208c]
push str.golfinfo.ini
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00404177
push 0x413ff4
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004044c9
xor esi, esi
add esp, 0x18
inc esi
cmp dword [ebp - 0x80], 0
je 0x401dc3
push dword [ebp - 0x80]
push esi
push 0x200
push edi
call fcn.00404a2e
push dword [ebp - 0x80]
call fcn.00404850
add esp, 0x14
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00404168
add ebp, 0x190
leave
ret
Function at 0x402c9b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x413fd4
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004044c9
add esp, 0xc
test eax, eax
je 0x402cc8
xor eax, eax
jmp 0x402d53
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.0040501e
push dword [ebp - 4]
call fcn.00405240
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.0040501e
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.00404e3c
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.004047bc
push dword [ebp - 4]
call fcn.00404850
push ebx
lea ebx, [edi + esi]
call fcn.00402d57
push 0x413ff4
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.004044c9
add esp, 0x44
pop esi
test eax, eax
jne 0x402cc1
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00404a2e
push dword [ebp - 4]
call fcn.00404850
add esp, 0x14
test edi, edi
je 0x402d50
push edi
call fcn.00404f06
pop ecx
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x40407b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.0040e7b0
mov eax, dword [0x41604c]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
mov eax, dword [ebp + 0xf98]
push ebx
push esi
mov esi, dword [0x4121d0]
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
push 4
lea eax, [ebp - 0x78]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x4040c1
xor eax, eax
jmp 0x404109
cmp dword [ebp - 0x78], ebx
jbe 0x4040f8
push 0
push 0x1000
lea eax, [ebp - 0x74]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x80], eax
test eax, eax
je 0x4040f8
mov ecx, dword [ebp - 0x7c]
push dword [ecx]
push eax
lea eax, [ebp - 0x74]
push 1
push eax
call fcn.00404a2e
add ebx, dword [ebp - 0x80]
add esp, 0x10
cmp ebx, dword [ebp - 0x78]
jb 0x4040c6
mov eax, dword [ebp - 0x7c]
push dword [eax]
call fcn.00404850
cmp ebx, dword [ebp - 0x78]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0xf8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00404168
add ebp, 0xf90
leave
ret