joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41afd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0x3c], 0
je 0x41afe0
xor al, al
jmp 0x41b042
mov eax, dword [ebp + 8]
mov dword [esi + 0x80], eax
mov al, byte [ebp + 0xc]
mov byte [esi + 0x84], al
mov al, byte [ebp + 0x10]
mov byte [esi + 0x85], al
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x88], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x8c], eax
mov eax, dword [ebp + 0x1c]
push 0x477ae4
lea ecx, [esi + 0x64]
mov byte [esi + 0x3c], 1
mov dword [esi + 0x90], eax
call fcn.00401575
lea eax, [ebp + 0xc]
push eax
push 0
push esi
push 0x41afc4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x40], eax
mov al, 1
pop esi
pop ebp
ret 0x18

Function at 0x41b047
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, ecx
xor ebx, ebx
push edi
push str.SENSAPI.DLL
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 8], ebx
call ebp
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
je 0x41b081
push str.IsNetworkAlive
push eax
call edi
mov dword [esi + 8], eax
push str.WININET.DLL
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call ebp
cmp eax, ebx
mov dword [esi + 4], eax
je 0x41b0cd
push str.InternetGetConnectedStateEx
push eax
call edi
push 0x477b18
push dword [esi + 4]
mov dword [esi + 0xc], eax
call edi
push 0x477b04
push dword [esi + 4]
mov dword [esi + 0x10], eax
call edi
push str.InternetGetConnectedState
push dword [esi + 4]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x41b0d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareWildTangent
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41b102
push 2
pop eax
leave
ret
push ebx
mov ebx, dword [ebp - 4]
push esi
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.ConnectionStatusOverride
push ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 8], esi
jne 0x41b13b
test eax, eax
jne 0x41b13b
mov esi, dword [ebp - 0x10]
cmp esi, 3
jb 0x41b13e
push 2
pop esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b250
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
push ebx
lea eax, [ebp - 0x290]
push eax
push 0x101
xor bl, bl
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x41b275
xor al, al
jmp 0x41b2dc
push 0x100
lea eax, [ebp - 0x100]
push eax
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x41b2d5
push esi
lea eax, [ebp - 0x100]
push eax
call sub.WS2_32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x41b2d4
cmp word [esi + 0xa], 4
jne 0x41b2d4
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x41b2d4
push edi
xor edi, edi
push dword [eax]
call sub.WS2_32.dll_ntohl
test eax, eax
je 0x41b2c2
cmp eax, 0x7f000001
jne 0x41b2d1
mov eax, dword [esi + 0xc]
add edi, 4
mov eax, dword [edi + eax]
test eax, eax
jne 0x41b2b0
jmp 0x41b2d3
mov bl, 1
pop edi
pop esi
call sub.WS2_32.dll_WSACleanup
mov al, bl
pop ebx
leave
ret

Function at 0x41f81f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, edx
mov edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41f87d
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push str.ProgramFilesDir
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41f87d
cmp esi, ebx
je 0x41f876
mov byte [edi + esi - 1], bl
mov dword [ebp - 8], 1
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x41f88e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x41f9cd
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, 0x460d3c
call fcn.00436808
sub esp, 0x124
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x10], 0xf
call fcn.00401160
push 1
push 0x26
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x41fa39
mov edx, 0x104
lea ecx, [ebp - 0x130]
call fcn.0041f81f
test eax, eax
lea eax, [ebp - 0x130]
jne 0x41fa3f
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x41fa42
lea eax, [ebp - 0x130]
push eax
jmp 0x41fa47
push 0x476c34
lea ecx, [ebp - 0x28]
call fcn.00401575
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.00404ec1
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.0040117c
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x41fc4f
Capabilities:
Create directory

Disassembly:
mov eax, 0x460d3c
call fcn.00436808
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41fc6f
call fcn.0041fbec
test al, al
je 0x41fc73
mov al, 1
jmp 0x41fcc5
push ebx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.004015d2
mov eax, dword [ebp - 0x14]
and dword [ebp - 4], 0
cmp eax, dword [esi + 0x14]
jne 0x41fc95
cmp dword [esi + 0x18], 0x10
jb 0x41fca5
mov esi, dword [esi + 4]
jmp 0x41fca8
lea ecx, [ebp - 0x28]
call fcn.0041fc4f
test al, al
jne 0x41fc8a
xor bl, bl
jmp 0x41fcb6
add esi, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne bl
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040117c
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4203b9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x3b4]
mov edi, 0xa8
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x3b4]
call fcn.0041fd62
mov ecx, dword [esi + 0x3b4]
xor eax, eax
mov dword [ecx + 0xa4], eax
mov ecx, dword [esi + 0x3b4]
mov byte [ecx + 0xfd], al
cmp dword [esi + 0x3a0], eax
jne 0x420431
lea ecx, [ebp - 4]
push ecx
push eax
push dword [esi + 0x3b4]
mov dword [esi + 0x3ac], 1
push 0x420284
push 0xfa0
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3a0], eax
mov eax, dword [esi + 0x3b4]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
leave
ret

Function at 0x421905
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x3b4]
mov edi, 0xa8
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x3a0]
test eax, eax
jne 0x4218c3
mov eax, dword [esi + 0x3b4]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4218ef
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x3b4]
and dword [esi + 0x3a0], 0
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0x3b4]
mov ecx, esi
call fcn.00421704
pop edi
pop esi
ret
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x3b4]
mov edi, 0xa8
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x3b4]
add eax, edi
cmp dword [esi + 0x3a0], 0
push eax
jne 0x42193f
mov byte [esi + 0x390], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
ret
mov dword [esi + 0x3ac], 4
mov dword [esi + 0x3b0], 2
mov byte [esi + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x7d0
mov ecx, esi
call fcn.0041ff80
lea eax, [esi + 0x390]
cmp byte [eax], 0
jne 0x42193c
pop edi
mov ecx, esi
mov byte [eax], 1
pop esi
jmp 0x421890
Function at 0x429a87
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x18], 0x10
jb 0x429a92
mov ecx, dword [ecx + 4]
jmp 0x429a95
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x429aa8
test al, 0x10
je 0x429aa8
mov al, 1
ret
xor al, al
ret
Function at 0x42a0a4
Capabilities:
Create directory

Disassembly:
mov eax, 0x461cba
call fcn.00436808
sub esp, 0x3a8
push ebx
push esi
push edi
mov esi, edx
xor ebx, ebx
mov edi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
call fcn.00429b90
cmp dword [esi + 0x18], 0x10
jb 0x42a0d6
mov eax, dword [esi + 4]
jmp 0x42a0d9
lea eax, [esi + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42a2fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 3
pop edi
sub eax, edi
je 0x42a296
dec eax
dec eax
mov esi, str.unknown
push esi
je 0x42a23a
sub eax, 0x52
je 0x42a1d8
sub eax, 0x60
je 0x42a177
lea ecx, [ebp - 0x130]
call fcn.004015b0
push esi
lea ecx, [ebp - 0x168]
mov dword [ebp - 4], ebx
call fcn.004015b0
push esi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.004015b0
lea eax, [ebp - 0x130]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 2
call fcn.0042614b
push 0x487454
lea eax, [ebp - 0x348]
push eax
jmp 0x42a31b
lea ecx, [ebp - 0x114]
call fcn.004015b0
push esi
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], edi
call fcn.004015b0
push str.Directory_already_exists
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 4
call fcn.004015b0
lea eax, [ebp - 0x114]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 5
call fcn.00426222
push 0x487f3c
lea eax, [ebp - 0x270]
jmp 0x42a171
lea ecx, [ebp - 0xf8]
call fcn.004015b0
push esi
lea ecx, [ebp - 0x184]
mov dword [ebp - 4], 0xc
call fcn.004015b0
push str.Invalid_argument
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.004015b0
lea eax, [ebp - 0xf8]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 0xe
call fcn.004261f7
push 0x487798
lea eax, [ebp - 0x2dc]
jmp 0x42a171
lea ecx, [ebp - 0x50]
call fcn.004015b0
push esi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 9
call fcn.004015b0
push str.Unauthorized_Access
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xa
call fcn.004015b0
lea eax, [ebp - 0x50]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x3b4]
mov byte [ebp - 4], 0xb
call fcn.004261c7
push 0x487e58
lea eax, [ebp - 0x3b4]
jmp 0x42a171
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push esi
mov dword [ebp - 4], 6
call fcn.00404ec1
lea edi, [ebp - 0xdc]
call fcn.0042a00a
mov edx, eax
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 7
call fcn.0042a0a4
lea ecx, [ebp - 0x1c4]
call fcn.0042954d
push ebx
push 1
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.0040117c
mov edx, esi
lea ecx, [ebp - 0x204]
call fcn.0042a0a4
lea ecx, [ebp - 0x204]
call fcn.0042954d
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
push esi
call fcn.00429845
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
call fcn.00436f3d
int3
Function at 0x42da8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x42dadf
call fcn.00458b5a
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x42dadf
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x42dad5
xor eax, eax
jmp 0x42dbf8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x42db0f
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x42db0f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x42dbf5
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x42db3c
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0042c85a
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x42dbf5
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x42db85
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x42db85
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x42db7f
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0042c85a
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x42dbe5
and dword [ebp + 0xc], 0
jmp 0x42dbe5
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x42dbe5
push 0xc
call fcn.0045354b
mov esi, eax
test esi, esi
pop ecx
je 0x42dbc7
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x42dbc9
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x42dbe0
push dword [ebp - 8]
call fcn.0044f00e
jmp 0x42dbe5
call fcn.0044efe5
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x42db4a
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4372c2
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00437500
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43735d
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x494490]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x43735d
cmp eax, 1
je 0x43737e
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43735d
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x43732a
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x437359
xor eax, eax
inc eax
jmp 0x43739d
cmp edi, eax
jae 0x437361
xor eax, eax
jmp 0x43739d
cmp eax, esi
jae 0x437368
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x494490]
jmp 0x437381
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x437cdc
Capabilities:
Terminate process

Disassembly:
push 8
push 0x47bef0
call fcn.004373a8
push 8
call fcn.0043d72b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4944d0], esi
jne 0x437d10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4944cc], esi
mov al, byte [ebp + 0x10]
mov byte [0x4944c8], al
cmp dword [ebp + 0xc], edi
jne 0x437d5a
cmp dword [0x495f2c], edi
je 0x437d4a
mov eax, dword [0x495f28]
sub eax, 4
mov dword [0x495f28], eax
cmp eax, dword [0x495f2c]
jb 0x437d4a
mov eax, dword [eax]
cmp eax, edi
je 0x437d2b
call eax
jmp 0x437d2b
push 0x48d134
mov eax, 0x48d12c
call fcn.00437c5a
pop ecx
push 0x48d140
mov eax, 0x48d138
call fcn.00437c5a
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.00437d8b
cmp dword [ebp + 0x10], edi
jne 0x437d99
mov dword [0x4944d0], esi
push dword [ebp + 8]
call fcn.00437c18
xor edi, edi
xor esi, esi
inc esi
call fcn.004373e3
ret
Function at 0x438c2e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x438e02
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x494ba0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x438e02
test cl, 0x48
je 0x438c99
cmp byte [eax + 5], 0xa
je 0x438c99
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x438ceb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x438cd3
call fcn.0043b5ad
mov dword [eax], 9
call fcn.0043b5b6
mov dword [eax], esi
jmp 0x438ce3
cmp eax, 0x6d
je 0x438e02
push eax
call fcn.0043b5bf
pop ecx
or eax, 0xffffffff
jmp 0x438e04
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x438dfd
test eax, eax
je 0x438d12
cmp byte [ebx], 0xa
jne 0x438d12
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x438d1b
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x438df7
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x438de7
cmp al, 0xd
je 0x438d4d
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x438dd9
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x438d67
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x438d62
add dword [ebp + 0x10], 2
jmp 0x438dbb
mov dword [ebp + 0x10], eax
jmp 0x438dd5
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x438d8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x438dd5
cmp dword [ebp - 0xc], 0
je 0x438dd5
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x438db0
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x438dbb
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x438dd8
cmp ebx, dword [ebp + 0xc]
jne 0x438dc0
cmp byte [ebp - 1], 0xa
jne 0x438dc0
mov byte [ebx], 0xa
jmp 0x438dd8
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043924b
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x438dd9
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x438d31
jmp 0x438df7
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x438df7
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x438e04
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x438eb4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x48ed30]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x438ee5
xor eax, eax
jmp 0x43906e
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x494ba0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x438f21
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00440c64
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x438ffc
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x43903a
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x438f85
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x438f76
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x438f56
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x438fc5
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x438fce
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x438f47
jmp 0x438fd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x439069
cmp dword [ebp - 0x6c], edi
je 0x43903a
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x43902f
call fcn.0043b5ad
mov dword [eax], 9
call fcn.0043b5b6
mov dword [eax], esi
jmp 0x439064
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x439024
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x438fd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x438fd0
push dword [ebp - 0x6c]
call fcn.0043b5bf
pop ecx
jmp 0x439064
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x439052
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x439052
xor eax, eax
jmp 0x43906c
call fcn.0043b5ad
mov dword [eax], 0x1c
call fcn.0043b5b6
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x43906c
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00436708
add ebp, 0x3a0
leave
ret