joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f800
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x88
call fcn.004f42d0
mov eax, dword [0x55509c]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
push edi
mov edi, dword [esp + 0x9c]
je 0x47f875
cmp ebx, dword [esi]
je 0x47f86c
test edi, edi
je 0x47f852
cmp dword [esp + 0xa0], eax
jge 0x47f86c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004f3e94
add esp, 0x88
ret
mov eax, 1
mov dword [esi], ebx
jmp 0x47f87b
mov ebx, dword [esi]
test ebx, ebx
je 0x47f852
test edi, edi
push ebp
je 0x47f94d
push ebx
call fcn.00484210
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x47f8ab
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.004840a0
add esp, 0xc
mov eax, dword [esp + 0xa4]
cmp ebp, eax
jge 0x47f905
mov ecx, dword [esp + 0x10]
push ecx
lea ebp, [esi + 4]
push ebx
push ebp
call fcn.00483540
add esp, 0xc
test eax, eax
je 0x47fa08
mov edx, dword [esp + 0xa4]
push edx
push edi
push ebp
call fcn.004836f0
add esp, 0xc
test eax, eax
je 0x47fa08
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebp
call fcn.00483700
add esp, 0xc
test eax, eax
je 0x47fa08
jmp 0x47f92a
cmp eax, 0x80
ja 0x47fa08
push eax
lea ecx, [esi + 0x50]
push edi
push ecx
call fcn.004f01b0
mov edx, dword [esp + 0xb0]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], edx
mov edi, dword [edi]
cmp edi, 0x80
je 0x47f955
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + esi + 0x50]
push 0
push ecx
call fcn.004ee340
add esp, 0xc
jmp 0x47f955
test eax, eax
je 0x47f9f4
xor eax, eax
jmp 0x47f960
mov dl, byte [esi + eax + 0x50]
xor dl, 0x36
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x47f960
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x1c]
push ebx
push ebp
call fcn.00483540
add esp, 0xc
test eax, eax
je 0x47fa08
push ebx
call fcn.00484210
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004836f0
add esp, 0x10
test eax, eax
je 0x47fa08
xor eax, eax
jmp 0x47f9b0
mov dl, byte [esi + eax + 0x50]
xor dl, 0x5c
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x47f9b0
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x34]
push ebx
push ebp
call fcn.00483540
add esp, 0xc
test eax, eax
je 0x47fa08
push ebx
call fcn.00484210
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004836f0
add esp, 0x10
test eax, eax
je 0x47fa08
lea edx, [esi + 0x1c]
push edx
add esi, 4
push esi
call fcn.00483860
add esp, 8
test eax, eax
jne 0x47fa0c
xor eax, eax
jmp 0x47fa11
mov eax, 1
mov ecx, dword [esp + 0x94]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f3e94
add esp, 0x88
ret
Function at 0x483f60
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, pe_nt_image_headers32
call fcn.004f42d0
mov eax, dword [0x55509c]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x483fe7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x483fe7
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.004f576d
add esp, 0x10
test eax, eax
jge 0x483fbd
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f3e94
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.004f576d
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x484075
call fcn.00483e20
test eax, eax
jle 0x484075
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
mov esi, eax
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f3e94
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004f3e94
add esp, 0x108
ret
Function at 0x4d5b40
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4d5b59
mov esi, edi
mov edi, eax
jmp 0x4d5b5b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4d5b6b
mov eax, ebx
jmp 0x4d5b75
push eax
push ebx
call fcn.0048f170
add esp, 8
test eax, eax
jne 0x4d5b7d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4d5b9b
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x4d5b84
cmp eax, dword [esi + 4]
jge 0x4d5bb2
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [esi + 4]
jl 0x4d5ba0
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebx + 4], eax
jle 0x4d5bd5
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4d5bd2
sub eax, 1
test eax, eax
jg 0x4d5bc2
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4eb3f4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x55509c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004eb333
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004ee340
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4eb443
cmp dword [ebp - 0x1c], 5
jb 0x4eb45b
jmp 0x4eb457
cmp dword [ebp - 0x10], 1
jne 0x4eb45b
cmp dword [ebp - 0x1c], 4
ja 0x4eb457
jne 0x4eb45b
cmp dword [ebp - 0x18], 0
jbe 0x4eb45b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x537a54
call fcn.00407b0f
test eax, eax
jge 0x4eb47c
mov byte [0x55cb18], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004f3e94
add ebp, 0x78
leave
ret
Function at 0x4eb6fb
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x55baf0], 0
push esi
jne 0x4eb66e
call fcn.004eb599
test eax, eax
je 0x4eb6b1
mov eax, dword [0x55baf0]
cmp eax, 1
jne 0x4eb68f
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4eb6b1
pop esi
ret
push eax
call dword [0x55baf8]
test eax, eax
jne 0x4eb6f9
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4eb6b5
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x55baf0]
call dword [0x55baf8]
mov edi, eax
test edi, edi
je 0x4eb6dc
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4eb6f8
lea edi, [esi + 0xff0]
push esi
push dword [0x55baf0]
call dword [0x55baf4]
add esi, 0x10
cmp esi, edi
jb 0x4eb6e2
mov eax, esi
pop edi
pop esi
ret
jmp 0x4eb65b
Function at 0x4ee07e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4ee0bb
cmp dword [ebp + 0x14], edi
je 0x4ee0bb
cmp ecx, edi
jne 0x4ee0c2
call fcn.004f4fe0
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004edcaa
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4ee0d6
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4ee0f7
cmp ebx, 0xffffffff
je 0x4ee0e6
push ebx
push edi
push ecx
call fcn.004ee340
add esp, 0xc
cmp esi, edi
je 0x4ee0a3
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4ee0a3
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4ee113
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4ee11a
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4ee20b
test word [esi + 0xc], 0x10c
je 0x4ee16e
mov eax, dword [esi + 4]
test eax, eax
je 0x4ee16e
jl 0x4ee26c
cmp ebx, eax
mov edi, ebx
jb 0x4ee13f
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4ee213
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004ed5b8
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4ee203
cmp ebx, dword [ebp - 0xc]
jb 0x4ee1db
cmp dword [ebp - 0xc], 0
je 0x4ee198
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4ee18d
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4ee194
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4ee1a3
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4ee1a3
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4ee23f
push eax
push dword [ebp - 8]
push esi
call fcn.004f0515
pop ecx
push eax
call fcn.004fca26
add esp, 0xc
test eax, eax
je 0x4ee27e
cmp eax, 0xffffffff
je 0x4ee26c
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4ee203
push esi
call fcn.004fc345
cmp eax, 0xffffffff
pop ecx
je 0x4ee270
cmp dword [ebp - 4], 0
je 0x4ee23f
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4ee122
mov eax, dword [ebp + 0x14]
jmp 0x4ee0bd
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4ee22a
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004ee340
add esp, 0xc
call fcn.004f4fe0
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4ee0b3
cmp dword [ebp + 0xc], 0xffffffff
je 0x4ee255
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004ee340
add esp, 0xc
call fcn.004f4fe0
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4ee0b3
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4ee0bd
or dword [esi + 0xc], 0x10
jmp 0x4ee270
Function at 0x4f18eb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4f1918
call fcn.004f4ff3
mov dword [eax], esi
call fcn.004f4fe0
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004edcaa
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4f18f4
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4f1947
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f5006
pop ecx
call fcn.004f4fe0
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4f196e
test al, 1
je 0x4f196e
test byte [esp + 0xc], 2
je 0x4f196e
call fcn.004f4ff3
mov dword [eax], 5
call fcn.004f4fe0
mov dword [eax], 0xd
jmp 0x4f193e
xor eax, eax
pop esi
ret

Function at 0x4f3e94
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x55509c]
jne 0x4f3e9e
repz ret
jmp fcn.00505007

Function at 0x4f9bf8
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x555c08]
je 0x4f9c13
inc edi
cmp edi, 0x17
jb 0x4f9c04
cmp edi, 0x17
jae 0x4f9d93
push ebp
push 3
call fcn.00506b77
cmp eax, 1
pop ecx
je 0x4f9d5f
push 3
call fcn.00506b77
test eax, eax
pop ecx
jne 0x4f9c47
cmp dword [0x555098], 1
je 0x4f9d5f
cmp ebx, 0xfc
je 0x4f9d92
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x55bc08
push ebp
call fcn.004f19ed
add esp, 0xc
test eax, eax
je 0x4f9c7d
push esi
push esi
push esi
push esi
push esi
call fcn.004edbae
add esp, 0x14
push 0x104
mov esi, 0x55bc21
push esi
push 0
mov byte [0x55bd25], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4f9cc1
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004f19ed
add esp, 0xc
test eax, eax
je 0x4f9cc1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004edbae
add esp, 0x14
push esi
call fcn.004eb790
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4f9d06
push esi
call fcn.004eb790
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x55bf1c
push 0x53926c
sub ecx, eax
push ecx
push eax
call fcn.00503f49
add esp, 0x14
test eax, eax
je 0x4f9d06
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004edbae
add esp, 0x14
jmp 0x4f9d08
xor esi, esi
push 0x539268
push ebx
push ebp
call fcn.00503ed8
add esp, 0xc
test eax, eax
je 0x4f9d28
push esi
push esi
push esi
push esi
push esi
call fcn.004edbae
add esp, 0x14
push dword [edi*8 + 0x555c0c]
push ebx
push ebp
call fcn.00503ed8
add esp, 0xc
test eax, eax
je 0x4f9d4a
push esi
push esi
push esi
push esi
push esi
call fcn.004edbae
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.005069ba
add esp, 0xc
jmp 0x4f9d92
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4f9d92
cmp ebp, 0xffffffff
je 0x4f9d92
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x555c0c]
push dword [esi]
call fcn.004eb790
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x5069ba
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004f9679
xor ebx, ebx
cmp dword [0x55c6a8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x506a90
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x506b70
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x539e70
push edi
call esi
cmp eax, ebx
je 0x506b70
push eax
call fcn.004f960b
mov dword [esp], 0x539e60
push edi
mov dword [0x55c6a8], eax
call esi
push eax
call fcn.004f960b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x55c6ac], eax
call esi
push eax
call fcn.004f960b
mov dword [0x55c6b0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004f39d3
test eax, eax
pop ecx
pop ecx
je 0x506a5e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004edbae
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x506a90
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004f960b
cmp eax, ebx
pop ecx
mov dword [0x55c6b8], eax
je 0x506a90
push 0x539e18
push edi
call esi
push eax
call fcn.004f960b
pop ecx
mov dword [0x55c6b4], eax
mov eax, dword [0x55c6b4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x506b15
cmp dword [0x55c6b8], ecx
je 0x506b15
push eax
call fcn.004f9682
push dword [0x55c6b8]
mov esi, eax
call fcn.004f9682
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x506b15
cmp edi, ebx
je 0x506b15
call esi
cmp eax, ebx
je 0x506ae2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x506ae2
test byte [ebp - 0x18], 1
jne 0x506b15
lea eax, [ebp - 0x10]
push eax
call fcn.004f3a0a
test eax, eax
pop ecx
je 0x506afd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004edbae
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x506b0c
or dword [ebp + 0x10], 0x200000
jmp 0x506b50
or dword [ebp + 0x10], 0x40000
jmp 0x506b50
mov eax, dword [0x55c6ac]
cmp eax, dword [ebp - 8]
je 0x506b50
push eax
call fcn.004f9682
cmp eax, ebx
pop ecx
je 0x506b50
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x506b50
mov eax, dword [0x55c6b0]
cmp eax, dword [ebp - 8]
je 0x506b50
push eax
call fcn.004f9682
cmp eax, ebx
pop ecx
je 0x506b50
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x55c6a8]
call fcn.004f9682
cmp eax, ebx
pop ecx
je 0x506b70
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x506b72
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46d5bd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x52266c]
cmp eax, 0xffffffff
jne 0x46d6c9
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov dword [esp], 0xa2de60
call sub.msvcrt.dll_memset
mov dword [0xa2de60], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], 0xa2dea4
call sub.msvcrt.dll_memset
mov dword [esp + 0x24], 0xa2dea4
mov dword [esp + 0x20], 0xa2de60
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.cmd.exe__c_ver
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
sub esp, 0x28
test eax, eax
setne al
test al, al
je 0x46d6bf
mov eax, dword [0xa2dea4]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov eax, dword [0xa2dea4]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa2dea8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0x52266c], 1
jmp 0x46d6c9
mov dword [0x52266c], 0
mov eax, dword [0x52266c]
leave
ret
Function at 0x47e6b6
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0047e2b2
test eax, eax
sete al
test al, al
je 0x47e6e2
mov eax, 0xfffffffe
mov edx, 0xffffffff
jmp 0x47e795
mov edx, dword [0x6936fc]
mov eax, dword [ebp + 8]
shl eax, 3
mov ecx, eax
shl ecx, 4
mov edi, ecx
sub edi, eax
mov eax, edi
add eax, edx
mov dword [0xa1d16c], eax
mov eax, dword [0xa1d16c]
movzx eax, byte [eax + 0x70]
test al, al
je 0x47e719
mov eax, 0xfffffffc
mov edx, 0xffffffff
jmp 0x47e795
mov eax, dword [0x6936f8]
mov edx, dword [ebp + 8]
shl edx, 2
add eax, edx
mov dword [0xa1d170], eax
mov edi, 0xa1d178
mov eax, dword [0xa1d170]
mov eax, dword [eax]
mov dword [esp + 4], 0xa1d17c
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileSize]
call eax
sub esp, 8
mov dword [edi], eax
mov eax, dword [0xa1d178]
mov edx, dword [0xa1d17c]
mov ebx, eax
and bh, 0xff
mov esi, edx
and esi, 0
mov eax, ebx
xor eax, 0xffffffff
or eax, esi
test eax, eax
jne 0x47e78a
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
test eax, eax
setne al
test al, al
je 0x47e78a
mov eax, 0xfffffffd
mov edx, 0xffffffff
jmp 0x47e795
mov eax, dword [0xa1d178]
mov edx, dword [0xa1d17c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x48013b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0047e2b2
test eax, eax
sete al
test al, al
je 0x480179
mov eax, 0xfffffffe
jmp 0x480333
mov edx, dword [0x6936fc]
mov eax, dword [ebp + 8]
shl eax, 3
mov ecx, eax
shl ecx, 4
mov ebx, ecx
sub ebx, eax
mov eax, ebx
add eax, edx
mov dword [0xa1d0b4], eax
mov eax, dword [0xa1d0b4]
movzx eax, byte [eax + 0xa]
test al, al
jne 0x4801ae
mov eax, 0xfffffffd
jmp 0x480333
cmp dword [ebp - 0x14], 0
jns 0x4801be
mov eax, 0xfffffffc
jmp 0x480333
mov eax, dword [ebp - 0xc]
mov edx, eax
xor edx, 0xffffffff
mov eax, dword [ebp - 0x10]
xor eax, 0xffffffff
or eax, edx
test eax, eax
je 0x480208
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00480001
mov dword [0xa1d0b8], eax
mov eax, dword [0xa1d0b8]
test eax, eax
setne al
test al, al
je 0x480208
mov eax, dword [0xa1d0b8]
jmp 0x480333
mov eax, dword [0x6936f8]
mov edx, dword [ebp + 8]
shl edx, 2
add eax, edx
mov dword [0xa1d0bc], eax
jmp 0x480319
cmp dword [ebp - 0x14], 0
jle 0x480239
mov dword [0xa1d0c0], 0xffffffff
add dword [ebp - 0x18], 1
adc dword [ebp - 0x14], 0xffffffff
jmp 0x48024f
mov eax, dword [ebp - 0x18]
mov dword [0xa1d0c0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [0xa1d0c0]
mov eax, dword [0xa1d0bc]
mov eax, dword [eax]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xa1d0c8
mov dword [esp + 8], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
je 0x4802bb
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [0xa1d0d0], eax
mov eax, dword [0xa1d0d0]
cmp eax, 5
je 0x4802ad
mov eax, dword [0xa1d0d0]
cmp eax, 0x21
jne 0x4802b4
mov eax, 0xfffffff9
jmp 0x480333
mov eax, 0xfffffff7
jmp 0x480333
mov eax, dword [0xa1d0c8]
mov edx, dword [0xa1d0cc]
add dword [ebp + 0x14], eax
mov esi, dword [0xa1d0b4]
mov eax, dword [0xa1d0b4]
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov eax, dword [0xa1d0c8]
mov edx, dword [0xa1d0cc]
add eax, ecx
adc edx, ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov eax, dword [0xa1d0c0]
mov ecx, eax
mov ebx, 0
mov eax, dword [0xa1d0c8]
mov edx, dword [0xa1d0cc]
mov esi, ebx
xor esi, edx
xor eax, ecx
or eax, esi
test eax, eax
je 0x480319
mov eax, 0xffffffff
jmp 0x480333
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
or eax, edx
test eax, eax
setne al
test al, al
jne 0x48021f
mov eax, 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4971e7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call eax
sub esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x497231
mov dword [esp], 7
call fcn.0044a600
mov eax, dword [ebp - 0x14]
jmp 0x4972cc
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call eax
sub esp, 8
mov edx, eax
sub dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp edx, eax
setne al
test al, al
je 0x49728d
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp + 4], 1
mov dword [esp], 0
call fcn.0044bd1a
mov dword [ebp - 0x14], eax
mov dword [esp], 0x33
call fcn.0044a600
mov eax, dword [ebp - 0x14]
jmp 0x4972cc
mov dword [esp + 4], 1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0044bd1a
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x18]
leave
ret
Function at 0x49f850
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 0xc]
mov dword [0xa3f800], eax
jmp fcn.0049f040