joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4709e5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x470afd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x470afd
mov eax, dword [esi + 0x3c]
push eax
call fcn.00494592
mov esi, eax
test esi, esi
je 0x470afd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x470afd
mov ecx, esi
call fcn.00470880
cmp edi, eax
jge 0x470afd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x470a83
mov dword [esp + 0x34], 1
jmp 0x470ade
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x470afd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0046de40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x476350
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559ba8
push 0x483c28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.00482360
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476500
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x476541
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x4765ae
cmp dword [esp + 0x1c], 2
jne 0x4765ae
cmp dword [esp + 0x10], 5
jne 0x4765ae
cmp dword [esp + 0x14], 1
jne 0x4765ae
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x476598
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x476589
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x476591
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x4765ae
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret

Function at 0x478d90
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x573e4c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x478da3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x478de4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x573ef4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x478e16
mov bl, byte [esp + ecx + 0x4c]
jmp 0x478e1a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x478e0b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x478e38
mov bl, byte [esp + ecx + 0x4c]
jmp 0x478e3c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x478e2d
xor ecx, ecx
mov eax, 0x573e5c
xor ebx, ebx
mov bl, byte [ecx + 0x573f04]
cmp byte [esp + ebx + 0x14], 0
je 0x478e67
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x573f1c]
cmp byte [esp + ebx + 0x14], 0
je 0x478e7e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x478e4e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x478dd7
lea edx, [esp + 0x84]
push edx
call fcn.00478ec0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x47cf90
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x47cff6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x47cff6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x47cfd7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x47d380
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x47d3b8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x47e0a0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x47e0e9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x47e560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a1ef0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0047e110
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0047e190
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0047e190
lea ecx, [esi + 0xc]
call fcn.00492af3
lea ecx, [esi + 0x10]
call fcn.00492af3
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0047f720
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0047f720
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0047f720
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00492b68
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00492b68
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x494f36
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x494f6e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00492fc3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00492f9b
jmp 0x494f7a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x496628
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49666a
call fcn.0049c3a1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49666a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x496661
xor eax, eax
jmp 0x496672
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00496678
pop edi
pop esi
pop ebx
ret 4

Function at 0x49c8d1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49c8ff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49c91d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049c837
jmp 0x49c91d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49c91d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049c837
test edi, edi
mov eax, edi
jne 0x49c907
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40531b
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x46362c
call fcn.0045c1cc
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x46c578
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x14], ebx
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], ebx
mov byte [ebp - 4], 1
mov byte [ecx], al
mov al, byte [ebp - 0xd]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00405457
lea eax, [ebp - 0xd]
push 1
push eax
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call fcn.0040122c
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 3
call fcn.0040122c
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x84], bl
mov dword [esi], 0x46c3dc
mov dword [esi + 4], 0x46c3cc
mov dword [esi + 8], 0x46c3b4
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x416d98
Capabilities:
Copy file
Delete file
Move file
Query or enumerate registry value

Disassembly:
mov eax, 0x46525e
call fcn.0045c1cc
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x20], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0xd]
mov ebx, 0x104
push edi
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x58], 0x46cb98
mov dword [ebp - 0x38], 0x46cb90
call fcn.00408d96
mov eax, dword [esi + 0x28]
mov byte [ebp - 4], 4
cmp eax, edi
je 0x416df0
push dword [esi + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 1
push edi
call fcn.00403319
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416e9c
lea eax, [ebp - 0x30]
push ebx
push eax
lea ecx, [ebp - 0x58]
call fcn.00417954
mov ebx, eax
mov ecx, dword [ebx]
mov byte [ebp - 4], 5
call fcn.0041734a
lea ecx, [ebp - 0x18]
mov dword [ebx + 8], eax
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push str.LogFile
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
lea ecx, [ebp - 0x30]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 4
inc bl
call fcn.0041706c
test bl, bl
je 0x416e9c
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.0041734a
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x1c], eax
call fcn.0041734a
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x416e9c
mov ecx, ebx
call fcn.0041734a
push edi
lea ecx, [ebp - 0x58]
mov ebx, eax
call fcn.0041734a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.0041734a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0040be02
cmp dword [ebp - 0x14], edi
je 0x416eca
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], edi
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0040be02
mov eax, dword [esi + 0x28]
and byte [ebp - 4], 0
cmp eax, edi
je 0x416ee6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00401102
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x416da6
Capabilities:
Copy file
Delete file
Move file
Query or enumerate registry value

Disassembly:
mov eax, 0x46525e
call fcn.0045c1cc
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x20], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0xd]
mov ebx, 0x104
push edi
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x58], 0x46cb98
mov dword [ebp - 0x38], 0x46cb90
call fcn.00408d96
mov eax, dword [esi + 0x28]
mov byte [ebp - 4], 4
cmp eax, edi
je 0x416df0
push dword [esi + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 1
push edi
call fcn.00403319
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416e9c
lea eax, [ebp - 0x30]
push ebx
push eax
lea ecx, [ebp - 0x58]
call fcn.00417954
mov ebx, eax
mov ecx, dword [ebx]
mov byte [ebp - 4], 5
call fcn.0041734a
lea ecx, [ebp - 0x18]
mov dword [ebx + 8], eax
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push str.LogFile
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
lea ecx, [ebp - 0x30]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 4
inc bl
call fcn.0041706c
test bl, bl
je 0x416e9c
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.0041734a
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x1c], eax
call fcn.0041734a
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x416e9c
mov ecx, ebx
call fcn.0041734a
push edi
lea ecx, [ebp - 0x58]
mov ebx, eax
call fcn.0041734a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.0041734a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0040be02
cmp dword [ebp - 0x14], edi
je 0x416eca
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], edi
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0040be02
mov eax, dword [esi + 0x28]
and byte [ebp - 4], 0
cmp eax, edi
je 0x416ee6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00401102
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x419132
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4654ab
call fcn.0045c1cc
sub esp, 0xf0
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x8c]
push eax
mov ecx, edi
call fcn.004195ba
mov eax, dword [eax + 0xc]
mov esi, dword [ebp + 0x14]
and dword [ebp - 4], 0
push 1
cmp esi, eax
pop ebx
ja 0x41917f
lea eax, [ebp - 0xb4]
mov ecx, edi
push eax
call fcn.004195ba
mov esi, dword [eax + 0xc]
mov dword [ebp - 0x10], ebx
test byte [ebp - 0x10], bl
je 0x41918f
lea ecx, [ebp - 0xb4]
call fcn.0040be02
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.0040be02
inc esi
push ebx
lea eax, [ebp - 0x10]
push esi
lea ecx, [edi + 4]
push eax
mov dword [ebp - 0x10], 0x5c
call fcn.004193e2
cmp eax, 0xffffffff
je 0x41924d
mov edi, 0x46cb98
mov esi, 0x46cb90
lea ecx, [ebp + 0x17]
inc eax
push 0
push ecx
push eax
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
call fcn.00416f00
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.0041734a
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x419212
test al, 0x10
je 0x419212
cmp dword [ebp + 0x10], 0
je 0x41921e
push dword [ebp - 0x10]
call dword [ebp + 0x10]
pop ecx
jmp 0x41921e
push 0
push dword [ebp - 0x10]
call dword [ebp + 0xc]
test eax, eax
je 0x41925c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0040be02
push ebx
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x5c
push eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 4]
call fcn.004193e2
cmp eax, 0xffffffff
jne 0x4191c7
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
lea eax, [ebp + 0xb]
push 0
push eax
lea ecx, [ebp - 0x64]
push dword [ebp - 0x10]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.004170f0
lea eax, [ebp - 0x64]
push ebx
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 2
call fcn.00419298
lea eax, [ebp - 0xfc]
push 0x473fc8
push eax
call fcn.0045c315
Function at 0x427f15
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
call fcn.0041734a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x427f5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x427f5b
cmp eax, 3
je 0x427f5b
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.00427f7c
lea eax, [ebp - 0x48]
push 0x473fc8
push eax
call fcn.0045c315
xor al, al
leave
ret
test byte [ebp + 0xc], 4
je 0x427f69
test al, 0x10
je 0x427f73
test byte [ebp + 0xc], 8
je 0x427f78
test al, 0x10
je 0x427f78
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x429616
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x42965b
mov eax, dword [ebp + 8]
test eax, eax
je 0x429630
and dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4296b7
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.004296bf
lea eax, [ebp - 0x4c]
push 0x4776f8
push eax
call fcn.0045c315
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4296b7
cmp dword [ebp + 8], 0
jne 0x429690
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00419298
lea eax, [ebp - 0x48]
push 0x473fc8
push eax
call fcn.0045c315
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4296b7
push 1
add esi, 0xc
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00427f7c
lea eax, [ebp - 0x48]
push 0x473fc8
push eax
call fcn.0045c315
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x429bd5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x429be8
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x429c1d
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00419298
lea eax, [ebp - 0x48]
push 0x473fc8
push eax
call fcn.0045c315
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x42aad7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov ecx, dword [ebp + 0xc]
call fcn.0041734a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42ab62
test al, 1
je 0x42ab62
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], 7
call fcn.004173c1
mov ecx, dword [ebp + 8]
mov eax, dword [eax]
lea esi, [ebp - 4]
mov edx, dword [ecx]
push esi
push eax
push ecx
call dword [edx + 0x20]
cmp eax, 0x80042000
pop esi
je 0x42ab4b
cmp eax, 0x80042001
je 0x42ab4b
cmp dword [ebp - 4], 6
je 0x42ab47
push 1
push 5
push dword [ebp + 0xc]
lea ecx, [ebp - 0x5c]
call fcn.0042ab66
lea eax, [ebp - 0x5c]
push 0x477b10
push eax
call fcn.0045c315
mov al, 1
leave
ret
push eax
lea ecx, [ebp - 0x14]
call fcn.0042a79d
lea eax, [ebp - 0x14]
push 0x476310
push eax
call fcn.0045c315
xor al, al
leave
ret
Function at 0x42caf7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x467938
call fcn.0045c1cc
sub esp, 0x104
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [ebp - 0x48]
xor ebx, ebx
neg edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x44]
sbb edi, edi
mov dword [ebp - 0x14], ebx
and edi, eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call fcn.0042ccaf
push 4
lea ecx, [ebp - 0xc0]
pop esi
mov dword [ebp - 4], ebx
push esi
push ebx
push ecx
mov ecx, eax
call fcn.00419667
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 4], 1
call fcn.0042ca07
push dword [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0042d05f
add esp, 0xc
push dword [0x46c958]
mov ecx, eax
add eax, esi
mov byte [ebp - 4], 3
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
mov eax, dword [ebp - 0x18]
push ecx
lea ecx, [eax + 4]
call fcn.004091c0
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 2
call fcn.0040be02
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.0040be02
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], bl
call fcn.0040be02
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.0040be02
lea eax, [ebp - 0x19]
push ebx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0x46cb98
mov dword [ebp - 0x28], 0x46cb90
call fcn.00408d96
lea eax, [ebp - 0x54]
push 0x104
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], esi
call fcn.00417954
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 5
call fcn.0041734a
movzx ecx, word [ebp - 0x10]
push ecx
push str._hx.rra
push eax
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call fcn.0041706c
push dword [0x46c958]
mov eax, dword [ebp - 0x18]
push ebx
push edi
lea ecx, [eax + 4]
call fcn.0042a637
mov ecx, dword [ebp - 0x18]
call fcn.0041734a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42cc92
inc dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040be02
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xffff
jl 0x42cb27
push 0x50
lea ecx, [ebp - 0x70]
call fcn.00423ea4
lea eax, [ebp - 0x70]
push 0x478220
push eax
call fcn.0045c315
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040be02
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4