joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475cc0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
je 0x475cf6
mov dword [0x66db50], eax
mov edx, 0x475ca0
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00476d00
test eax, eax
sete al
movzx eax, al
mov dword [0x4d1c80], eax
leave
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x4d1c80], eax
leave
ret

Function at 0x475de0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], 0x474fb0
mov dword [ebp - 0x24], 0x479a4c
mov dword [ebp - 0x1c], 0x475ea0
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call fcn.00477820
cmp dword [0x4d1c80], 0
mov dword [ebp - 0x44], 0x66db60
je 0x475e80
jl 0x475ec0
mov dword [ebp - 0x3c], 1
mov eax, dword [0x66db50]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x475f63
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.00477900
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x66dba0]
mov eax, 0xffffffff
test edx, edx
je 0x475eda
mov eax, dword [0x4d1c84]
test eax, eax
je 0x475f1a
xor eax, eax
test eax, eax
jne 0x475f10
mov edi, dword [0x4d1c80]
test edi, edi
js 0x475f10
mov dword [ebp - 0x44], 0x66db60
mov ebx, dword [0x4d1c80]
test ebx, ebx
je 0x475e80
jmp 0x475e2e
xor esi, esi
mov dword [0x4d1c80], esi
jmp 0x475ee8
mov dword [esp], 0x4d1c88
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.DLL_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x475fa1
mov eax, dword [0x4d1c84]
test eax, eax
jne 0x475ed8
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x4d1c84]
test eax, eax
je 0x475f3d
jmp 0x475ed8
mov dword [esp], 8
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x475f95
mov dword [esp + 4], eax
mov eax, dword [0x66db50]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x475fca
test edx, edx
je 0x475fb5
mov dword [ebp - 0x3c], 1
call fcn.00474af0
call fcn.00475cc0
mov eax, 1
mov dword [0x4d1c84], eax
jmp 0x475ed8
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x475e76
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
jmp 0x475f91
Function at 0x477710
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x66dec0]
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
je 0x477750
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.00476d00
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret

Function at 0x477b00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x66dec0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x477bdc
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x477bf1
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x477bb0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x477b48
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x477b58
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x477ba3
test edx, edx
jne 0x477b96
test ecx, ecx
je 0x477b40
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x477c00
cmp eax, 8
je 0x477b40
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x477b32
call fcn.00476dd0
mov eax, dword [0x66dec0]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x477b24
call fcn.00477770
mov eax, dword [0x66dec0]
jmp 0x477b24
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.00477a70
cmp eax, 7
jne 0x477b9b
mov eax, dword [0x66dec0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x477c53
mov edi, dword [eax + 0x30]
test edi, edi
js 0x477c7e
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x477c5f
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.00476dd0
mov eax, dword [0x66dec0]
jmp 0x477c31
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x477c42
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x477c42
call fcn.00477770
mov eax, dword [0x66dec0]
jmp 0x477c38
Function at 0x477ee0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x66dec0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x477f74
mov esi, dword [eax + 0x30]
test esi, esi
js 0x477f90
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x477fb0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x477f68
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00477a70
cmp eax, 7
jne 0x47802f
mov eax, dword [0x66dec0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x478006
mov edx, dword [eax + 0x30]
test edx, edx
js 0x478020
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x477fe0
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00477c90
jmp 0x477f25
call fcn.00476dd0
mov eax, dword [0x66dec0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x477f00
lea esi, [esi]
call fcn.00477770
mov eax, dword [0x66dec0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x477f0b
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x477f0e
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x477f57
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x477f57
call fcn.00476dd0
mov eax, dword [0x66dec0]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x477f49
nop
lea esi, [esi]
call fcn.00477770
mov eax, dword [0x66dec0]
jmp 0x477f49
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x478040
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x4780d2
mov eax, dword [0x66dec0]
test eax, eax
je 0x4780c6
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x478141
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x4780e7
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.00477c90
cmp eax, 7
jne 0x47815f
mov eax, dword [0x66dec0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x478132
mov edx, dword [eax + 0x30]
test edx, edx
js 0x478150
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x478113
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.00476dd0
mov eax, dword [0x66dec0]
jmp 0x478062
mov dword [esp], edi
call fcn.00477b00
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x478077
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4780b5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x4780b5
call fcn.00476dd0
mov eax, dword [0x66dec0]
jmp 0x4780a0
call fcn.00477770
mov eax, dword [0x66dec0]
jmp 0x47806d
call fcn.00477770
mov eax, dword [0x66dec0]
jmp 0x4780ab
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x4957b7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx + 0x80]
call sub.USER32.dll_GetWindowTextLengthW
add eax, 1
push eax
push 0x4ea212
call fcn.0046f631
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
mov eax, dword [ebp - 4]
lea eax, [eax + 0x18]
push eax
push dword [ebx + 0x80]
call sub.USER32.dll_GetWindowTextW
mov eax, dword [ebp - 4]
lea eax, [eax + 0x18]
push eax
call fcn.00470b1a
add esp, 4
jmp 0x495809
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49586e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp eax, 0
je 0x49588c
push 5
push dword [ebx + 0x80]
call sub.USER32.dll_ShowWindow
jmp 0x4958cb
mov eax, dword [ebx + 0xc]
cmp eax, 0x4d15a0
setne al
movzx eax, al
cmp eax, 0
je 0x4958ae
call fcn.0048f3be
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0x34]
add esp, 8
cmp eax, 0
je 0x4958be
push dword [ebx + 0xc]
call fcn.0048f39f
add esp, 4
push 0
push dword [ebx + 0x80]
call sub.USER32.dll_ShowWindow
mov eax, 0
jmp 0x4958d2
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a0f23
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 0
push 0x10
call sub.USER32.dll_GetKeyState
and eax, 0x8000
cmp eax, 0
je 0x4a0f40
or ebx, 1
push 0x11
call sub.USER32.dll_GetKeyState
and eax, 0x8000
cmp eax, 0
je 0x4a0f54
or ebx, 2
push 0x12
call sub.USER32.dll_GetKeyState
and eax, 0x8000
cmp eax, 0
je 0x4a0f68
or ebx, 4
push 0x5b
call sub.USER32.dll_GetKeyState
and eax, 0x8000
cmp eax, 0
jne 0x4a0f85
push 0x5c
call sub.USER32.dll_GetKeyState
and eax, 0x8000
cmp eax, 0
je 0x4a0f8d
or ebx, 8
mov eax, ebx
jmp 0x4a0f91
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aebec
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push eax
push edx
call fcn.004af2e3
add esp, 8
mov edi, eax
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x4aec51
push ebx
call fcn.0047154c
add esp, 4
mov esi, eax
push esi
push edi
call sub.ADVAPI32.DLL_RegDeleteValueA
mov ebx, eax
push esi
call fcn.00471fe4
add esp, 4
mov eax, ebx
cmp eax, 0
jne 0x4aec43
mov dword [ebp - 4], 1
jmp 0x4aec48
mov dword [0x4f15b4], eax
push edi
call fcn.004af35e
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x4aec56
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4af03f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push eax
push edx
call fcn.004af2e3
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 8], 0xffffffff
je 0x4af20e
mov dword [ebp - 4], 0x4d15a0
mov eax, dword [ebp + 0x18]
cmp eax, 1
je 0x4af098
cmp eax, 2
je 0x4af098
cmp eax, 3
je 0x4af098
cmp eax, 7
je 0x4af0dc
cmp eax, 4
je 0x4af189
jmp 0x4af1b1
mov eax, dword [ebp + 0x14]
push dword [eax + 8]
call fcn.0047c917
add esp, 4
mov dword [ebp - 4], eax
mov esi, 0
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax + 8]
sub ebx, 1
jmp 0x4af0d3
mov eax, dword [ebp + 0x14]
movzx eax, word [eax + esi*2 + 0xc]
mov eax, eax
push eax
push esi
push dword [ebp - 4]
call fcn.0047ca64
add esp, 0xc
add esi, 1
cmp esi, ebx
jle 0x4af0b9
jmp 0x4af1b1
push dword [ebp + 0x14]
call fcn.0047154c
add esp, 4
mov edi, eax
mov ebx, 0x400
mov esi, 0
push ebx
call fcn.0047c917
add esp, 4
mov dword [ebp - 4], eax
mov eax, esi
add eax, 1
cmp eax, ebx
jle 0x4af116
add ebx, ebx
push ebx
push dword [ebp - 4]
call fcn.0047c9e7
add esp, 8
movzx eax, byte [edi + esi]
mov eax, eax
push eax
call fcn.004708c9
add esp, 4
push eax
call fcn.0047101b
add esp, 4
push eax
push esi
push dword [ebp - 4]
call fcn.0047ca64
add esp, 0xc
add esi, 1
mov eax, dword [ebp + 0x14]
cmp esi, dword [eax + 8]
setge al
movzx eax, al
cmp eax, 0
je 0x4af163
mov eax, esi
sub eax, 1
movzx eax, byte [edi + eax]
mov eax, eax
cmp eax, 0
sete al
movzx eax, al
cmp eax, 0
je 0x4af0ff
push 0
push esi
push dword [ebp - 4]
call fcn.0047ca64
add esp, 0xc
mov eax, esi
add eax, 1
push eax
push dword [ebp - 4]
call fcn.0047c9e7
add esp, 8
jmp 0x4af1b1
push 4
call fcn.0047c917
add esp, 4
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
call fcn.00471081
add esp, 4
push eax
push 0
push dword [ebp - 4]
call fcn.0047cada
add esp, 0xc
jmp 0x4af1b1
push dword [ebp + 0x10]
call fcn.0047154c
add esp, 4
mov ebx, eax
push dword [ebp - 4]
call fcn.0047c9bd
add esp, 4
push eax
push dword [ebp - 4]
call fcn.0047c979
add esp, 4
push eax
push dword [ebp + 0x18]
push 0
push ebx
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegSetValueExA
mov esi, eax
push ebx
call fcn.00471fe4
add esp, 4
cmp esi, 0
jne 0x4af1fd
mov dword [ebp - 0xc], 1
jmp 0x4af203
mov dword [0x4f15b4], esi
push dword [ebp - 8]
call fcn.004af35e
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x4af213
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4af593
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
mov esi, 0x64
mov dword [ebp - 4], 0
add esi, 0x64
push esi
call fcn.00471fc0
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
push eax
push esi
push ebx
call sub.PSAPI.DLL_EnumProcesses
cmp eax, 0
jne 0x4af5d5
push ebx
call fcn.00471fe4
add esp, 4
mov eax, 0x4cf4c0
jmp 0x4af613
cmp esi, dword [ebp - 4]
jle 0x4af5a7
mov eax, dword [ebp - 4]
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
push 0x4f1612
call fcn.0046f631
add esp, 8
mov esi, eax
push dword [ebp - 4]
push ebx
lea eax, [esi + 0x18]
push eax
call fcn.0047200e
add esp, 0xc
push ebx
call fcn.00471fe4
add esp, 4
mov eax, esi
jmp 0x4af613
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401070
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [edi + 2]
push eax
call fcn.0042b5b7
add esp, 4
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ebx, ebx
mov byte [esi + edi], bl
mov byte [esi + edi + 1], bl
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov word [esp + 0x20], 0x14
mov dword [esp + 0x22], ebx
mov dword [esp + 0x2a], ebx
mov dword [esp + 0x26], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push esi
mov edi, eax
call fcn.0042b5b2
add esp, 4
xor eax, eax
cmp edi, ebx
pop edi
pop esi
sete al
pop ebx
add esp, 0x20
ret 4
Function at 0x401d70
Capabilities:
Hide graphical window
Read .ini file

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edi
push 0x446050
push 0
push str.xcoord
push 0x43d39c
call esi
push 0x446050
push 0
push str.ycoord
push 0x43d3ac
mov edi, eax
call esi
push 0x446050
push 0
push str.width
push 0x43d3bc
mov ebx, eax
call esi
push 0x446050
push 0
push str.height
push str.notice
mov ebp, eax
call esi
push 0
mov esi, eax
mov eax, dword [esp + 0x18]
push 0xfffffffffffffffa
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [esp + 0x18]
push eax
push 0
push ecx
push esi
push ebp
push ebx
push edi
push 0x40000000
push 0x43d3d3
push str.Notice
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x448a54
push eax
mov dword [0x44a8a4], eax
call fcn.004114b0
pop edi
pop esi
pop ebp
pop ebx
mov eax, dword [0x44a8a4]
mov dword [esp + 4], eax
jmp dword [sym.imp.USER32.dll_ShowWindow]

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

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401f96
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401f77
mov eax, 1
pop esi
ret 4
cmp eax, 3
jne 0x401f85
mov eax, 2
pop esi
ret 4
xor ecx, ecx
cmp eax, 5
setne cl
pop esi
add ecx, 3
mov eax, ecx
ret 4
mov eax, esi
pop esi
ret 4
Function at 0x402030
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x350
mov eax, dword [0x447648]
mov dword [esp + 0x34c], eax
mov eax, dword [esp + 0x358]
test eax, eax
jne 0x402065
or eax, 0xffffffff
mov ecx, dword [esp + 0x34c]
call fcn.0042b7bd
add esp, 0x350
ret 8
push ebx
mov ebx, dword [esp + 0x358]
push esi
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
jne 0x40209e
pop esi
or eax, eax
pop ebx
mov ecx, dword [esp + 0x34c]
call fcn.0042b7bd
add esp, 0x350
ret 8
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4021c6
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x43df5c
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4021a8
push 0x43df60
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4021a8
test byte [esp + 0x14], 0x10
push ebx
je 0x402153
lea ecx, [esp + 0x158]
push ecx
call edi
lea edx, [esp + 0x154]
push edx
call ebp
lea ecx, [esp + 0x154]
dec ecx
lea edx, [esp + 0x40]
mov byte [eax + ecx], 0
push edx
lea eax, [esp + 0x158]
push eax
call esi
push 0x43df64
lea ecx, [esp + 0x158]
push ecx
call esi
mov edx, dword [esp + 0x368]
push edx
lea eax, [esp + 0x158]
push eax
call fcn.00402030
jmp 0x4021a8
lea ecx, [esp + 0x25c]
push ecx
call edi
lea edx, [esp + 0x258]
push edx
call ebp
lea ecx, [esp + 0x258]
dec ecx
lea edx, [esp + 0x40]
mov byte [eax + ecx], 0
push edx
lea eax, [esp + 0x25c]
push eax
call esi
lea ecx, [esp + 0x258]
push 0x5c
push ecx
call fcn.0042be40
mov edx, dword [esp + 0x370]
inc eax
push eax
push str.F__s_n
push edx
call fcn.0042bdc3
add esp, 0x14
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4020c6
mov esi, dword [esp + 0x10]
pop edi
pop ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x354]
pop esi
xor eax, eax
pop ebx
call fcn.0042b7bd
add esp, 0x350
ret 8

Function at 0x4021f0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x404
mov eax, dword [0x447648]
push esi
mov dword [esp + 0x404], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x410]
mov esi, eax
lea eax, [esp + 0x414]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.0042bb0d
add esp, 0xc
push 0x10
push str.Error
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x43dee4
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 4]
push edx
call fcn.00401ec0
mov eax, dword [esp + 0x410]
add esp, 4
test eax, eax
je 0x40226b
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esp + 0x404]
pop esi
call fcn.0042b7bd
add esp, 0x404
ret
Function at 0x402280
Capabilities:
Create process on windows
Read .ini file

Disassembly:
sub esp, 0x54
push esi
push edi
xor eax, eax
push 0x43c658
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
push 0x400
mov dword [esp + 0x14], eax
push 0x44a08a
mov dword [esp + 0x1c], eax
push eax
push str.ragexe_call
push str.server
xor esi, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x44
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x4022d5
mov esi, 0x44a08a
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0x4000000
push 0
push 0
push 0
push esi
mov esi, dword [esp + 0x84]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40231a
push esi
push str.Failed_to_launch_application:__s
push eax
call fcn.004021f0
add esp, 0xc
pop edi
xor eax, eax
pop esi
add esp, 0x54
ret 4
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x54
ret 4
Function at 0x4087a0
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [ecx + 0x30]
lea ebp, [ecx + 0x28]
push ebx
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call fcn.00405ec0
cmp dword [esp + 0x10], esi
je 0x4087d1
push ebx
mov ecx, ebp
call fcn.004086c0
mov eax, dword [eax + 4]
pop esi
pop ebp
pop ebx
ret 4
cmp dword [ebx + 0x18], 0x10
jb 0x4087dc
mov eax, dword [ebx + 4]
jmp 0x4087df
lea eax, [ebx + 4]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408813
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x40881b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
push edi
push 0
push eax
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x408842
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
push ebx
mov ecx, ebp
call fcn.004086c0
mov dword [eax], esi
mov dword [eax + 4], edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4