joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f28c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5092e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3f
xor ebx, ebx
lea eax, [ebp - 0x47]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x50], esi
mov byte [ebp - 0x48], 0
call fcn.00401f80
add esp, 0xc
call fcn.0041df75
cmp esi, ebx
je 0x46f2c4
mov dword [esi], ebx
push ebx
call fcn.0046ecd5
mov edi, eax
pop ecx
cmp edi, ebx
je 0x46f36a
mov ecx, edi
mov dword [ebp - 0x4c], ebx
call fcn.0046f1e0
push eax
push str.SELECT_TENDER_TYPE_ACCEPTED_FROM_TENDER_TYPE_PROFILE_WHERE_LOC_d
push edi
call fcn.0046dc9c
add esp, 0xc
test eax, eax
je 0x46f340
push 1
push 9
push 0x3f
lea eax, [ebp - 0x48]
push eax
push edi
call fcn.0046d89b
jmp 0x46f336
cmp ebx, 0xde
jge 0x46f33d
lea esi, [ebp - 0x48]
call fcn.00445bc1
test eax, eax
je 0x46f322
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
or dword [ebp - 0x4c], eax
push 1
push 9
push 0x3f
lea eax, [ebp - 0x48]
push eax
push edi
inc ebx
call fcn.0046d89b
mov esi, dword [ebp - 0x50]
add esp, 0x14
test eax, eax
jne 0x46f304
mov ebx, dword [ebp - 0x4c]
push edi
call fcn.0046db87
pop ecx
test esi, esi
je 0x46f34d
mov dword [esi], ebx
test bl, 1
je 0x46f36a
test bl, 2
je 0x46f36a
test bl, 8
je 0x46f366
test bl, 0x10
je 0x46f366
test bl, 4
jne 0x46f36a
xor eax, eax
jmp 0x46f36d
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret

Function at 0x474152
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x5092e4]
xor eax, esp
mov dword [esp + 0x198], eax
push edi
xor eax, eax
push 0x18e
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.00401f80
add esp, 0xc
test esi, esi
je 0x4741cd
cmp dword [ebp + 8], 0
jle 0x4741cd
lea eax, [esp + 8]
push eax
push 0x101
mov byte [esi], 0
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x4741c9
push dword [ebp + 8]
push esi
call dword [sym.imp.WSOCK32.dll_gethostname]
mov edi, eax
call dword [sym.imp.WSOCK32.dll_WSACleanup]
test edi, edi
jne 0x4741c9
push esi
call fcn.00401a80
pop ecx
test eax, eax
jne 0x4741cd
xor eax, eax
jmp 0x4741cf
mov eax, esi
mov ecx, dword [esp + 0x19c]
pop edi
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret
Function at 0x4741e2
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], ebx
xor edi, edi
call esi
cmp eax, 0x7a
jne 0x474221
push 1
push dword [ebp - 4]
call fcn.00401a3a
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x474219
xor eax, eax
jmp 0x474270
push ebx
lea eax, [ebp - 4]
push eax
push edi
call esi
cmp eax, ebx
je 0x474232
cmp edi, ebx
je 0x474215
push edi
call fcn.00401a00
pop ecx
jmp 0x474215
mov edx, dword [edi]
xor eax, eax
cmp edx, ebx
jle 0x474267
lea ecx, [edi + 4]
mov esi, dword [ebp + 0xc]
cmp esi, 0xffffffff
je 0x47424a
cmp dword [ecx + 0x10], esi
jne 0x474256
mov esi, dword [ecx]
cmp esi, dword [ebp + 8]
jne 0x474256
cmp dword [ecx + 0xc], ebx
jne 0x474260
inc eax
add ecx, 0x38
cmp eax, edx
jl 0x47423d
jmp 0x474267
imul eax, eax, 0x38
mov ebx, dword [eax + edi + 0x10]
push edi
call fcn.00401a00
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x475457
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5092e4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push esi
push edi
xor ebx, ebx
mov byte [ebp - 0x18], bl
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x2c], bl
lea edi, [ebp - 0x2b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, ecx
stosw word es:[edi], ax
mov edx, esi
mov dword [ebp - 0x38], esi
stosb byte es:[edi], al
call fcn.00445b2f
test eax, eax
jne 0x475560
mov al, byte [esi]
cmp al, bl
je 0x4754b9
mov ecx, esi
cmp al, 0x2e
je 0x4754b9
cmp al, 0x3f
je 0x475559
inc ecx
mov al, byte [ecx]
cmp al, bl
jne 0x4754a6
mov eax, esi
call fcn.00474919
test eax, eax
je 0x475560
mov eax, str._._._._
call fcn.00474919
test eax, eax
je 0x475560
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
mov dword [ebp - 0x34], ebx
call edi
cmp eax, 0x7a
jne 0x475560
push 1
push dword [ebp - 0x34]
call fcn.00401a3a
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x475560
push ebx
lea eax, [ebp - 0x34]
push eax
push esi
call edi
mov dword [ebp - 0x30], ebx
cmp dword [esi], ebx
jle 0x475581
lea edi, [esi + 4]
mov ecx, dword [edi]
lea eax, [ebp - 0x18]
call fcn.004740f9
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0x2c]
call fcn.004740f9
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x18]
call fcn.00474fc2
test eax, eax
je 0x475579
lea edx, [ebp - 0x2c]
mov ecx, str._._._._
call fcn.00474fc2
test eax, eax
je 0x475579
push edi
call dword [sym.imp.IPHLPAPI.DLL_DeleteIpForwardEntry]
test eax, eax
jne 0x475572
inc dword [ebp - 0x30]
jmp 0x475579
mov byte [0x51e902], 1
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
mov byte [0x51e903], 1
inc ebx
add edi, 0x38
cmp ebx, dword [esi]
jl 0x475514
push esi
call fcn.00401a00
mov eax, dword [ebp - 0x30]
pop ecx
jmp 0x475563
Function at 0x47584f
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x5092e4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x328], eax
xor eax, eax
push 0x18e
mov word [ebp - 0x324], ax
xor ebx, ebx
lea eax, [ebp - 0x322]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x32c], edi
call fcn.00401f80
push 0x7f
lea eax, [ebp - 0x8b]
push ebx
push eax
mov byte [ebp - 0x8c], bl
call fcn.00401f80
mov esi, 0x103
push esi
lea eax, [ebp - 0x193]
push ebx
push eax
mov byte [ebp - 0x194], bl
call fcn.00401f80
add esp, 0x24
mov dword [ebp - 0x330], ebx
mov dword [ebp - 0x334], ebx
cmp dword [ebp - 0x328], ebx
je 0x475a17
cmp edi, ebx
je 0x475a17
call fcn.0041df75
push dword [ebp - 0x328]
lea eax, [ebp - 0x8c]
push 0x7e
pop ecx
mov byte [edi], bl
call fcn.00444961
lea eax, [ebp - 0x194]
call fcn.004449db
mov edi, 0x4e0d40
push edi
lea eax, [ebp - 0x334]
lea ecx, [ebp - 0x8c]
call fcn.00444fa7
pop ecx
pop ecx
mov dword [ebp - 0x328], eax
cmp eax, ebx
je 0x475942
push edi
lea eax, [ebp - 0x334]
xor ecx, ecx
call fcn.00444fa7
pop ecx
mov dword [ebp - 0x328], eax
mov edx, dword [ebp - 0x328]
call fcn.00445b2f
test eax, eax
jne 0x475978
push dword [ebp - 0x328]
mov ecx, 0x104
lea eax, [ebp - 0x194]
call fcn.00444961
push 0x3a
xor eax, eax
lea edi, [ebp - 0x194]
call fcn.00444563
pop ecx
pop ecx
lea ebx, [ebp - 0x8c]
call fcn.0047497a
test eax, eax
je 0x475a17
call fcn.00461deb
test eax, eax
jne 0x475a28
mov ebx, dword [ebp - 0x32c]
mov byte [ebx], al
lea eax, [ebp - 0x324]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x475a17
lea ecx, [ebp - 0x8c]
call fcn.00474d1e
push 2
mov dword [ebp - 0x330], eax
push 4
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyaddr]
mov edi, eax
test edi, edi
je 0x4759ff
mov eax, dword [edi]
test eax, eax
je 0x4759ff
push eax
call fcn.00401a80
pop ecx
test eax, eax
je 0x4759ff
push dword [edi]
mov ecx, esi
mov eax, ebx
call fcn.00444961
pop ecx
xor edi, edi
jmp 0x475a02
or edi, 0xffffffff
call dword [sym.imp.WSOCK32.dll_WSACleanup]
test edi, edi
jne 0x475a17
push ebx
call fcn.00401a80
pop ecx
test eax, eax
jne 0x475a53
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
cmp eax, 1
jne 0x475a34
push str.WebSrv22
jmp 0x475a45
cmp eax, 2
jne 0x475a40
push str.WebSrv21
jmp 0x475a45
push str.Mission_Control
mov eax, dword [ebp - 0x32c]
mov ecx, esi
call fcn.00444961
pop ecx
lea eax, [ebp - 0x194]
push eax
mov eax, esi
mov esi, dword [ebp - 0x32c]
call fcn.00445aee
pop ecx
call fcn.0041df75
mov eax, esi
jmp 0x475a19
Function at 0x4760aa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x5092e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x1b0], edi
mov byte [ebp - 0x110], bl
call fcn.00401f80
add esp, 0xc
push 0x8c
lea eax, [ebp - 0x19c]
push ebx
push eax
mov dword [ebp - 0x1a0], ebx
call fcn.00401f80
add esp, 0xc
mov dword [ebp - 0x1a8], ebx
cmp edi, ebx
jne 0x47611b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
mov esi, 0x90
push esi
push ebx
push edi
mov dword [ebp - 0x1a4], 1
call fcn.00401f80
add esp, 0xc
push str.fTender.cfg
lea edi, [ebp - 0x110]
call fcn.0047480c
pop ecx
push ebx
push 0x20
push 3
push connect
mov eax, edi
call fcn.004a1899
add esp, 0x10
mov dword [ebp - 0x1ac], eax
cmp eax, 0xffffffff
jne 0x47616d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x47610a
push ebx
lea ecx, [ebp - 0x1a8]
push ecx
push esi
lea ecx, [ebp - 0x1a0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47619a
mov esi, dword [ebp - 0x1ac]
call fcn.0049ff62
mov eax, ebx
jmp 0x47610c
cmp dword [ebp - 0x1a8], esi
jae 0x4761b9
push esi
lea eax, [ebp - 0x1a0]
push ebx
push eax
call fcn.00401f80
add esp, 0xc
mov dword [ebp - 0x1a4], ebx
cmp dword [ebp - 0x1a0], ebx
jl 0x4761ca
cmp dword [ebp - 0x1a0], 7
jle 0x4761e1
push esi
lea eax, [ebp - 0x1a0]
push ebx
push eax
call fcn.00401f80
add esp, 0xc
mov dword [ebp - 0x1a4], ebx
mov edi, dword [ebp - 0x1b0]
mov ebx, dword [ebp - 0x1a4]
push 0x24
pop ecx
lea esi, [ebp - 0x1a0]
rep movsd dword es:[edi], dword [esi]
jmp 0x476188

Function at 0x4769d3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5092e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
xor edi, edi
lea eax, [ebp - 0x10f]
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x114], esi
mov byte [ebp - 0x110], 0
call fcn.00401f80
add esp, 0xc
cmp esi, edi
jne 0x476a1a
xor eax, eax
jmp 0x476ae3
push str.lnd.reg
push edi
push edi
call fcn.004623aa
pop ecx
pop ecx
push eax
push 0x4cda20
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.004451a8
add esp, 0x14
movsx eax, byte [esi]
call fcn.00444aae
cmp eax, 0x61
jl 0x476a54
cmp eax, 0x7a
jle 0x476a6d
inc edi
add esi, 0x27c
cmp edi, 0x1a
jl 0x476a42
lea eax, [ebp - 0x110]
call fcn.004a14db
jmp 0x476ae3
push 0x2f5a
mov edi, str.Network.c
mov esi, 0x4cc8b8
push edi
mov edx, esi
lea ecx, [ebp - 0x110]
call fcn.004a0001
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x476abc
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x2f5d
push edi
mov edx, esi
lea ecx, [ebp - 0x110]
call fcn.004a0001
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x476a13
push ebx
push 0x1a
push 0x27c
push dword [ebp - 0x114]
call fcn.0040257f
add esp, 0x10
mov ecx, ebx
mov esi, eax
call fcn.004a2aec
xor eax, eax
cmp esi, 0x1a
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x476af2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5092e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.00401f80
add esp, 0xc
push str.lnd.reg
push ebx
push ebx
call fcn.004623aa
pop ecx
pop ecx
push eax
push 0x4cda20
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.004451a8
push 0x2f27
push str.Network.c
mov edx, 0x4cc77c
lea ecx, [ebp - 0x110]
call fcn.004a0001
mov edi, eax
add esp, 0x1c
cmp edi, ebx
jne 0x476b71
xor eax, eax
jmp 0x476b9c
call fcn.0047405e
mov esi, eax
cmp esi, ebx
je 0x476b6d
push edi
push 0x1a
push 0x27c
push esi
call fcn.00402244
mov ecx, edi
call fcn.004a2aec
push ebx
mov eax, esi
call fcn.00474027
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x479805
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x5092e4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor ebx, ebx
push 0x31
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x3b]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x248], ebx
mov byte [ebp - 0x3c], bl
call fcn.00401f80
add esp, 0xc
push 0xff
lea eax, [ebp - 0x13b]
push ebx
push eax
mov byte [ebp - 0x13c], bl
call fcn.00401f80
add esp, 0xc
push 0x103
lea eax, [ebp - 0x243]
push ebx
push eax
mov byte [ebp - 0x244], bl
call fcn.00401f80
add esp, 0xc
mov edx, esi
call fcn.00445b2f
test eax, eax
je 0x479888
xor eax, eax
jmp 0x479a08
push esi
lea edi, [ebp - 0x244]
call fcn.0047480c
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
pop ecx
push ebx
mov edi, 0x80000020
push edi
push 1
push ebx
push 7
push 6
lea eax, [ebp - 0x244]
push eax
call esi
mov dword [ebp - 0x250], eax
cmp eax, 0xffffffff
jne 0x47990a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push edi
push 4
push ebx
push 7
push 6
lea eax, [ebp - 0x244]
push eax
call esi
mov dword [ebp - 0x250], eax
cmp eax, 0xffffffff
jne 0x47990a
call fcn.0041df75
sub eax, dword [0x604784]
cmp eax, 0xea60
ja 0x4798fb
call fcn.004ac065
test eax, eax
jne 0x479881
call fcn.0041df75
mov dword [0x604784], eax
jmp 0x479881
lea eax, [ebp - 0x3c]
push 0x32
push eax
call fcn.004784f0
pop ecx
pop ecx
cmp dword [ebp + 8], ebx
je 0x47992d
push 0x4cc9a8
push 0x32
pop eax
lea esi, [ebp - 0x3c]
call fcn.00445aee
pop ecx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x13c]
push str._nLock_was_initiated_by:__s
push eax
call fcn.00401954
add esp, 0xc
push ebx
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.00401a80
mov esi, dword [ebp - 0x250]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
push eax
lea eax, [ebp - 0x13c]
push eax
push esi
call edi
test eax, eax
jne 0x47997b
inc dword [0x6046dc]
mov edx, dword [ebp - 0x24c]
call fcn.00445b2f
test eax, eax
jne 0x4799c4
push dword [ebp - 0x24c]
lea eax, [ebp - 0x13c]
push str._nIn_Source_File:__s
push eax
call fcn.00401954
add esp, 0xc
push ebx
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.00401a80
pop ecx
push eax
lea eax, [ebp - 0x13c]
push eax
push esi
call edi
cmp dword [ebp + 0x10], ebx
jle 0x479a00
push dword [ebp + 0x10]
lea eax, [ebp - 0x13c]
push str._nFrom_Source_Line:__d
push eax
call fcn.00401954
add esp, 0xc
push ebx
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.00401a80
pop ecx
push eax
lea eax, [ebp - 0x13c]
push eax
push esi
call edi
call fcn.0049ff62
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x48dd3b
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
xor eax, eax
cmp dword [eax*4 + 0x5fdb20], ebx
je 0x48dd51
inc eax
cmp eax, 2
jl 0x48dd42
mov edi, 0x6cc5c
cmp eax, 2
jge 0x48de3e
mov esi, eax
imul esi, esi, 0x6cc5c
add esi, 0x524268
mov dword [eax*4 + 0x5fdb20], 1
push edi
push ebx
push esi
call fcn.00401f80
add esp, 0xc
push 0x64
lea ecx, [esi + 0x4c0]
lea eax, [esi + 0x32c]
pop edx
mov dword [eax - 0x194], ecx
mov dword [eax], ecx
add eax, 4
dec edx
jne 0x48dd92
push ebx
push ebx
mov dword [esi + 0x37608], 1
call fcn.004623aa
push eax
push 0x4cc9bc
mov edi, 0x104
lea eax, [esi + 0x240c]
push edi
push eax
call fcn.004451a8
add esp, 0x18
push str.PaulaConfig.cfg
push ebx
push ebx
call fcn.0046209e
pop ecx
pop ecx
push eax
mov ebx, 0x4cda20
push ebx
lea eax, [esi + 0x22a8]
push edi
push eax
call fcn.004451a8
add esp, 0x14
push str.PaulaEmpConfig.cfg
push 0
push 0
call fcn.0046209e
pop ecx
pop ecx
push eax
push ebx
lea eax, [esi + 0x21a4]
push edi
push eax
call fcn.004451a8
add esp, 0x14
xor eax, eax
call fcn.004822f3
test eax, eax
je 0x48de27
push esi
mov ebx, eax
call fcn.004504da
pop ecx
push esi
call fcn.00488377
pop ecx
mov ecx, 0x4899e5
call fcn.00474478
mov eax, esi
pop edi
pop esi
pop ebx
ret
push edi
push 1
call fcn.00401a3a
pop ecx
pop ecx
mov esi, eax
cmp esi, ebx
jne 0x48dd78
push str._n_nERROR:_OUT_OF_MEMORY__Could_not_create_PAULA_object_
call fcn.004afd65
mov dword [esp], 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x48de3a
Function at 0x499191
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5092e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5236ec]
push ebx
push esi
xor ebx, ebx
push edi
mov esi, 0x90
cmp eax, ebx
jne 0x4991fd
push esi
lea eax, [ebp - 0x94]
push ebx
push eax
mov dword [ebp - 0x98], ebx
call fcn.00401f80
lea edi, [esi + 4]
push edi
lea eax, [ebp - 0x98]
push ebx
push eax
call fcn.00401f80
add esp, 0x18
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x88]
mov dword [0x5236ec], eax
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x49922f
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
xor byte [ebp - 0x74], bl
push 2
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
add esi, eax
jmp 0x49924f
mov edi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push ebx
push 0x45
push esi
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 3
push 0x45
push esi
call edi
mov esi, ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x49f690
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x49f6aa
test al, 0x10
je 0x49f6aa
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x49f7b7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x5092e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x147]
push ebx
push eax
mov byte [ebp - 0x148], bl
call fcn.00401f80
push 0x3f
lea eax, [ebp - 0x43]
push ebx
push eax
mov byte [ebp - 0x44], bl
call fcn.00401f80
add esp, 0x18
cmp edi, ebx
je 0x49f85d
mov eax, edi
call fcn.004449db
push 0x21e88e
lea eax, [esi - 0x25]
call fcn.0047e615
push eax
push str.P2_Tmp__d
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.004451a8
add esp, 0x14
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x49f85d
push edi
push ebx
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x49f85d
mov edx, edi
call fcn.00445b2f
test eax, eax
jne 0x49f85d
mov eax, edi
jmp 0x49f85f
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x49f8fe
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x5092e4]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [esp + 0x25d]
push ebx
push eax
mov byte [esp + 0x264], bl
call fcn.00401f80
push esi
lea eax, [esp + 0x161]
push ebx
push eax
mov byte [esp + 0x168], bl
call fcn.00401f80
push 0x13c
lea eax, [esp + 0x30]
push ebx
push eax
mov dword [esp + 0x34], ebx
call fcn.00401f80
add esp, 0x24
cmp edi, ebx
je 0x49fa44
cmp byte [edi], bl
je 0x49fa44
push edi
lea ecx, [esi + 1]
lea eax, [esp + 0x25c]
call fcn.00444961
push eax
lea eax, [esp + 0x158]
push eax
call fcn.00401ba0
add esp, 0xc
lea esi, [esp + 0x150]
call fcn.00444789
mov ecx, dword [0x5215c8]
mov eax, dword [0x5215c4]
add ecx, 0xf
cmp eax, ecx
jle 0x49f9bc
mov dword [0x5215c8], eax
inc eax
mov dword [0x5215c4], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
dec dword [0x5215c4]
mov esi, eax
cmp esi, 0xffffffff
je 0x49fa44
cmp byte [esp + 0x3c], 0x2e
je 0x49fa2d
lea edx, [esp + 0x3c]
call fcn.00445b2f
test eax, eax
jne 0x49fa2d
cmp byte [esp + 0x150], 0x2a
jne 0x49fa5d
cmp byte [esp + 0x152], 0x2a
jne 0x49fa5d
cmp byte [esp + 0x151], 0x3f
je 0x49fa5d
movsx eax, byte [esp + 0x151]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00403e10
pop ecx
pop ecx
test eax, eax
jne 0x49fa5d
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x49f9e2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x49fa46
Function at 0x49fa69
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
push 6
xor ebx, ebx
pop ecx
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00445b2f
test eax, eax
jne 0x49fb54
mov edx, dword [ebp + 0xc]
call fcn.00445b2f
test eax, eax
jne 0x49fb54
push dword [ebp + 8]
call fcn.00401a80
push dword [ebp + 8]
call fcn.00401a80
add eax, 0xa
push eax
push 1
call fcn.00401a3a
push dword [ebp + 0xc]
mov esi, eax
call fcn.00401a80
add eax, 0xa
push eax
push 1
call fcn.00401a3a
add esp, 0x1c
mov edi, eax
cmp esi, ebx
je 0x49fb54
cmp edi, ebx
je 0x49fb54
push dword [ebp + 8]
push esi
call fcn.00401ba0
push dword [ebp + 0xc]
push edi
call fcn.00401ba0
push esi
call fcn.00401a80
push edi
mov byte [eax + esi + 1], bl
call fcn.00401a80
mov byte [eax + edi + 1], bl
mov eax, 0x1694
mov word [ebp - 0x14], ax
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0xa], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call fcn.00401a00
push edi
call fcn.00401a00
xor eax, eax
cmp dword [ebp - 4], ebx
pop ecx
pop ecx
sete al
jmp 0x49fb56
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x49fb5b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
push 6
xor ebx, ebx
pop ecx
xor eax, eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
mov edx, edi
call fcn.00445b2f
test eax, eax
je 0x49fb86
xor eax, eax
jmp 0x49fc00
push esi
push edi
call fcn.00401a80
push edi
call fcn.00401a80
add eax, 0xa
push eax
push 1
call fcn.00401a3a
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x49fbab
xor eax, eax
jmp 0x49fbff
push edi
push esi
call fcn.00401ba0
push esi
call fcn.00401a80
mov byte [eax + esi + 1], bl
mov eax, 0x614
mov word [ebp - 0x10], ax
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call fcn.00401a00
xor eax, eax
cmp edi, ebx
pop ecx
sete al
pop esi
pop edi
pop ebx
leave
ret