joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c6a44
mov eax, dword fs:[0]
push eax
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], 0xffffffff
mov word [eax + 4], cx
mov edx, 0xf
mov dword [eax + 0x28], edx
mov dword [eax + 0x24], ecx
mov byte [eax + 0x14], cl
mov dword [esp + 0xc], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x40], ecx
mov byte [eax + 0x30], cl
mov byte [esp + 0xc], 1
mov dword [eax + 0x60], edx
mov dword [eax + 0x5c], ecx
mov byte [eax + 0x4c], cl
mov byte [esp + 0xc], 2
mov dword [eax + 0x88], edx
mov dword [eax + 0x84], ecx
mov byte [eax + 0x74], cl
mov byte [esp + 0xc], 3
mov dword [eax + 0xa4], edx
mov dword [eax + 0xa0], ecx
mov byte [eax + 0x90], cl
mov byte [esp + 0xc], 4
mov dword [eax + 0xc0], edx
mov dword [eax + 0xbc], ecx
mov byte [eax + 0xac], cl
mov byte [esp + 0xc], 5
mov dword [eax + 0xe8], edx
mov dword [eax + 0xe4], ecx
mov byte [eax + 0xd4], cl
mov byte [esp + 0xc], 6
mov dword [eax + 0x104], edx
mov dword [eax + 0x100], ecx
mov byte [eax + 0xf0], cl
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4

Function at 0x420d10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c8128
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0
lea ecx, [esp + 0x14]
call fcn.004a4e2d
mov dword [esp + 0x28], 0
mov edi, dword [0x523efc]
mov ecx, 0x5241dc
mov dword [esp + 0xc], edi
call fcn.0040c690
mov esi, eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
cmp esi, dword [eax + 0xc]
jae 0x420d8b
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x420d8f
cmp byte [eax + 0x14], 0
je 0x420d8f
call fcn.004a48a2
cmp esi, dword [eax + 0xc]
jae 0x420d95
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x420d91
xor ecx, ecx
jmp 0x420d73
mov esi, ecx
test esi, esi
jne 0x420de6
test edi, edi
je 0x420d9d
mov esi, edi
jmp 0x420de6
lea eax, [esp + 0xc]
push eax
call fcn.004211a0
add esp, 4
cmp eax, 0xffffffff
jne 0x420dcc
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.00481730
push 0x502728
lea ecx, [esp + 0x18]
push ecx
call fcn.00488a7c
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x523efc], esi
call fcn.0040c620
push esi
call fcn.004a4970
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004a4e4e
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x42a830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cbb9a
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x512f80]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [ecx]
mov ebx, dword [ebp + 8]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x18], ebx
call eax
xor esi, esi
mov dword [esp + 0x98], esi
lea eax, [esp + 0x3c]
call fcn.00442720
cmp eax, esi
jne 0x42a93e
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
call fcn.00442730
mov byte [esp + 0x98], 1
push eax
lea edx, [esp + 0x70]
push edx
mov ecx, str.String:
call fcn.004089d0
add esp, 8
mov byte [esp + 0x98], 2
push 0xffffffffffffffff
push esi
push eax
mov ecx, ebx
call fcn.0040dba0
mov byte [esp + 0x98], 1
mov edi, 0x10
cmp dword [esp + 0x84], edi
jb 0x42a8f9
mov eax, dword [esp + 0x70]
push eax
call fcn.004606bf
add esp, 4
mov ebx, 0xf
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], esi
mov byte [esp + 0x70], 0
mov byte [esp + 0x98], 0
cmp dword [esp + 0x38], edi
jb 0x42a92c
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004606bf
add esp, 4
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], esi
mov byte [esp + 0x24], 0
jmp 0x42aa4f
cmp eax, 1
jne 0x42a985
lea esi, [esp + 0x3c]
call fcn.00442800
push eax
push str.Number:_0x_8.8x
mov edi, 0x19
lea esi, [esp + 0x74]
call fcn.00442f10
mov eax, esi
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42a968
sub eax, edx
push eax
lea edx, [esp + 0x70]
push edx
mov ecx, ebx
call fcn.0040e480
jmp 0x42aa4f
lea edi, [esp + 0x10]
lea eax, [esp + 0x3c]
mov dword [esp + 0x10], esi
call fcn.004428f0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
lea eax, [eax + eax + 0xb]
push eax
call fcn.00481d2d
mov edi, eax
add esp, 4
cmp edi, esi
mov dword [esp + 0x1c], edi
jne 0x42a9d4
push 0xba3
push str.......CommonMiscBlobRegistry.cpp
push str.szFmtBuf
push ecx
call fcn.0042c7e0
add esp, 4
mov ecx, eax
call fcn.0042ca10
mov eax, dword [str.Binary:_0x]
mov dword [edi], eax
mov ecx, dword [0x4f1c58]
mov dword [edi + 4], ecx
mov dx, word [0x4f1c5c]
xor ebx, ebx
cmp dword [esp + 0x10], ebx
mov word [edi + 8], dx
lea esi, [edi + 0xa]
jbe 0x42aa25
mov eax, dword [esp + 0x18]
movzx ecx, byte [ebx + eax]
push ecx
push str._2.2x
mov edi, 3
call fcn.00442f10
add ebx, 1
add esp, 8
add esi, 2
cmp ebx, dword [esp + 0x10]
jb 0x42a9fa
mov edi, dword [esp + 0x1c]
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42aa30
mov ecx, dword [esp + 0x14]
sub eax, edx
push eax
push edi
call fcn.0040e480
push edi
call fcn.00481df0
add esp, 4
mov dword [esp + 0x98], 0xffffffff
lea edx, [esp + 0x3c]
push edx
call fcn.004424b0
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0048162f
mov esp, ebp
pop ebp
ret 4
Function at 0x42be40
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x1c
mov eax, dword [0x512f80]
xor eax, esp
mov dword [esp + 0x14], eax
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x42be73
xor al, al
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0048162f
add esp, 0x1c
ret
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esp + 4], ecx
mov ecx, dword [esi + 0x18]
mov dword [esp + 0xc], ecx
push 0x10
lea ecx, [esp + 8]
mov dword [esp + 0xc], edx
mov edx, dword [esi + 0x1c]
push ecx
push eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x42be62
cmp dword [esi + 0x14], 0
jne 0x42beaf
mov dword [esi + 0x14], 0
mov ecx, dword [esp + 0x14]
xor ecx, esp
mov al, 1
call fcn.0048162f
add esp, 0x1c
ret

Function at 0x42bec0
Capabilities:
Get socket status

Disassembly:
sub esp, 0xc
cmp dword [edi + 0xc], 0
push esi
jne 0x42beed
push str.NonZero_Socket
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0x7c
mov ecx, str.......CommonMiscBlockingUDPSocket.cpp
mov edx, str.m_Socket___0
call fcn.0042ca40
mov eax, dword [edi + 0xc]
fld dword [esp + 0x14]
lea esi, [edi + 0x20]
fld st(0)
mov dword [esi], 0
mov dword [edi + 0x24], eax
add dword [esi], 1
call fcn.0048a6b0
mov dword [esp + 0x14], eax
fisub dword [esp + 0x14]
mov dword [esp + 8], eax
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul qword [0x4f8aa8]
fadd qword [0x4f8aa0]
call fcn.0048a6b0
mov edx, dword [edi + 0xc]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push esi
add edx, 1
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x42bf58
xor al, al
pop esi
add esp, 0xc
ret 4
mov eax, dword [edi + 0xc]
push esi
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
setne al
pop esi
add esp, 0xc
ret 4
Function at 0x42bf70
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x512f80]
xor eax, esp
mov dword [esp + 0x14], eax
cmp dword [edi + 0xc], 0
jne 0x42bfa7
push str.NonZero_Socket
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0x97
mov ecx, str.......CommonMiscBlockingUDPSocket.cpp
mov edx, str.m_Socket___0
call fcn.0042ca40
test esi, esi
jne 0x42bfce
push str.NonNull_Packet_from
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0x99
mov ecx, str.......CommonMiscBlockingUDPSocket.cpp
mov edx, str.packet_from___0
call fcn.0042ca40
test ebx, ebx
jne 0x42bff5
push str.NonNullDest
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0x9a
mov ecx, str.......CommonMiscBlockingUDPSocket.cpp
mov edx, str.buf___0
call fcn.0042ca40
mov edx, dword [esp + 0x1c]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea eax, [esp]
push eax
mov eax, dword [edi + 0xc]
lea ecx, [esp + 8]
push ecx
push 0
push edx
push ebx
push eax
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x42c03d
xor eax, eax
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0048162f
add esp, 0x18
ret 4
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov byte [ebx + eax], 0
mov dword [esi], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x10]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x14]
xor ecx, esp
mov dword [esi + 0xc], edx
call fcn.0048162f
add esp, 0x18
ret 4

Function at 0x42c070
Capabilities:
Send data
Send data on socket

Disassembly:
cmp dword [esi + 0xc], 0
jne 0x42c099
push str.NonZero_Socket
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0xbb
mov ecx, str.......CommonMiscBlockingUDPSocket.cpp
mov edx, str.m_Socket___0
call fcn.0042ca40
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0x10
push eax
mov eax, dword [esi + 0xc]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
setne al
ret 0xc
Function at 0x431f60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c9c3a
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x512f80]
xor eax, esp
mov dword [esp + 0x19c], eax
push ebx
push esi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0x1b0]
mov dword fs:[0], eax
cmp dword [edi + 0x14], 0
mov esi, ecx
mov dword [esp + 0x10], esi
jne 0x431fce
push str.NonNullFilePath
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0x147
mov ecx, str.......CommonMiscFileUtil.cpp
mov edx, str._sFile.empty__
call fcn.0042ca40
test esi, esi
jne 0x431ff5
push str.NonNullCallerSizeOfMallocedBuffer
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0x148
mov ecx, str.......CommonMiscFileUtil.cpp
mov edx, str.puSizeOfMallocedFileBuffer
call fcn.0042ca40
cmp dword [edi + 0x18], 0x10
jb 0x432007
mov eax, dword [edi + 4]
lea ebx, [edi + 4]
mov dword [esp + 0xc], ebx
jmp 0x432010
lea eax, [edi + 4]
mov dword [esp + 0xc], eax
mov ebx, eax
lea esi, [esp + 0x9c]
call fcn.00431e20
lea eax, [esp + 0x6c]
push eax
mov ecx, esi
push ecx
call fcn.0048505c
add esp, 8
test eax, eax
jne 0x432185
test dword [esp + 0x72], 0x4000
jne 0x432185
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x10]
push eax
mov dword [edx], eax
call fcn.00481d2d
mov esi, eax
add esp, 4
test esi, esi
jne 0x432077
lea eax, [esp + 0x24]
push eax
call fcn.00434140
push 0x502760
lea ecx, [esp + 0x28]
push ecx
call fcn.00488a7c
lea edx, [esp + 0x14]
push esi
push edx
call fcn.00433ee0
mov dword [esp + 0x1c0], 0
lea eax, [esp + 0xa4]
push 0x4e27d4
push eax
call fcn.00482a90
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4320d9
cmp dword [edi + 0x18], 0x10
jb 0x4320b6
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
jmp 0x4320ba
mov eax, dword [esp + 0xc]
push eax
push str.Cannot_open_file__s
lea ebx, [esp + 0x38]
call fcn.0042c0c0
add esp, 8
push 0x5026f0
mov edx, ebx
push edx
call fcn.00488a7c
lea eax, [esp + 0x5c]
push ebx
push eax
call fcn.004090b0
mov byte [esp + 0x1c0], 1
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebx]
push ecx
push 1
push esi
call fcn.00483204
add esp, 0x18
cmp eax, dword [ebx]
je 0x432134
cmp dword [edi + 0x18], 0x10
jb 0x432111
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
jmp 0x432115
mov eax, dword [esp + 0xc]
push eax
push str.Failed_to_read_file__s
lea ebx, [esp + 0x38]
call fcn.0042c0c0
add esp, 8
push 0x5026f0
mov eax, ebx
push eax
call fcn.00488a7c
mov byte [esp + 0x18], 1
mov byte [esp + 0x1b8], 0
lea ecx, [esp + 0x5c]
push ecx
call fcn.00407550
mov dword [esp + 0x1b8], 0xffffffff
lea edx, [esp + 0x14]
push edx
call fcn.00433e20
mov eax, esi
mov ecx, dword [esp + 0x1b0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x19c]
xor ecx, esp
call fcn.0048162f
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x18], 0x10
jb 0x43218d
mov ebx, dword [ebx]
push ebx
push str.Missing_or_non_file_input_file:__s
lea ebx, [esp + 0x38]
call fcn.0042c0c0
add esp, 8
push 0x5026f0
mov eax, ebx
push eax
call fcn.00488a7c
int3
Function at 0x4321b0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c9bed
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x512f80]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push ebp
push esi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
cmp dword [edi + 0x14], 0
mov ebp, dword [esp + 0x168]
jne 0x43221a
push str.NonNullFilePath
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0x174
mov ecx, str.......CommonMiscFileUtil.cpp
mov edx, str._sFile.empty__
call fcn.0042ca40
test ebp, ebp
jne 0x432241
push str.NonNullCallerBufferPtr
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0x175
mov ecx, str.......CommonMiscFileUtil.cpp
mov edx, str.puBuffer
call fcn.0042ca40
cmp dword [edi + 0x18], 0x10
lea ebx, [edi + 4]
jb 0x43224e
mov eax, dword [ebx]
jmp 0x432250
mov eax, ebx
lea esi, [esp + 0x4c]
call fcn.00431e20
mov eax, esi
push 0x4e2808
push eax
call fcn.00482a90
mov esi, eax
add esp, 8
test esi, esi
jne 0x432296
cmp dword [edi + 0x18], 0x10
jb 0x432277
mov ebx, dword [ebx]
push ebx
push str.Cannot_open_output_file__s
lea ebx, [esp + 0x28]
call fcn.0042c0c0
add esp, 8
push 0x5026f0
mov ecx, ebx
push ecx
call fcn.00488a7c
lea edx, [esp + 0x10]
push esi
push edx
call fcn.004090b0
mov dword [esp + 0x168], 0
push esi
mov esi, dword [esp + 0x178]
push esi
push 1
push ebp
call fcn.0048337e
add esp, 0x18
cmp eax, esi
je 0x4322eb
cmp dword [edi + 0x18], 0x10
jb 0x4322cc
mov ebx, dword [ebx]
push ebx
push str.Failed_to_write_output_file__s
lea ebx, [esp + 0x28]
call fcn.0042c0c0
add esp, 8
push 0x5026f0
mov eax, ebx
push eax
call fcn.00488a7c
mov dword [esp + 0x160], 0xffffffff
lea ecx, [esp + 0x10]
push ecx
call fcn.00407550
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0048162f
add esp, 0x154
ret

Function at 0x432440
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4ca8d8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ecx, esi
call fcn.00432330
test al, al
jne 0x4324ce
cmp dword [esi + 0x18], 0x10
jb 0x432479
mov eax, dword [esi + 4]
jmp 0x43247c
lea eax, [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4324ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4324ce
lea eax, [esp + 8]
push esi
push eax
mov ecx, str.Failed_to_create_directory
call fcn.004089d0
add esp, 8
mov dword [esp + 0x80], 0
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00431d00
push 0x502a4c
lea edx, [esp + 0x28]
push edx
call fcn.00488a7c
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
add esp, 0x80
ret
Function at 0x432aa0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c7326
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x512f80]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0x194]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1a4]
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, 0x4e228c
call fcn.00408aa0
xor edi, edi
mov dword [esp + 0x1a4], edi
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, 0x4eb568
call fcn.00408aa0
add esp, 0x10
mov byte [esp + 0x19c], 2
mov esi, 0x10
cmp dword [esp + 0x2c], esi
jb 0x432b2e
mov edx, dword [esp + 0x18]
push edx
call fcn.004606bf
add esp, 4
cmp dword [esp + 0x48], esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], edi
mov byte [esp + 0x18], 0
jae 0x432b4d
lea eax, [esp + 0x34]
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x432bb2
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x432b70
mov edi, 0x4e2288
lea esi, [esp + 0x78]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x432b98
mov edi, 0x4eb554
lea esi, [esp + 0x78]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x432c0b
lea ecx, [esp + 0x4c]
push ecx
push ebp
call ebx
test eax, eax
jne 0x432b70
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 0x10
xor edi, edi
mov dword [esp + 0x19c], 0xffffffff
cmp dword [esp + 0x48], esi
jb 0x432bd0
mov eax, dword [esp + 0x34]
push eax
call fcn.004606bf
add esp, 4
mov dword [esp + 0x44], edi
mov al, 1
mov byte [esp + 0x34], 0
mov dword [esp + 0x48], 0xf
mov ecx, dword [esp + 0x194]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.0048162f
add esp, 0x18c
ret
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x19c], 0xffffffff
cmp dword [esp + 0x48], 0x10
jb 0x432c31
mov edx, dword [esp + 0x34]
push edx
call fcn.004606bf
add esp, 4
mov dword [esp + 0x44], 0
xor al, al
jmp 0x432bd6
Function at 0x4336f0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4ca110
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push esi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
cmp dword [edi + 0x18], 0x10
lea esi, [edi + 4]
jb 0x433721
mov eax, dword [esi]
jmp 0x433723
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x433781
push 0x1d
push str.Failed_to_get_file_attributes
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.0040e480
mov dword [esp + 0x84], 0
push 0
push 2
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00431600
push 0x5026d0
lea edx, [esp + 0x2c]
push edx
call fcn.00488a7c
mov ecx, eax
and eax, 0xfffffffe
cmp byte [esp + 0x8c], 0
je 0x433795
or eax, 2
jmp 0x433798
and eax, 0xfffffffd
cmp eax, ecx
je 0x4337eb
cmp dword [edi + 0x18], 0x10
jb 0x4337a4
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4337eb
push str.Failed_to_set_file_attributes
lea ecx, [esp + 0x10]
call fcn.0040e550
mov dword [esp + 0x84], 1
push 0
push 2
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00431600
push 0x5026d0
lea edx, [esp + 0x2c]
push edx
call fcn.00488a7c
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x80
ret
Function at 0x433c30
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4cbfde
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax]
fild dword [eax]
test ecx, ecx
jge 0x433c74
fadd qword [0x4f8a70]
mov edx, dword [esp + 0xc4]
mov eax, dword [edx]
fild dword [edx]
test eax, eax
jge 0x433c89
fadd qword [0x4f8a70]
fdiv qword [0x4f8a78]
push 0
fdivp st(1)
fnstcw word [esp + 0x1e]
movzx eax, word [esp + 0x1e]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp qword [esp + 0x20]
mov ebp, dword [esp + 0x20]
fldcw word [esp + 0x1e]
call fcn.004336f0
add esp, 4
cmp dword [edi + 0x18], 0x10
jb 0x433cc8
mov eax, dword [edi + 4]
jmp 0x433ccb
lea eax, [edi + 4]
push 6
push eax
call fcn.00484aa9
add esp, 8
test eax, eax
je 0x433cf9
push 0x6ee
push str.......CommonMiscFileUtil.cpp
push str._access_sFile.c_str____6___0
push ecx
call fcn.0042c7e0
add esp, 4
mov ecx, eax
call fcn.0042ca10
xor bl, bl
xor esi, esi
test ebp, ebp
jbe 0x433d3b
test bl, bl
jne 0x433d8f
mov ecx, edi
call fcn.0040dd90
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne bl
test bl, bl
jne 0x433d30
mov ecx, dword [esp + 0xc4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 1
cmp esi, ebp
jb 0x433d01
test bl, bl
jne 0x433d8f
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, str.ERROR:_delete_of
call fcn.004089d0
mov dword [esp + 0xc0], 0
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, str._failed
call fcn.00408aa0
add esp, 0x10
mov byte [esp + 0xb8], 1
push 0
push 2
push eax
lea edx, [esp + 0x68]
push edx
call fcn.00431600
push 0x5026d0
lea eax, [esp + 0x60]
push eax
call fcn.00488a7c
mov eax, edi
call fcn.00431e40
test al, al
je 0x433e02
lea ecx, [esp + 0x40]
push edi
push ecx
mov ecx, str.ERROR:_deleted
call fcn.004089d0
mov dword [esp + 0xc0], 2
push eax
lea edx, [esp + 0x30]
push edx
mov ecx, str._but_the_file_is_still_there
call fcn.00408aa0
add esp, 0x10
mov bl, 3
mov byte [esp + 0xb8], bl
push eax
lea eax, [esp + 0x60]
push eax
call fcn.0040e3b0
mov byte [esp + 0xb8], 4
mov dword [esp + 0x5c], vtable.common::CRuntimeError.0
mov byte [esp + 0xb8], bl
push 0x5026f0
lea ecx, [esp + 0x60]
push ecx
call fcn.00488a7c
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
Function at 0x436c00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c7d8b
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esi], vtable.common::CMultiFieldBlob.0
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esi + 0x18]
mov edx, 2
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 0x51b360
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov byte [esi + 0x38], al
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov word [esi + 0x80], ax
mov eax, dword [esp + 0x1c]
push eax
mov dword [esi + 0x28], 0xa
mov dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x48], edx
mov dword [esi + 0x5c], 0x50
call fcn.0043c0d0
mov dword [esp + 0x10], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 8

Function at 0x436ce0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4c7d8b
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esi], vtable.common::CMultiFieldBlob.0
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ecx
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 1
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [esp + 0x10], eax
push 0x10
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov byte [esi + 0x38], al
mov dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], 2
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 0x50
mov word [esi + 0x80], ax
call fcn.0043c0d0
mov edx, dword [esp + 0x1c]
push edx
push esi
call fcn.00438c70
mov dword [esp + 0x10], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 8