joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cebf
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov ebx, eax
test esi, esi
jns 0x42ced1
call fcn.0045d569
mov esi, eax
test ebx, ebx
jns 0x42cedc
call fcn.0045d5fe
mov ebx, eax
test esi, esi
jle 0x42cf23
test ebx, ebx
jle 0x42cf23
push 1
push 0x1f8
call fcn.00401a3a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42cf23
mov dword [edi], esi
imul esi, ebx
mov eax, esi
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + esi + 0x14]
push eax
push 4
mov dword [edi + 4], ebx
call fcn.00401a3a
pop ecx
pop ecx
mov dword [edi + 0x14], eax
test eax, eax
jne 0x42cf29
push edi
call fcn.00401a00
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
ret
xor eax, eax
test esi, esi
jle 0x42cf46
mov ecx, dword [edi + 0x14]
mov byte [ecx + eax*4], 0x20
mov ecx, dword [edi + 0x14]
push 7
pop edx
mov word [ecx + eax*4 + 2], dx
inc eax
cmp eax, esi
jl 0x42cf2f
mov eax, dword [0x5847ec]
test eax, eax
jne 0x42cf6e
call fcn.0042edb6
mov dword [0x5847ec], eax
test eax, eax
jne 0x42cf6e
push dword [edi + 0x14]
call fcn.00401a00
push edi
call fcn.00401a00
pop ecx
jmp 0x42cf22
mov ecx, dword [edi + 0x14]
lea ecx, [ecx + esi*4 + 4]
push 5
mov dword [edi + 0x24], ecx
add esi, 2
pop ecx
mov dword [edi + 0x20], esi
cmp esi, ecx
jge 0x42cf88
mov dword [edi + 0x20], ecx
push edi
mov ebx, eax
mov dword [edi + 0x10], 7
mov word [edi + 0x1c], 0x709
call fcn.0042ed65
lea ebx, [edi + 0x38]
mov dword [esp], str.ScreenBuffer.c
push ebx
call fcn.00456cc8
pop ecx
pop ecx
mov esi, str.A_ScreenBuffer_handle_had_to_be_forced_to_unlock___
mov eax, ebx
call fcn.00456b53
mov eax, 0x7d0
mov ecx, ebx
call fcn.00456b40
mov eax, edi
call fcn.0042ce9c
mov eax, edi
jmp 0x42cf25
Function at 0x43aeb2
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x43aecf
cmp dword [ebp + 0xc], 0
je 0x43aecf
cmp dword [ebp + 0xc], 0xffffffff
je 0x43aecf
call fcn.0043ae60
mov dword [ebp + 8], eax
push ebx
push esi
mov esi, 0x5800e0
push edi
mov edx, esi
call fcn.00429ac3
mov edi, 0x104
test eax, eax
je 0x43af1f
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push edi
push esi
push str.APPDATA
call ebx
test eax, eax
jne 0x43af18
push edi
push esi
push str.SystemDrive
call ebx
test eax, eax
jne 0x43af1f
push 0x475654
mov ecx, edi
mov eax, esi
call fcn.00428a08
pop ecx
jmp 0x43af1f
mov byte [0x5800e2], 0
push esi
mov esi, 0x5801e8
mov ecx, edi
mov eax, esi
call fcn.00428a08
mov ebx, dword [ebp + 8]
pop ecx
test ebx, ebx
je 0x43af74
push esi
push ebx
call fcn.00401ba0
push esi
call fcn.00401a80
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x43af72
cmp dword [ebp + 0xc], 0xffffffff
je 0x43af72
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
sub edi, eax
add eax, ebx
push edi
push eax
call fcn.00402db4
add esp, 0x10
test eax, eax
jns 0x43af72
mov byte [ebx + 0x103], 0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x43b1b7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4832e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10c], eax
cmp eax, ebx
jne 0x43b1f2
cmp dword [ebp + 0xc], ebx
je 0x43b1f2
cmp dword [ebp + 0xc], 0xffffffff
je 0x43b1f2
call fcn.0043ae60
mov dword [ebp - 0x10c], eax
mov eax, fcn.0043b0b9
mov esi, 0x580818
mov edi, 0x104
mov edx, esi
cmp eax, fcn.0043b1b7
je 0x43b24f
call fcn.00429ac3
test eax, eax
jne 0x43b21f
cmp dword [0x5800d4], ebx
je 0x43b2f9
push edi
push ebx
push esi
call fcn.00401f80
push ebx
push ebx
mov dword [0x5800d4], ebx
call fcn.0043b0b9
push eax
push str._sPAULA_
push edi
push esi
call fcn.0042922b
push esi
call fcn.00401a80
add esp, 0x28
jmp 0x43b2f4
call fcn.00429ac3
test eax, eax
jne 0x43b264
cmp dword [0x5800d4], ebx
je 0x43b2f9
push edi
push ebx
push esi
call fcn.00401f80
add esp, 0xc
push edi
lea eax, [ebp - 0x108]
push eax
mov dword [0x5800d4], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push str.APPDATA
call ebx
test eax, eax
jne 0x43b2c7
push edi
lea eax, [ebp - 0x108]
push eax
push str.USERPROFILE
call ebx
test eax, eax
jne 0x43b2c7
push edi
lea eax, [ebp - 0x108]
push eax
push str.ProgramData
call ebx
test eax, eax
jne 0x43b2c7
push str.C:ProgramData
mov ecx, edi
lea eax, [ebp - 0x108]
call fcn.00428a08
pop ecx
lea eax, [ebp - 0x108]
push 0x470af8
push eax
call fcn.00401bb0
lea eax, [ebp - 0x108]
push eax
push str._sPAULA_
push edi
push esi
call fcn.0042922b
push esi
call fcn.00401a80
add esp, 0x1c
mov dword [0x5801e4], eax
mov ebx, 0x580920
push esi
mov ecx, edi
mov eax, ebx
call fcn.00428a08
mov ecx, dword [0x5801e4]
push esi
mov esi, 0x580a28
mov eax, esi
call fcn.00428a08
cmp dword [ebp - 0x10c], 0
pop ecx
pop ecx
jne 0x43b330
cmp dword [ebp + 0xc], 0xffffffff
je 0x43b394
mov eax, ebx
jmp 0x43b394
cmp dword [ebp + 0xc], 0xffffffff
jne 0x43b34d
push esi
push dword [ebp - 0x10c]
call fcn.00401ba0
push esi
call fcn.00401a80
add esp, 0xc
jmp 0x43b38e
push ebx
push dword [ebp - 0x10c]
call fcn.00401ba0
push ebx
call fcn.00401a80
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x43b38e
mov esi, dword [ebp - 0x10c]
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
sub edi, eax
add eax, esi
push edi
push eax
call fcn.00402db4
add esp, 0x10
test eax, eax
jns 0x43b38e
mov byte [esi + 0x103], 0
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x43cd7a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x43ce4f
cmp dword [esi + 4], ebx
jle 0x43ce4f
push edi
call fcn.0042edb6
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
cmp dword [esi + 4], ebx
jle 0x43cdfc
lea eax, [esi + 0x40]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movsx ebx, word [eax]
mov edi, dword [ebp - 8]
call fcn.0042ef48
mov edi, dword [ebp - 0xc]
test eax, eax
jne 0x43cdd0
movsx eax, word [edi]
mov ebx, dword [ebp - 8]
push eax
call fcn.0042ed65
pop ecx
cmp word [edi + 6], 0
jle 0x43cde6
movsx ebx, word [edi]
push 1
push dword [ebp - 8]
call fcn.0042eeea
pop ecx
pop ecx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 0x90
mov dword [ebp - 0xc], edi
cmp eax, dword [esi + 4]
jl 0x43cdae
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 4], ebx
jle 0x43ce41
lea eax, [esi + 0x63]
mov dword [ebp - 0xc], eax
jmp 0x43ce14
mov eax, dword [ebp - 0xc]
xor ebx, ebx
mov edi, dword [ebp - 8]
mov byte [eax], bl
movsx ebx, word [eax - 0x23]
call fcn.0042ee93
test eax, eax
je 0x43ce2f
mov eax, dword [ebp - 0xc]
inc dword [ebp - 0x10]
mov byte [eax], 1
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add dword [ebp - 0xc], 0x90
cmp eax, dword [esi + 4]
jl 0x43ce0f
mov esi, dword [ebp - 8]
call fcn.0042ed79
mov eax, dword [ebp - 0x10]
pop edi
jmp 0x43ce52
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x44667b
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x4832e4]
xor eax, ebp
mov dword [ebp - 8], eax
push edi
xor eax, eax
push 0x18e
push eax
mov word [ebp - 0x19c], ax
lea eax, [ebp - 0x19a]
push eax
call fcn.00401f80
add esp, 0xc
test esi, esi
je 0x4466f5
cmp dword [ebp + 8], 0
jle 0x4466f5
lea eax, [ebp - 0x19c]
push eax
push 0x101
mov byte [esi], 0
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x4466f1
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 0x4466f1
push esi
call fcn.00401a80
pop ecx
test eax, eax
jne 0x4466f5
xor eax, eax
jmp 0x4466f7
mov eax, esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop edi
call fcn.00401317
leave
ret

Function at 0x446704
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 0x446743
push 1
push dword [ebp - 4]
call fcn.00401a3a
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x44673b
xor eax, eax
jmp 0x446792
push ebx
lea eax, [ebp - 4]
push eax
push edi
call esi
cmp eax, ebx
je 0x446754
cmp edi, ebx
je 0x446737
push edi
call fcn.00401a00
pop ecx
jmp 0x446737
mov edx, dword [edi]
xor eax, eax
cmp edx, ebx
jle 0x446789
lea ecx, [edi + 4]
mov esi, dword [ebp + 0xc]
cmp esi, 0xffffffff
je 0x44676c
cmp dword [ecx + 0x10], esi
jne 0x446778
mov esi, dword [ecx]
cmp esi, dword [ebp + 8]
jne 0x446778
cmp dword [ecx + 0xc], ebx
jne 0x446782
inc eax
add ecx, 0x38
cmp eax, edx
jl 0x44675f
jmp 0x446789
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 0x447c9e
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4832e4]
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.00429ac3
test eax, eax
jne 0x447da7
mov al, byte [esi]
cmp al, bl
je 0x447d00
mov ecx, esi
cmp al, 0x2e
je 0x447d00
cmp al, 0x3f
je 0x447da0
inc ecx
mov al, byte [ecx]
cmp al, bl
jne 0x447ced
mov eax, esi
call fcn.00446dd2
test eax, eax
je 0x447da7
mov eax, str._._._._
call fcn.00446dd2
test eax, eax
je 0x447da7
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 0x447da7
push 1
push dword [ebp - 0x34]
call fcn.00401a3a
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x447da7
push ebx
lea eax, [ebp - 0x34]
push eax
push esi
call edi
mov dword [ebp - 0x30], ebx
cmp dword [esi], ebx
jle 0x447dc8
lea edi, [esi + 4]
mov ecx, dword [edi]
lea eax, [ebp - 0x18]
call fcn.00446622
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0x2c]
call fcn.00446622
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x18]
call fcn.004476ef
test eax, eax
je 0x447dc0
lea edx, [ebp - 0x2c]
mov ecx, str._._._._
call fcn.004476ef
test eax, eax
je 0x447dc0
push edi
call dword [sym.imp.IPHLPAPI.DLL_DeleteIpForwardEntry]
test eax, eax
jne 0x447db9
inc dword [ebp - 0x30]
jmp 0x447dc0
mov byte [0x498852], 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 [0x498853], 1
inc ebx
add edi, 0x38
cmp ebx, dword [esi]
jl 0x447d5b
push esi
call fcn.00401a00
mov eax, dword [ebp - 0x30]
pop ecx
jmp 0x447daa
Function at 0x44805a
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x4832e4]
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 0x448222
cmp edi, ebx
je 0x448222
call fcn.004182de
push dword [ebp - 0x328]
lea eax, [ebp - 0x8c]
push 0x7e
pop ecx
mov byte [edi], bl
call fcn.00428a08
lea eax, [ebp - 0x194]
call fcn.00428a82
mov edi, 0x472e90
push edi
lea eax, [ebp - 0x334]
lea ecx, [ebp - 0x8c]
call fcn.0042903f
pop ecx
pop ecx
mov dword [ebp - 0x328], eax
cmp eax, ebx
je 0x44814d
push edi
lea eax, [ebp - 0x334]
xor ecx, ecx
call fcn.0042903f
pop ecx
mov dword [ebp - 0x328], eax
mov edx, dword [ebp - 0x328]
call fcn.00429ac3
test eax, eax
jne 0x448183
push dword [ebp - 0x328]
mov ecx, 0x104
lea eax, [ebp - 0x194]
call fcn.00428a08
push 0x3a
xor eax, eax
lea edi, [ebp - 0x194]
call fcn.004286af
pop ecx
pop ecx
lea ebx, [ebp - 0x8c]
call fcn.00446e33
test eax, eax
je 0x448222
call fcn.0043aeaf
test eax, eax
jne 0x448233
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 0x448222
lea ecx, [ebp - 0x8c]
call fcn.00447442
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 0x44820a
mov eax, dword [edi]
test eax, eax
je 0x44820a
push eax
call fcn.00401a80
pop ecx
test eax, eax
je 0x44820a
push dword [edi]
mov ecx, esi
mov eax, ebx
call fcn.00428a08
pop ecx
xor edi, edi
jmp 0x44820d
or edi, 0xffffffff
call dword [sym.imp.WSOCK32.dll_WSACleanup]
test edi, edi
jne 0x448222
push ebx
call fcn.00401a80
pop ecx
test eax, eax
jne 0x44825e
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 0x44823f
push str.WebSrv22
jmp 0x448250
cmp eax, 2
jne 0x44824b
push str.WebSrv21
jmp 0x448250
push str.Mission_Control
mov eax, dword [ebp - 0x32c]
mov ecx, esi
call fcn.00428a08
pop ecx
lea eax, [ebp - 0x194]
push eax
mov eax, esi
mov esi, dword [ebp - 0x32c]
call fcn.00429a82
pop ecx
call fcn.004182de
mov eax, esi
jmp 0x448224
Function at 0x448771
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4832e4]
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 0x4487b8
xor eax, eax
jmp 0x448881
push str.lnd.reg
push edi
push edi
call fcn.0043b3a3
pop ecx
pop ecx
push eax
push 0x46f748
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0042922b
add esp, 0x14
movsx eax, byte [esi]
call fcn.00428b55
cmp eax, 0x61
jl 0x4487f2
cmp eax, 0x7a
jle 0x44880b
inc edi
add esi, 0x27c
cmp edi, 0x1a
jl 0x4487e0
lea eax, [ebp - 0x110]
call fcn.0045946a
jmp 0x448881
push 0x2faa
mov edi, str.Network.c
mov esi, 0x46f608
push edi
mov edx, esi
lea ecx, [ebp - 0x110]
call fcn.004580b0
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x44885a
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x2fad
push edi
mov edx, esi
lea ecx, [ebp - 0x110]
call fcn.004580b0
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4487b1
push ebx
push 0x1a
push 0x27c
push dword [ebp - 0x114]
call fcn.0040257f
add esp, 0x10
mov ecx, ebx
mov esi, eax
call fcn.0045a2fe
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 0x448890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4832e4]
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.0043b3a3
pop ecx
pop ecx
push eax
push 0x46f748
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0042922b
push 0x2f77
push str.Network.c
mov edx, 0x46f5ac
lea ecx, [ebp - 0x110]
call fcn.004580b0
mov edi, eax
add esp, 0x1c
cmp edi, ebx
jne 0x44890f
xor eax, eax
jmp 0x44893a
call fcn.004465c9
mov esi, eax
cmp esi, ebx
je 0x44890b
push edi
push 0x1a
push 0x27c
push esi
call fcn.00402244
mov ecx, edi
call fcn.0045a2fe
push ebx
mov eax, esi
call fcn.00446592
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x44a531
Capabilities:
Delete file

Disassembly:
push edi
push str.TempWMICCred.tmp
push 0
call fcn.0043b3a3
push 0
push 0
mov edi, eax
call fcn.00449bd8
push eax
push str.NetCredential__s.log
push 0
call fcn.0043b3a3
add esp, 0x1c
mov eax, edi
pop edi
jmp fcn.0045946a
Function at 0x44ada0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4832e4]
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.00429ac3
test eax, eax
je 0x44ae23
xor eax, eax
jmp 0x44afa3
push esi
lea edi, [ebp - 0x244]
call fcn.00446cc5
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 0x44aea5
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 0x44aea5
call fcn.004182de
sub eax, dword [0x57e234]
cmp eax, 0xea60
ja 0x44ae96
call fcn.0045dc4a
test eax, eax
jne 0x44ae1c
call fcn.004182de
mov dword [0x57e234], eax
jmp 0x44ae1c
lea eax, [ebp - 0x3c]
push 0x32
push eax
call fcn.00449bd8
pop ecx
pop ecx
cmp dword [ebp + 8], ebx
je 0x44aec8
push 0x46f688
push 0x32
pop eax
lea esi, [ebp - 0x3c]
call fcn.00429a82
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 0x44af16
inc dword [0x57df94]
mov edx, dword [ebp - 0x24c]
call fcn.00429ac3
test eax, eax
jne 0x44af5f
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 0x44af9b
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.00458011
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 0x450061
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00411840
mov eax, dword [0x4832e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov ebx, 0x40030
push ebx
push str.lpCmdLine
push esi
call fcn.0045db34
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
push eax
call edi
push ebx
push str.GetCommandLine__
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.0045db34
push eax
call edi
push 0x104
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test esi, esi
je 0x4500e6
lea eax, [ebp - 0x1004]
push 0x46f91c
push eax
call fcn.00401bb0
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00401bb0
add esp, 0x10
push ebx
lea eax, [ebp - 0x1004]
push str.GetModuleFileName__
push eax
call fcn.0045db34
push eax
call edi
call fcn.0045e78c
mov ecx, dword [ebp + 8]
call fcn.0045dafb
call fcn.0045d366
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401317
leave
ret 0x10
Function at 0x454159
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
xor eax, eax
cmp dword [eax*4 + 0x5776a0], ebx
je 0x45416f
inc eax
cmp eax, 2
jl 0x454160
mov edi, 0x6cc5c
cmp eax, 2
jge 0x45425c
mov esi, eax
imul esi, esi, 0x6cc5c
add esi, 0x49dde8
mov dword [eax*4 + 0x5776a0], 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 0x4541b0
push ebx
push ebx
mov dword [esi + 0x37608], 1
call fcn.0043b3a3
push eax
push 0x46f69c
mov edi, 0x104
lea eax, [esi + 0x240c]
push edi
push eax
call fcn.0042922b
add esp, 0x18
push str.PaulaConfig.cfg
push ebx
push ebx
call fcn.0043b1b7
pop ecx
pop ecx
push eax
mov ebx, 0x46f748
push ebx
lea eax, [esi + 0x22a8]
push edi
push eax
call fcn.0042922b
add esp, 0x14
push str.PaulaEmpConfig.cfg
push 0
push 0
call fcn.0043b1b7
pop ecx
pop ecx
push eax
push ebx
lea eax, [esi + 0x21a4]
push edi
push eax
call fcn.0042922b
add esp, 0x14
xor eax, eax
call fcn.0045030e
test eax, eax
je 0x454245
push esi
mov ebx, eax
call fcn.0042ed65
pop ecx
push esi
call fcn.00452100
pop ecx
mov ecx, 0x45211d
call fcn.0044696a
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 0x454196
push str._n_nERROR:_OUT_OF_MEMORY__Could_not_create_PAULA_object_
call fcn.0045f97a
mov dword [esp], 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x454258
Function at 0x457831
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 0x45784b
test al, 0x10
je 0x45784b
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x457958
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x4832e4]
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 0x4579fe
mov eax, edi
call fcn.00428a82
push 0x21e88e
lea eax, [esi - 0x25]
call fcn.0044efaf
push eax
push str.P2_Tmp__d
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.0042922b
add esp, 0x14
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4579fe
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 0x4579fe
mov edx, edi
call fcn.00429ac3
test eax, eax
jne 0x4579fe
mov eax, edi
jmp 0x457a00
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret