joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435e47
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4a946c]
xor eax, ebp
mov dword [ebp + 0x88], eax
push esi
push edi
mov edi, dword [ebp + 0x98]
cmp dword [edi - 0xc], 0xfe
mov esi, ecx
mov dword [ebp - 0x80], 1
jle 0x435ead
mov ecx, dword [ebp + 0x94]
add ecx, 0xfffffff0
call fcn.004010af
lea ecx, [edi - 0x10]
call fcn.004010af
xor eax, eax
mov ecx, dword [ebp + 0x88]
pop edi
xor ecx, ebp
pop esi
call fcn.004550ad
add ebp, 0x8c
leave
ret 8
push ebx
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.00457460
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
lea ecx, [ebp - 0x7c]
push ecx
push 0x20006
xor ebx, ebx
push ebx
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x435ef2
mov ecx, dword [ebp + 0x94]
add ecx, 0xfffffff0
call fcn.004010af
lea ecx, [edi - 0x10]
call fcn.004010af
mov eax, ebx
pop ebx
jmp 0x435e94
lea eax, [ebp - 0x78]
push eax
call fcn.00454b40
pop ecx
inc eax
push eax
lea eax, [ebp - 0x78]
push eax
push 1
push ebx
push dword [ebp + 0x94]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x435f1b
mov dword [ebp - 0x80], ebx
cmp dword [esi + 8], ebx
jne 0x435f29
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x80]
jmp 0x435ed7

Function at 0x435f37
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 4]
push ecx
push 0x20006
xor edi, edi
push edi
push eax
push dword [esi + 4]
xor ebx, ebx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x435f74
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010af
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x435f8f
xor ebx, ebx
cmp dword [esi + 8], edi
jne 0x435f9d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, ebx
jmp 0x435f60
Function at 0x43609d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xfa04]
mov eax, 0xfa04
call fcn.004593a0
push 0xffffffffffffffff
push 0x4735c5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4a946c]
xor eax, ebp
mov dword [ebp + 0xfa00], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov ecx, dword [ebp + 0xfa14]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x18]
push ecx
xor edi, edi
inc edi
push edi
xor ebx, ebx
push ebx
push dword [ebp + 0xfa0c]
mov dword [ebp - 4], edi
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x436208
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [ebp + 0xfa10]
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x4361ff
cmp dword [ebp - 0x30], 7
jne 0x4361ff
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0xfa10]
mov dword [ebp - 0x20], 0xfa00
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x4361ff
cmp dword [ebp - 0x20], edi
jbe 0x4361ff
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push dword [ebp + 0xfa10]
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x4361ff
mov dword [ebp - 0x1c], edi
lea eax, [ebp]
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp - 0x10]
lea esi, [ebp + esi]
cmp byte [esi], bl
jne 0x4361ec
call fcn.00442144
push eax
lea ecx, [ebp - 0x14]
call fcn.0040132d
mov edi, dword [ebp - 0x24]
mov byte [ebp - 4], 2
jmp 0x4361bf
mov al, byte [ebp + edi]
mov byte [ebp - 0x28], al
push dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
call fcn.0041a696
inc edi
cmp edi, dword [ebp - 0x10]
jb 0x4361ac
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push eax
call fcn.00450427
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add eax, esi
add ecx, 0xfffffff0
cmp byte [esi + 1], bl
mov dword [ebp - 0x24], eax
je 0x4361fa
mov byte [ebp - 4], 1
call fcn.004010af
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0xfa00
jb 0x43618a
jmp 0x4361ff
call fcn.004010af
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xfa0c]
add ecx, 0xfffffff0
call fcn.004010af
mov ecx, dword [ebp + 0xfa10]
add ecx, 0xfffffff0
call fcn.004010af
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xfa00]
xor ecx, ebp
call fcn.004550ad
add ebp, 0xfa04
leave
ret 0xc
Function at 0x436249
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x114
mov eax, 0x4735fd
call fcn.00455125
mov ebx, dword [ebp + 8]
and dword [ebp - 0x11c], 0
mov edi, ecx
push ecx
xor esi, esi
inc esi
lea eax, [ebp + 0xc]
mov dword [ebp - 0x114], esp
mov ecx, esp
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x11c], 0xff
mov dword [ebp - 0x118], esi
call fcn.00401464
mov ecx, edi
call fcn.00435ccb
cmp eax, esi
mov dword [ebp - 0x120], eax
je 0x4362be
cmp eax, 2
je 0x4362be
lea eax, [ebp + 0x10]
push eax
mov ecx, ebx
call fcn.00401464
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
jmp 0x436344
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x114]
push ecx
push 0x20019
push 0
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [edi], eax
jne 0x4362a8
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x120]
push eax
push 0
push esi
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [edi], eax
je 0x436313
and dword [ebp - 0x118], 0
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x118], 0
mov ecx, ebx
jne 0x436335
lea eax, [ebp + 0x10]
push eax
call fcn.00401464
jmp 0x436341
lea eax, [ebp - 0x110]
push eax
call fcn.00401c93
lea ecx, [esi - 0x10]
call fcn.004010af
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004010af
mov eax, ebx
call fcn.0045516f
ret 0xc

Function at 0x43635e
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x47363d
call fcn.004550bc
xor esi, esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push 0x20006
push esi
push 0x477979
push esi
push dword [ebp + 8]
mov dword [ebp - 4], 1
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov ebx, dword [ebp + 0xc]
jne 0x436407
call fcn.00442144
push eax
lea ecx, [ebp - 0x10]
call fcn.0040132d
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 4]
mov byte [ebp - 4], 2
mov dword [ebp + 0x10], eax
jmp 0x4363d5
add eax, 8
push eax
call fcn.00402021
push esi
lea ecx, [ebp - 0x10]
call fcn.0041a696
lea eax, [ebp + 0x10]
push eax
mov ecx, edi
call fcn.00435a4b
mov eax, dword [ebp + 0x10]
cmp eax, esi
lea ecx, [ebp - 0x10]
jne 0x4363b5
push esi
call fcn.0041a696
mov edi, dword [ebp - 0x10]
push dword [edi - 0xc]
push edi
push 7
push esi
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [edi - 0x10]
call fcn.004010af
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010af
lea ecx, [ebx - 0x10]
call fcn.004010af
call fcn.0045515b
ret 0xc

Function at 0x438212
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x438b83
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1e8]
sub esp, 0x268
mov eax, dword [0x4a946c]
xor eax, ebp
mov dword [ebp + 0x1e4], eax
mov eax, dword [ebp + 0x1f4]
push ebx
mov ebx, dword [ebp + 0x1f0]
push esi
push edi
mov edi, dword [ebp + 0x1f8]
xor esi, esi
test edi, edi
mov dword [ebp - 0x78], eax
je 0x438beb
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x438beb
push edi
call fcn.004451dd
mov esi, eax
push 0x64
xor edi, edi
push edi
mov ecx, esi
call fcn.0040b498
push edi
push edi
push 0x402
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x47b3b4
push ebx
call fcn.004589a9
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x438c05
xor al, al
jmp 0x438cbf
push 2
push 0
push ebx
call fcn.00458860
push ebx
call fcn.00459b69
push ebx
mov dword [ebp - 0x7c], eax
call fcn.00459d1c
lea eax, [ebp - 0x74]
push eax
call fcn.00438212
push ebx
mov edi, 0x200
push edi
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004587be
add esp, 0x28
jmp 0x438c8e
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00438a2f
add esp, 0xc
test esi, esi
je 0x438c7e
push ebx
call fcn.00459b69
mov dword [ebp - 0x80], eax
fild dword [ebp - 0x80]
pop ecx
fild dword [ebp - 0x7c]
fadd qword [0x48fdb0]
fdivp st(1)
fmul qword [0x483a70]
call fcn.00459df0
push eax
mov ecx, esi
call fcn.0040b4bb
push ebx
push edi
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004587be
add esp, 0x10
test eax, eax
jne 0x438c3e
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call fcn.00438abf
push ebx
call fcn.004584a6
add esp, 0xc
test esi, esi
je 0x438cbd
push 0
push 0x64
push 0x402
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov al, 1
mov ecx, dword [ebp + 0x1e4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004550ad
add ebp, 0x1e8
leave
ret
Function at 0x438e1d
Capabilities:
Move file

Disassembly:
push 0x14
mov eax, 0x473b51
call fcn.004550bc
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00401c93
and dword [ebp - 4], 0
push 0x477979
lea ecx, [ebp - 0x14]
call fcn.00401c93
push 3
mov byte [ebp - 4], 1
pop edi
mov esi, 0x49090c
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00401464
call fcn.00438d0a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00407549
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push esi
push eax
mov byte [ebp - 4], 2
call fcn.00407549
add esp, 0x20
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00438cd7
push eax
lea ecx, [ebp - 0x1c]
call fcn.00438cd7
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x438eb8
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040170c
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004010af
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.004010af
dec edi
jne 0x438e51
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.00457460
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010af
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010af
call fcn.0045515b
ret
Function at 0x441a7d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x474a9e
call fcn.004550ef
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0044b9a6
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x441ac8
call fcn.0044b9a6
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x441ad9
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x441ae6
or eax, 0xffffffff
jmp 0x441c42
mov ecx, esi
call fcn.004415cf
mov dword [ebp - 0x14], eax
call fcn.00445285
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x441b64
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x441b64
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x441b64
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00441480
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x441b64
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x441b64
mov ecx, ebx
call fcn.0044878f
test eax, eax
je 0x441b64
push 0
mov ecx, ebx
call fcn.004487aa
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00446c79
push dword [ebp - 0x14]
call fcn.004451dd
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00441885
xor edi, edi
cmp eax, edi
je 0x441bc1
test byte [esi + 0x3c], 0x10
je 0x441bab
push 4
pop edi
mov ecx, esi
call fcn.0044864c
test ax, 0x100
je 0x441ba1
push 5
pop edi
push edi
mov ecx, esi
call fcn.00444da5
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x441bc1
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00448811
or dword [ebp - 4], 0xffffffff
jmp 0x441bec
cmp dword [ebp - 0x28], edi
je 0x441bfa
push 1
mov ecx, ebx
call fcn.004487aa
cmp dword [ebp - 0x2c], edi
je 0x441c0a
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x441c23
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x441c23
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00441609
cmp dword [esi + 0x58], edi
je 0x441c3f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0045515b
ret
Function at 0x44623c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x446275
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0043957c
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00406a50
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x447ed4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x447f17
call fcn.0044b9a6
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x447f17
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x447f32
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00447a8b
test ebx, ebx
mov esi, eax
je 0x447f30
test edi, edi
je 0x447f30
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x44df49
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4a946c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x44df89
push 0x493664
push 4
push eax
call fcn.004571f6
push eax
call fcn.00402200
add esp, 0x10
jmp 0x44df9b
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x44e009
push edi
call fcn.0045aef0
mov edi, dword [eax]
call fcn.0045aef0
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00457371
add esp, 0x18
mov ebx, eax
call fcn.0045aef0
cmp dword [eax], 0
je 0x44dfe9
call fcn.0045aef0
push dword [eax]
call fcn.00441df0
pop ecx
jmp 0x44dff0
call fcn.0045aef0
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x44e009
cmp ebx, esi
jae 0x44e009
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x44e00b
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004550ad
leave
ret
Function at 0x450767
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jne 0x450797
push dword [ebp + 8]
call edi
push eax
call fcn.0044d0e4
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x4507c2
test byte [ebp - 4], 1
je 0x4507c2
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4507c2
push dword [ebp + 8]
call edi
push eax
call fcn.0044d0e4
lea eax, [ebx + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x45087c
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.004506cc
pop ecx
lea eax, [ebx + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x4507f8
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.004506cc
pop ecx
lea eax, [ebp - 0x10]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebx]
or eax, dword [ebx + 4]
je 0x45080e
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.004506cc
pop ecx
pop ecx
lea esi, [ebp - 0x18]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45083b
push dword [ebp + 8]
call edi
push eax
call fcn.0044d0e4
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x450867
call edi
push ebx
mov dword [ebp - 8], eax
call esi
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0044d0e4
push ebx
call esi
test eax, eax
jne 0x450879
push dword [ebp + 8]
call edi
push eax
call fcn.0044d0e4
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x4508a4
test byte [ebp - 4], 1
jne 0x4508a4
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4508a4
push dword [ebp + 8]
call edi
push eax
call fcn.0044d0e4
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x45269d
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 0x4526cb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4526e9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00452607
jmp 0x4526e9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4526e9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00452607
test edi, edi
mov eax, edi
jne 0x4526d3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4bbb88]
test ecx, ecx
je 0x4527ac
jmp 0x45269c
ret 8

Function at 0x4550ad
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a946c]
jne 0x4550b7
repz ret
jmp fcn.0045e03c
Function at 0x4567fe
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x45682b
call fcn.0045af03
mov dword [eax], esi
call fcn.0045aef0
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0045cec5
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x456807
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45685a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045af16
pop ecx
call fcn.0045aef0
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x456881
test al, 1
je 0x456881
test byte [esp + 0xc], 2
je 0x456881
call fcn.0045af03
mov dword [eax], 5
call fcn.0045aef0
mov dword [eax], 0xd
jmp 0x456851
xor eax, eax
pop esi
ret
Function at 0x458522
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x45855f
cmp dword [ebp + 0x14], edi
je 0x45855f
cmp ecx, edi
jne 0x458566
call fcn.0045aef0
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0045cec5
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x45857a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x45859b
cmp ebx, 0xffffffff
je 0x45858a
push ebx
push edi
push ecx
call fcn.00457260
add esp, 0xc
cmp esi, edi
je 0x458547
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x458547
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4585b7
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4585be
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4586af
test word [esi + 0xc], 0x10c
je 0x458612
mov eax, dword [esi + 4]
test eax, eax
je 0x458612
jl 0x458710
cmp ebx, eax
mov edi, ebx
jb 0x4585e3
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4586b7
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00454bcb
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4586a7
cmp ebx, dword [ebp - 0xc]
jb 0x45867f
cmp dword [ebp - 0xc], 0
je 0x45863c
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x458631
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x458638
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x458647
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x458647
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4586e3
push eax
push dword [ebp - 8]
push esi
call fcn.004614b9
pop ecx
push eax
call fcn.00461d94
add esp, 0xc
test eax, eax
je 0x458722
cmp eax, 0xffffffff
je 0x458710
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4586a7
push esi
call fcn.004616b3
cmp eax, 0xffffffff
pop ecx
je 0x458714
cmp dword [ebp - 4], 0
je 0x4586e3
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4585c6
mov eax, dword [ebp + 0x14]
jmp 0x458561
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4586ce
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00457260
add esp, 0xc
call fcn.0045aef0
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x458557
cmp dword [ebp + 0xc], 0xffffffff
je 0x4586f9
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00457260
add esp, 0xc
call fcn.0045aef0
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x458557
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x458561
or dword [esi + 0xc], 0x10
jmp 0x458714