joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4731a3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor esi, esi
mov word [ebp - 0x14], si
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x214d
mov ebx, str..Network.c
push ebx
stosd dword es:[edi], eax
push str.addrchng.flg
push esi
stosw word es:[edi], ax
mov dword [ebp - 4], esi
call fcn.00493154
pop ecx
pop ecx
mov edx, 0x54f4b8
mov ecx, eax
call fcn.00434df1
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jne 0x4731f2
xor eax, eax
jmp 0x473332
push edi
push 1
lea eax, [ebp - 4]
push 4
push eax
call fcn.00530e93
push edi
push 1
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.00530e93
add esp, 0x20
mov ecx, edi
call fcn.00435239
call fcn.004187ab
test eax, eax
jne 0x47325f
push 0x2156
push ebx
lea esi, [ebp - 0x28]
call fcn.004fb8cb
push ecx
push ecx
mov edi, esp
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f9ee0
push eax
call fcn.0053146e
add esp, 0x24
cmp eax, 0x6ddd000
jle 0x47325f
call fcn.0047318d
push 0x215a
push ebx
lea esi, [ebp - 0x28]
call fcn.004fb8cb
push ecx
push ecx
mov edi, esp
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f9ee0
push eax
call fcn.0053146e
add esp, 0x24
cmp eax, 0x240c8400
jle 0x4732a2
call fcn.0047318d
jmp 0x4731eb
call fcn.004187ab
test eax, eax
je 0x4732e9
push 0x2160
push ebx
lea esi, [ebp - 0x28]
call fcn.004fb8cb
push ecx
push ecx
mov edi, esp
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f9ee0
push eax
call fcn.0053146e
xor ecx, ecx
add esp, 0x24
cmp eax, 0x5cb2780
setle cl
jmp 0x473330
cmp dword [ebp - 4], 0
je 0x4732f4
xor eax, eax
inc eax
jmp 0x473332
push 0x2168
push ebx
lea esi, [ebp - 0x28]
call fcn.004fb8cb
push ecx
push ecx
mov edi, esp
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f9ee0
push eax
call fcn.0053146e
xor ecx, ecx
add esp, 0x24
cmp eax, 0x4b87f00
setl cl
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x478e1f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5f2e68]
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.005306b0
add esp, 0xc
push str.lnd.reg
push ebx
push ebx
call fcn.00493154
pop ecx
pop ecx
push eax
push 0x553c34
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.004ce4e5
push 0x2e92
push str..Network.c
mov edx, 0x54f4b8
lea ecx, [ebp - 0x110]
call fcn.00434df1
mov edi, eax
add esp, 0x1c
cmp edi, ebx
jne 0x478e9e
xor eax, eax
jmp 0x478edf
call fcn.00478dd5
mov esi, eax
cmp esi, ebx
je 0x478e9a
push edi
push 0x1a
push 0x27c
push esi
call fcn.00530e93
add esp, 0x10
cmp eax, 0x1a
je 0x478ecf
push eax
push 0x1a
push str.:4:LoadLndDataArchive___FAILED:_fread___s_b__d_but_ret__d.
call fcn.0042b70b
add esp, 0xc
mov ecx, edi
call fcn.00435239
push ebx
mov eax, esi
call fcn.00478dec
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret

Function at 0x478eee
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5f2e68]
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.005306b0
add esp, 0xc
cmp esi, edi
jne 0x478f35
xor eax, eax
jmp 0x47902a
push str.lnd.reg
push edi
push edi
call fcn.00493154
pop ecx
pop ecx
push eax
push 0x553c34
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.004ce4e5
add esp, 0x14
movsx eax, byte [esi]
call fcn.004cca76
cmp eax, 0x61
jl 0x478f6f
cmp eax, 0x7a
jle 0x478f8b
inc edi
add esi, 0x27c
cmp edi, 0x1a
jl 0x478f5d
lea eax, [ebp - 0x110]
call fcn.004314ff
jmp 0x47902a
push 0x2ec5
mov edi, str..Network.c
mov esi, 0x54f4b4
push edi
mov edx, esi
lea ecx, [ebp - 0x110]
call fcn.00434df1
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x478fee
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x2ec8
push edi
mov edx, esi
lea ecx, [ebp - 0x110]
call fcn.00434df1
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x478fee
lea eax, [ebp - 0x110]
push eax
push str.:5:SaveLndDataArchive___FAILED:_fopen___s___FAILED_
call fcn.0042b70b
pop ecx
pop ecx
jmp 0x478f2e
push ebx
push 0x1a
push 0x27c
push dword [ebp - 0x114]
call fcn.00531aad
add esp, 0x10
mov ecx, ebx
mov esi, eax
call fcn.00435239
cmp esi, 0x1a
je 0x479027
push esi
push 0x1a
push str.:4:SaveLndDataArchive___FAILED:_fwrite___s_b__d_but_ret__d.
call fcn.0042b70b
add esp, 0xc
jmp 0x478f2e
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
Function at 0x47a6f7
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x5f2e68]
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 - 0x120], edi
mov byte [ebp - 0x110], bl
call fcn.005306b0
add esp, 0xc
push 0x8c
lea eax, [ebp - 0x1ac]
push ebx
push eax
mov dword [ebp - 0x1b0], ebx
call fcn.005306b0
add esp, 0xc
cmp edi, ebx
mov dword [ebp - 0x114], ebx
jne 0x47a768
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
mov esi, 0x90
push esi
push ebx
push edi
mov dword [ebp - 0x118], 1
call fcn.005306b0
add esp, 0xc
push 0x32a6
push str..Network.c
push 0x280
call fcn.00471db5
add esp, 0xc
push str.fTender.cfg
lea edi, [ebp - 0x110]
call fcn.00470e3d
pop ecx
push ebx
push ebx
push 3
push 7
push closesocket
mov eax, edi
push eax
push 0x20
pop eax
call fcn.0042eb42
add esp, 0x18
cmp eax, 0xffffffff
mov dword [ebp - 0x11c], eax
jne 0x47a813
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x47a757
cmp eax, 3
je 0x47a757
cmp eax, 0xf
je 0x47a757
cmp eax, 0x35
je 0x47a757
push eax
push str._GetLastError_
mov eax, edi
push eax
push str.:5:ReadTenderTypesFlagsLegacyTAMS___FAILED:_CreateFileTimeOut__s__FAILED:__s_ld
call fcn.0042b70b
add esp, 0x10
jmp 0x47a757
push ebx
lea ecx, [ebp - 0x114]
push ecx
push esi
lea ecx, [ebp - 0x1b0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47a85f
push str._GetLastError_
push dword [ebp - 0x114]
lea eax, [ebp - 0x110]
push eax
push str.:5:ReadTenderTypesFlagsLegacyTAMS___FAILED:_ReadFile__s__FAILED:_ByteCount_u:__s
call fcn.0042b70b
add esp, 0x10
mov edi, dword [ebp - 0x11c]
call fcn.00435716
mov eax, ebx
jmp 0x47a759
cmp dword [ebp - 0x114], esi
jae 0x47a892
push esi
push dword [ebp - 0x114]
push str.:2:ReadTenderTypesFlagsLegacyTAMS___EAP:_Only__u_of__d_bytes_could_be_read.
call fcn.0042b70b
add esp, 0xc
push esi
lea eax, [ebp - 0x1b0]
push ebx
push eax
call fcn.005306b0
add esp, 0xc
mov dword [ebp - 0x118], ebx
cmp dword [ebp - 0x1b0], ebx
jl 0x47a8a3
cmp dword [ebp - 0x1b0], 7
jle 0x47a8ca
push dword [ebp - 0x1b0]
push str.:6:ReadTenderTypesFlagsLegacyTAMS___EAP:_ttef.iCurSlot_is_invalid:__d
call fcn.0042b70b
push esi
lea eax, [ebp - 0x1b0]
push ebx
push eax
call fcn.005306b0
add esp, 0x14
mov dword [ebp - 0x118], ebx
mov edi, dword [ebp - 0x120]
mov ebx, dword [ebp - 0x118]
push 0x24
pop ecx
lea esi, [ebp - 0x1b0]
rep movsd dword es:[edi], dword [esi]
jmp 0x47a84d
Function at 0x47fed9
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
mov ebx, eax
jne 0x47feec
mov edi, 0x6f2ac0
mov eax, dword [ebp + 0x14]
dec eax
dec eax
je 0x48005a
dec eax
je 0x47ff77
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
call fcn.0048030b
push eax
push str.DRIVER_s_SERVER_s_OPTION3_
mov esi, 0x200
push esi
push edi
call fcn.004ce4e5
add esp, 0x14
mov edx, ebx
call fcn.004ccc0d
test eax, eax
jne 0x47ff34
push ebx
push str.DATABASE_s_
mov eax, esi
call fcn.004ce4a3
pop ecx
pop ecx
mov edx, dword [ebp + 0xc]
call fcn.004ccc0d
test eax, eax
jne 0x47ff51
push dword [ebp + 0xc]
mov eax, esi
push str.USER_s_
call fcn.004ce4a3
pop ecx
pop ecx
mov edx, dword [ebp + 0x10]
call fcn.004ccc0d
test eax, eax
jne 0x4800e3
push dword [ebp + 0x10]
mov eax, esi
push str.PASSWORD_s_
call fcn.004ce4a3
pop ecx
pop ecx
jmp 0x4800e3
push 3
pop eax
call fcn.0048030b
push eax
push str.DRIVER_s_
mov esi, 0x200
push esi
push edi
call fcn.004ce4e5
push dword [ebp + 8]
mov eax, esi
push str.HOST_s_
call fcn.004ce4a3
push dword [ebp + 8]
mov eax, esi
push str.SERVERtms_server_
call fcn.004ce4a3
push str.SERVICE1525_
mov eax, esi
call fcn.004ce4a3
push str.PROTOCOLontlitcp_
mov eax, esi
call fcn.004ce4a3
add esp, 0x28
mov edx, ebx
call fcn.004ccc0d
test eax, eax
jne 0x47ffe4
push ebx
push str.DATABASE_s_
mov eax, esi
call fcn.004ce4a3
pop ecx
pop ecx
mov edx, dword [ebp + 0xc]
call fcn.004ccc0d
test eax, eax
jne 0x480001
push dword [ebp + 0xc]
mov eax, esi
push str.UID_s_
call fcn.004ce4a3
pop ecx
pop ecx
cmp dword [ebp + 0x10], 0
je 0x480018
push dword [ebp + 0x10]
mov eax, esi
push str.PWD_s_
call fcn.004ce4a3
pop ecx
pop ecx
mov ebx, str.informix_
push ebx
push 0
call fcn.00493030
push eax
push str.TDLL_sbinigo4n304.dll_
mov eax, esi
call fcn.004ce4a3
push str.TRANSLATIONOPTION0_
mov eax, esi
call fcn.004ce4a3
push ebx
push 0
call fcn.00493030
add esp, 0x1c
push eax
push str.INFORMIXDIR
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x4800e3
push 2
pop eax
call fcn.0048030b
push eax
push str.Driver_s_
mov esi, 0x200
push esi
push edi
call fcn.004ce4e5
mov edx, dword [ebp + 0xc]
add esp, 0x10
call fcn.004ccc0d
test eax, eax
jne 0x480094
push dword [ebp + 0xc]
mov eax, esi
push str.UID_s_
call fcn.004ce4a3
pop ecx
pop ecx
cmp dword [ebp + 0x10], 0
je 0x4800ab
push dword [ebp + 0x10]
mov eax, esi
push str.PWD_s_
call fcn.004ce4a3
pop ecx
pop ecx
mov edx, ebx
call fcn.004ccc0d
test eax, eax
jne 0x4800c5
push ebx
push str.DBN_s_
mov eax, esi
call fcn.004ce4a3
pop ecx
pop ecx
push str.ENGdefault_
mov eax, esi
call fcn.004ce4a3
push dword [ebp + 8]
mov eax, esi
push str.Linkstcpip_HOST_s_PORT2638_verifyno_dobroadcastnone__
call fcn.004ce4a3
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x48208c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, 0xff
push esi
xor ebx, ebx
lea eax, [ebp - 0x10b]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x114], edi
mov byte [ebp - 0x10c], 0
call fcn.005306b0
add esp, 0xc
cmp edi, ebx
je 0x4820d4
mov eax, edi
call fcn.004ccb8b
push ebx
call fcn.00481c76
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4820e8
xor eax, eax
jmp 0x4821ea
push str.SELECT_STORE_PROFILE.STORE_NUM__COMPANY.NAME_FROM_STORE_PROFILE__COMPANY_WHERE_STORE_PROFILE.COMPANY_IDCOMPANY.ID
push edi
mov dword [ebp - 0x110], ebx
call fcn.00480b29
test eax, eax
pop ecx
pop ecx
je 0x4821cc
push 2
push 9
push esi
lea eax, [ebp - 0x10c]
push eax
push edi
mov dword [ebp - 0x118], ebx
call fcn.00480c24
add esp, 0x14
test eax, eax
je 0x4821dd
mov ebx, 0x54fb24
cmp dword [ebp - 0x118], 0xde
jge 0x4821dd
cmp dword [ebp - 0x110], 0
jne 0x4821a7
lea eax, [ebp - 0x10c]
push eax
call fcn.005317d1
cmp dword [ebp - 0x114], 0
pop ecx
mov dword [ebp - 0x110], eax
je 0x4821a7
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.00531210
pop ecx
test eax, eax
pop ecx
lea eax, [ebp - 0x10c]
je 0x48219a
push ebx
push eax
call fcn.00531210
mov ecx, dword [ebp + 8]
inc eax
push eax
mov eax, dword [ebp - 0x114]
call fcn.004ccc3f
add esp, 0xc
call fcn.004cd7d5
jmp 0x4821a7
push eax
push str.:7:GetStoreNumberTAMSii___FAILED:_Store_name_field_not_found:___s_
call fcn.0042b70b
pop ecx
pop ecx
inc dword [ebp - 0x118]
push 2
push 9
push esi
lea eax, [ebp - 0x10c]
push eax
push edi
call fcn.00480c24
add esp, 0x14
test eax, eax
jne 0x48212b
jmp 0x4821dd
push str.:7:GetStoreNumberTAMSii___FAILED:_ExecuteODBCFormat___FAILED.
call fcn.0042b70b
pop ecx
mov dword [ebp - 0x110], ebx
push edi
call fcn.0048073c
mov eax, dword [ebp - 0x110]
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
Function at 0x48233f
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5f2e68]
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.005306b0
add esp, 0xc
call fcn.004fa8e4
cmp esi, ebx
mov dword [ebp - 0x54], eax
je 0x48237a
mov dword [esi], ebx
push ebx
call fcn.00481c76
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x482397
call fcn.00418518
neg eax
sbb eax, eax
neg eax
jmp 0x48246e
mov ecx, edi
mov dword [ebp - 0x4c], ebx
call fcn.00481fd3
push eax
push str.SELECT_TENDER_TYPE_ACCEPTED_FROM_TENDER_TYPE_PROFILE_WHERE_LOC_d
push edi
call fcn.00480b29
add esp, 0xc
test eax, eax
je 0x482451
push 1
push 9
push 0x3f
lea eax, [ebp - 0x48]
push eax
push edi
call fcn.00480c24
jmp 0x4823fc
cmp ebx, 0xde
jge 0x482403
lea esi, [ebp - 0x48]
call fcn.004d03b0
test eax, eax
je 0x4823e8
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.00480c24
mov esi, dword [ebp - 0x50]
add esp, 0x14
test eax, eax
jne 0x4823ca
mov ebx, dword [ebp - 0x4c]
push edi
call fcn.0048073c
test esi, esi
pop ecx
je 0x482413
mov dword [esi], ebx
call fcn.004fa8e4
sub eax, dword [ebp - 0x54]
push eax
push ebx
push 0xc
pop eax
call fcn.00469130
pop ecx
push eax
push str.:0:TAMSii_IsTenderTypesEnabled___has_determined__s_in__ums
call fcn.0042bd38
add esp, 0xc
test bl, 1
je 0x48245e
test bl, 2
je 0x48245e
test bl, 8
je 0x48244d
test bl, 0x10
je 0x48244d
test bl, 4
jne 0x48246b
xor eax, eax
jmp 0x48246e
push str.:7:TAMSii_IsTenderTypesEnabled___FAILED:_ExecuteODBCFormat___FAILED.
call fcn.0042b70b
pop ecx
jmp 0x482406
push ebx
push str.:7:TAMSii_IsTenderTypesEnabled___FAILED:_dwTenderTypesEnabled___d.
call fcn.0042b70b
pop ecx
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
Function at 0x48be08
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp esi, ebx
push edi
je 0x48bec3
cmp dword [esi + 4], ebx
jle 0x48bec3
call fcn.004b2094
cmp dword [esi + 4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
jle 0x48be7a
lea edi, [esi + 0x40]
movsx ebx, word [edi]
mov eax, dword [ebp - 8]
call fcn.004b250c
test eax, eax
jne 0x48be52
movsx eax, word [edi]
push eax
mov eax, dword [ebp - 8]
call fcn.004b218d
pop ecx
cmp word [edi + 6], 0
jle 0x48be67
movsx ebx, word [edi]
mov eax, dword [ebp - 8]
push 1
call fcn.004b2594
pop ecx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 0x90
cmp eax, dword [esi + 4]
jl 0x48be36
xor ebx, ebx
cmp dword [esi + 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
jle 0x48beb5
lea edi, [esi + 0x63]
jmp 0x48be8c
xor ebx, ebx
mov eax, dword [ebp - 8]
mov byte [edi], bl
movsx ebx, word [edi - 0x23]
call fcn.004b2714
test eax, eax
je 0x48bea4
inc dword [ebp - 0xc]
mov byte [edi], 1
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 0x90
cmp eax, dword [esi + 4]
jl 0x48be8a
push dword [ebp - 8]
call fcn.004b2137
mov eax, dword [ebp - 0xc]
pop ecx
jmp 0x48bec6
or eax, 0xffffffff
pop edi
pop ebx
leave
ret
Function at 0x492b68
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
test ebx, ebx
push esi
push edi
jne 0x492b86
cmp dword [ebp + 8], eax
je 0x492b86
cmp dword [ebp + 8], 0xffffffff
je 0x492b86
call fcn.00493827
mov ebx, eax
mov esi, 0x6f3d20
mov edx, esi
call fcn.004ccc0d
test eax, eax
mov edi, 0x104
je 0x492bcc
push edi
push esi
push str.SystemDrive
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x492bcc
push str._GetLastError_
push str.:5:GetSystemDRIVE___EAP:_GetEnvironmentVariable__SystemDrive___FAILED:__s
call fcn.0042bd38
push 0x57405c
mov ecx, edi
mov eax, esi
call fcn.004ccc3f
add esp, 0xc
push esi
mov esi, 0x6f3e28
mov ecx, edi
mov eax, esi
call fcn.004ccc3f
test ebx, ebx
pop ecx
jne 0x492bfa
cmp dword [ebp + 8], ebx
je 0x492bf6
cmp dword [ebp + 8], 0xffffffff
je 0x492bf6
push str.:8:GetSystemDRIVE___was_called_with_an_INVALID_pszAppend___
call fcn.0042b70b
pop ecx
mov eax, esi
jmp 0x492c47
push esi
push ebx
call fcn.005312a0
push esi
call fcn.00530f70
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x492c45
cmp dword [ebp + 8], 0xffffffff
je 0x492c45
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 8]
sub edi, eax
add eax, ebx
push edi
push eax
call fcn.00533027
add esp, 0x10
test eax, eax
jge 0x492c45
push dword [ebp + 8]
push str.:8:GetSystemDRIVE___EAP:_MAX_PATH_has_been_exceeded:___s_
call fcn.0042b70b
pop ecx
pop ecx
mov byte [ebx + 0x103], 0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x493278
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x49329c
cmp dword [ebp + 0xc], edi
je 0x49329c
cmp dword [ebp + 0xc], 0xffffffff
je 0x49329c
call fcn.00493827
mov dword [ebp + 8], eax
mov esi, 0x6f4a88
mov edx, esi
call fcn.004ccc0d
test eax, eax
mov ebx, 0x104
jne 0x4932b9
cmp dword [0x6f3d1c], edi
je 0x49331a
push ebx
push edi
push esi
call fcn.005306b0
add esp, 0xc
push esi
push 0x103
mov dword [0x6f3d1c], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x493307
push str._GetLastError_
push str.:5:GetWindowsTempDir___FAILED:_GetTempPath___FAILED:__s
call fcn.0042b70b
push edi
push edi
call fcn.00493030
push eax
push str._sTEMP_
push ebx
push esi
call fcn.004ce4e5
add esp, 0x20
xor eax, eax
jmp 0x4933c6
mov eax, esi
call fcn.004cd338
push esi
call fcn.00530f70
pop ecx
mov dword [0x6f413c], eax
mov edi, 0x6f4b90
push esi
mov ecx, ebx
mov eax, edi
call fcn.004ccc3f
mov ecx, dword [0x6f413c]
push esi
mov esi, 0x6f4c98
mov eax, esi
call fcn.004ccc3f
cmp dword [ebp + 8], 0
pop ecx
pop ecx
jne 0x49335f
cmp dword [ebp + 0xc], 0xffffffff
je 0x4933c6
cmp dword [ebp + 0xc], 0
je 0x49335b
push str.:8:GetWindowsTempDir___was_called_with_an_INVALID_pszAppend___
call fcn.0042b70b
pop ecx
mov eax, edi
jmp 0x4933c6
cmp dword [ebp + 0xc], 0xffffffff
jne 0x493379
push esi
push dword [ebp + 8]
call fcn.005312a0
push esi
call fcn.00530f70
add esp, 0xc
jmp 0x4933c3
push edi
push dword [ebp + 8]
call fcn.005312a0
push edi
call fcn.00530f70
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x4933c3
mov esi, dword [ebp + 8]
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
sub ebx, eax
add eax, esi
push ebx
push eax
call fcn.00533027
add esp, 0x10
test eax, eax
jge 0x4933c3
push dword [ebp + 0xc]
push str.:8:GetWindowsTempDir___EAP:_MAX_PATH_has_been_exceeded:___s_
call fcn.0042b70b
pop ecx
pop ecx
mov byte [esi + 0x103], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49f85e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push edi
xor edi, edi
push 0x3e
lea eax, [ebp - 0x54]
push edi
push eax
mov dword [ebp - 0x58], edi
call fcn.005306b0
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 4], edi
call fcn.004ccc0d
test eax, eax
jne 0x49fa08
mov ecx, dword [ebp + 8]
push 0x15b4
push str..Printer.c
mov edx, 0x54f4b4
call fcn.00434df1
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
mov dword [ebp - 8], ebx
jne 0x49f8c3
push dword [ebp + 8]
push str.PrinterSaveConfig___FAILED:_Could_not_open_the_given_file___s__for_writing.
call fcn.0042bd38
pop ecx
pop ecx
jmp 0x49fa08
push 0x15bb
push esi
call fcn.004a2bd6
test eax, eax
pop ecx
pop ecx
je 0x49fa01
mov eax, esi
call fcn.004a2c0b
test eax, eax
je 0x49fa01
push 0x42
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00531bb0
add esp, 0xc
push ebx
push 0x42
lea eax, [ebp - 0x58]
push 1
push eax
call fcn.00531aad
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
add esp, 0x10
cmp dword [ebp - 0x50], edi
je 0x49f980
push dword [esi + 0xc]
call ebx
cmp eax, edi
push dword [esi + 0xc]
mov dword [ebp - 0xc], eax
je 0x49f971
call dword [sym.imp.KERNEL32.dll_GlobalSize]
cmp eax, edi
mov dword [ebp - 4], eax
jle 0x49f956
push dword [ebp - 8]
lea eax, [ebp - 4]
push 4
push 1
push eax
call fcn.00531aad
push dword [ebp - 8]
push dword [ebp - 4]
push 1
push dword [ebp - 0xc]
call fcn.00531aad
add esp, 0x20
jmp 0x49f966
push eax
push str.PrinterSaveConfig___encountered_a_problem:_GlobalSize___returned__ld_for_hDevMode:__GetLastError_
call fcn.0042bd38
pop ecx
pop ecx
mov dword [ebp - 0x50], edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x49f980
push str.PrinterSaveConfig___encountered_a_problem:_Could_not_GlobalLock___hDevMode_during_save___ld_:__GetLastError_
call fcn.0042bd38
pop ecx
pop ecx
mov dword [ebp - 0x50], edi
cmp dword [ebp - 0x4c], edi
je 0x49f9ed
push dword [esi + 0x10]
call ebx
push dword [esi + 0x10]
mov ebx, eax
cmp ebx, edi
je 0x49f9de
call dword [sym.imp.KERNEL32.dll_GlobalSize]
cmp eax, edi
mov dword [ebp - 4], eax
jle 0x49f9c3
push dword [ebp - 8]
lea eax, [ebp - 4]
push 4
push 1
push eax
call fcn.00531aad
push dword [ebp - 8]
push dword [ebp - 4]
push 1
push ebx
call fcn.00531aad
add esp, 0x20
jmp 0x49f9d3
push eax
push str.PrinterSaveConfig___encountered_a_problem:_GlobalSize___returned__ld_for_hDevNames:__GetLastError_
call fcn.0042bd38
pop ecx
pop ecx
mov dword [ebp - 0x4c], edi
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x49f9ed
push str.PrinterSaveConfig___encountered_a_problem:_Could_not_GlobalLock___hDevNames_during_save___ld_:__GetLastError_
call fcn.0042bd38
pop ecx
pop ecx
mov dword [ebp - 0x4c], edi
mov eax, esi
call fcn.004a2c41
mov ecx, dword [ebp - 8]
call fcn.00435239
xor eax, eax
inc eax
jmp 0x49fa0a
mov ecx, ebx
call fcn.00435239
xor eax, eax
pop edi
pop ebx
leave
ret