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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
and byte [ebp + 0xb], al
cmp byte [ebx], al
push edi
mov esi, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
jne 0x420980
cmp word [ecx + 0x1232], ax
je 0x4209c5
push 0x12c
push ebx
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x420979
push str.Failed_to_read_module_path
jmp 0x4209df
mov dword [ebp - 8], 1
mov al, byte [ebx]
test al, al
je 0x420a1c
cmp byte [ebx + 1], 0x3a
jne 0x420a1c
test al, al
mov byte [ebp - 4], al
je 0x4209ee
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4209b3
cmp byte [esi + 1], 0
lea eax, [esi + 1]
je 0x4209eb
mov esi, eax
mov al, byte [ebp - 4]
cmp al, 0x5c
jne 0x4209bd
mov dword [ebp - 0xc], esi
inc esi
mov byte [ebp + 0xb], al
mov al, byte [esi]
jmp 0x420994
mov edi, 0x12c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4209da
cmp eax, edi
jbe 0x420980
push str.Failed_to_read_working_directory
push dword [ebp + 0xc]
call fcn.0042b1f0
pop ecx
pop ecx
jmp 0x420a2d
and byte [esi], 0
cmp word [ebp - 8], 0
je 0x420a0a
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x420a04
push ebx
push str.Module_path___s__is_not_in_expected_format
jmp 0x420a22
and byte [eax + 1], 0
jmp 0x420a17
cmp byte [ebp + 0xb], 0x5c
je 0x420a17
and byte [esi + 1], 0
mov byte [esi], 0x5c
xor ax, ax
jmp 0x420a31
push ebx
push str.System_working_directory___s__is_not_in_expected_format
push dword [ebp + 0xc]
call fcn.0042b964
add esp, 0xc
mov ax, 1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x420d5e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
and dword [ebp - 0x14], 0
cmp byte [0x452000], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0x43d1aa
je 0x420f82
lea eax, [ebp - 0x2c4]
add ecx, 0x9c
push eax
push ecx
push str.Loader.Ini
call fcn.00407697
add esp, 0xc
lea eax, [ebp - 0x2c4]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, 0x452000
push eax
lea eax, [ebp - 0x34]
push 0x20
push eax
push 0x451740
mov ebx, str.Fonts
push esi
push ebx
call edi
lea eax, [ebp - 0x2c4]
push eax
push 0
push str.PointSize
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
call ebx
lea ecx, [ebp - 0x2c4]
push ecx
push eax
push esi
push str.PointSizes
call ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x68]
push 0x32
push eax
push 0x451740
push esi
push str.CharacterSets
call edi
mov cl, byte [ebp - 0x34]
lea eax, [ebp - 0x34]
test cl, cl
mov dword [ebp - 4], eax
je 0x420e53
cmp cl, 0x2c
je 0x420e28
inc eax
mov dword [ebp - 4], eax
mov cl, byte [eax]
test cl, cl
jne 0x420e17
jmp 0x420e2b
and byte [eax], 0
cmp byte [ebp - 0x34], 0
je 0x420e53
mov eax, dword [ebp - 0x10]
lea ebx, [eax + 0x1c]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c4]
push eax
push esi
push str.Font_for_language___s__in___s__is___s_
push ebx
call fcn.0041e63d
add esp, 0x14
jmp 0x420e6f
mov eax, dword [ebp - 0x10]
lea ebx, [eax + 0x1c]
lea eax, [ebp - 0x2c4]
push eax
push esi
push str.No_font_is_defined_for_language___s__in___s_
push ebx
call fcn.0041e63d
add esp, 0x10
cmp byte [ebp - 0x68], 0
je 0x420eea
cmp dword [str.DEFAULT], 0
lea eax, [ebp - 0x68]
mov dword [ebp - 4], eax
je 0x420ea7
mov edi, dword [ebp - 0xc]
push 1
lea eax, [ebp - 4]
push dword [edi]
push eax
call fcn.004076d8
add esp, 0xc
test ax, ax
jne 0x420ecc
add edi, 6
mov dword [ebp - 0xc], edi
cmp dword [edi], 0
jne 0x420e84
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x68]
push esi
push eax
push str.Unrecognised_character_set___s__for_language___s__in___s_
push dword [ebp + 8]
call fcn.0042b964
add esp, 0x14
mov ax, 1
jmp 0x420f85
mov di, word [edi + 4]
test di, di
je 0x420eed
lea eax, [ebp - 0x68]
push eax
push esi
push str.Character_set_for_language___s__is___s_
push ebx
call fcn.0041e63d
add esp, 0x10
jmp 0x420eed
mov edi, dword [ebp - 0x14]
cmp byte [0x45330a], 0
jne 0x420f21
lea eax, [ebp - 0x34]
push eax
push 0x45330a
call fcn.0042b1f0
mov esi, dword [ebp - 8]
pop ecx
test esi, esi
pop ecx
je 0x420f13
mov dword [0x45332a], esi
test di, di
je 0x420f24
mov word [0x453332], di
jmp 0x420f24
mov esi, dword [ebp - 8]
cmp byte [0x453334], 0
jne 0x420f53
lea eax, [ebp - 0x34]
push eax
push 0x453334
call fcn.0042b1f0
pop ecx
test esi, esi
pop ecx
je 0x420f47
mov dword [0x453354], esi
test di, di
je 0x420f53
mov word [0x45335c], di
cmp byte [0x452dec], 0
jne 0x420f82
lea eax, [ebp - 0x34]
push eax
push 0x452dec
call fcn.0042b1f0
pop ecx
test esi, esi
pop ecx
je 0x420f76
mov dword [0x452e0c], esi
test di, di
je 0x420f82
mov word [0x452e14], di
xor ax, ax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4212f3
Capabilities:
Create pipe
Create thread

Disassembly:
push ecx
cmp word [0x4551c4], 0
push esi
push edi
mov esi, ecx
je 0x42138c
push dword [0x4552f0]
mov eax, 0x15e6
lea edi, [esi + 0x1e]
push 0xc8
push eax
push eax
push 1
push 6
push 0x40000003
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x421346
push edi
push str.PIPE:_Failed_to_create___s__named_pipe
push dword [esi + 0x18]
call fcn.0041e63d
add esp, 0xc
jmp 0x421375
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x421393
push 0
push 0
call fcn.0042b9c1
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
jne 0x42137b
push str.PIPE:_Failed_to_create_pipe_objects
push dword [esi + 0x18]
call fcn.0041e63d
pop ecx
pop ecx
mov ax, 1
jmp 0x42138f
push edi
push str.PIPE:_Created_pipe_server___s_
push dword [esi + 0x18]
call fcn.0041e63d
add esp, 0xc
xor ax, ax
pop edi
pop esi
pop ecx
ret
Function at 0x421ca8
Capabilities:
Check mutex on windows
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
mov esi, str.GlobalWIL_LOCK_
lea edi, [ebp - 0x20c]
push 0x3b
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop ecx
xor eax, eax
lea edi, [ebp - 0x1fb]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xef
push dword [ebp + 8]
stosb byte es:[edi], al
lea eax, [ebp - 0x1fc]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x421e2e
cmp eax, 5
je 0x421e2e
push 0x4c
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x421e4b
and dword [ebx + 4], 0
and dword [ebx + 8], 0
push 0x3f
lea eax, [ebx + 0xc]
push dword [ebp + 8]
mov dword [ebx], edi
push eax
call esi
cmp byte [ebp + 0x10], 0
je 0x421e2a
mov esi, str..pipeWIL_LOCK_
lea edi, [ebp - 0x10c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 0x3b
xor eax, eax
pop ecx
lea edi, [ebp - 0xf9]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebx + 0xc]
push 0xed
push eax
lea eax, [ebp - 0xfa]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
xor esi, esi
push 0x14
push 0x40
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x421dd7
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x421dd7
push esi
push esi
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x421dd7
mov al, 1
jmp 0x421dd9
xor al, al
neg al
sbb eax, eax
lea ecx, [ebp - 0xc]
and eax, ecx
push eax
push esi
push esi
push esi
push 0xff
push 4
lea eax, [ebp - 0x10c]
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp dword [ebp - 8], esi
mov dword [ebx + 8], eax
je 0x421e0d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebx + 8], esi
je 0x421e2a
lea eax, [ebp + 0x10]
push eax
push esi
push ebx
push 0x421eb6
push esi
push esi
call fcn.0042b9c1
add esp, 0x18
mov dword [ebx + 4], eax
mov eax, ebx
jmp 0x421e4d
test edi, edi
je 0x421e39
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0xc], 0
je 0x421e4b
push 1
push dword [ebp + 8]
call fcn.00421f9c
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4220cc
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push 1
push edi
mov word [esi + 0x10], di
mov dword [esi + 0x14], edi
call ebx
push edi
push edi
push 1
push edi
mov dword [esi + 8], eax
call ebx
mov dword [esi + 0xc], eax
lea eax, [esp + 0xc]
push eax
push edi
push esi
push 0x422169
push edi
push edi
call fcn.0042b9c1
add esp, 0x18
cmp dword [esi + 8], edi
mov dword [esi + 4], eax
je 0x422121
cmp dword [esi + 0xc], edi
je 0x422121
cmp eax, edi
je 0x422121
xor ax, ax
jmp 0x422125
mov ax, 1
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4232a2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, ecx
xor edi, edi
cmp eax, edi
mov word [esi + 0x260], di
mov word [esi + 0x276], di
mov word [esi + 0x262], di
mov word [esi + 0x264], di
je 0x423331
push edi
push edi
push edi
mov dword [esi + 0x284], eax
mov word [esi + 0x274], di
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push edi
push edi
push 1
push edi
mov dword [esi + 0x26c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x270], eax
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x4233e9
push edi
push edi
call fcn.0042b9c1
add esp, 0x18
cmp dword [esi + 0x26c], edi
mov dword [esi + 0x268], eax
je 0x42332b
cmp dword [esi + 0x270], edi
je 0x42332b
cmp eax, edi
jne 0x423331
mov ax, 1
jmp 0x42334a
add esi, 4
push esi
push 0x452740
push str.__UMnnnn.__X
call fcn.00407697
add esp, 0xc
xor ax, ax
pop edi
pop esi
pop ebp
ret 4

Function at 0x423366
Capabilities:
Delete file
Resume thread

Disassembly:
push ebp
push esi
mov esi, ecx
call fcn.00423350
mov eax, dword [esi + 0x268]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42339c
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [esi + 0x268]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x268]
call ebp
cmp word [esi + 0x276], 0
je 0x4233d3
movzx eax, word [0x452bfe]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea edi, [esi + 4]
push edi
mov word [eax + esi + 0xe], 0x5844
call ebx
movzx eax, word [0x452bfe]
push edi
mov byte [eax + esi + 0xe], 0x45
call ebx
pop edi
pop ebx
push dword [esi + 0x26c]
call ebp
push dword [esi + 0x270]
call ebp
pop esi
xor ax, ax
pop ebp
ret
Function at 0x4233f7
Capabilities:
Suspend thread

Disassembly:
sub esp, 0x82c
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov esi, ecx
push ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 0x26c]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x270]
mov dword [esp + 0x18], eax
cmp word [esi + 0x262], bx
je 0x423540
cmp word [esi + 0x274], bx
jne 0x423540
call dword [sym.imp.WINMM.dll_timeGetTime]
cmp eax, ebx
jne 0x423452
push 1
pop eax
mov edi, eax
sub eax, dword [esi + 0x27c]
sub edi, dword [esi + 0x278]
mov ebp, eax
cmp edi, dword [0x452c2e]
jae 0x4234b4
cmp ebp, dword [esi + 0x280]
lea ebx, [esi + 0x280]
jae 0x4234b2
cmp word [esp + 0x10], 0
je 0x423491
push dword [esi + 0x26c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
and dword [esp + 0x10], 0
mov eax, dword [ebx]
mov ecx, dword [0x452c2e]
sub eax, ebp
sub ecx, edi
cmp ecx, eax
jae 0x4234a3
mov eax, ecx
push eax
mov ecx, esi
call fcn.00423e72
xor ebx, ebx
jmp 0x42342b
xor ebx, ebx
cmp word [esp + 0x10], bx
jne 0x4234e0
push 0xffffffffffffffff
lea eax, [esp + 0x18]
push ebx
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x42342b
mov dword [esp + 0x10], 1
jmp 0x42342b
cmp ebp, dword [esi + 0x280]
push dword [esi + 0x284]
jb 0x423526
push ebx
push ebx
push ebx
push ebx
push 2
mov ecx, esi
call fcn.00423602
test eax, eax
je 0x42342b
call dword [sym.imp.WINMM.dll_timeGetTime]
cmp eax, ebx
jne 0x423510
push 1
pop eax
mov dword [esi + 0x27c], eax
mov eax, dword [0x452c36]
mov dword [esi + 0x280], eax
jmp 0x42342b
push dword [0x452c2a]
lea eax, [esp + 0x24]
mov ecx, esi
push ebx
push 1
push eax
call fcn.004239a9
jmp 0x42342b
cmp word [esp + 0x10], bx
je 0x423557
push dword [esi + 0x26c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [esp + 0x10], ebx
cmp word [esi + 0x274], bx
jne 0x423571
push dword [esi + 0x268]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x42342b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x82c
ret
Function at 0x423d78
Capabilities:
Delete file
Set file attributes

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
call dword [sym.imp.WINMM.dll_timeGetTime]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x423d9a
mov dword [esp + 0x10], 1
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add edi, 4
push edi
call ebx
test eax, eax
jne 0x423e66
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.SCH:_Error__u_trying_to_delete_comms_message_before_setting_normal_attributes
push dword [esp + 0x24]
call fcn.0041e63d
add esp, 0xc
cmp esi, 5
je 0x423dd2
cmp esi, 0x20
jne 0x423e50
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push edi
call ebp
push edi
call ebx
test eax, eax
jne 0x423e66
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.SCH:_Error__u_trying_to_delete_comms_message
push dword [esp + 0x24]
call fcn.0041e63d
add esp, 0xc
cmp esi, 5
je 0x423e0b
cmp esi, 0x20
jne 0x423e50
call dword [sym.imp.WINMM.dll_timeGetTime]
test eax, eax
jne 0x423e18
push 1
pop eax
sub eax, dword [esp + 0x10]
cmp eax, dword [0x452c12]
ja 0x423e40
push dword [0x452c3a]
mov ecx, dword [esp + 0x18]
call fcn.00423e72
test ax, ax
jne 0x423e56
push 0x80
push edi
jmp 0x423dde
push str.SCH:_Timeout_trying_to_delete_comms_message
push dword [esp + 0x20]
call fcn.0041e63d
pop ecx
pop ecx
mov ax, 0x200
jmp 0x423e69
push str.SCH:_Abandoning_deleting_comms_message
push dword [esp + 0x20]
call fcn.0041e63d
pop ecx
pop ecx
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4

Function at 0x423ed1
Capabilities:
Resume thread

Disassembly:
movzx eax, word [0x452bfe]
push esi
mov esi, ecx
cmp word [esi + 0x260], 0
lea ecx, [esi + 0x260]
lea eax, [eax + esi + 8]
jne 0x423f88
mov word [ecx], 1
mov ecx, dword [esp + 8]
push ebx
mov ebx, ecx
shr ebx, 0xc
and bl, 0xf
mov dl, 0x30
or bl, dl
mov word [esi + 0x276], 1
mov word [esi + 0x262], 1
mov byte [eax], bl
xor ebx, ebx
mov byte [eax + 7], 0x44
mov bl, ch
and bl, 0xf
or bl, dl
mov byte [eax + 1], bl
mov bl, cl
shr bl, 4
and bl, 0xf
and cl, 0xf
or bl, dl
or cl, dl
mov byte [eax + 2], bl
mov byte [eax + 3], cl
lea eax, [esi + 4]
push eax
push str.SCH:_Comms_filename_set_to___s_
push dword [esp + 0x18]
call fcn.0041e63d
add esp, 0xc
call dword [sym.imp.WINMM.dll_timeGetTime]
test eax, eax
pop ebx
jne 0x423f65
push 1
pop eax
push dword [esi + 0x268]
mov dword [esi + 0x278], eax
mov dword [esi + 0x27c], eax
mov eax, dword [0x452c32]
mov dword [esi + 0x280], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
ret 8
Function at 0x42402c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1027c
call fcn.0042b680
push ebx
add ecx, 4
push esi
lea eax, [ebp - 0x26c]
xor esi, esi
push ecx
push eax
xor ebx, ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], esi
call fcn.0042b1f0
movzx eax, word [0x452bfe]
pop ecx
mov word [ebp + eax - 0x262], 0x5844
pop ecx
lea eax, [ebp - 0x26c]
push eax
movzx eax, word [ebp + 8]
push eax
push str.Reading_tag__u_from_overflow_file___s_
push dword [ebp + 0x14]
call fcn.0041e63d
add esp, 0x10
lea eax, [ebp - 0x26c]
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x4240d3
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_trying_to_open_overflow_file___s_
push dword [ebp + 0x14]
call fcn.0041e63d
add esp, 0x10
mov ax, 1
jmp 0x42422b
push edi
xor edi, edi
cmp word [ebp - 8], di
jne 0x424117
mov eax, 0x10010
cmp ebx, eax
jae 0x424117
lea ecx, [ebp - 4]
push edi
sub eax, ebx
push ecx
push eax
lea eax, [ebp + ebx - 0x1027c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42419e
cmp dword [ebp - 4], edi
je 0x424110
add ebx, dword [ebp - 4]
jmp 0x424117
mov dword [ebp - 8], 1
mov eax, ebx
sub eax, esi
cmp eax, 4
mov dword [ebp - 4], eax
jb 0x4241be
movzx edi, word [ebp + esi - 0x1027a]
add eax, 0xfffffffc
cmp eax, edi
jb 0x4241d6
mov ax, word [ebp + 8]
cmp word [ebp + esi - 0x1027c], ax
je 0x4241ef
lea esi, [esi + edi + 4]
mov edi, ebx
sub edi, esi
mov eax, edi
cmp eax, 4
mov dword [ebp - 4], eax
jae 0x42416a
mov dword [ebp - 8], 1
jmp 0x4240d4
movzx ecx, word [ebp + esi - 0x1027a]
lea edx, [eax - 4]
cmp ecx, edx
jae 0x4240d4
push eax
lea eax, [ebp + esi - 0x1027c]
push eax
lea eax, [ebp - 0x1027c]
push eax
call fcn.0042bc70
add esp, 0xc
mov ebx, edi
xor esi, esi
jmp 0x4240d4
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_reading_from_overflow_file___s_
push dword [ebp + 0x14]
call fcn.0041e63d
add esp, 0x10
jmp 0x42421d
cmp eax, edi
mov eax, str.Overflow_file___s__is_corrupt
jne 0x4241cc
mov eax, str.Tag_missing_from_overflow_file___s_
lea ecx, [ebp - 0x26c]
push ecx
push eax
jmp 0x4241e2
lea eax, [ebp - 0x26c]
push eax
push str.Overflow_file___s__is_corrupt
push dword [ebp + 0x14]
call fcn.0041e63d
add esp, 0xc
jmp 0x42421d
cmp edi, dword [ebp + 0x10]
jbe 0x4241f7
mov edi, dword [ebp + 0x10]
lea eax, [ebp + esi - 0x10278]
mov esi, dword [ebp + 0xc]
push edi
push eax
push esi
call fcn.0042b2e0
add esp, 0xc
mov eax, edi
dec edi
neg eax
sbb eax, eax
and eax, edi
and byte [eax + esi], 0
and dword [ebp - 0x10], 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, word [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x424231
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push ebx
push esi
add ecx, 4
push edi
lea eax, [ebp - 0x26c]
push ecx
push eax
mov dword [ebp - 8], 1
call fcn.0042b1f0
movzx eax, word [0x452bfe]
mov si, word [ebp + 8]
pop ecx
mov word [ebp + eax - 0x262], 0x5845
pop ecx
lea eax, [ebp - 0x26c]
push eax
movzx eax, si
push eax
push str.Writing_tag__u_to_overflow_file___s_
push dword [ebp + 0x10]
call fcn.0041e63d
add esp, 0x10
xor edi, edi
lea eax, [ebp - 0x26c]
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4242d2
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_trying_to_create_overflow_file___s_
push dword [ebp + 0x10]
call fcn.0041e63d
add esp, 0x10
mov ax, 1
jmp 0x424366
push dword [ebp + 0xc]
mov word [ebp - 4], si
call fcn.0042bfb0
inc eax
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
mov word [ebp - 2], ax
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 4]
push 4
push eax
push ebx
call esi
test eax, eax
je 0x42433d
lea eax, [ebp - 0x10]
push edi
push eax
movzx eax, word [ebp - 2]
push eax
push dword [ebp + 0xc]
push ebx
call esi
test eax, eax
je 0x42433d
cmp dword [ebp - 0xc], 4
jne 0x424324
movzx eax, word [ebp - 2]
cmp dword [ebp - 0x10], eax
jne 0x424324
mov dword [ebp - 8], edi
jmp 0x42435b
lea eax, [ebp - 0x26c]
push eax
push str.Error_writing_to_overflow_file___s____disk_full_
push dword [ebp + 0x10]
call fcn.0041e63d
add esp, 0xc
jmp 0x42435b
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_writing_to_overflow_file___s_
push dword [ebp + 0x10]
call fcn.0041e63d
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, word [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x424613
Capabilities:
Create service
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1334
call fcn.0042b680
push ebx
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x108]
mov dword [ebp - 4], ecx
push str.WilC2._s
push eax
call fcn.0042b964
add esp, 0xc
lea eax, [ebp - 0x334]
push dword [ebp + 8]
push str.WilC2___s_
push eax
call fcn.0042b964
add esp, 0xc
lea eax, [ebp - 0x234]
xor esi, esi
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42467a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_read_module_path
jmp 0x4246ac
lea eax, [ebp - 0x234]
push str._service
push eax
call fcn.0042b200
pop ecx
pop ecx
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, esi
jne 0x4246b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_open_Service_Manager_database
mov ecx, dword [ebp - 4]
call fcn.00424593
jmp 0x42479c
push edi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x234]
push esi
push eax
push 1
push 3
push 0x10
lea eax, [ebp - 0x334]
push 0xf01ff
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp eax, esi
je 0x424767
push eax
call edi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x1334]
push str.SystemCurrentControlSetServices_s
push eax
call fcn.0042b964
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1334]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x424749
push 0xf
push str.Wil32C2_driver
push 1
push esi
push str.Description
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x1334]
push str.Service___s__installed_successfully
push eax
call fcn.0042b964
add esp, 0xc
push esi
jmp 0x424789
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x1334]
push str.Failed_to_install_service___s_
push eax
call fcn.0042b964
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x1334]
push eax
call fcn.00424593
push ebx
call edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4247a2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push 1
push edi
mov word [esi + 0xe50], di
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xe48], eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x424855
push edi
push edi
call fcn.0042b9c1
add esp, 0x18
cmp dword [esi + 0xe48], edi
mov dword [esi + 0xe4c], eax
je 0x4247f0
cmp eax, edi
je 0x4247f0
xor ax, ax
jmp 0x424803
push str.Failed_to_create_Update_status_thread
push dword [ebp + 8]
call fcn.0042b1f0
pop ecx
mov ax, 1
pop ecx
pop edi
pop esi
leave
ret 4