joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4976f3
Capabilities:
Create process on windows

Disassembly:
push 0x48
mov eax, 0x5113ff
call fcn.004d6783
mov dword [ebp - 0x14], edx
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x3c
pop esi
xor ebx, ebx
lea eax, [ebp - 0x54]
push esi
push ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.004d99d0
mov edi, dword [edi]
mov eax, 0x400
mov dword [ebp - 0x54], esi
add esp, 0xc
mov esi, dword [ebp + 0xc]
test esi, esi
lea ecx, [eax + 0x40]
cmovne eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
call fcn.00475430
test al, al
je 0x497744
add edi, 8
mov ecx, dword [ebp - 0x14]
movzx eax, byte [ebp + 0x10]
xor eax, 1
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], eax
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], str.open
cmp dword [ecx - 0xc], ebx
cmovne eax, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ecx]
cmp dword [eax - 0xc], ebx
jne 0x497786
mov edx, dword [ebp - 0x10]
lea ecx, [ebp + 0x18]
call fcn.00473b10
mov dword [ebp - 4], ebx
xor ebx, ebx
inc ebx
jmp 0x497799
push ecx
lea ecx, [ebp + 0x10]
call fcn.00407141
push 2
mov dword [ebp - 4], 1
pop ebx
push eax
lea ecx, [ebp + 0xc]
call fcn.00407141
mov dword [ebp - 4], 3
test bl, 2
je 0x4977b9
lea ecx, [ebp + 0x10]
and ebx, 0xfffffffd
call fcn.0040d133
mov byte [ebp - 4], 4
test bl, 1
je 0x4977ca
lea ecx, [ebp + 0x18]
call fcn.0040d133
mov edi, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00475430
test al, al
je 0x4977dc
add edi, 8
lea eax, [ebp - 0x54]
mov dword [ebp - 0x3c], edi
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4977fd
test esi, esi
je 0x4977f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor ebx, ebx
jmp 0x49782d
test esi, esi
je 0x49781c
cmp dword [ebp - 0x1c], 0
je 0x49782b
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x1c], 0
je 0x49782b
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040d133
mov al, bl
call fcn.004d674c
ret
Function at 0x497bba
Capabilities:
Compare security identifiers

Disassembly:
push 0x20
mov eax, 0x5114c0
call fcn.004d67b7
xor ebx, ebx
mov dword [ebp - 0x24], 0x52aca8
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x497bf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x497caa
mov esi, ebx
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
push ebx
push ebx
push 1
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call ebx
test eax, eax
jne 0x497c46
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x497c93
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
call fcn.00490378
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push esi
push 1
push dword [ebp - 0x20]
call ebx
test eax, eax
je 0x497c93
cmp dword [ebp - 0x1c], 0
je 0x497c93
xor ecx, ecx
mov word [ebp - 0x14], 0x500
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x12
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x497c99
push dword [ebp - 0x2c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x2c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x497c9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
push esi
mov byte [ebp - 4], 0
call fcn.004d62d0
and dword [ebp - 0x28], 0
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0x52aca8
je 0x497cc8
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x20], 0
mov al, bl
call fcn.004d6761
ret

Function at 0x497cd0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x573080]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x497d3f
push ebp
mov ebp, 0x22c
lea eax, [esp + 0x10]
push ebp
push esi
push eax
call fcn.004d99d0
add esp, 0xc
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
pop ebp
jmp 0x497d35
cmp dword [esp + 0x24], ebx
je 0x497d3b
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x497d23
jmp 0x497d3f
mov esi, dword [esp + 0x14]
test edi, edi
je 0x497d4a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x238]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d5b75
add esp, 0x230
ret
Function at 0x49800b
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x511555
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x573080]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], 0x52aca8
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x3ff
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4980ad
cmp eax, 0x400
jae 0x498150
mov byte [ebp + eax], bl
mov ecx, edi
lea eax, [ebp]
push eax
call fcn.00476b70
jmp 0x498075
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x498114
add eax, 0xfffffffe
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00406d8a
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov ebx, dword [edi]
sub ebx, 0x10
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x498107
cmp dword [ebx + 0xc], 0
jl 0x4980fc
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4980fc
call fcn.004070e8
mov ecx, ebx
mov esi, eax
call fcn.0040d635
lea eax, [esi + 0x10]
mov esi, dword [ebp - 0x14]
mov dword [edi], eax
jmp 0x498107
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.0040d89e
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x52aca8
test esi, esi
je 0x49812d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.004d5b75
add ebp, 0x404
leave
ret
call fcn.004d6401
int3
Function at 0x4987c3
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0xac
push 0xffffffffffffffff
push 0x51164b
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, dword [0x573080]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
lea ecx, [ebp - 0x14]
mov dword [ebp + 0x9c], str.http:__www.google.com
mov dword [ebp + 0xa0], str.http:__www.yahoo.com
mov dword [ebp + 0xa4], str.http:__www.example.com
call fcn.0040ce6d
xor ebx, ebx
lea ecx, [ebp - 0x10]
push str.tin9999.tmp
mov dword [ebp - 4], ebx
call fcn.0040d91c
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004748f0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040d133
push esi
push edi
lea ecx, [ebp]
call fcn.004989a2
mov byte [ebp - 4], 2
lea edi, [ebp + 0x9c]
mov dword [ebp + 0x78], ebx
push dword [edi]
lea ecx, [ebp - 0x10]
call fcn.0040d91c
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call fcn.00499093
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
mov esi, eax
call fcn.0040d133
test esi, esi
je 0x4988a7
add edi, 4
lea eax, [ebp + 0xa8]
cmp edi, eax
jne 0x498868
jmp 0x4988a9
mov bl, 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.004881ea
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d133
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa8]
xor ecx, ebp
call fcn.004d5b75
add ebp, 0xac
leave
ret
Function at 0x499def
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
push dword [edi + 0x68]
lea ebx, [edi + 0x38]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebp, dword [esp + 0x20]
push ebp
push dword [esp + 0x20]
mov byte [edi + 0x41], 0
push dword [esp + 0x20]
mov dword [edi + 0x34], 3
push dword [esp + 0x20]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x499e84
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x499e8f
jmp 0x499e66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x499e6b
push ebx
lea ecx, [edi + 0xc]
call fcn.004a3d48
lea ecx, [edi + 0xc]
call fcn.004a3d31
test al, al
jne 0x499e7d
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x499e39
cmp dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
je 0x499e8f
test eax, eax
jle 0x499e8d
mov dword [ebp], eax
jmp 0x499e8d
mov eax, 0xe0000008
jmp 0x499e8f
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x499e96
Capabilities:
Query remote server for available data

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
push dword [edi + 0x68]
lea ebx, [edi + 0x38]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebp, dword [esp + 0x18]
xor eax, eax
push eax
push eax
push ebp
push dword [esp + 0x20]
mov byte [edi + 0x41], al
mov dword [edi + 0x34], 8
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x499f26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x499f31
jmp 0x499f08
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x499f0d
push ebx
lea ecx, [edi + 0xc]
call fcn.004a3d48
lea ecx, [edi + 0xc]
call fcn.004a3d31
test al, al
jne 0x499f1f
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x499edb
cmp dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
je 0x499f31
test eax, eax
jle 0x499f2f
mov dword [ebp], eax
jmp 0x499f2f
mov eax, 0xe0000008
jmp 0x499f31
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x49a128
Capabilities:
Connect network resource

Disassembly:
push 0x3c
mov eax, 0x51194d
call fcn.004d6783
mov edi, ecx
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
call fcn.0040ce6d
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0040ce6d
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
mov esi, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp + 0x10]
call fcn.00473b10
mov byte [ebp - 4], 2
and dword [edi + 8], esi
and dword [edi + 4], esi
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x49a17d
mov eax, dword [ecx]
call dword [eax]
test ebx, ebx
je 0x49a1d6
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x48]
push 0x20
push eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004d99d0
mov eax, dword [ebp - 0x18]
xor ecx, ecx
and dword [ebp - 0x38], 0
inc ecx
add esp, 0xc
mov dword [ebp - 0x44], ecx
cmp dword [eax - 4], ecx
jle 0x49a1ba
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
call fcn.0040d64d
mov eax, dword [ebp - 0x18]
and dword [ebp - 0x2c], 0
push 0
push ebx
push dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov edi, dword [ebp - 0x1c]
mov esi, eax
test esi, esi
jne 0x49a1f3
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x28]
call fcn.004752b0
mov esi, eax
pop ecx
test esi, esi
je 0x49a29f
cmp esi, 0x52e
je 0x49a20c
cmp esi, 0x56
je 0x49a20c
cmp esi, 0x89a
jne 0x49a2a7
push str.Local_Network_Server
lea ecx, [ebp + 0x10]
call fcn.0040d91c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040ce6d
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0
lea eax, [ebp + 0x10]
mov ecx, edi
push eax
push dword [ebp + 8]
push 0
call fcn.0049b398
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
mov bl, al
call fcn.0040d133
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.0040d133
test bl, bl
je 0x49a2a7
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 4], 1
jle 0x49a279
push dword [ebx - 0xc]
lea ecx, [ebp - 0x14]
call fcn.0040d64d
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
cmp dword [eax - 4], 1
jle 0x49a17d
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d64d
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
jmp 0x49a17d
mov eax, dword [ebp + 0x18]
and dword [eax], 0
xor esi, esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040d133
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d133
mov eax, esi
call fcn.004d674c
ret 0x18
Function at 0x49af97
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.004d99d0
push esi
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.004d99d0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
add esp, 0x18
mov dword [ebp - 0x3c], esi
push ecx
push edi
push edi
push dword [eax]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
pop edi
pop esi
test eax, eax
jne 0x49afdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x49afe9
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
mov dword [ecx], eax
xor eax, eax
leave
ret 8

Function at 0x49b6bb
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x511b5e
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, dword [0x573080]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.0040ce6d
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
call fcn.0040ce6d
lea eax, [ebp]
mov byte [ebp - 4], 1
push eax
push edi
push edi
push 0x25
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x49b75a
push str.WindowsPowerShell_v1.0powershell.exe
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x49b75a
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49b75a
lea eax, [ebp]
push eax
call fcn.004dbc76
pop ecx
push eax
lea eax, [ebp]
mov ecx, esi
push eax
call fcn.0040d89e
or dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004d5b75
add ebp, 0x20c
leave
ret
Function at 0x49ba4b
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x511bec
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x573080]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x214]
mov ebx, 0x104
mov esi, dword [ebp + 0x21c]
mov edi, dword [ebp + 0x218]
mov dword [ebp - 0x10], eax
lea eax, [ebp]
push eax
push ebx
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x49bb8c
mov edx, dword [edi]
xor ecx, ecx
inc ecx
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, ebx
or eax, ecx
jge 0x49bacf
push ebx
mov ecx, edi
call fcn.0040d6fc
mov edx, dword [edi]
mov eax, dword [ebp - 0x10]
xor ebx, ebx
push edx
push ebx
push dword [eax]
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x49bb8c
push 0xffffffffffffffff
mov ecx, edi
call fcn.00410c89
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x2e
push dword [edi]
call fcn.004d9e77
pop ecx
pop ecx
test eax, eax
je 0x49bb72
sub eax, dword [edi]
sar eax, 1
js 0x49bb72
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00406d8a
mov dword [ebp - 4], ebx
mov edx, dword [eax]
mov ecx, dword [edi]
sub ecx, 0x10
mov dword [ebp - 0x14], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x10], eax
cmp eax, ecx
je 0x49bb66
cmp dword [ecx + 0xc], ebx
jl 0x49bb5b
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x49bb5b
mov ecx, dword [ebp - 0x10]
call fcn.004070e8
mov ecx, dword [ebp - 0x14]
mov esi, eax
call fcn.0040d635
lea eax, [esi + 0x10]
mov esi, dword [ebp - 0x18]
mov dword [edi], eax
jmp 0x49bb66
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.0040d89e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040d133
test esi, esi
je 0x49bb7f
push esi
call fcn.004dbc76
pop ecx
mov ebx, eax
push ebx
push esi
mov ecx, edi
call fcn.00410f2f
mov al, 1
jmp 0x49bb8e
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004d5b75
add ebp, 0x20c
leave
ret 0xc
Function at 0x49bbb3
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x511c1c
call fcn.004d6783
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x52aca8
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
jne 0x49bbf3
or esi, eax
jmp 0x49bc31
push ebx
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], 0xfeff
push eax
push 2
lea eax, [ebp - 0x10]
mov dword [ebp + 0xc], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49bc31
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push ebx
push edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49bc31
mov bl, 1
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x52aca8
test esi, esi
je 0x49bc4b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x14], 0
mov al, bl
call fcn.004d674c
ret 8

Function at 0x49bc55
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x10
mov eax, 0x511c47
call fcn.004d6783
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], 0x52aca8
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], ebx
cmp edi, 0xffffffff
je 0x49bd0e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x49bd0c
xor esi, esi
mov dword [ebp + 8], esi
push ebx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00490378
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 8]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49bcfb
mov edx, dword [ebp - 0x10]
mov ecx, esi
call fcn.004d0df0
cmp eax, 4
jne 0x49bce7
lea eax, [ebx - 2]
shr eax, 1
push eax
lea eax, [esi + 2]
push eax
jmp 0x49bcf0
cmp eax, 5
jne 0x49bcfb
shr ebx, 1
push ebx
push esi
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.0040d89e
xor ebx, ebx
push esi
mov byte [ebp - 4], bl
call fcn.004d62d0
pop ecx
mov dword [ebp + 8], ebx
jmp 0x49bd0e
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0x52aca8
test edi, edi
je 0x49bd27
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
call fcn.004d674c
ret 4
Function at 0x49bd2f
Capabilities:
Read file on windows

Disassembly:
push 0xc
mov eax, 0x511c1c
call fcn.004d6783
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x52aca8
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
jne 0x49bd75
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or esi, esi
jmp 0x49bd96
push ebx
lea eax, [ebp - 0x10]
push eax
push 4
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x49bd94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x49bd96
mov edi, ebx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x52aca8
test esi, esi
je 0x49bdaf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], ebx
mov eax, edi
call fcn.004d674c
ret 4

Function at 0x49bdb9
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x511c72
call fcn.004d6783
mov ebx, ecx
lea ecx, [ebp - 0x14]
call fcn.0040ce6d
and dword [ebp - 4], 0
mov edi, 0x100
push 0x200
call fcn.004d62d5
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [ebx + 4]
push edi
push esi
push dword [ebp - 0x14]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0xff
jne 0x49be5b
push esi
add edi, edi
mov byte [ebp - 4], 0
call fcn.004d62d0
and dword [ebp - 0x10], 0
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d62d5
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [ebx + 4]
push edi
push esi
push dword [ebp - 0x14]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [edi - 1]
cmp eax, ecx
je 0x49be0b
test esi, esi
jne 0x49be63
xor eax, eax
jmp 0x49be6a
push esi
call fcn.004dbc76
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push esi
call fcn.0040d89e
push esi
mov byte [ebp - 4], 0
call fcn.004d62d0
and dword [ebp - 0x10], 0
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x14]
call fcn.0040d133
call fcn.004d674c
ret 0xc