joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413280
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4132ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4132ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4034a0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x51d584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
cmp dword [ecx + 0x50], 0x10
lea ebx, [ecx + 0x3c]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x24], eax
mov dword [ebx + 0x10], eax
jb 0x4034ca
mov eax, dword [ebx]
jmp 0x4034cc
mov eax, ebx
mov byte [eax], 0
call fcn.0044c1d0
mov esi, eax
test esi, esi
jne 0x4034f0
mov eax, 0x13ab
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004809b9
mov esp, ebp
pop ebp
ret
mov ecx, edi
lea edi, [ebp - 0x20]
call fcn.00403000
push 1
push 0x34
push esi
call fcn.0044c210
add esp, 0xc
push 5
push 0x4e
push esi
call fcn.0044c210
add esp, 0xc
push 1
push 0x13
push esi
call fcn.0044c210
add esp, 0xc
push 0x12c
push 0x14
push esi
call fcn.0044c210
mov eax, dword [ebp - 0x20]
mov edi, 0x10
add esp, 0xc
cmp dword [ebp - 0xc], edi
jae 0x403541
lea eax, [ebp - 0x20]
push eax
push 0x2712
push esi
call fcn.0044c210
add esp, 0xc
push 0x403600
push 0x4e2b
push esi
call fcn.0044c210
add esp, 0xc
push ebx
push 0x2711
push esi
call fcn.0044c210
add esp, 0xc
push 1
push 0x63
push esi
call fcn.0044c210
add esp, 0xc
push esi
call fcn.0044c240
add esp, 4
test eax, eax
je 0x403595
mov dword [ebp - 0x24], 0x13ab
jmp 0x4035c9
lea eax, [ebp - 0x28]
push eax
push 0x200002
push esi
call fcn.0044c3a0
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x28]
jne 0x4035b5
cmp eax, 0xc8
je 0x4035c9
sub eax, 0x194
neg eax
sbb eax, eax
and eax, 0xfffffff2
add eax, 0x13b9
mov dword [ebp - 0x24], eax
push esi
call fcn.0044c340
add esp, 4
cmp dword [ebp - 0xc], edi
jb 0x4035e3
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00480d64
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004809b9
mov esp, ebp
pop ebp
ret
Function at 0x405c50
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x51d584]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push 0x124
lea eax, [ebp - 0x130]
push 0
push eax
mov dword [ebp - 0x134], 0
call fcn.00484cd0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ce7
lea ecx, [ebp - 0x134]
push ecx
push esi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x405ce0
lea edx, [ebp - 0x110]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405cce
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x11c], eax
je 0x405cfa
lea ecx, [ebp - 0x134]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x405cb1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004809b9
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x12c]
push esi
mov dword [ebx], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004809b9
mov esp, ebp
pop ebp
ret 4

Function at 0x406330
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00486a90
mov eax, dword [0x51d584]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x1004]
push 0x1000
push edx
call fcn.00481c01
add esp, 0x10
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004809b9
mov esp, ebp
pop ebp
ret
Function at 0x407570
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x51d584]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4075a2
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004809b9
mov esp, ebp
pop ebp
ret
push edi
mov edx, esi
call fcn.004076d0
push 0x103
xor edi, edi
lea eax, [ebp - 0x107]
push edi
push eax
mov byte [ebp - 0x108], 0
call fcn.00484cd0
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4075d0
sub eax, edx
inc eax
cmp eax, edi
je 0x4075f6
cmp eax, 0x7fffffff
ja 0x4075f6
push esi
mov edx, bind
lea ecx, [ebp - 0x108]
call fcn.00406c80
mov edx, 0x104
lea eax, [ebp - 0x108]
cmp byte [eax], 0
je 0x40760c
inc eax
dec edx
jne 0x407601
jmp 0x407634
cmp edx, edi
je 0x407634
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push 0x50eee0
lea ecx, [ebp + ecx - 0x108]
mov edx, bind
call fcn.00406c80
mov ecx, 0x414
lea edx, [ebp - 0x108]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov word [ebp - 0x118], cx
mov dword [ebp - 0x112], edi
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x10e], edi
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x124], 3
xor esi, esi
jmp 0x407680
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov edi, eax
test edi, edi
je 0x4076a5
cmp edi, 0x20
jne 0x4076bd
push 0x3e8
inc esi
call ebx
cmp esi, 5
jl 0x407680
xor eax, eax
pop ebx
test edi, edi
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004809b9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.004809b9
mov esp, ebp
pop ebp
ret
Function at 0x40d9e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4eae19
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x51d584]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov eax, dword [0x51d584]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
cmp esi, dword [edi + 4]
jl 0x40da5c
push 0x338
push str.D:WorkCodeTPSPTpsp
push 3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17], bl
call fcn.00499b70
mov dword [esp + 0x48], ebx
mov ebx, 1
push str.CHECK_failed:__index_____size___:
mov ecx, eax
mov dword [esp + 0x10], ebx
call fcn.00499e60
push eax
lea ecx, [esp + 0xf]
call fcn.0049a0b0
mov dword [esp + 0x48], 0xffffffff
test bl, 1
je 0x40da79
lea ecx, [esp + 0x10]
call fcn.00499ba0
mov eax, dword [edi]
mov eax, dword [eax + esi*4]
jmp 0x40da7e
mov ecx, dword [edi]
mov eax, dword [ecx + esi*4]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004809b9
mov esp, ebp
pop ebp
ret
Function at 0x40de90
Capabilities:
Check for time delay via gettickcount
Resolve dns

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, 0xfa0
jae 0x40dee1
jmp 0x40deb0
push str.www.baidu.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40dee7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x64
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
sub eax, ebx
cmp eax, 0xfa0
jb 0x40deb0
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop edi
pop esi
pop ebx
ret

Function at 0x40df00
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 0x288
mov esi, eax
mov dword [ebp - 8], 0x288
call fcn.00483131
mov ebx, eax
add esp, 4
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x40e010
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 8]
push eax
push ebx
call edi
cmp eax, 0x6f
jne 0x40df60
push ebx
call fcn.004830b7
mov ecx, dword [ebp - 8]
add esp, 4
push ecx
call fcn.00483131
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
test eax, eax
je 0x40e010
lea edx, [ebp - 8]
push edx
push ebx
call edi
test eax, eax
jne 0x40e010
mov edi, ebx
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x40e010
jmp 0x40df83
mov edi, dword [ebp - 0xc]
mov eax, dword [edi + 0x194]
mov ecx, dword [edi + 0x198]
lea edx, [edi + 0x1b0]
push edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
je 0x40e003
mov ebx, dword [esi + 4]
mov ecx, dword [ebx + 4]
cmp byte [ecx + 0x21], 0
jne 0x40dfc6
cmp dword [ecx + 0x10], eax
jae 0x40dfbc
mov ecx, dword [ecx + 8]
jmp 0x40dfc0
mov ebx, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0x21], 0
je 0x40dfb2
cmp ebx, dword [esi + 4]
je 0x40dfd0
cmp eax, dword [ebx + 0x10]
jae 0x40dff4
mov dword [ebp - 0x28], eax
xor eax, eax
lea edi, [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.0040e9e0
push ebx
lea edi, [ebp - 0x10]
mov ecx, esi
call fcn.0040e570
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], ecx
mov ebx, dword [ebp - 4]
mov edi, dword [edi]
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x40df80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test ebx, ebx
je 0x40e025
push ebx
call fcn.004830b7
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ea90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
je 0x40eab3
push edi
movzx edi, byte [edx]
mov eax, dword [esi]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x50aab0]
inc edx
dec ecx
mov dword [esi], eax
jne 0x40ea95
pop edi
ret
Function at 0x40f140
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec742
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x51d584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x9c
lea eax, [ebp - 0xac]
push 0
push eax
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], 0
call fcn.00484cd0
add esp, 0xc
lea ecx, [ebp - 0xac]
push ecx
mov dword [ebp - 0xac], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x9c]
dec eax
mov dword [ebp - 0xb0], 1
je 0x40f373
dec eax
je 0x40f1fe
push 0x2b8
push str.d:workcode_tpsp_tpsp
push 0x50c24c
call fcn.004822f7
add esp, 0xc
push 7
push str.UNKNOWN
jmp 0x40f37a
mov eax, dword [ebp - 0xa8]
sub eax, 5
je 0x40f2a2
dec eax
je 0x40f233
push 0x2ab
push str.d:workcode_tpsp_tpsp
push 0x50c24c
call fcn.004822f7
add esp, 0xc
push 7
push str.UNKNOWN
jmp 0x40f37a
mov eax, dword [ebp - 0xa4]
sub eax, 0
je 0x40f285
dec eax
je 0x40f268
dec eax
je 0x40f24b
push 0x2a1
jmp 0x40f2c0
cmp byte [ebp - 0x12], 1
mov eax, str.Windows_8
je 0x40f25b
mov eax, str.Windows_Server_2012
push eax
mov ecx, esi
call fcn.0040c550
jmp 0x40f381
cmp byte [ebp - 0x12], 1
mov eax, str.Windows_7
je 0x40f278
mov eax, str.Windows_Server_2008_R2
push eax
mov ecx, esi
call fcn.0040c550
jmp 0x40f381
cmp byte [ebp - 0x12], 1
mov eax, str.Windows_Vista
je 0x40f295
mov eax, str.Windows_Server_2008
push eax
mov ecx, esi
call fcn.0040c550
jmp 0x40f381
mov eax, dword [ebp - 0xa4]
sub eax, 0
je 0x40f365
dec eax
je 0x40f357
dec eax
je 0x40f2e3
push 0x286
push str.d:workcode_tpsp_tpsp
push 0x50c24c
call fcn.004822f7
add esp, 0xc
push str.UNKNOWN
mov ecx, esi
call fcn.0040c550
jmp 0x40f381
lea edx, [ebp - 0xd8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp byte [ebp - 0x12], 1
jne 0x40f30e
cmp word [ebp - 0xd8], 9
jne 0x40f30e
push str.Windows_XP_Professional_x64_Edition
mov ecx, esi
call fcn.0040c550
jmp 0x40f381
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call edi
test eax, eax
jne 0x40f32a
push str.Windows_Server_2003
mov ecx, esi
call fcn.0040c550
jmp 0x40f381
push 0x59
call edi
test eax, eax
je 0x40f340
push str.Windows_Server_2003_R2
mov ecx, esi
call fcn.0040c550
jmp 0x40f381
test dword [ebp - 0x14], 0x8000
je 0x40f381
push str.Windows_Home_Server
mov ecx, esi
call fcn.0040c550
jmp 0x40f381
push str.Windows_XP
mov ecx, esi
call fcn.0040c550
jmp 0x40f381
push str.Windows_2000
mov ecx, esi
call fcn.0040c550
jmp 0x40f381
push 5
push str.Win9x
mov ecx, esi
call fcn.00402a70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004809b9
mov esp, ebp
pop ebp
ret
Function at 0x40fa50
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x138
mov eax, dword [0x51d584]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push esi
push 0
push 2
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fa9b
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.004809b9
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40fb05
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea esp, [esp]
lea ecx, [esp + 0x34]
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40fae6
test dl, dl
je 0x40fae2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40fae6
add eax, 2
add ecx, 2
test dl, dl
jne 0x40fac6
xor eax, eax
jmp 0x40faeb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40fafd
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
jne 0x40fac0
jmp 0x40fb05
mov edx, dword [esp + 0x18]
mov dword [esp + 0xc], edx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0xc]
pop esi
pop ebx
xor ecx, esp
call fcn.004809b9
mov esp, ebp
pop ebp
ret
Function at 0x40fff0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x410084
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x410007
sub eax, edx
je 0x410084
push 0x44
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00484cd0
add esp, 0xc
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push esi
xor ecx, ecx
push ebx
mov dword [ebp - 0x70], 0x44
mov word [ebp - 0x40], cx
mov dword [ebp - 0x44], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x41008c
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x41007a
push eax
call esi
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x410084
push eax
call esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4100a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x51d584]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push str.Advapi32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4100e7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004809b9
mov esp, ebp
pop ebp
ret
push str.RegDeleteKeyExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x410118
movzx ecx, byte [ebp + 0x10]
neg ecx
sbb ecx, ecx
push 0
and ecx, 0xffffff00
add ecx, 0x200
push ecx
push esi
push ebx
call eax
jmp 0x410120
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x41013e
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004809b9
mov esp, ebp
pop ebp
ret
movzx eax, byte [ebp + 0x10]
neg eax
sbb eax, eax
lea edx, [esp + 0x14]
push edx
and eax, 0x100
add eax, 0x20019
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41016e
xor ecx, ecx
cmp eax, 2
jmp 0x410275
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax - 1], 0x5c
lea edi, [esi + eax]
je 0x410186
mov byte [edi], 0x5c
inc edi
mov byte [edi], 0
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 0
push edx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x410235
lea eax, [esp + 0x28]
sub eax, edi
mov dword [esp + 0x18], eax
mov edx, 0x208
mov eax, edi
lea esp, [esp]
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x4101ed
mov ecx, dword [esp + 0x18]
mov cl, byte [ecx + eax]
test cl, cl
je 0x4101ed
mov byte [eax], cl
inc eax
dec edx
jne 0x4101d0
jmp 0x4101f1
test edx, edx
jne 0x4101f2
dec eax
mov edx, dword [ebp + 0x10]
push edx
push esi
push ebx
mov byte [eax], 0
call fcn.004100a0
add esp, 0xc
test eax, eax
je 0x410235
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
push 0
push eax
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4101c2
mov byte [edi - 1], 0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x410269
movzx edx, byte [ebp + 0x10]
neg edx
sbb edx, edx
push 0
and edx, 0xffffff00
add edx, 0x200
push edx
push esi
push ebx
call eax
jmp 0x410271
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor ecx, ecx
test eax, eax
sete cl
pop edi
pop esi
pop ebx
mov eax, ecx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004809b9
mov esp, ebp
pop ebp
ret
Function at 0x412420
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e91c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51d584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ebx + 8]
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 4]
mov dword [esi], vtable.tpsp::TASKITEM.0
call fcn.004bccf0
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412e00
Capabilities:
Extract resource via kernel32 functions
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x51d584]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0x10
push edi
mov edi, ecx
mov ebx, edx
jb 0x412e2e
mov eax, dword [esi]
jmp 0x412e30
mov eax, esi
push 0x50ca24
push eax
call fcn.00482a18
add esp, 8
test eax, eax
je 0x412e67
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004809b9
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x525128]
movzx eax, di
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edx, dword [0x525128]
mov edi, eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov eax, dword [0x525128]
push edi
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [esi + 0x14], 0x10
mov ebx, eax
jb 0x412eaf
mov esi, dword [esi]
push 0x50c51c
push esi
call fcn.00482a18
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x412eda
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004809b9
mov esp, ebp
pop ebp
ret
push edi
mov dword [esp + 0x14], 1
call fcn.00481751
add esp, 4
push edi
mov esi, eax
push ebx
push esi
mov dword [esp + 0x24], esi
call fcn.00484d50
add esp, 0xc
push edi
mov ecx, esi
call fcn.00410cc0
xor eax, eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
push esi
mov eax, edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x7c], 0
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
call fcn.004212c0
add esp, 4
lea esi, [esp + 0x20]
lea ebx, [esp + 0x78]
call fcn.00421380
call fcn.00422820
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push esi
push edi
push 1
push ecx
call fcn.00482bde
add esp, 0x10
cmp eax, edi
je 0x412f87
xor edi, edi
jmp 0x412f8b
mov edi, dword [esp + 0x10]
push esi
call fcn.00482f09
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esp + 0x8c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004809b9
mov esp, ebp
pop ebp
ret
Function at 0x417a20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eef9b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51d584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 3
push 0x68
call fcn.00480dc0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x417a74
mov ecx, dword [ebp + 0x10]
push ecx
push eax
call fcn.00430160
jmp 0x417a76
xor eax, eax
test eax, eax
setne cl
mov dword [ebp - 4], 0xffffffff
test cl, cl
jne 0x417aa5
push 0x64
call edi
mov edx, esi
dec esi
test edx, edx
jne 0x417a50
lea eax, [edx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
call fcn.004425d0
push 0
push 0
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call fcn.0048373b
mov esi, eax
mov eax, dword [ebp + 0xc]
add esp, 0x18
test eax, eax
jne 0x417afe
test esi, esi
je 0x417ae7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x417b33
lea ecx, [ebp - 0x10]
push ecx
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x5b4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret