joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5144e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x38
mov edx, dword [0x85014c]
test edx, edx
je 0x514676
lea eax, [ebp - 0x30]
xor ebx, ebx
lea edi, [ebp - 0x31]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
sub esp, 4
mov eax, dword fs:[0x18]
mov dword [ebp - 0x38], eax
jmp 0x514580
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xfda
mov dword [esp + 8], ebx
mov dword [esp + 4], str.GetNumaProcessorNode_returned_FALSE_for_processor__d_n
mov dword [esp], esi
call fcn.0050e8b0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xfdb
xor eax, eax
mov dword [esp + 4], str.expected_node___0xFF__but_got_0xFF_n
cmp byte [ebp - 0x31], 0xff
setne al
add ebx, 1
mov dword [esp], eax
call fcn.0050e8b0
cmp ebx, 0x100
je 0x51466e
mov eax, dword [ebp - 0x38]
cmp ebx, dword [ebp - 0x1c]
mov dword [eax + 0x34], 0xdeadbeef
sbb eax, eax
or eax, 0xffffffaa
mov byte [ebp - 0x31], al
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [0x85014c]
sub esp, 8
mov esi, eax
cmp ebx, dword [ebp - 0x1c]
jb 0x514520
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xfdf
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.GetNumaProcessorNode_returned_TRUE_for_processor__d_n
call fcn.0050e8b0
call fcn.0057d110
movzx ecx, byte [ebp - 0x31]
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xfe0
mov eax, 1
cmp cl, 0xff
je 0x514612
mov eax, dword [0x8f0770]
test eax, eax
sete al
cmp cl, 0xaa
sete dl
movzx edx, dl
and eax, edx
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], str.expected_node_0xFF__got__x_n
call fcn.0050e8b0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xfe1
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
mov dword [esp + 4], 0x5f0434
mov dword [esp + 8], edx
cmp dword [eax + 0x34], 0x57
sete al
add ebx, 1
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
cmp ebx, 0x100
jne 0x514580
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xfce
call fcn.0050dc60
mov dword [esp], str.GetNumaProcessorNode_is_missing_n
call fcn.0050e770
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x515260
Capabilities:
Terminate process

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, dword fs:[0x18]
sub esp, 0x94
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [0x85016c]
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xba7
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.CreateJobObject_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.0050e8b0
lea eax, [ebp - 0x80]
mov dword [ebp - 0x70], 0x2000
mov dword [esp + 0xc], 0x70
mov dword [esp + 8], eax
mov dword [esp + 4], 9
mov dword [esp], ebx
call dword [0x850154]
sub esp, 0x10
mov esi, eax
test eax, eax
jne 0x515302
cmp dword [edi + 0x34], 0x57
je 0x5154a0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xbb0
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x34]
mov dword [esp], esi
mov dword [esp + 4], str.SetInformationJobObject_error__lu_n
mov dword [esp + 8], eax
call fcn.0050e8b0
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
mov dword [esp], 0xbb1
call fcn.0050eab0
mov dword [esp], 0
xor ecx, ecx
mov edx, ebx
mov eax, 0xbb2
call fcn.00514d80
lea ecx, [ebp - 0x90]
mov edx, str.wait
mov eax, 0xbb4
call fcn.0050e8d0
mov eax, dword [ebp - 0x90]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [0x850164]
sub esp, 8
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xbb7
mov eax, dword [edi + 0x34]
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], str.AssignProcessToJobObject_error__lu_n
call fcn.0050e8b0
mov eax, dword [ebp - 0x88]
mov dword [esp + 4], ebx
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp], 0xbb8
call fcn.0050eab0
mov dword [esp], 1
mov edx, ebx
mov ecx, 1
mov eax, 0xbb9
call fcn.00514d80
mov dword [esp], ebx
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
sub esp, 4
mov dword [esp + 4], 0x3e8
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xbbf
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.WaitForSingleObject_returned__lu_n
mov dword [esp], eax
call fcn.0050e8b0
cmp ebx, 0x102
je 0x515480
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x8c]
sub esp, 4
mov dword [esp], eax
call esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
sub esp, 8
jmp 0x51544e
mov eax, 0xbad
call fcn.0050dc60
mov dword [esp], str.Kill_on_job_close_limit_not_available_n
call fcn.0050e770
jmp 0x51546a
Function at 0x51c770
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov edx, dword [0x850188]
test edx, edx
je 0x51c908
mov eax, dword [0x850180]
test eax, eax
je 0x51c7e0
lea edx, [ebp - 0x4c]
mov dword [esp], 0xffffffff
mov dword [esp + 4], edx
call eax
sub esp, 8
test eax, eax
je 0x51c7e0
lea eax, [ebp - 0x48]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
lea eax, [ebp - 0x24]
sub esp, 4
mov dword [esp], eax
call dword [0x850188]
mov eax, dword [ebp - 0x4c]
sub esp, 4
test eax, eax
je 0x51c7f0
cmp word [ebp - 0x48], 0
je 0x51c870
leave
ret
mov dword [ebp - 0x4c], 0
jmp 0x51c7a4
call fcn.0057d110
mov dword [eax], 0x5eee7f
movzx ecx, word [ebp - 0x24]
mov dword [eax + 4], 0x945
movzx eax, word [ebp - 0x48]
mov edx, ecx
mov dword [esp + 0xc], ecx
cmp dx, ax
movzx ecx, ax
mov dword [esp + 4], str.Expected_no_difference_for_wProcessorArchitecture__got__d_and__d_n
sete al
mov dword [esp + 8], ecx
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x948
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], str.Expected_no_difference_for_dwProcessorType__got__ld_and__ld_n
mov dword [esp + 8], eax
cmp edx, eax
mov dword [esp + 0xc], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
leave
ret
call fcn.0057d110
mov dword [eax], 0x5eee7f
movzx edx, word [ebp - 0x24]
mov dword [eax + 4], 0x936
cmp dx, 9
mov dword [esp + 8], edx
sete al
mov dword [esp + 4], str.Expected_PROCESSOR_ARCHITECTURE_AMD64__got__d_n
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
mov eax, dword [0x85017c]
test eax, eax
je 0x51c8d3
lea edx, [ebp - 0x4e]
mov dword [esp], 0xffffffff
mov dword [esp + 8], edx
lea edx, [ebp - 0x50]
mov dword [esp + 4], edx
call eax
sub esp, 0xc
test eax, eax
je 0x51c8d3
cmp word [ebp - 0x4e], 0xaa64
je 0x51c920
mov eax, 0x940
call fcn.0050dc60
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], str.got__ld_n
cmp eax, 0x21d8
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
leave
ret
mov eax, 0x92a
call fcn.0050dc60
mov dword [esp], str.GetNativeSystemInfo_is_not_available_n
call fcn.0050e770
leave
ret
mov eax, 0x93c
call fcn.0050dc60
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], str.got__ld_n
cmp eax, 0x24a
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
mov eax, 0x93d
call fcn.0050dc60
movzx edx, word [ebp - 4]
mov dword [esp + 4], 0x5f18dc
cmp dx, 0xf
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
mov eax, 0x93e
call fcn.0050dc60
movzx edx, word [ebp - 2]
mov dword [esp + 4], 0x5f18dc
cmp dx, 0x40a
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
leave
ret
Function at 0x526bb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x124
mov dword [ebp - 0x114], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x526ca4
mov dword [esp + 4], 0
mov ebx, eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
sub esp, 8
cmp eax, dword [ebp - 0x114]
jne 0x526c98
lea edx, [ebp - 0x114]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x110]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
mov edi, eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test edi, edi
je 0x526ca4
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
mov dword [esp + 4], esi
mov dword [esp], edx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcmp
test eax, eax
sete al
lea esp, [ebp - 0xc]
pop ebx
movzx eax, al
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5278a0
Capabilities:
Delete file
Read .ini file

Disassembly:
push ebp
mov ecx, 0x96
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x264]
mov esi, 0x57f4c0
push ebx
sub esp, 0x2c4
mov ebx, dword [sym.imp.kernel32.dll_DeleteFileA]
rep movsd dword es:[edi], dword [esi]
mov dword [esp], str.._testwine.ini
lea edi, [ebp - 0x264]
call ebx
mov dword [ebp - 0x2bc], ebx
mov dword [ebp - 0x2a8], 0
sub esp, 4
lea esi, [esi]
lea esi, [esi]
mov ebx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov dword [ebp - 0x2ac], ebx
test eax, eax
je 0x527920
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.ProfileInt
mov dword [esp], 0x5f393d
call dword [sym.imp.kernel32.dll_WritePrivateProfileStringA]
sub esp, 0x10
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0x10]
mov esi, dword [edi]
mov eax, dword [ebp - 0x2ac]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [ebp - 0x2b8], ecx
mov dword [esp + 4], edx
mov dword [ebp - 0x2b4], edx
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
sub esp, 0x10
mov dword [ebp - 0x2b0], eax
call fcn.0057d110
mov ebx, dword [edi + 0x14]
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x5f
mov dword [esp + 0x10], ebx
mov ecx, dword [ebp - 0x2b0]
mov dword [esp + 0xc], ecx
mov eax, dword [ebp - 0x2a8]
mov dword [esp + 4], str.test__02d_:_ret__010u__exp__010u__n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, ecx
sete al
mov dword [esp], eax
call fcn.00527880
lea ecx, [ebp - 0x2a4]
mov dword [esp + 8], esi
mov dword [esp], ecx
mov dword [esp + 4], str.___s
call fcn.00526ac0
mov edx, dword [ebp - 0x2ac]
mov dword [esp + 0xc], edx
mov ecx, dword [ebp - 0x2b8]
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x2b4]
mov dword [esp], esi
mov dword [esp + 4], edx
call dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
sub esp, 0x10
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x65
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov eax, dword [ebp - 0x2a8]
mov dword [esp + 4], str.test__02d_:_ret__010u__exp__010u__n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, esi
sete al
add edi, 0x18
mov dword [esp], eax
call fcn.00527880
add dword [ebp - 0x2a8], 1
mov eax, dword [ebp - 0x2a8]
cmp eax, 0x19
jne 0x5278f0
mov ebx, dword [ebp - 0x2bc]
mov dword [esp], str.._testwine.ini
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x527a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x24
mov dword [ebp - 0x14], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x205
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.cannot_create__s_n
call fcn.00527880
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov ecx, dword [ebp - 0x14]
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x533560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5f4f57
mov dword [eax + 4], 0x255
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.failed_to_create_file_err__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00533410
lea eax, [ebp - 8]
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x160
mov dword [esp + 4], 0x5f5860
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3000
call dword [sym.imp.kernel32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SetEndOfFile]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret
Function at 0x543ec0
Capabilities:
Create thread

Disassembly:
push ebp
mov eax, 0xcccccccc
mov ecx, 0xb3
mov ebp, esp
push edi
push ebx
lea edx, [ebp - 0x2d4]
mov edi, edx
sub esp, 0x2e4
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2d4], 0x10010
mov dword [esp + 4], edx
mov dword [esp], 0xfffffffe
call dword [sym.imp.kernel32.dll_GetThreadContext]
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x4b2
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], ebx
mov dword [esp + 4], str.GetThreadContext_failed:__lu_n
mov dword [esp + 8], eax
call fcn.00543700
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x4b3
mov eax, dword [ebp - 0x2d4]
mov dword [esp + 4], str.ContextFlags___lx_n
cmp eax, 0x10010
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00543700
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x4b4
mov eax, dword [ebp - 0x2d0]
mov dword [esp + 4], str.Dr0___lx_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00543700
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x4b5
mov eax, dword [ebp - 0x2d0]
mov dword [esp + 4], str.Dr0___lx_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x2cc]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.00543700
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x1234
mov dword [esp + 8], 0x543720
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov ebx, eax
mov dword [esp + 4], 0x3e8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x5442f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
mov esi, dword fs:[0x18]
sub esp, 0x30
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
sub esp, 0x10
mov dword [ebp - 0x10], eax
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x7a9
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.Failed_to_create_event__last_error__lx._n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x10]
xor eax, eax
test edx, edx
setne al
mov dword [esp], eax
call fcn.00543700
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x544de0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x7ac
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.Failed_to_create_thread__last_error__lx._n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.00543700
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
mov dword [ebp - 0x20], eax
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x7af
mov eax, dword [esi + 0x34]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x20]
xor eax, eax
mov dword [esp + 4], str.Wait_failed___lx___last_error__lx._n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00543700
mov ecx, dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov dword [ebp - 0x24], ecx
call ecx
sub esp, 4
mov dword [ebp - 0x20], eax
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x7b2
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.Failed_to_close_event_handle__last_error__lx._n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x20]
xor eax, eax
test edx, edx
setne al
mov dword [esp], eax
call fcn.00543700
mov dword [esp], ebx
mov ecx, dword [ebp - 0x24]
call ecx
mov eax, dword [ebp - 0x14]
sub esp, 4
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x544f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
push ebx
lea ebx, [ebp - 0x210]
sub esp, 0x228
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
sub esp, 0x18
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x828
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.CreateFile_failed:__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00543700
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_strlen]
lea edx, [ebp - 0x214]
mov dword [esp], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x5452a0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x10
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x150]
push ebx
lea ebx, [ebp - 0x110]
mov esi, dword fs:[0x18]
sub esp, 0x184
mov dword [ebp - 0x154], 0x44
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x168]
mov dword [esp], eax
call fcn.0057d960
mov eax, dword [ebp - 0x168]
mov dword [esp + 0x10], 0x5f8a1f
mov edx, dword [eax + 4]
mov dword [esp + 0xc], edx
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5f8a25
call fcn.00542b40
lea eax, [ebp - 0x164]
mov dword [esp + 4], ebx
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x154]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
sub esp, 0x28
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x75
mov eax, dword [esi + 0x34]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5f8a2e
call fcn.00543700
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x77
mov eax, dword [esi + 0x34]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5f8a3a
call fcn.00543700
mov eax, dword [ebp - 0x164]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x574d00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x214]
lea esi, [ebp - 0x21c]
push ebx
sub esp, 0x220
mov ebx, dword [sym.imp.kernel32.dll_GetVolumeNameForVolumeMountPointW]
mov dword [ebp - 0x21c], 0x3a0063
mov dword [ebp - 0x218], 0x5c
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], esi
call ebx
sub esp, 0xc
mov dword [ebp - 0x220], eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x12e
xor eax, eax
mov dword [esp + 4], str.GetVolumeNameForVolumeMountPointW_succeeded_n
mov edx, dword [ebp - 0x220]
test edx, edx
sete al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
mov edx, 1
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x12f
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x34]
cmp ecx, 0xce
je 0x574dab
xor edx, edx
cmp ecx, 0x57
sete dl
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [esp + 4], str.wrong_error__last_ld_n
call fcn.005744b0
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 8], 0x104
call ebx
sub esp, 0xc
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x13c
xor eax, eax
cmp ebx, 1
sete al
mov dword [esp + 4], str.GetVolumeNameForVolumeMountPointW_failed_n
mov dword [esp], eax
call fcn.005744b0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x57d060
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [esp], 1
call dword [0x57fd14]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fflush]
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x57e530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0057e890
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0x4b6370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4b638e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x4df074
push ecx
mov edi, eax
call fcn.004ca198
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b63cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.004ca02e
push esi
call fcn.004c9fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret