joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4019a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4019bd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4019de
cmp esi, eax
jae 0x4019b7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4019d0
cmp esi, eax
jae 0x4019b7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x405eb0
Capabilities:
Access peb ldr_data
Get ntdll base address
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x44eac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [0x46b600]
mov dword [esp + 0x30], eax
xor eax, eax
push ebx
mov dword [esp + 8], eax
push ebp
xor ebp, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push esi
mov ebx, ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], 0xa
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x54]
push ecx
push 0x8004667e
push esi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x60], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [ebx + 0x20]
push 0x33
push 0x478
push edx
push esi
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x405f72
lea ecx, [esp + 0x24]
call fcn.00404cf0
xor eax, eax
jmp 0x405fdb
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x58]
push eax
push 0x1002
push 0xffff
push esi
mov dword [esp + 0x68], 0x7d0
call edi
push 4
lea ecx, [esp + 0x58]
push ecx
push 0x1001
push 0xffff
push esi
call edi
mov edx, dword [ebx + 8]
lea esi, [ebx + 4]
push ebp
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00405120
mov edi, eax
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x405fca
mov dword [eax], edi
jmp 0x405fcc
mov dword [esi], edi
lea ecx, [esp + 0x28]
mov dword [esi + 4], edi
call fcn.00404cf0
mov eax, edi
pop edi
mov ecx, dword [esp + 0x40]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x34]
pop ebx
call fcn.0042f2ae
add esp, 0x40
ret 8
Function at 0x4060e0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x46b600]
push ebx
push esi
push 0
push 1
push 2
mov dword [esp + 0x24], eax
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x4061ce
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
push edi
mov dword [esp + 0x16], eax
push edx
mov word [esp + 0x1e], ax
mov word [esp + 0x10], 2
mov dword [esp + 0x14], ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xe], ax
lea eax, [esp + 0xc]
push eax
push esi
mov ecx, ebx
call fcn.00405eb0
mov edi, eax
test edi, edi
jne 0x406168
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
call fcn.0042f2ae
add esp, 0x14
ret 8
movzx ecx, byte [esp + 0x13]
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x11]
push edi
push ecx
movzx ecx, byte [esp + 0x18]
push edx
push eax
push ecx
push str.CCommEngine__::Connect__d._d._d._d__session_is__08X_n
call fcn.00416520
add esp, 0x18
push 0x10
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4061cb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4061cb
push edi
lea ecx, [ebx + 4]
call fcn.00406080
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
call fcn.0042f2ae
add esp, 0x14
ret 8
mov eax, edi
pop edi
mov ecx, dword [esp + 0x18]
pop esi
pop ebx
call fcn.0042f2ae
add esp, 0x14
ret 8

Function at 0x406280
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4062cc
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x4062df
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
xor esi, esi
test ecx, ecx
je 0x4062bb
lea ecx, [ecx]
mov ecx, dword [eax + 4]
add eax, 4
inc esi
test ecx, ecx
jne 0x4062b0
call fcn.00416590
xor edx, edx
div esi
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + edx*4]
mov eax, dword [ecx]
mov edx, dword [esp + 0x14]
push edx
push eax
mov ecx, ebx
call fcn.004060e0
pop edi
pop esi
pop ebx
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x406410
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x7d4
mov eax, dword [0x46b600]
mov dword [esp + 0x7d0], eax
mov eax, dword [esp + 0x7d8]
test eax, eax
push esi
push edi
mov edi, dword [esp + 0x7e4]
mov esi, ecx
jne 0x406481
mov ecx, dword [edi + 8]
push 0
push 0x7d0
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x406472
push edi
push eax
mov ecx, esi
call fcn.004061e0
pop edi
pop esi
mov ecx, dword [esp + 0x7d0]
call fcn.0042f2ae
add esp, 0x7d4
ret 8
cmp eax, 0xffffffff
jne 0x4064bf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4064a8
cmp eax, 0x2733
je 0x4064a8
mov edx, dword [esi]
push 0
push 0
push edi
push eax
mov ecx, esi
call dword [edx]
push edi
mov ecx, esi
call fcn.00404a40
test al, al
je 0x4064a8
push edi
mov ecx, esi
call fcn.004062f0
pop edi
pop esi
mov ecx, dword [esp + 0x7d0]
call fcn.0042f2ae
add esp, 0x7d4
ret 8
mov edx, dword [esi]
push eax
lea eax, [esp + 0xc]
push eax
push edi
push 0
mov ecx, esi
call dword [edx]
mov ecx, dword [esp + 0x7d8]
pop edi
pop esi
call fcn.0042f2ae
add esp, 0x7d4
ret 8

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

Disassembly:
push ecx
mov eax, dword [esp + 8]
test eax, eax
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, ecx
mov dword [esp + 8], esi
jne 0x4065cb
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x40658e
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_send]
push edi
lea edi, [ebx + 0x20]
nop
mov esi, dword [edi]
add esi, 8
mov eax, dword [esi + 0x7d0]
mov ecx, dword [ebx + 8]
push 0
push eax
push esi
push ecx
call ebp
cmp eax, 0xffffffff
je 0x406594
mov ecx, dword [esi + 0x7d0]
cmp eax, ecx
jge 0x40655b
sub ecx, eax
push ecx
add eax, esi
push eax
push esi
mov dword [esi + 0x7d0], ecx
call fcn.0042e660
add esp, 0xc
jmp 0x406525
mov ecx, dword [edi]
mov eax, dword [ecx]
xor esi, esi
cmp eax, esi
mov dword [edi], eax
je 0x40656c
mov dword [eax + 4], esi
jmp 0x40656f
mov dword [edi + 4], esi
mov edx, dword [edi + 0x10]
mov dword [ecx], edx
mov eax, dword [edi + 8]
dec eax
mov dword [edi + 0x10], ecx
mov dword [edi + 8], eax
jne 0x406587
mov ecx, edi
call fcn.00404cf0
cmp dword [ebx + 0x28], esi
jne 0x406520
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40658c
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x4065b7
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
jne 0x40658c
mov ecx, dword [esp + 0x10]
push ebx
push 0
call fcn.004061e0
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 8
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x4065e1
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
jne 0x40658e
push ebx
push 0
mov ecx, esi
call fcn.004061e0
pop esi
pop ebx
pop ecx
ret 8
Function at 0x407150
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7e4
mov eax, dword [0x46b600]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
mov dword [esp + 0x7ec], eax
jle 0x4071c6
cmp edi, 0x7d0
jg 0x4071c6
mov eax, dword [ebx + 0x28]
test eax, eax
mov esi, dword [ebp + 0xc]
jne 0x4071dd
mov eax, dword [ebx + 8]
push 0
push edi
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4071b9
sub edi, eax
add esi, eax
test edi, edi
jg 0x407187
mov al, 1
mov ecx, dword [esp + 0x7ec]
call fcn.0042f2ae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4071dd
xor al, al
mov ecx, dword [esp + 0x7ec]
call fcn.0042f2ae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x24]
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov dword [esp + 0x7e0], edi
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x20]
push 0
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.004070f0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x407233
mov dword [ecx], eax
test eax, eax
mov dword [esi + 4], eax
setne al
mov ecx, dword [esp + 0x7ec]
call fcn.0042f2ae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x7ec]
test eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
setne al
call fcn.0042f2ae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c790
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x44eff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00441eeb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov ebp, dword [esi + 0xbc]
mov ebx, dword [esp + 0x38]
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x30], edi
jle 0x40c824
test edi, edi
jl 0x40c872
cmp edi, dword [esi + 0xbc]
jge 0x40c872
mov eax, dword [esi + 0xb8]
lea eax, [eax + edi*4]
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push eax
lea ecx, [esi + 0x58]
call fcn.00440ce7
test eax, eax
je 0x40c81f
mov eax, dword [esp + 0x10]
mov cl, byte [eax + 0xd0]
test cl, cl
je 0x40c81f
push 0
push eax
push ebx
mov ecx, esi
call fcn.0040c520
inc edi
cmp edi, ebp
jl 0x40c7d5
mov al, byte [esi + 0xb0]
test al, al
je 0x40c8bc
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x40c877
mov ecx, dword [esi + 0xa4]
test ecx, ecx
je 0x40c877
mov edx, dword [esi + 0xa8]
mov edi, dword [sym.imp.GDI32.dll_FrameRgn]
push 1
push 1
push edx
push eax
push ebx
call edi
mov eax, dword [esi + 0xac]
mov ecx, dword [esi + 0xa4]
push 1
push 1
push eax
push ecx
push ebx
call edi
jmp 0x40c8bc
call fcn.004403a3
mov eax, dword [esi + 0xcc]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0xac]
mov edi, dword [sym.imp.USER32.dll_FrameRect]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
call edi
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [esi + 0xa8]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
call edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c8e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x40ef60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44f1aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00441eeb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
call fcn.00441eeb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [esp + 0x1c], 1
call fcn.00441eeb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [esp + 0x1c], 2
lea edi, [esi + 0x24]
call fcn.00441eeb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1c], 3
lea ebp, [esi + 0x28]
call fcn.00441eeb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x1c], 4
call fcn.00441eeb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [esp + 0x1c], 5
mov word [esi + 0x30], bx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
call fcn.00441eeb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x44], eax
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
mov byte [esp + 0x1c], 6
mov dword [esi + 0x4c], ebx
jne 0x40f042
xor eax, eax
jmp 0x40f05b
mov eax, ecx
lea edx, [eax + 1]
mov dword [esp + 0x24], edx
jmp 0x40f050
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40f050
sub eax, dword [esp + 0x24]
push eax
push ecx
mov ecx, edi
call fcn.004014c0
mov edx, dword [esp + 0x28]
cmp edx, ebx
jne 0x40f070
xor eax, eax
jmp 0x40f07e
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f075
sub eax, edi
push eax
push edx
mov ecx, ebp
call fcn.004014c0
mov edx, dword [esp + 0x2c]
cmp edx, ebx
je 0x40f0a7
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f094
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x2c]
call fcn.004014c0
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x3c], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x411700
Capabilities:
Delete file
Get file size
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44f328
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [0x46b600]
push ebx
push esi
mov esi, dword [esp + 0x74]
push edi
push 0x80
push esi
mov dword [esp + 0x6c], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x411752
push esi
push str.CAutoFetch::CheckFetchFile__s__SetFileAttributes_Failed_n
call fcn.00416520
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x41189f
push 0
push 0x80
push 3
push 0
push 3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or ebx, 0xffffffff
cmp edi, ebx
jne 0x41178b
push esi
push str.CAutoFetch::CheckFetchFile__s__CreateFile_Failed_n
call fcn.00416520
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x41189f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x80]
cmp eax, ecx
jle 0x4117c2
push ecx
push eax
push esi
push str.CAutoFetch::CheckFetchFile__s__File_Size_differ__d:_d_n
call fcn.00416520
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x41189f
jne 0x411888
lea ecx, [esp + 0xc]
call fcn.004115f0
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x10]
push ecx
push edx
push esi
mov dword [esp + 0x80], 0
mov byte [esp + 0x6e], 1
call fcn.00411050
test al, al
jne 0x411802
push esi
push str.CAutoFetch::CheckFetchFile__s__xfm.Init_Failed_n
jmp 0x411848
lea ecx, [esp + 0xc]
call fcn.0040f530
test al, al
jne 0x411817
push esi
push str.CAutoFetch::CheckFetchFile__s__xfm.CheckCRC_Failed_n
jmp 0x411848
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x7c]
cmp eax, ecx
je 0x411835
push ecx
push eax
push esi
push str.CAutoFetch::CheckFetchFile__s__xfm.GetVersion_differ__d:_d_n
call fcn.00416520
add esp, 0x10
jmp 0x411850
lea ecx, [esp + 0xc]
call fcn.00411560
test al, al
jne 0x41186d
push esi
push str.CAutoFetch::CheckFetchFile__s__Uninit_Failed_n
call fcn.00416520
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x70], ebx
call fcn.00411640
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x41189f
lea ecx, [esp + 0xc]
mov dword [esp + 0x70], ebx
call fcn.00411640
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4118a1
push ecx
push eax
push esi
push str.CAutoFetch::CheckFetchFile__s__FAIL_WITH_RESUME__d:_d_n
call fcn.00416520
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x68]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x5c]
pop ebx
call fcn.0042f2ae
add esp, 0x68
ret 0xc
Function at 0x416360
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [0x46b600]
mov dword [esp + 0x1c], eax
mov eax, dword [0x46a1f4]
cmp eax, 0xffffffff
je 0x4163b8
push esi
push edi
mov ecx, 5
mov esi, str._r_n_r_n_t_tSTOPPING_LOG_r_n_r_n
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x16
movsw word es:[edi], word [esi]
lea edx, [esp + 0x18]
push edx
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x46a1f4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [0x46a1f4], 0xffffffff
pop esi
mov eax, dword [0x46c934]
test eax, eax
je 0x4163d4
push eax
call fcn.00442143
add esp, 4
mov dword [0x46c934], 0
mov ecx, dword [esp + 0x1c]
call fcn.0042f2ae
add esp, 0x20
ret

Function at 0x4163f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x5c
mov eax, dword [0x46b600]
mov dword [esp + 0x58], eax
cmp dword [0x46a1f4], 0xffffffff
je 0x41650a
push esi
lea eax, [esp + 8]
push edi
push eax
call fcn.00430fb1
lea ecx, [esp + 0x10]
push ecx
call fcn.0042f8d4
mov edi, eax
push edi
push str.__y__m__d__H:_M:_S_
lea edx, [esp + 0x30]
push 0x3f
push edx
call fcn.00430f96
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [esp + 0x14]
push str._08X
push eax
call fcn.004306be
mov ecx, dword [0x46a1f8]
mov eax, dword [edi + 0x1c]
add esp, 0xc
cmp ecx, eax
je 0x416494
push edi
call fcn.004162e0
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x416494
mov edx, dword [edi + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ebx
mov ebx, dword [0x46a1f4]
push edx
push 0x46a1f8
call edi
push esi
push 0x46a1f4
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
lea eax, [esp + 0x10]
lea edx, [eax + 1]
jmp 0x4164a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4164a0
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
sub eax, edx
lea ecx, [esp + 0xc]
push ecx
push eax
mov eax, dword [0x46a1f4]
lea edx, [esp + 0x1c]
push edx
push eax
call esi
lea eax, [esp + 0x20]
lea edx, [eax + 1]
jmp 0x4164d0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4164d0
push 0
sub eax, edx
lea ecx, [esp + 0xc]
push ecx
push eax
mov eax, dword [0x46a1f4]
lea edx, [esp + 0x2c]
push edx
push eax
call esi
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
push 0
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [0x46a1f4]
push edx
push eax
push ecx
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x58]
call fcn.0042f2ae
add esp, 0x5c
ret
Function at 0x4168c0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
ret
Function at 0x41d1d0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2010
call fcn.0042f240
mov eax, dword [0x46b600]
push ebp
push esi
xor ebp, ebp
push ebp
mov esi, ecx
mov ecx, dword [esi + 0x1000]
mov dword [esp + 0x2018], eax
mov eax, dword [esi + 0x1010]
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41d21e
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x200c]
call fcn.0042f2ae
add esp, 0x2010
ret
mov ecx, dword [esi + 0x1000]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push ecx
call edi
cmp dword [esp + 0xc], 4
je 0x41d25b
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x200c]
call fcn.0042f2ae
add esp, 0x2010
ret
mov ecx, dword [esi + 0x1000]
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push ecx
call edi
cmp dword [esp + 0xc], 4
jne 0x41d243
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 0x1000]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
call edi
mov eax, dword [esp + 0x10]
cmp dword [esp + 0xc], eax
jne 0x41d243
mov ecx, dword [esi + 0x101c]
push 0x1000
push eax
lea eax, [esp + 0x20]
push eax
push esi
call fcn.0041cf80
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x1010]
mov al, byte [esi + 0x1020]
add ecx, 8
add edx, ecx
test al, al
mov dword [esi + 0x100c], 0
mov dword [esi + 0x1010], edx
je 0x41d31f
lea eax, [esi + 8]
mov ecx, 0x100
mov esi, dword [eax - 4]
mov edx, dword [eax - 8]
mov edi, dword [eax + 4]
add edx, esi
mov esi, dword [eax]
add edx, edi
add edx, esi
add ebp, edx
add eax, 0x10
dec ecx
jne 0x41d2e5
mov ecx, dword [esp + 0x14]
pop edi
xor eax, eax
cmp ebp, ecx
pop esi
sete al
pop ebp
mov ecx, dword [esp + 0x200c]
call fcn.0042f2ae
add esp, 0x2010
ret
mov ecx, dword [esp + 0x2018]
pop edi
pop esi
mov al, 1
pop ebp
call fcn.0042f2ae
add esp, 0x2010
ret
Function at 0x41d340
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x2010
call fcn.0042f240
mov eax, dword [0x46b600]
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x101c]
push 0x1000
mov dword [esp + 0x2018], eax
push esi
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x18], 0
call fcn.0041cbf0
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
lea eax, [esi + 8]
mov ecx, 0x100
push ebx
lea esp, [esp]
mov ebx, dword [eax - 4]
mov edi, dword [eax - 8]
add edi, ebx
add edi, dword [eax + 4]
add edi, dword [eax]
add edx, edi
add eax, 0x10
dec ecx
jne 0x41d390
mov eax, dword [esi + 0x1004]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x74]
mov ecx, dword [eax + 0x7c]
push 0
push 0
add ecx, edx
mov edx, dword [esi + 0x1000]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
pop ebx
je 0x41d435
mov edx, dword [esi + 0x1000]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push edx
call edi
cmp dword [esp + 8], 4
jne 0x41d435
mov edx, dword [esi + 0x1000]
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push edx
call edi
cmp dword [esp + 8], 4
jne 0x41d435
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x1000]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call edi
mov ecx, dword [esp + 0x10]
cmp dword [esp + 8], ecx
je 0x41d44c
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x200c]
call fcn.0042f2ae
add esp, 0x2010
ret
mov eax, dword [esi + 0x1004]
mov edx, dword [eax + 0x7c]
add ecx, 8
add edx, ecx
mov dword [eax + 0x7c], edx
xor eax, eax
mov edi, esi
mov ecx, 0x400
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2014]
mov dword [esi + 0x100c], eax
pop edi
mov al, 1
pop esi
call fcn.0042f2ae
add esp, 0x2010
ret