joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4111e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x50eb14
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 4
mov dword [esp + 0x20], 0
call fcn.00404690
add esp, 4
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x411306
cmp dword [esp + 0xc], 2
jne 0x411275
lea edx, [esp + 8]
push edx
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x50eb08
call fcn.00404690
mov ecx, dword [esp + 0x18]
add esp, 4
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
inc dword [esp]
mov edx, dword [esp + 8]
push esi
push edx
lea eax, [esp + 8]
push eax
push 4
push 0
push 0x50eafc
call fcn.00404690
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 4
push eax
push ecx
call esi
push 0x104
lea edx, [esp + 0x18]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4112fa
lea eax, [esp + 0x14]
push 0x5c
push eax
call fcn.004b6d8c
add esp, 8
test eax, eax
je 0x4112fa
lea ecx, [esp + 0x14]
push ecx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea edx, [esp + 0x18]
push edx
push 1
push 0
push 0x50eaf0
mov dword [esp + 0x20], eax
call fcn.00404690
add esp, 4
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [esp + 0x114]
mov eax, dword [esp]
xor ecx, esp
dec eax
call fcn.004b6da3
add esp, 0x118
ret

Function at 0x411320
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x50eb14
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call fcn.00404690
add esp, 4
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4113b2
cmp dword [esp], 2
jne 0x4113a7
push 4
lea edx, [esp + 0xc]
push edx
push 4
push eax
push 0x50eafc
call fcn.00404690
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x50eb48
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
ret
Function at 0x4113c0
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x350
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x34c], eax
jmp 0x4113e6
mov eax, dword [esp + 0x354]
lea edx, [esp + 0x144]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4113f6
push 0x50e380
call fcn.00404690
add esp, 4
mov edx, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411410
push esi
push edi
lea edi, [esp + 0x14c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x411423
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x14c]
push eax
and ecx, 3
push 0x50eb60
rep movsb byte es:[edi], byte [esi]
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x4115d9
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea esp, [esp]
test byte [esp + 0x14], 0x10
jne 0x411527
mov eax, dword [esp + 0x364]
lea edx, [esp + 0x258]
sub edx, eax
jmp 0x4114b0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4114b0
lea edi, [esp + 0x258]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4114c2
mov ax, word [0x50e37c]
mov word [edi], ax
lea eax, [esp + 0x40]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4114e0
lea edi, [esp + 0x258]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4114f1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x80
lea ecx, [esp + 0x25c]
push ecx
call ebp
lea edx, [esp + 0x258]
push edx
call ebx
jmp 0x4115a9
cmp byte [esp + 0x40], 0x2e
je 0x4115a9
mov eax, dword [esp + 0x364]
lea edx, [esp + 0x258]
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x411540
lea edi, [esp + 0x258]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x411552
mov ax, word [0x50e37c]
mov word [edi], ax
lea eax, [esp + 0x40]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411570
lea edi, [esp + 0x258]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x411581
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x258]
push ecx
call fcn.004113c0
add esp, 4
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x411490
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x411490
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop ebx
lea eax, [esp + 0x14c]
push eax
push 0x50eb50
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
jmp 0x41160e
mov ecx, dword [esp + 0x354]
pop edi
pop esi
xor ecx, esp
call fcn.004b6da3
add esp, 0x350
ret
Function at 0x411630
Capabilities:
Parse pe header

Disassembly:
push ecx
mov byte [esp + 2], 0
jmp 0x411648
mov eax, dword [esp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x411795
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x411794
movzx edx, word [esi + 0x14]
push ebp
push edi
xor eax, eax
xor edi, edi
lea ebp, [edx + esi + 0x18]
cmp ax, word [esi + 6]
jae 0x4116ab
push 0x50eb6c
call fcn.00404690
push 4
push eax
push ebp
call fcn.004ba06a
add esp, 0x10
test eax, eax
jne 0x41169f
mov byte [esp + 0xe], 1
movzx ecx, word [esi + 6]
inc edi
add ebp, 0x28
cmp edi, ecx
jl 0x411680
push ebx
movzx ebx, word [esi + 0x18]
mov edx, 0x20b
cmp bx, dx
jne 0x4116c8
mov eax, dword [esi + 0x88]
mov esi, dword [esi + 0x90]
jmp 0x4116d1
mov eax, dword [esi + 0x78]
mov esi, dword [esi + 0x80]
test eax, eax
jne 0x4116da
mov byte [esp + 0x12], 1
test esi, esi
je 0x411791
mov eax, dword [esp + 0x18]
cmp dword [esi + eax + 0xc], 0
lea ebp, [esi + eax]
mov byte [esp + 0x13], 0
je 0x411779
lea esp, [esp]
mov eax, dword [ebp]
xor edi, edi
test eax, eax
jne 0x411710
mov byte [esp + 0x12], 1
jmp 0x411770
mov ecx, dword [esp + 0x18]
mov edx, dword [eax + ecx]
lea esi, [eax + ecx]
test edx, edx
je 0x41175f
mov edi, edi
mov eax, 0x10b
cmp bx, ax
jne 0x411730
test edx, edx
js 0x411755
jmp 0x411748
mov ecx, 0x20b
cmp bx, cx
jne 0x411748
xor ecx, ecx
and ecx, 0x80000000
xor eax, eax
or eax, ecx
jne 0x411755
mov eax, dword [esp + 0x18]
lea ecx, [edx + eax + 2]
test ecx, ecx
je 0x41175f
inc edi
mov edx, dword [esi + 4]
add esi, 4
test edx, edx
jne 0x411720
cmp byte [esp + 0x13], 0
jne 0x411770
cmp edi, 5
jbe 0x411770
mov byte [esp + 0x13], 1
add ebp, 0x14
cmp dword [ebp + 0xc], 0
jne 0x411700
cmp dword [0x54a138], 0x4e70
jae 0x411791
cmp byte [esp + 0x13], 0
jne 0x411791
mov byte [esp + 0x12], 1
pop ebx
pop edi
pop ebp
pop esi
jmp 0x4117a7
movzx eax, byte [esp + 2]
pop ecx
ret
Function at 0x4117b0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x94
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0xa4]
xor bl, bl
jmp 0x4117e2
lea eax, [esp + 0xc]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x4118e7
push ebp
push esi
call fcn.004b97b1
mov ecx, dword [esp + 0x14]
add esp, 4
mov ebp, eax
push ebp
push esi
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4118dd
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0x50ebdc
call fcn.00404690
add esp, 4
push eax
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4118dd
xor esi, esi
test dword [esp + 0x18], 0xfffffffc
jbe 0x4118dd
mov edi, edi
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push ecx
push edx
push 0x50ebb0
call fcn.00404690
add esp, 4
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004b79a8
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4118cd
push 0x50eb94
call fcn.00404690
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.00404270
add esp, 0xc
test eax, eax
jne 0x4118cb
push 0x50eb78
call fcn.00404690
mov edx, dword [esp + 0x20]
push eax
push edx
call fcn.00404270
add esp, 0xc
test eax, eax
je 0x4118cd
mov bl, 1
mov eax, dword [esp + 0x18]
inc esi
shr eax, 2
cmp esi, eax
jb 0x411850
push ebp
call fcn.004b97a6
add esp, 4
pop ebp
jmp 0x4118f9
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
movzx eax, bl
pop ebx
xor ecx, esp
call fcn.004b6da3
add esp, 0x94
ret
Function at 0x411920
Capabilities:
Get file version info

Disassembly:
sub esp, 0x94
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0xa4]
xor bl, bl
jmp 0x411952
lea eax, [esp + 0xc]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x411a57
push ebp
push esi
call fcn.004b97b1
mov ecx, dword [esp + 0x14]
add esp, 4
mov ebp, eax
push ebp
push esi
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x411a4d
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0x50ebdc
call fcn.00404690
add esp, 4
push eax
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411a4d
xor esi, esi
test dword [esp + 0x18], 0xfffffffc
jbe 0x411a4d
mov edi, edi
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push ecx
push edx
push 0x50ebb0
call fcn.00404690
add esp, 4
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004b79a8
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411a3d
push 0x50eb94
call fcn.00404690
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.00404270
add esp, 0xc
test eax, eax
jne 0x411a3b
push 0x50eb78
call fcn.00404690
mov edx, dword [esp + 0x20]
push eax
push edx
call fcn.00404270
add esp, 0xc
test eax, eax
je 0x411a3d
mov bl, 1
mov eax, dword [esp + 0x18]
inc esi
shr eax, 2
cmp esi, eax
jb 0x4119c0
push ebp
call fcn.004b97a6
add esp, 4
pop ebp
jmp 0x411a69
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
movzx eax, bl
pop ebx
xor ecx, esp
call fcn.004b6da3
add esp, 0x94
ret
Function at 0x412130
Capabilities:
Delete file

Disassembly:
sub esp, 0x210
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x20c], eax
push 0x103
lea eax, [esp + 0x10d]
push 0
push eax
mov byte [esp + 0x114], 0
call fcn.004b6dc0
push 0x50ef48
mov dword [esp + 0x10], 0
call fcn.00404690
add esp, 0x10
lea edx, [esp + 0x108]
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x412180
cmp byte [0x53b1f8], cl
jne 0x4121f2
push 0x103
mov byte [esp + 8], cl
lea ecx, [esp + 9]
push 0
push ecx
call fcn.004b6dc0
push 0x50ef34
call fcn.00404690
add esp, 0x10
lea edx, [esp + 4]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x4121b8
lea edx, [esp]
push edx
lea eax, [esp + 0x10c]
push eax
call fcn.00411ea0
lea ecx, [esp + 0xc]
push ecx
call fcn.0042f4b0
add esp, 0xc
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [0x53b1f8], 1
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004b6da3
add esp, 0x210
ret
Function at 0x412d30
Capabilities:
Get networking parameters

Disassembly:
push ecx
test byte [0x5385d4], 1
je 0x412d59
push 0x50f294
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
mov eax, 1
pop ecx
ret
push esi
push 0x248
mov dword [esp + 8], 0x248
call fcn.004b958c
mov esi, eax
add esp, 4
test esi, esi
jne 0x412d85
mov eax, dword [esp + 0xc]
mov dword [eax], 0x15
or eax, 0xffffffff
pop esi
pop ecx
ret
lea ecx, [esp + 4]
push ecx
push esi
call sub.IPHLPAPI.DLL_GetNetworkParams
cmp eax, 0x6f
jne 0x412dbe
push esi
call fcn.004b8a69
mov edx, dword [esp + 8]
push edx
call fcn.004b958c
mov esi, eax
add esp, 8
test esi, esi
jne 0x412dbe
mov eax, dword [esp + 0xc]
mov dword [eax], 0x16
lea eax, [esi - 2]
pop esi
pop ecx
ret
lea ecx, [esp + 4]
push ecx
push esi
call sub.IPHLPAPI.DLL_GetNetworkParams
test eax, eax
jne 0x412e51
push 0x50f284
call fcn.00404690
push eax
add esi, 0x84
push esi
call fcn.004b9a67
add esp, 0xc
test eax, eax
je 0x412e31
push 0x50f274
call fcn.00404690
push eax
push esi
call fcn.004b9a67
add esp, 0xc
test eax, eax
je 0x412e31
push 0x50f264
call fcn.00404690
push eax
push esi
call fcn.004b9929
add esp, 0xc
test eax, eax
jne 0x412e31
mov edx, dword [esp + 0xc]
mov dword [edx], 0x7b
mov eax, 0xfffffffd
pop esi
pop ecx
ret
push 0x50f250
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
mov eax, 1
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret

Function at 0x4134f0
Capabilities:
Execute syscall

Disassembly:
mov eax, dword [0x538368]
lea edx, [esp + 4]
int 0x2e
ret 0x18

Function at 0x413540
Capabilities:
Execute syscall

Disassembly:
mov eax, dword [0x53836c]
lea edx, [esp + 4]
int 0x2e
ret 0x14

Function at 0x4136f0
Capabilities:
Read file via mapping

Disassembly:
mov ecx, dword [0x53b200]
push ebx
xor bl, bl
test ecx, ecx
jne 0x413721
push 0x50f474
call fcn.00404690
add esp, 4
push eax
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ecx, eax
mov dword [0x53b200], ecx
test ecx, ecx
je 0x413759
mov eax, dword [0x53b1fc]
test eax, eax
jne 0x413746
push 1
push eax
push eax
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [0x53b200]
mov dword [0x53b1fc], eax
test eax, eax
je 0x41375e
cmp byte [eax], 0x31
jne 0x41374d
mov bl, 1
cmp byte [esp + 8], 1
jne 0x41375e
mov byte [eax], 0x30
jmp 0x41375e
mov eax, dword [0x53b1fc]
cmp byte [esp + 0xc], 1
jne 0x413781
test eax, eax
je 0x413776
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [0x53b200]
test ecx, ecx
je 0x413781
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
ret
Function at 0x413e70
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 3
push closesocket
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x413f06
push ebp
push esi
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x413f01
push 0
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
je 0x413efe
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x413ef7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413ef7
cmp dword [ecx + 0x98], 0
je 0x413ef7
cmp dword [ecx + 0x9c], 0
je 0x413ef7
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
pop edi
mov al, bl
pop ebx
ret

Function at 0x413f10
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 3
push closesocket
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x413fa6
push ebp
push esi
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x413fa1
push 0
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
je 0x413f9e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x413f97
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413f97
cmp dword [ecx + 0x98], 0
je 0x413f97
cmp dword [ecx + 0x9c], 0
je 0x413f97
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
pop edi
mov al, bl
pop ebx
ret
Function at 0x415490
Capabilities:
Reference processor manufacturer constants

Disassembly:
sub esp, 0xc
push ebx
push esi
xor esi, esi
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
jmp 0x4154b5
xor eax, eax
mov eax, 0x40000000
cpuid
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
cmp dword [esp + 8], 0x61774d56
jne 0x4154ed
cmp dword [esp + 0xc], 0x4d566572
jne 0x4154ed
cmp dword [esp + 0x10], 0x65726177
jne 0x4154ed
mov esi, 1
jmp 0x4154ff
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x418810
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x537884]
push eax
mov byte [0x53788c], 0
call fcn.00410de0
add esp, 4
test eax, eax
je 0x418837
mov ecx, dword [0x537884]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
ret
Function at 0x422e30
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp byte [esi], 0
jne 0x422e4a
xor eax, eax
pop esi
add esp, 0x14
ret 0x10
push 0x536b80
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x1c]
mov dword [0x5370cc], eax
call 0x52cecd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and eax, 0xfff00000
mov dword [0x5378bc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov dword [0x53789c], eax
call fcn.0040c5d0
add esp, 4
call fcn.0040a310
jmp 0x422e9e
push 0x513238
call fcn.00404690
push eax
push esi
call fcn.004b9929
add esp, 0xc
test eax, eax
je 0x422ec7
mov eax, dword [0x526960]
xor eax, 0x93af01b3
pop esi
add esp, 0x14
ret 0x10
push ebx
push ebp
push edi
jmp 0x422edc
lea ecx, [esp + 0x10]
call fcn.00416570
mov bl, byte [esp + 0x20]
test bl, bl
je 0x422efd
mov ecx, dword [esp + 0x10]
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xf
push esi
call edi
jmp 0x422f1e
call fcn.00422d50
mov edx, dword [0x53789c]
xor edx, dword [0x5378bc]
mov ebp, eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], edx
call fcn.00418910
add esp, 4
jmp 0x422f54
test bl, bl
je 0x422f68
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov eax, dword [esp + 0x1c]
push eax
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
test ebp, ebp
je 0x422fc2
mov eax, dword [0x537880]
test eax, eax
je 0x422f8c
push eax
call esi
mov eax, dword [0x548d64]
test eax, eax
je 0x422fc2
mov ecx, dword [0x538674]
push ecx
push eax
call edi
mov edx, dword [0x538674]
push edx
push eax
push 0x513210
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x10
mov eax, dword [0x53755c]
test eax, eax
je 0x422fce
push eax
call esi
test ebp, ebp
jne 0x422fde
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x14
ret 0x10
cmp byte [0x537552], 0
je 0x422ffe
call fcn.0040fd70
cmp byte [0x537552], 0
je 0x422ffe
cmp byte [0x537553], 0
je 0x423008
mov eax, dword [0x537884]
push 0xffffffffffffffff
push eax
call edi
call fcn.00417ba0
test al, al
jne 0x42301c
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x14
ret 0x10

Function at 0x423070
Capabilities:
Execute syscall

Disassembly:
mov eax, dword [0x537f30]
test eax, eax
jne 0x423082
mov eax, dword [0x53b52c]
test eax, eax
jne 0x423088
jmp dword [0x53b394]
mov eax, dword [0x53b52c]
lea edx, [esp + 4]
int 0x2e
ret 4
Function at 0x423450
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x5132d0
call fcn.00404690
add esp, 4
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423483
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x10]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x423495
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x5132b4
rep movsb byte es:[edi], byte [esi]
call fcn.00404690
add esp, 4
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4234c0
lea edi, [esp + 0x10]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4234d0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 0x4000080
push 2
push 0
mov ecx, eax
and ecx, 3
push 3
rep movsb byte es:[edi], byte [esi]
push 0x40000000
lea ecx, [esp + 0x28]
push ecx
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x423513
push eax
call ebp
lea edx, [esp + 0x10]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x5132c8
call fcn.00404690
add esp, 4
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423532
lea edi, [esp + 0x10]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x423540
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x5132b4
rep movsb byte es:[edi], byte [esi]
call fcn.00404690
add esp, 4
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x423567
lea edi, [esp + 0x10]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x423577
mov ecx, eax
shr ecx, 2
push 0
rep movsd dword es:[edi], dword [esi]
push 0x4000080
push 2
push 0
push 3
mov ecx, eax
push 0x40000000
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
cmp eax, 0xffffffff
je 0x4235ae
push eax
call ebp
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b6da3
add esp, 0x108
ret

Function at 0x4235d0
Capabilities:
Delete registry key

Disassembly:
push esi
push 0x51334c
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
push 0x513314
call fcn.00404690
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 0x10
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push 0x5132e0
call fcn.00404690
add esp, 4
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
pop esi
ret
Function at 0x429260
Capabilities:
Delete registry key

Disassembly:
cmp dword [0x52a6ec], 0xffffffff
je 0x42926e
call fcn.00429230
call fcn.00423620
jmp fcn.004235d0

Function at 0x4294a0
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4294f2
mov edx, dword [eax + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x4294f2
mov ecx, dword [esp + 8]
mov dword [ecx], eax
cmp dword [eax], 0x4550
jne 0x4294f2
add eax, 4
mov dword [ecx], eax
mov ecx, dword [esp + 0xc]
add eax, 0x14
mov edx, 0x10b
mov dword [ecx], eax
cmp word [eax], dx
jne 0x4294f2
mov ecx, dword [esp + 0x10]
add eax, 0xe0
mov dword [ecx], eax
mov eax, 1
ret
xor eax, eax
ret