joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489da0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x180c
call fcn.00631450
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x1808], eax
push esi
mov esi, dword [esp + 0x1814]
lea eax, [esp + 0x808]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x489e09
lea ecx, [esp + 4]
push ecx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.0047f6b0
pop esi
mov ecx, dword [esp + 0x1808]
xor ecx, esp
call fcn.0062cbd3
add esp, 0x180c
ret
lea eax, [esp + 0x808]
push eax
mov ecx, esi
call fcn.00482d30
mov ecx, dword [esp + 0x180c]
pop esi
xor ecx, esp
call fcn.0062cbd3
add esp, 0x180c
ret

Function at 0x489fa0
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x681351
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x35c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x36c]
mov esi, dword [esp + 0x370]
lea ecx, [esp + 0x10]
call fcn.0047f3a0
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x368], 0
call fcn.00483310
push 0x5c
push 0x2f
lea ecx, [esp + 0x18]
call fcn.004834e0
lea ecx, [esp + 0x10]
call fcn.00481950
cmp eax, 0x104
jle 0x48a0ee
lea ecx, [esp + 0x240]
call fcn.0047f3a0
push 0
lea eax, [esp + 0x244]
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x370], 1
call fcn.00489d00
add esp, 0xc
lea ecx, [esp + 0x128]
mov bl, al
call fcn.0047f3a0
test bl, bl
mov byte [esp + 0x364], 2
je 0x48a07d
push 0x6d4530
lea ecx, [esp + 0x12c]
call fcn.004827c0
lea ecx, [esp + 0x240]
call fcn.00480da0
push eax
lea ecx, [esp + 0x12c]
call fcn.004827c0
lea ecx, [esp + 0x128]
call fcn.00481d60
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x48a0c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x48a0bf
mov esi, 1
test esi, esi
lea ecx, [esp + 0x128]
setne bl
mov byte [esp + 0x364], 1
call fcn.0047f440
lea ecx, [esp + 0x240]
mov byte [esp + 0x364], 0
call fcn.0047f440
jmp 0x48a138
lea ecx, [esp + 0x10]
call fcn.00481d60
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test ebx, ebx
jne 0x48a135
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov edi, eax
je 0x48a129
push edi
mov ecx, esi
call fcn.004b1750
lea edx, [esp + 0x10]
push edx
push str.failedToDeleteFilepath
mov ecx, esi
call fcn.004b11c0
cmp edi, 2
jne 0x48a133
mov ebx, 1
test ebx, ebx
setne bl
lea ecx, [esp + 0x10]
mov dword [esp + 0x364], 0xffffffff
call fcn.0047f440
mov al, bl
mov ecx, dword [esp + 0x35c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x348]
xor ecx, esp
call fcn.0062cbd3
add esp, 0x358
ret
Function at 0x48aa20
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x681406
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov edi, dword [esp + 0x258]
mov ebx, dword [esp + 0x260]
mov esi, dword [esp + 0x25c]
mov ebp, dword [esp + 0x264]
mov dword [ebx], 0
mov ecx, edi
mov dword [esi], 0xffffffff
call fcn.00481390
test al, al
je 0x48aaa8
test ebp, ebp
je 0x48aaa1
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
push str.GetAttributes:_filename_is_empty
mov ecx, ebp
call edx
xor al, al
jmp 0x48ab70
lea ecx, [esp + 0x14]
call fcn.0047f3a0
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x254], 0
call fcn.00483310
push 0x5c
push 0x2f
lea ecx, [esp + 0x1c]
call fcn.004834e0
lea ecx, [esp + 0x14]
call fcn.00481950
test eax, eax
jle 0x48ab35
lea ecx, [esp + 0x12c]
call fcn.0047f3a0
push ebp
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x25c], 1
call fcn.00489e30
add esp, 0xc
lea ecx, [esp + 0x12c]
call fcn.00481d60
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esp + 0x12c]
mov dword [esi], eax
mov byte [esp + 0x250], 0
call fcn.0047f440
jmp 0x48ab47
lea ecx, [esp + 0x14]
call fcn.00481d60
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi], eax
cmp dword [esi], 0xffffffff
jne 0x48ab57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
cmp dword [esi], 0xffffffff
lea ecx, [esp + 0x14]
setne bl
mov dword [esp + 0x250], 0xffffffff
call fcn.0047f440
mov al, bl
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0062cbd3
add esp, 0x240
ret
Function at 0x48ad50
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x6814a6
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
mov edi, dword [esp + 0x254]
mov esi, dword [esp + 0x258]
lea ecx, [esp + 0x10]
call fcn.0047f3a0
xor ebx, ebx
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x250], ebx
call fcn.00483310
push 0x5c
push 0x2f
lea ecx, [esp + 0x18]
call fcn.004834e0
lea ecx, [esp + 0x10]
call fcn.00481950
test eax, eax
jle 0x48ae23
lea ecx, [esp + 0x128]
call fcn.0047f3a0
push ebx
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x258], 1
call fcn.00489e30
add esp, 0xc
push ebx
lea ecx, [esp + 0x12c]
call fcn.00481d60
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x128]
mov edi, eax
mov byte [esp + 0x24c], bl
call fcn.0047f440
jmp 0x48ae36
push ebx
lea ecx, [esp + 0x14]
call fcn.00481d60
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
cmp edi, ebx
jne 0x48ae60
cmp esi, ebx
je 0x48ae5e
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push 1
push str.createDirWin32
mov ecx, esi
call eax
mov ecx, esi
call fcn.004b1680
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
cmp edi, ebx
lea ecx, [esp + 0x10]
setne bl
mov dword [esp + 0x24c], 0xffffffff
call fcn.0047f440
mov al, bl
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0062cbd3
add esp, 0x240
ret

Function at 0x48aea0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x6814f6
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov esi, dword [esp + 0x250]
lea ecx, [esp + 0xc]
call fcn.0047f3a0
xor ebx, ebx
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x24c], ebx
call fcn.00483310
push 0x5c
push 0x2f
lea ecx, [esp + 0x14]
call fcn.004834e0
push ebx
lea eax, [esp + 0x10]
push 1
push eax
call fcn.0048a180
add esp, 0xc
lea ecx, [esp + 0xc]
call fcn.00481390
test al, al
jne 0x48af82
lea ecx, [esp + 0x124]
call fcn.0047f3a0
push ebx
lea ecx, [esp + 0x128]
push ecx
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x254], 1
call fcn.00489e30
mov eax, dword [esp + 0x260]
add esp, 0xc
push eax
lea ecx, [esp + 0x128]
call fcn.00481d60
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x124]
mov esi, eax
mov byte [esp + 0x248], bl
call fcn.0047f440
jmp 0x48af9c
mov ecx, dword [esp + 0x254]
push ecx
lea ecx, [esp + 0x10]
call fcn.00481d60
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, eax
cmp esi, ebx
lea ecx, [esp + 0xc]
setne bl
mov dword [esp + 0x248], 0xffffffff
call fcn.0047f440
mov al, bl
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0062cbd3
add esp, 0x240
ret
Function at 0x48b110
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x68cfeb
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov esi, dword [esp + 0x138]
lea ecx, [esp + 0xc]
call fcn.0047f3a0
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x134], 0
call fcn.0047f8b0
mov eax, dword [esp + 0x13c]
push eax
lea ecx, [esp + 0x10]
call fcn.00481d60
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
lea ecx, [esp + 0xc]
setne bl
mov dword [esp + 0x130], 0xffffffff
call fcn.0047f440
mov al, bl
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0062cbd3
add esp, 0x128
ret

Function at 0x48b1d0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x68153b
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x118], eax
push esi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov esi, dword [esp + 0x134]
lea ecx, [esp + 8]
call fcn.0047f3a0
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x130], 0
call fcn.0047f8b0
lea ecx, [esp + 8]
call fcn.00481d60
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x12c], 0xffffffff
call fcn.0047f440
mov eax, esi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0062cbd3
add esp, 0x128
ret
Function at 0x48b280
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x68159c
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
mov esi, dword [esp + 0x488]
mov edi, dword [esp + 0x48c]
mov ebp, dword [esp + 0x490]
lea ecx, [esp + 0x14]
call fcn.0047f3a0
lea ecx, [esp + 0x12c]
mov dword [esp + 0x480], 0
call fcn.0047f3a0
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x484], 1
call fcn.00483310
push edi
lea ecx, [esp + 0x130]
call fcn.00483310
push 0x5c
push 0x2f
lea ecx, [esp + 0x1c]
call fcn.004834e0
push 0x5c
push 0x2f
lea ecx, [esp + 0x134]
call fcn.004834e0
lea ecx, [esp + 0x14]
call fcn.00481390
test al, al
je 0x48b370
lea ecx, [esp + 0x12c]
call fcn.00481390
test al, al
je 0x48b370
lea ecx, [esp + 0x12c]
call fcn.00481d60
push eax
lea ecx, [esp + 0x18]
call fcn.00481d60
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
jmp 0x48b413
lea ecx, [esp + 0x35c]
call fcn.0047f3a0
lea ecx, [esp + 0x244]
mov byte [esp + 0x480], 2
call fcn.0047f3a0
push 0
lea eax, [esp + 0x360]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x48c], 3
call fcn.00489e30
push 0
lea edx, [esp + 0x254]
push edx
lea eax, [esp + 0x140]
push eax
call fcn.00489e30
add esp, 0x18
lea ecx, [esp + 0x244]
call fcn.00481d60
push eax
lea ecx, [esp + 0x360]
call fcn.00481d60
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
lea ecx, [esp + 0x244]
setne bl
mov byte [esp + 0x480], 2
call fcn.0047f440
lea ecx, [esp + 0x35c]
mov byte [esp + 0x480], 1
call fcn.0047f440
test bl, bl
jne 0x48b422
test ebp, ebp
je 0x48b422
mov ecx, ebp
call fcn.004b1680
lea ecx, [esp + 0x12c]
mov byte [esp + 0x480], 0
call fcn.0047f440
lea ecx, [esp + 0x14]
mov dword [esp + 0x480], 0xffffffff
call fcn.0047f440
mov al, bl
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.0062cbd3
add esp, 0x470
ret
jmp 0x48b280
Function at 0x48bf00
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x68159c
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
mov esi, dword [esp + 0x488]
mov edi, dword [esp + 0x48c]
mov ebp, dword [esp + 0x490]
lea ecx, [esp + 0x14]
call fcn.0047f3a0
lea ecx, [esp + 0x12c]
mov dword [esp + 0x480], 0
call fcn.0047f3a0
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x484], 1
call fcn.00483310
push edi
lea ecx, [esp + 0x130]
call fcn.00483310
push 0x5c
push 0x2f
lea ecx, [esp + 0x1c]
call fcn.004834e0
push 0x5c
push 0x2f
lea ecx, [esp + 0x134]
call fcn.004834e0
lea ecx, [esp + 0x14]
call fcn.00481390
test al, al
je 0x48b370
lea ecx, [esp + 0x12c]
call fcn.00481390
test al, al
je 0x48b370
lea ecx, [esp + 0x12c]
call fcn.00481d60
push eax
lea ecx, [esp + 0x18]
call fcn.00481d60
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
jmp 0x48b413
lea ecx, [esp + 0x35c]
call fcn.0047f3a0
lea ecx, [esp + 0x244]
mov byte [esp + 0x480], 2
call fcn.0047f3a0
push 0
lea eax, [esp + 0x360]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x48c], 3
call fcn.00489e30
push 0
lea edx, [esp + 0x254]
push edx
lea eax, [esp + 0x140]
push eax
call fcn.00489e30
add esp, 0x18
lea ecx, [esp + 0x244]
call fcn.00481d60
push eax
lea ecx, [esp + 0x360]
call fcn.00481d60
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
lea ecx, [esp + 0x244]
setne bl
mov byte [esp + 0x480], 2
call fcn.0047f440
lea ecx, [esp + 0x35c]
mov byte [esp + 0x480], 1
call fcn.0047f440
test bl, bl
jne 0x48b422
test ebp, ebp
je 0x48b422
mov ecx, ebp
call fcn.004b1680
lea ecx, [esp + 0x12c]
mov byte [esp + 0x480], 0
call fcn.0047f440
lea ecx, [esp + 0x14]
mov dword [esp + 0x480], 0xffffffff
call fcn.0047f440
mov al, bl
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.0062cbd3
add esp, 0x470
ret
jmp 0x48b280
Function at 0x4a0c50
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
call sub.KERNEL32.dll_GetTickCount
mov edi, eax
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x49fd00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4a0ca5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.Task_started_in_background_thread.
mov ecx, esi
call eax
push edi
push str.createThread
mov ecx, esi
call fcn.004b0eb0
pop edi
mov al, 1
pop esi
pop ecx
ret 4
mov ecx, dword [esp + 0x10]
mov byte [esi + 0x278c], 0
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.Failed_to_start_thread
call eax
pop edi
xor al, al
pop esi
pop ecx
ret 4

Function at 0x4ab950
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x68446b
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov esi, dword [esp + 0x138]
mov ecx, esi
call fcn.00484e60
cmp byte [0x7950a1], 0
jne 0x4ab9fa
push 0x200
push 0
push 0x794ce8
call fcn.00630180
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x794ce8
mov dword [esp + 0x10], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x4ab9f3
mov ecx, dword [str.Win32]
mov edx, dword [0x6d65c8]
mov ax, word [0x6d65cc]
mov dword [0x794ce8], ecx
mov dword [0x794cec], edx
mov word [0x794cf0], ax
mov byte [0x7950a1], 1
lea ecx, [esp + 0xc]
call fcn.0047f3a0
push 0x794ce8
lea ecx, [esp + 0x10]
mov dword [esp + 0x134], 0
call fcn.00482490
lea ecx, [esp + 0xc]
call fcn.00480da0
push eax
mov ecx, esi
call fcn.00485280
lea ecx, [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
call fcn.0047f440
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0062cbd3
add esp, 0x12c
ret

Function at 0x4ac700
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
fld qword [ecx]
sub esp, 0x24
lea eax, [esp]
push eax
sub esp, 8
fstp qword [esp]
call fcn.004ac490
add esp, 0xc
test al, al
je 0x4ac780
push esi
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.004aa6a0
mov edx, dword [esp + 0x18]
movzx ecx, word [esp + 0x1c]
mov eax, dword [esp + 0x14]
add edx, 0x76c
mov word [esi + 8], dx
movzx edx, word [esp + 0x10]
add eax, 1
mov word [esi + 0xc], cx
movzx ecx, word [esp + 8]
mov word [esi + 0xe], dx
movzx edx, word [esp + 4]
mov word [esi + 0xa], ax
mov ax, word [esp + 0xc]
mov word [esi + 0x10], ax
mov word [esi + 0x12], cx
mov word [esi + 0x14], dx
mov word [esi + 0x16], 0
mov byte [esi + 0x18], 1
pop esi
add esp, 0x24
ret
mov ecx, dword [esp + 0x2c]
add esp, 0x24
jmp fcn.004aac10
Function at 0x4ad440
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6845c0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
push str.generateCurrentGmtDateRFC822
push eax
lea ecx, [esp + 0xc]
call fcn.004b1850
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
call fcn.004aa720
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call fcn.004aac10
mov ecx, dword [esp + 0x40]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.004ac830
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.004aa6e0
lea ecx, [esp + 4]
mov dword [esp + 0x38], 0xffffffff
call fcn.004b18c0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
add esp, 0x38
ret

Function at 0x4af530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x684828
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 4]
xor ebx, ebx
cmp ecx, ebx
je 0x4af5d7
call fcn.004af9e0
lea ecx, [esp + 0xc]
call fcn.004afc30
mov dword [esp + 0xc], vtable.ExtPtrArray.0
mov dword [esp + 0x14], 5
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], ebx
call fcn.004af2a0
mov ecx, dword [esi + 4]
call fcn.004afa10
lea ecx, [esp + 0xc]
call fcn.004aee10
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.004af210
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret
lea ecx, [esi + 8]
call fcn.004aee10
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret
Function at 0x4b20d0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
mov edi, dword [esp + 0x1c]
mov byte [ebp], 0
mov ebx, ecx
mov dword [edi], 0
je 0x4b21ad
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4b21ad
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x4b2150
push 0
push edi
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b213e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x4b2143
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4b21c1
push eax
call fcn.004b1750
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
cmp dword [edi], 0
jne 0x4b2147
mov byte [ebp], 1
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x14
mov eax, dword [ebx + 4]
test eax, eax
je 0x4b2190
push eax
push esi
push 1
push ecx
call fcn.00632cb3
add esp, 0x10
cmp eax, esi
mov dword [edi], eax
je 0x4b2147
mov eax, dword [ebx + 4]
push eax
call fcn.006329df
add esp, 4
test eax, eax
je 0x4b2143
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4b21c1
call fcn.004b1680
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4b21c1
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.No_file_is_open.
call eax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4b21c1
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.NULL_buf_or_bufSize
call eax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
Function at 0x4b21d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [ecx + 8], 0xffffffff
mov dword [esp], ecx
jne 0x4b21fa
cmp dword [ecx + 4], 0
jne 0x4b21fa
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4b21f4
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.Failed_to_write_because_file_is_not_open.
call edx
xor al, al
pop ecx
ret 0x14
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4b2215
mov dword [edi], 0
mov dword [edi + 4], 0
push ebp
mov ebp, dword [esp + 0x18]
mov eax, ebp
or eax, dword [esp + 0x1c]
push esi
je 0x4b22ed
mov edx, dword [esp + 0x18]
jmp 0x4b2230
cmp dword [esp + 0x20], 0
jl 0x4b2248
jg 0x4b2241
cmp ebp, 0x989680
jbe 0x4b2248
mov esi, 0x989680
jmp 0x4b224a
mov esi, ebp
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
je 0x4b22a8
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b2276
mov edx, dword [esp + 0x18]
cmp edx, esi
je 0x4b22c7
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4b229e
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push 1
push str.WriteFileError
mov ecx, esi
call eax
mov ecx, esi
call fcn.004b1680
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
pop esi
pop ebp
pop edi
xor al, al
pop ebx
pop ecx
ret 0x14
mov eax, dword [ecx + 4]
test eax, eax
je 0x4b22cb
push eax
push 1
push esi
push ebx
call fcn.0062e901
add esp, 0x10
cmp eax, 1
jne 0x4b22f7
mov edx, esi
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x10]
add ebx, esi
sub ebp, esi
mov eax, 0
sbb dword [esp + 0x20], eax
cmp edi, eax
je 0x4b22e1
add dword [edi], edx
adc dword [edi + 4], eax
mov eax, ebp
or eax, dword [esp + 0x20]
jne 0x4b2230
pop esi
pop ebp
pop edi
mov al, 1
pop ebx
pop ecx
ret 0x14
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4b230b
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.fwrite_failed.
call eax
pop esi
pop ebp
pop edi
xor al, al
pop ebx
pop ecx
ret 0x14