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

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4b9314]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4b99f0]
je 0x455e7e
inc eax
cmp eax, 0x13
jb 0x455e6f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4b99f0]
jne 0x455fa1
mov eax, dword [0x4bed04]
cmp eax, 1
je 0x455f7c
cmp eax, edx
jne 0x455eae
cmp dword [0x4b9354], 1
je 0x455f7c
cmp ecx, 0xfc
je 0x455fa1
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x455ee4
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.0044f100
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.0044dbd0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x455f18
mov eax, edi
push eax
call fcn.0044dbd0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4a4034
push edi
call fcn.0044e860
add esp, 0x10
push edi
call fcn.0044dbd0
push dword [esi + 0x4b99f4]
mov ebx, eax
call fcn.0044dbd0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0044cd40
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0044f100
push edi
push ebx
call fcn.0044f110
push 0x4a4030
push ebx
call fcn.0044f110
push dword [esi + 0x4b99f4]
push ebx
call fcn.0044f110
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0045e0b3
add esp, 0x2c
jmp 0x455fa1
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4b99f4]
push dword [esi]
call fcn.0044dbd0
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]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0044c1c4
add ebp, 0x90
leave
ret

Function at 0x457455
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x4a4928
call fcn.0044f9cc
mov eax, dword [0x4b9314]
xor eax, ebp
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x4574fb
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.0044cd40
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x4574e8
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4574fb
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x457516
cmp byte [edi + 1], 0x3a
jne 0x457516
movzx eax, byte [edi]
push eax
call fcn.0044e1c6
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x457526
push edi
call fcn.0044bd0d
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0044c1c4
call fcn.0044fa07
ret
Function at 0x45d7b5
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0044cd40
mov eax, dword [0x4b9314]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00450c6e
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x45d8ea
push 2
push esi
push dword [ebp + 8]
call fcn.00450c6e
add esp, 0xc
cmp eax, ebx
je 0x45d8ea
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x45d88a
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0044dc60
push 0x8000
push dword [ebp + 8]
call fcn.00460d35
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x45d840
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004508e9
add esp, 0xc
cmp eax, 0xffffffff
je 0x45d860
sub edi, eax
test edi, edi
jg 0x45d838
jmp 0x45d878
call fcn.0044fb4f
cmp dword [eax], 5
jne 0x45d875
call fcn.0044fb46
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00460d35
pop ecx
pop ecx
jmp 0x45d8d2
jge 0x45d8d2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00450c6e
push dword [ebp + 8]
call fcn.0045d9f5
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x45d8d2
call fcn.0044fb46
mov dword [eax], 0xd
call fcn.0044fb4f
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00450c6e
add esp, 0xc
mov eax, esi
pop edi
jmp 0x45d8ec
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c1c4
leave
ret
Function at 0x45e0b3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4bf16c], ebx
push esi
push edi
jne 0x45e133
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45e16e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a5894
push edi
call esi
test eax, eax
mov dword [0x4bf16c], eax
je 0x45e16e
push 0x4a5884
push edi
call esi
push 0x4a5870
push edi
mov dword [0x4bf170], eax
call esi
cmp dword [0x4becb4], 2
mov dword [0x4bf174], eax
jne 0x45e133
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4bf17c], eax
je 0x45e133
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4bf178], eax
mov eax, dword [0x4bf178]
test eax, eax
je 0x45e178
call eax
test eax, eax
je 0x45e15f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4bf17c]
test eax, eax
je 0x45e15f
test byte [ebp - 8], 1
jne 0x45e178
cmp dword [0x4becc0], 4
jb 0x45e172
or byte [ebp + 0x12], 0x20
jmp 0x45e197
xor eax, eax
jmp 0x45e1a7
or byte [ebp + 0x12], 4
jmp 0x45e197
mov eax, dword [0x4bf170]
test eax, eax
je 0x45e197
call eax
mov ebx, eax
test ebx, ebx
je 0x45e197
mov eax, dword [0x4bf174]
test eax, eax
je 0x45e197
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4bf16c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x460a04
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x460a32
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x460a37
cmp eax, 1
je 0x460a37
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x460a3b
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4b9314]
push ebx
mov ebx, dword [ebp + 0x98]
xor eax, ebp
test ebx, ebx
push edi
mov edi, dword [ebp + 0x9c]
mov dword [ebp + 0x8c], eax
je 0x460acd
push ebx
call fcn.00460a04
test eax, eax
pop ecx
jne 0x460aa2
call fcn.0044fb4f
mov dword [eax], 0xf
call fcn.0044fb46
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0044c1c4
add ebp, 0x90
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x104
lea eax, [ebp - 0x7c]
add bl, 0x40
push eax
mov byte [ebp - 0x7c], bl
mov byte [ebp - 0x7b], 0x3a
mov byte [ebp - 0x7a], 0x2e
mov byte [ebp - 0x79], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x460adc
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x460a89
inc eax
cmp eax, 0x104
ja 0x460a89
test edi, edi
mov ecx, edi
jne 0x460b19
cmp eax, dword [ebp + 0xa0]
jg 0x460afc
mov eax, dword [ebp + 0xa0]
push eax
call fcn.0044c3fd
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x460b31
call fcn.0044fb46
mov dword [eax], 0xc
jmp 0x460a89
cmp eax, dword [ebp + 0xa0]
jle 0x460b31
call fcn.0044fb46
mov dword [eax], 0x22
jmp 0x460a89
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.0044f100
pop ecx
pop ecx
jmp 0x460a8b
Function at 0x46165b
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4a6810
call fcn.0044f9cc
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4bf1f4], edi
jne 0x46169f
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x46168a
mov dword [0x4bf1f4], ebx
jmp 0x46169f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x46169f
mov dword [0x4bf1f4], 2
mov eax, dword [0x4bf1f4]
cmp eax, ebx
jne 0x4616bf
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x461782
cmp eax, 2
je 0x4616c8
cmp eax, edi
jne 0x4616f0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4616db
mov eax, dword [0x4bf15c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x4616f7
xor eax, eax
jmp 0x461782
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0044cd40
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x46172a
cmp esi, edi
jne 0x461740
push dword [ebp - 0x20]
call fcn.0044c3fd
pop ecx
mov esi, eax
cmp esi, edi
je 0x4616f0
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x461773
cmp dword [ebp + 0x14], edi
jne 0x46175d
push edi
push edi
jmp 0x461763
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x46177f
push esi
call fcn.0044bd0d
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0044fa07
ret
Function at 0x46178b
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4a6820
call fcn.0044f9cc
xor esi, esi
cmp dword [0x4bf1f8], esi
jne 0x4617cf
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4617ba
mov dword [0x4bf1f8], edi
jmp 0x4617cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4617cf
mov dword [0x4bf1f8], 2
mov eax, dword [0x4bf1f8]
cmp eax, 2
je 0x4618b0
cmp eax, esi
je 0x4618b0
cmp eax, 1
jne 0x461814
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4617fd
mov eax, dword [0x4bf15c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x46181b
xor eax, eax
jmp 0x4618c2
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0044cd40
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x461851
cmp edi, esi
jne 0x46186c
lea eax, [ebx + ebx]
push eax
call fcn.0044c3fd
pop ecx
mov edi, eax
cmp edi, esi
je 0x461814
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x46189f
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x461889
push esi
push esi
jmp 0x46188f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4618ab
push edi
call fcn.0044bd0d
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4618c2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0044fa07
ret
Function at 0x461d85
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x461d9e
or eax, 0xffffffff
jmp 0x461dff
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x461dfb
push 0x3d
push esi
call fcn.0045111f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x461dfb
cmp esi, eax
je 0x461dfb
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4becd4]
sete cl
cmp eax, dword [0x4becd8]
mov dword [ebp - 4], ecx
jne 0x461de1
mov edi, eax
call fcn.00461d24
mov dword [0x4becd4], eax
cmp eax, ebx
jne 0x461e3a
cmp dword [ebp + 0xc], ebx
je 0x461e03
cmp dword [0x4becdc], ebx
je 0x461e03
call fcn.004615cb
test eax, eax
je 0x461e3a
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x461e0c
xor eax, eax
jmp 0x461dfe
push 4
call fcn.0044c3fd
cmp eax, ebx
pop ecx
mov dword [0x4becd4], eax
je 0x461dfb
mov dword [eax], ebx
cmp dword [0x4becdc], ebx
jne 0x461e3a
push 4
call fcn.0044c3fd
cmp eax, ebx
pop ecx
mov dword [0x4becdc], eax
je 0x461dfb
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x4becd4]
sub edi, esi
push esi
call fcn.00461cd7
mov edi, eax
test edi, edi
pop ecx
jl 0x461ea1
cmp dword [ebx], 0
je 0x461ea1
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0044bd0d
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x461e81
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x461ee2
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x461e78
mov eax, edi
shl eax, 2
push eax
push dword [0x4becd4]
call fcn.0044d1b0
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x461ee2
jmp 0x461edd
cmp dword [ebp - 4], 0
jne 0x461f49
test edi, edi
jge 0x461eb1
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4becd4]
call fcn.0044d1b0
test eax, eax
pop ecx
pop ecx
je 0x461dfb
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x4becd4], eax
cmp dword [ebp + 0xc], 0
je 0x461f34
push esi
call fcn.0044dbd0
inc eax
inc eax
push eax
call fcn.0044c3fd
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x461f34
push esi
push edi
call fcn.0044f100
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x461f2d
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.0044bd0d
pop ecx
cmp dword [ebp - 4], 0
je 0x461f41
push esi
call fcn.0044bd0d
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x461dfe
push esi
call fcn.0044bd0d
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x461e08
Function at 0x464500
Capabilities:
Encode data using base64

Disassembly:
push ecx
xor edx, edx
xor ecx, ecx
push edi
mov edi, dword [esp + 0xc]
mov byte [esp + 4], dl
mov byte [esp + 7], cl
mov word [esp + 5], cx
mov al, 0x3e
lea esp, [esp]
mov cl, byte [edx + edi]
cmp cl, 0x41
jl 0x464536
cmp cl, 0x5a
jg 0x464536
sub cl, 0x41
mov byte [esp + edx + 4], cl
jmp 0x464582
cmp cl, 0x61
jl 0x464549
cmp cl, 0x7a
jg 0x464549
sub cl, 0x47
mov byte [esp + edx + 4], cl
jmp 0x464582
cmp cl, 0x30
jl 0x46455c
cmp cl, 0x39
jg 0x46455c
add cl, 4
mov byte [esp + edx + 4], cl
jmp 0x464582
cmp cl, 0x2b
jne 0x464567
mov byte [esp + edx + 4], al
jmp 0x464582
cmp cl, 0x2f
jne 0x464573
mov byte [esp + edx + 4], 0x3f
jmp 0x464582
cmp cl, 0x3d
jne 0x464588
cmp edx, 2
je 0x464582
cmp edx, 3
jne 0x464588
inc edx
cmp edx, 4
jb 0x464520
cmp edx, 4
jne 0x4645f5
mov al, byte [esp + 5]
mov cl, byte [esp + 4]
mov dl, al
shl cl, 2
shr dl, 4
or dl, cl
push esi
mov esi, dword [esp + 0x14]
mov byte [esi], dl
mov cl, byte [edi + 2]
cmp cl, 0x3d
je 0x4645ed
cmp byte [edi + 3], 0x3d
je 0x4645d9
mov cl, byte [esp + 0xa]
mov dl, cl
shl al, 4
shr dl, 2
or dl, al
mov al, byte [esp + 0xb]
shl cl, 6
or cl, al
mov byte [esi + 1], dl
mov byte [esi + 2], cl
pop esi
mov al, 1
pop edi
pop ecx
ret 8
cmp cl, 0x3d
je 0x4645ed
mov cl, byte [esp + 0xa]
shr cl, 2
shl al, 4
or cl, al
mov byte [esi + 1], cl
pop esi
mov al, 1
pop edi
pop ecx
ret 8
xor al, al
pop edi
pop ecx
ret 8

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

Disassembly:
sub esp, 0x20
mov eax, dword [0x4b9314]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 4]
push eax
call fcn.00465620
mov eax, dword [esp + 0x20]
add esp, 8
cmp eax, 0x10
mov eax, dword [esp + 4]
jae 0x465801
lea eax, [esp + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x465816
test al, 0x10
jne 0x465816
mov bl, 1
jmp 0x465818
xor bl, bl
cmp dword [esp + 0x1c], 0x10
jb 0x46582c
mov ecx, dword [esp + 8]
push ecx
call fcn.00466c9d
add esp, 4
mov ecx, dword [esp + 0x20]
mov al, bl
pop ebx
xor ecx, esp
call fcn.0044c1c4
add esp, 0x20
ret
Function at 0x465b04
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
xor bl, bl
test eax, eax
je 0x465bcb
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
push ebp
push edx
call dword [eax + 0x14]
mov ebp, eax
test ebp, ebp
je 0x465bc0
mov ecx, dword [esi + 4]
mov dword [esp + 0xc], 0
mov eax, dword [ecx]
push edi
call dword [eax + 0x2c]
mov eax, dword [eax + 0x34]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add edi, eax
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jae 0x465b50
mov ebx, eax
mov edx, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x40
push ebx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x465bb4
mov ecx, dword [esi + 4]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
push ebx
push ebp
call dword [edx + 0x24]
push eax
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
push ebx
test eax, eax
mov eax, dword [esi]
push edi
push eax
setne byte [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov al, byte [esp + 0x20]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 8
pop edi
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret 8
pop ebp
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret 8
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret 8

Function at 0x467407
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x46743e
call fcn.00470546
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46744f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x467488
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x46746d
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x467475
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x467486
test ax, ax
jne 0x467486
test si, si
je 0x467488
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x467497
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4676f7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x47b21f
call fcn.0044dd48
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.00470546
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x467737
call fcn.00470546
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x467748
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x467754
or eax, 0xffffffff
jmp 0x467857
mov ecx, esi
call fcn.0046722b
mov dword [ebp - 0x14], eax
call fcn.0046a2a8
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x467797
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x467797
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x467797
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.0046b4ba
push dword [ebp - 0x14]
call fcn.0046a200
push edi
push eax
push ebx
mov ecx, esi
call fcn.004674dc
xor ebx, ebx
cmp eax, ebx
je 0x46780b
test byte [esi + 0x38], 0x10
je 0x4677d9
push 4
pop edi
mov ecx, esi
call fcn.004679b7
test ah, 1
je 0x4677d1
push 5
pop edi
push edi
mov ecx, esi
call fcn.00469ca4
cmp dword [esi + 0x1c], ebx
je 0x46780b
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00467bd3
jmp 0x46780b
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x46781f
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x467838
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x467838
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00467265
cmp dword [esi + 0x54], ebx
je 0x467854
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x46807e
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x47b231
call fcn.0044dd48
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x468098
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4680e4
call fcn.0046c1b9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040a070
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x46be27
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x46be6a
call fcn.00470546
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x46be6a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46be85
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0046af82
test ebx, ebx
mov esi, eax
je 0x46be83
test edi, edi
je 0x46be83
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4