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

Disassembly:
sub esp, 8
cmp dword [0x5b2904], 0
push edi
mov edi, ecx
jne 0x403ffd
cmp dword [0x5b2908], 0
mov eax, 0xf003f
je 0x404002
mov eax, 0xf013f
mov edx, dword [str.SoftwareJeticoBestCrypt_Volume_Encryption]
lea ecx, [esp + 4]
push ecx
push eax
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404029
xor eax, eax
pop edi
add esp, 8
ret 4
mov edx, dword [str.WarnVersion2Volumes]
push esi
mov esi, dword [esp + 0x14]
xor eax, eax
push 4
test esi, esi
setne al
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40406f
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop edi
add esp, 8
ret 4
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi + 0xb4], esi
mov eax, 1
pop esi
mov dword [edi + 0xb8], eax
pop edi
add esp, 8
ret 4

Function at 0x4040a3
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
cmp dword [esi + 0xb8], 0
push edi
mov edi, 1
je 0x4040c1
mov eax, dword [esi + 0xb4]
pop edi
pop esi
add esp, 0x10
ret
cmp dword [0x5b2904], 0
jne 0x4040d8
cmp dword [0x5b2908], 0
mov eax, 0x20019
je 0x4040dd
mov eax, 0x20119
mov edx, dword [str.SoftwareJeticoBestCrypt_Volume_Encryption]
lea ecx, [esp + 8]
push ecx
push eax
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404141
mov eax, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [str.WarnVersion2Volumes]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404136
cmp dword [esp + 0x14], edi
je 0x404136
xor edi, edi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0xb4], edi
mov eax, edi
pop edi
mov dword [esi + 0xb8], 1
pop esi
add esp, 0x10
ret
Function at 0x404160
Capabilities:
Set registry value

Disassembly:
sub esp, 8
cmp dword [0x5b2904], 0
push edi
mov edi, ecx
jne 0x40417d
cmp dword [0x5b2908], 0
mov eax, 0xf003f
je 0x404182
mov eax, 0xf013f
mov edx, dword [str.SoftwareJeticoBestCrypt_Volume_Encryption]
lea ecx, [esp + 4]
push ecx
push eax
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4041a9
xor eax, eax
pop edi
add esp, 8
ret 4
mov edx, dword [str.WarnLimitedUser]
push esi
mov esi, dword [esp + 0x14]
xor eax, eax
push 4
test esi, esi
setne al
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4041ef
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop edi
add esp, 8
ret 4
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi + 0xbc], esi
mov eax, 1
pop esi
mov dword [edi + 0xc0], eax
pop edi
add esp, 8
ret 4

Function at 0x404220
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
cmp dword [esi + 0xc0], 0
push edi
mov edi, 1
je 0x404241
mov eax, dword [esi + 0xbc]
pop edi
pop esi
add esp, 0x10
ret
cmp dword [0x5b2904], 0
jne 0x404258
cmp dword [0x5b2908], 0
mov eax, 0x20019
je 0x40425d
mov eax, 0x20119
mov edx, dword [str.SoftwareJeticoBestCrypt_Volume_Encryption]
lea ecx, [esp + 8]
push ecx
push eax
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4042c1
mov eax, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [str.WarnLimitedUser]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4042b6
cmp dword [esp + 0x14], edi
je 0x4042b6
xor edi, edi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0xbc], edi
mov eax, edi
pop edi
mov dword [esi + 0xc0], 1
pop esi
add esp, 0x10
ret
Function at 0x406f30
Capabilities:
Set registry value

Disassembly:
sub esp, 0x8c
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x88], eax
cmp dword [0x5b2904], 0
mov eax, dword [esp + 0x90]
push esi
mov esi, dword [esp + 0x98]
push edi
mov edi, 1
jne 0x406f70
cmp dword [0x5b2908], 0
mov ecx, 0xf003f
je 0x406f75
mov ecx, 0xf013f
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 0xc]
push edx
push 0
push ecx
push 0
push 0x550f86
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407005
push 0x200
push esi
push 3
push eax
mov eax, dword [esp + 0x18]
push 0x5514fc
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x406fe1
push eax
lea ecx, [esp + 0x14]
push str.Could_not_set_value_mbr_in_Registry__error__d.
push ecx
call fcn.00525599
add esp, 0xc
push 0
push 0x550910
lea edx, [esp + 0x18]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor edi, edi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00524d83
add esp, 0x8c
ret
push eax
lea ecx, [esp + 0x14]
push str.Could_not_open_key_bcfnt_in_Registry__error__d.
push ecx
call fcn.00525599
add esp, 0xc
push 0
push 0x550910
lea edx, [esp + 0x18]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x90]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00524d83
add esp, 0x8c
ret

Function at 0x407050
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x210], eax
cmp dword [0x5b2904], 0
mov ecx, dword [esp + 0x218]
push esi
mov esi, 1
jne 0x407085
cmp dword [0x5b2908], 0
mov eax, esi
je 0x40708a
mov eax, 0x101
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 8]
push edx
push 0
push eax
push 0
push 0x550f86
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407102
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0x5514fc
push eax
mov dword [esp + 0x20], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4070df
xor esi, esi
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00524d83
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00524d83
add esp, 0x214
ret
Function at 0x407120
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push edi
xor ebx, ebx
push 0x2000
mov dword [esp + 0xc], ebx
call fcn.00401bb0
mov edi, eax
add esp, 4
mov dword [esp + 0xc], edi
cmp edi, ebx
jne 0x40714a
pop edi
xor eax, eax
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x2c]
push ebp
push esi
push ebx
push ebx
push 3
push ebx
push 7
push closesocket
push eax
lea ebp, [edi + 0x1000]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
je 0x407267
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x407267
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0x200
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x407267
cmp dword [esp + 0x1c], ebx
je 0x407267
mov eax, dword [esp + 0x2c]
push ebx
push edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x40]
push ebx
lea edx, [esp + 0x2c]
push edx
push ebx
push eax
call fcn.00413640
add esp, 0x18
test eax, eax
je 0x407267
cmp ebx, 0x200
jbe 0x407206
lea ecx, [ebx - 0x200]
push ecx
lea edx, [edi + 0x200]
push edx
lea eax, [ebp + 0x200]
push eax
call fcn.005257e0
add esp, 0xc
mov edx, dword [esp + 0x2c]
lea esi, [edi + 0x1b5]
lea edi, [ebp + 0x1b5]
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
push ebp
push ebx
lea ecx, [esp + 0x28]
push ecx
movsw word es:[edi], word [esi]
push ebx
push edx
movsb byte es:[edi], byte [esi]
call fcn.004136f0
add esp, 0x14
test eax, eax
je 0x40725f
push ebp
call fcn.004623d0
mov eax, dword [str.SystemCurrentControlSetServices_bcfnt]
push ebp
push eax
call fcn.00406f30
mov ecx, dword [0x59f1fc]
push ebp
push ecx
call fcn.00406f30
add esp, 0x14
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
push edi
call fcn.00401bc0
add esp, 4
cmp esi, 0xffffffff
je 0x40727c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x18
ret
Function at 0x4073f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x224
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, dword [esp + 0x234]
push ebp
mov ebp, dword [esp + 0x230]
push esi
mov esi, dword [esp + 0x238]
push edi
xor edi, edi
mov edx, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edi
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x407435
mov edi, ebx
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407450
mov eax, dword [0x551520]
push 0
push 0
push 3
push 0
push 7
push closesocket
mov dword [edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x407489
xor eax, eax
jmp 0x4075b0
push 0
push 0
push 2
push 0
push 7
push 0x40000000
push ebx
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x407587
push 0x2400
call fcn.00401bb0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x407587
mov ecx, eax
push ecx
push ebp
push 1
call fcn.00452280
xor eax, eax
add esp, 0xc
push eax
push eax
push eax
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x407587
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
lea edx, [esp + 0x18]
push edx
push 0x200
lea eax, [esp + 0x3c]
push eax
push esi
call ebx
test eax, eax
je 0x40757f
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x14], 0
je 0x40757f
mov ecx, dword [esp + 0x10]
push 0
push ecx
push 0
lea edx, [esp + 0x2c]
push edx
push 0x200
lea eax, [esp + 0x44]
push eax
mov ecx, eax
push ecx
push 1
call fcn.00452740
add esp, 0x20
push 0
lea edx, [esp + 0x1c]
push edx
push 0x200
lea eax, [esp + 0x3c]
push eax
push edi
call ebp
test eax, eax
je 0x407587
cmp dword [esp + 0x18], 0x200
jne 0x407587
inc word [esp + 0x20]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x200
lea edx, [esp + 0x3c]
push edx
push esi
call ebx
test eax, eax
jne 0x407514
mov dword [esp + 0x1c], 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x407594
push esi
call ebx
test edi, edi
je 0x40759b
push edi
call ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4075ac
push eax
call fcn.005251b8
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00524d83
add esp, 0x224
ret
Function at 0x4081a0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x27c
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x278], eax
mov eax, dword [esp + 0x284]
mov ecx, dword [esp + 0x288]
push ebx
xor ebx, ebx
push esi
mov esi, dword [esp + 0x288]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebx
cmp esi, ebx
jne 0x4081fa
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.00524d83
add esp, 0x27c
ret
cmp dword [esi + 0x36c], ebx
jne 0x408226
cmp dword [esi + 0x370], ebx
jne 0x408226
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.00524d83
add esp, 0x27c
ret
push edi
push esi
call fcn.00407e40
push eax
lea edx, [esi + 2]
push edx
lea eax, [esp + 0x88]
push 0x5516e0
push eax
call fcn.00525f70
add esp, 0x14
push ebx
push 0x26
push 3
push ebx
push 7
push 0xc0000000
lea ecx, [esp + 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x408283
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.00524d83
add esp, 0x27c
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x408363
cmp eax, 0x14210
jb 0x408363
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push 0x14010
push edi
call ebp
cmp eax, 0x14010
jne 0x408362
push ebx
lea edx, [esp + 0x14]
push edx
push 0x60
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408362
cmp dword [esp + 0x10], 0x60
jne 0x408362
movzx ecx, byte [esi + 0x2af0]
mov edx, dword [esp + 0x18]
push ecx
push 8
lea ebx, [esi + 0x2af2]
push ebx
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, eax
push ecx
call fcn.004535f0
movzx edx, byte [esi + 0x2af0]
mov eax, dword [esp + 0x34]
push 0xffffffffffffffff
push edx
push 8
push ebx
push eax
lea ecx, [esp + 0x4c]
push ecx
mov edx, ecx
push edx
call fcn.004538f0
add esp, 0x34
push 0
push 0
push 0x14010
push edi
call ebp
cmp eax, 0x14010
jne 0x408362
push 0
lea eax, [esp + 0x14]
push eax
push 0x60
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408362
cmp dword [esp + 0x10], 0x60
jne 0x408362
mov dword [esp + 0x14], 1
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x284]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00524d83
add esp, 0x27c
ret
Function at 0x408390
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x414
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x410], eax
cmp dword [esp + 0x418], 0
push ebx
mov dword [esp + 4], 0
setne bl
call fcn.0044b8f0
mov ecx, eax
test ecx, ecx
je 0x4083cc
cmp dword [ecx + 0x37c], 0
jne 0x4083d3
call fcn.0044b920
mov ecx, eax
test ecx, ecx
je 0x4084fe
cmp dword [ecx + 0x37c], 0
je 0x4084fe
push esi
push ecx
call fcn.00407e40
push eax
add ecx, 2
push ecx
lea eax, [esp + 0x21c]
push 0x5516e0
push eax
call fcn.00525f70
add esp, 0x14
push 0
push 0
push 3
push 0
push 7
push 0xc0000000
lea ecx, [esp + 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408446
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00524d83
add esp, 0x414
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0x1000
push esi
call edi
cmp eax, 0x1000
jne 0x4084d7
push 0
lea edx, [esp + 0x14]
push edx
push 0x200
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4084d7
cmp dword [esp + 0x10], 0x200
jne 0x4084d7
cmp bl, byte [esp + 0x12e]
je 0x4084cf
push 0
push 0
push 0x1000
push esi
mov byte [esp + 0x13e], bl
call edi
cmp eax, 0x1000
jne 0x4084d7
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x200
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4084d7
cmp dword [esp + 0x10], 0x200
jne 0x4084d7
mov dword [esp + 0xc], 1
pop edi
test esi, esi
je 0x4084e3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop esi
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00524d83
add esp, 0x414
ret
mov ecx, dword [esp + 0x414]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00524d83
add esp, 0x414
ret
Function at 0x408520
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x410
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push edi
mov edi, dword [esp + 0x41c]
xor eax, eax
xor ebx, ebx
mov word [edi], ax
call fcn.0044b8f0
mov ecx, eax
test ecx, ecx
je 0x408557
cmp dword [ecx + 0x37c], ebx
jne 0x40855e
call fcn.0044b920
mov ecx, eax
test ecx, ecx
je 0x408643
cmp dword [ecx + 0x37c], ebx
je 0x408643
push esi
push ecx
call fcn.00407e40
push eax
add ecx, 2
push ecx
lea ecx, [esp + 0x21c]
push 0x5516e0
push ecx
call fcn.00525f70
add esp, 0x14
push 0
push 0
push 3
push 0
push 7
push closesocket
lea edx, [esp + 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4085d1
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00524d83
add esp, 0x410
ret
push 0
push 0
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0x1000
jne 0x40861e
push 0
lea eax, [esp + 0x10]
push eax
push 0x200
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40861e
cmp dword [esp + 0xc], 0x200
jne 0x40861e
mov dx, word [esp + 0x12c]
mov word [edi], dx
mov ebx, 1
test esi, esi
je 0x408629
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00524d83
add esp, 0x410
ret
mov ecx, dword [esp + 0x414]
pop edi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00524d83
add esp, 0x410
ret
Function at 0x4087d0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x410
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x40c], eax
mov ecx, dword [esp + 0x414]
push ebp
push edi
mov edi, dword [esp + 0x420]
xor ebp, ebp
xor eax, eax
test edi, edi
je 0x40899d
xor edx, edx
mov word [edi + 6], ax
mov word [edi + 4], dx
mov word [edi + 2], ax
mov word [edi], dx
cmp dword [ecx + 0x388], eax
je 0x4089c4
cmp dword [ecx + 0x37c], eax
je 0x4089c4
push esi
push ecx
call fcn.00407e40
push eax
add ecx, 2
push ecx
lea eax, [esp + 0x21c]
push 0x5516e0
push eax
call fcn.00525f70
add esp, 0x14
push ebp
push ebp
push 3
push ebp
push 7
push closesocket
lea ecx, [esp + 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408885
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00524d83
add esp, 0x410
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x2000
jae 0x4088b9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00524d83
add esp, 0x410
ret
push ebx
push 0
push 0
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0x1000
jne 0x4089b9
push 0
lea edx, [esp + 0x14]
push edx
push 0x200
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4089b9
cmp dword [esp + 0x10], 0x200
jne 0x4089b9
cmp byte [esp + 0xac], 0
je 0x4089b4
push 0
call fcn.00407e80
push eax
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0x220]
push str._s_s
push edx
call fcn.00525599
add esp, 0x14
push 0
push 0
push 3
push 0
push 7
push closesocket
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4089b4
push eax
call ebx
push 0x80
push edi
push 0xffffffffffffffff
lea ecx, [esp + 0xb8]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4089b4
test esi, esi
je 0x408986
push esi
call ebx
xor edx, edx
xor eax, eax
xor ecx, ecx
mov word [edi + 6], dx
mov word [edi + 4], ax
mov word [edi + 2], cx
mov word [edi], dx
pop ebx
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00524d83
add esp, 0x410
ret
mov ebp, 1
test esi, esi
je 0x4089c0
push esi
call ebx
mov eax, ebp
jmp 0x40899b
mov ecx, dword [esp + 0x414]
pop edi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00524d83
add esp, 0x410
ret
Function at 0x409840
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x294
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x290], eax
mov ecx, dword [esp + 0x298]
push esi
push edi
push ecx
mov edi, 1
call fcn.00407e40
push eax
add ecx, 2
push ecx
lea eax, [esp + 0x9c]
push 0x5516e0
push eax
call fcn.00525f70
add esp, 0x14
push 0
push 0
push 3
push 0
push 7
push closesocket
lea ecx, [esp + 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4098ed
push 0
push 0
push 0x1094
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0x1094
jne 0x4098e2
push 0
lea edx, [esp + 0xc]
push edx
push 0x84
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4098e2
cmp byte [esp + 0xc], 1
jne 0x4098e2
xor edi, edi
test esi, esi
je 0x4098ed
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x298]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00524d83
add esp, 0x294
ret

Function at 0x409910
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x298
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x294], eax
mov ecx, dword [esp + 0x29c]
push ebx
mov ebx, dword [esp + 0x2a8]
push esi
push edi
mov edi, dword [esp + 0x2ac]
push ecx
mov dword [esp + 0x14], 0
call fcn.00407e40
push eax
add ecx, 2
push ecx
lea eax, [esp + 0xa4]
push 0x5516e0
push eax
call fcn.00525f70
add esp, 0x14
push 0
push 0
push 3
push 0
push 7
push 0xc0000000
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4099a2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.00524d83
add esp, 0x298
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0x800
push esi
call ebp
cmp eax, 0x800
jne 0x409a7c
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebx
test eax, eax
je 0x409a7c
cmp dword [esp + 0x10], 0x800
jne 0x409a7c
push 0x84
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00526520
mov ecx, dword [edi + 0x734]
mov al, byte [edi + 0x314]
add esp, 0xc
push 0
push 0
mov byte [esp + 0x20], 1
mov dl, byte [ecx]
mov cl, byte [edi + 0x360]
push 0x80
mov byte [esp + 0x25], dl
lea edx, [esp + 0x28]
push edx
push 0xffffffffffffffff
add edi, 2
push edi
push 0
push 0
mov byte [esp + 0x3a], al
mov byte [esp + 0x3b], cl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0x1094
push esi
call ebp
cmp eax, 0x1094
jne 0x409a7c
push 0
lea eax, [esp + 0x14]
push eax
push 0x84
lea ecx, [esp + 0x24]
push ecx
push esi
call ebx
test eax, eax
je 0x409a7c
cmp dword [esp + 0x10], 0x84
jne 0x409a7c
mov dword [esp + 0x14], 1
pop ebp
test esi, esi
je 0x409a88
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2a0]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00524d83
add esp, 0x298
ret