joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4023c0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x402868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov eax, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x402439
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov al, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 8]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402890
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
and ecx, 0xffff
push eax
push ecx
push 0
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x402509
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402509
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x402509
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebx
mov esi, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString
jmp loc.0040f498
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x43b63f
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop eax
sub ebx, 0x9a3ee25e
or ebx, edx
call fcn.0043b67e
sub esp, 4
mov dword [esp], 0xe2c9735d
pop edx
sub ebx, 0x3e6f5624
xor dword [edi], eax
sub ebx, ebx
inc edi
add ebx, 0x40a2e09
inc edx
cmp edi, ecx
jne fcn.0043b63f
mov ebx, edx
add ebx, 0x2e3685dc
ret
Function at 0xff4980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x101b01c]
push edi
push 0x1024fb0
call esi
push 0x1024fb0
call esi
push 0x1024fb0
call esi
push 0x1024fb0
call esi
push 0x1024fb0
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0x6603a1
nop
push eax
call 0x7730e026
nop
mov ebx, eax
push 0x1024fb0
mov dword [ebp - 4], ebx
call esi
push 0x1024fb0
call esi
push 0x1024fb0
call esi
push 0x1024fb0
call esi
push 0x1024fb0
call esi
push 0x1024fb0
mov byte [ebx + edi], 0
call esi
push 0x1024fb0
call esi
push 0x1024fb0
call esi
push 0x1024fb0
call esi
push 0x1024fb0
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0xff4a9a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0x1024fb0
call esi
push 0x1024fb0
call esi
push 0x1024fb0
call esi
push 0x1024fb0
call esi
push 0x1024fb0
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
nop
call 0x76e443d3
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0x1024fb0
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0x1024fb0
call esi
push 0x1024fb0
call esi
push 0x1024fb0
call esi
push 0x1024fb0
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0xff4a26
push 0x1024fb0
call esi
push 0x1024fb0
call esi
push 0x1024fb0
call esi
push 0x1024fb0
call esi
push 0x1024fb0
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0x6603a6
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xff6e30
Capabilities:
Parse pe header

Disassembly:
cmp dword [ebx + 4], 0x40
jb 0xff6ed1
mov eax, dword [ebx]
push 0x40
push eax
push esi
nop
call 0x76e39910
mov ecx, 0x5a4d
add esp, 0xc
cmp word [esi], cx
jne 0xff6f00
mov eax, dword [esi + 0x3c]
test eax, eax
je 0xff6f00
lea edx, [eax + 0xf8]
cmp edx, dword [ebx + 4]
ja 0xff6ed1
mov ecx, dword [ebx]
push edi
push 0xf8
add ecx, eax
push ecx
lea edi, [esi + 0x40]
push edi
nop
call 0x76e39910
add esp, 0xc
cmp dword [edi], 0x4550
pop edi
jne 0xff6f00
mov edx, 0x10b
cmp word [esi + 0x58], dx
jne 0xff6f00
movzx eax, word [esi + 0x46]
test ax, ax
je 0xff6f00
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push 8
mov dword [esi + 0x140], eax
call dword [fcn.012290f4]
push eax
call dword [fcn.01229088]
mov dword [esi + 0x138], eax
test eax, eax
jne 0xff6ed7
mov eax, 3
ret
mov eax, 1
ret
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [esi + 0x140]
push ebx
push edx
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.00ff74d0
add esp, 0x10
neg eax
sbb eax, eax
inc eax
ret
mov eax, 2
ret
Function at 0x14f4010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor eax, eax
push esi
push edi
cmp byte [0x101d014], al
je 0x14f402d
inc eax
cmp byte [eax + 0x101d014], 0
jne 0x14f4023
mov esi, dword [ebp + 8]
mov dword [esi + 8], eax
inc eax
call fcn.014d2a40
mov dword [esi], eax
test eax, eax
je 0x14f404b
push 0x101d014
push eax
call dword [fcn.01229134]
mov esi, dword [0x1228aa4]
xor eax, eax
cmp byte [esi], al
je 0x14f405e
inc eax
cmp byte [esi + eax], 0
jne 0x14f4057
inc eax
call fcn.014d2a40
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x14f4075
push esi
push ebx
call dword [fcn.01229134]
lea eax, [ebp - 0x24]
push eax
call dword [0x1229044]
mov eax, dword [ebp - 0x16]
xor edi, edi
lea esi, [eax + eax*4]
mov word [0x1228ec0], si
cmp dword [ebp + 0xc], edi
jle 0x14f40e9
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movzx ecx, si
mov dword [ebp - 4], eax
mov edi, edi
mov eax, ecx
shr eax, 2
xor eax, ecx
shr eax, 1
xor eax, ecx
shr eax, 2
xor eax, ecx
and eax, 1
mov dword [0x1228ec4], eax
shl eax, 0xf
shr si, 1
or si, ax
movzx ecx, si
xor edx, edx
mov ebx, 0xb
mov eax, ecx
div ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
inc edi
mov dl, byte [edx + ebx]
mov byte [eax + edi - 1], dl
cmp edi, dword [ebp + 0xc]
jl 0x14f40a0
mov word [0x1228ec0], si
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, dword [ebp + 0xc]
mov byte [eax + ecx], 0
test ebx, ebx
je 0x14f4161
mov ecx, dword [ebx - 8]
lea eax, [ebx - 0x10]
mov dword [eax], 1
test ecx, ecx
je 0x14f4131
cmp dword [ecx], 0
je 0x14f4131
cmp dword [0x12291c4], ecx
jne 0x14f411b
mov dword [0x12291c4], eax
mov esi, dword [ecx + 4]
add dword [eax + 4], esi
mov esi, dword [ecx + 8]
mov dword [eax + 8], esi
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x14f4131
mov dword [ecx + 0xc], eax
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x14f4161
cmp dword [ecx], 0
je 0x14f4161
cmp dword [0x12291c4], eax
jne 0x14f414b
mov dword [0x12291c4], ecx
mov esi, dword [eax + 4]
add dword [ecx + 4], esi
mov esi, dword [eax + 8]
mov dword [ecx + 8], esi
mov eax, dword [eax + 8]
test eax, eax
je 0x14f4161
mov dword [eax + 0xc], ecx
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x14f6520
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x12290e0]
test esi, esi
jne 0x14f6538
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x14f6531
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x14f6531
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x1c]
add eax, esi
add ecx, esi
push ebx
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
push edi
add ecx, esi
add ebx, esi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x14f659a
jmp 0x14f6580
mov eax, dword [ebx + edi*4]
mov ecx, dword [0x1228bf0]
add eax, esi
call fcn.014f3fb0
test eax, eax
je 0x14f65a3
inc edi
cmp edi, dword [ebp - 4]
jb 0x14f6580
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + edi*2]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
pop edi
pop ebx
add eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401253
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xe8
push ebx
push esi
mov esi, dword [ebp + 0x78]
push edi
push dword [ebp + 0x7c]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [esi + 0x18]
call edi
push 9
push dword [esi + 0x18]
mov dword [ebp + 0x6c], eax
call edi
mov dword [ebp + 0x78], eax
push 0x64
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x6c]
xor ebx, ebx
mov word [ebp - 0x78], bx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp + 0x64]
push eax
push dword [esi + 0x18]
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
call dword [sym.imp.USER32.dll_ClientToScreen]
xor eax, eax
lea edi, [ebp + 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp + 0x58]
mov eax, dword [ebp + 0x54]
mov edi, dword [ebp + 0x60]
mov esi, dword [ebp + 0x5c]
push 4
sub edi, ecx
sub ecx, dword [ebp + 0x68]
push edi
sub esi, eax
sub eax, dword [ebp + 0x64]
push esi
push ecx
push eax
push ebx
push dword [ebp + 0x78]
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x58], ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push edi
push esi
push dword [ebp + 0x58]
push dword [ebp + 0x54]
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_MoveWindow]
push ebx
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret
Function at 0x402ebd
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor eax, eax
mov byte [ebp - 0x18], 0
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x18
stosb byte es:[edi], al
lea eax, [ebp - 0x18]
push eax
push 0xb
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 0x18]
push eax
call fcn.0042cdd7
cmp eax, 1
pop ecx
pop edi
jle 0x402efe
mov word [0x49a010], ax
leave
ret

Function at 0x402f42
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetLastInputInfo]
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], ebx
call edi
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x496b90]
test ecx, ecx
jle 0x402f75
mov dword [0x496b90], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [0x496b90], eax
jmp 0x402fad
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ebx
call edi
call esi
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jb 0x402fa5
sub eax, dword [0x496b90]
cmp eax, dword [ebp + 8]
jae 0x402fb5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x495280], bl
jg 0x402f85
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x496b90]
pop esi
test ecx, ecx
jle 0x402fca
mov dword [0x496b90], eax
xor eax, eax
cmp byte [0x495280], bl
pop edi
setg al
pop ebx
leave
ret

Function at 0x40319f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xf
xor eax, eax
cmp byte [ebp + 0x10], bl
pop ecx
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], ebx
rep stosd dword es:[edi], eax
je 0x4031d5
or dword [ebp - 0x28], 1
mov word [ebp - 0x24], bx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403214
push esi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp byte [ebp + 0xc], bl
je 0x40320e
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
call esi
pop esi
pop edi
pop ebx
leave
ret

Function at 0x403218
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push 0x3ff
lea eax, [ebp - 0x400]
push eax
push str.SHOWEWFMSG
mov byte [ebp - 0x400], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp byte [ebp - 0x400], 0x31
jne 0x40325a
push 0
push 0x480bac
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
leave
ret
Function at 0x40325c
Capabilities:
Terminate process

Disassembly:
cmp byte [0x495280], 2
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x14
pop esi
je 0x403273
push esi
call edi
cmp dword [0x496b9c], 0
je 0x40328e
push 0x1e
pop esi
jmp 0x40328e
cmp dword [0x496b94], 0
je 0x403291
push 0xa
call edi
dec esi
jns 0x403281
mov eax, dword [0x496b94]
test eax, eax
pop edi
pop esi
je 0x4032af
push 0
push eax
mov dword [0x496b94], 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [0x495280], 0xff
ret

Function at 0x4032b7
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0xc]
mov esi, 0x8000004
push 0x64
push ebx
push esi
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
cmp edi, ebx
mov byte [ebp - 1], 1
je 0x4032f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403309
mov byte [ebp - 1], bl
jmp 0x403309
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x403345
push ebx
push ebx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [0x496ba4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x496ba4]
cmp eax, ebx
je 0x403345
cmp byte [ebp - 1], bl
je 0x403340
push 0x64
push ebx
push eax
call fcn.0046c4e0
mov eax, dword [0x496ba4]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403592
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push 0x169
lea ecx, [ebp - 4]
call fcn.0042c415
mov ebx, dword [ebp - 4]
push 0x104
push dword [ebp + 0xc]
add ebx, 0xc8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 8]
push eax
xor esi, esi
push ebx
mov dword [ebp - 8], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x403650
push edi
push eax
push 2
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
push edi
push dword [ebp - 0x10]
push dword [ebp - 8]
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x480be8
push edi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0xc]
mov cx, word [eax + 0x12]
mov dx, word [eax + 0x10]
mov di, word [eax + 0x16]
movzx eax, word [eax + 0x14]
push eax
movzx eax, di
push eax
movzx eax, dx
push eax
movzx eax, cx
push eax
push 0x480bd0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
mov dword [esi], eax
call fcn.0042704a
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x403d34
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 8], eax
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
jne 0x403d50
lea ebx, [ebp - 0x14]
mov edi, dword [ebp + 0xc]
cmp edi, eax
mov esi, edi
jne 0x403d74
cmp dword [ebp + 8], eax
lea esi, [ebp - 0x10]
jne 0x403d68
xor edi, edi
jmp 0x403f0b
push dword [ebx]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
push 0x26c
mov ecx, ebx
mov dword [ebp - 4], eax
call fcn.0042c43e
push 0x2d0
mov ecx, esi
call fcn.0042c43e
test edi, edi
lea eax, [ebp - 4]
jne 0x403da1
push ebx
push eax
call fcn.00402b2e
pop ecx
pop ecx
jmp 0x403db9
push esi
push eax
call fcn.00402b2e
mov eax, dword [ebp - 4]
inc eax
push eax
push dword [esi]
push dword [ebx]
call fcn.00403c15
add esp, 0x14
and dword [ebp - 0x1c], 0
and dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xc7
cmp dword [ebp + 8], 0
je 0x403e77
mov eax, dword [ebx]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*2]
push 0x480d9c
mov dword [ebp - 0x18], eax
call fcn.00428bd8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp + 0x14]
push str.pecmd__s._lu._lu_s_
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebx]
add esp, 0x18
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403e36
push 5
mov ecx, 0x496eb8
call fcn.0040b65c
dec dword [ebp - 8]
jns 0x403dc8
mov edi, dword [ebp - 0x1c]
jmp 0x403eef
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0xc], 1
je 0x403f0b
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [edi + 1]
push eax
push dword [ebx]
mov dword [ebp + 8], eax
push dword [esi]
call fcn.00403c15
mov eax, dword [esi]
mov word [eax + edi*2], 0x5c
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
add esp, 0xc
and word [ecx + eax*2], 0
jmp 0x403e7a
mov eax, dword [ebp - 4]
and dword [ebp + 8], 0
add eax, eax
mov dword [ebp + 0xc], eax
push dword [ebp + 0x18]
mov edi, dword [esi]
push dword [ebp + 8]
add edi, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp + 0x14]
push str.pecmd__s._lu._lu_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi]
add esp, 0x18
xor ecx, ecx
push ecx
push 0x80
push 1
push ecx
push ecx
push 0x40000000
mov dword [ebp - 0x1c], ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403c6d
mov edi, eax
test edi, edi
jne 0x403ee9
push 5
mov ecx, 0x496eb8
call fcn.0040b65c
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xc8
jl 0x403e83
mov eax, dword [esi]
and word [eax], di
cmp dword [ebp - 0xc], 0
jne 0x403ef5
mov eax, dword [ebx]
and word [eax], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x403f00
mov dword [eax], edi
jmp 0x403f0b
test edi, edi
je 0x403f0b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.0042704a
lea ecx, [ebp - 0x14]
call fcn.0042704a
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403fea
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 4], eax
push ebx
lea ecx, [eax + 8]
push edi
mov di, word [eax]
mov dword [ebp - 4], ecx
mov ax, word [ecx]
call fcn.00426fde
test al, al
jne 0x40400f
inc ecx
inc ecx
mov dword [ebp - 4], ecx
push 0x63
lea eax, [ebp - 0x74]
push eax
xor ebx, ebx
push str.DEBUGMDG
mov byte [ebp - 0x74], bl
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp byte [ebp - 0x74], 0x31
jne 0x404032
mov byte [0x496b8c], 1
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp - 4]
lea ecx, [ebp - 0x10]
mov dword [0x496b90], eax
mov dword [ebp - 0xc], ebx
call fcn.004361de
lea ecx, [ebp - 8]
call fcn.0042c3f7
push 1
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
mov ecx, 0x496eb8
call fcn.0043c12f
push dword [ebp - 8]
lea ecx, [ebp - 0xc]
call fcn.004362a2
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov dword [ebp - 4], eax
call fcn.0042704a
lea ecx, [ebp - 0x10]
call fcn.0042704a
mov ecx, dword [ebp - 4]
call fcn.00402fd9
push 0x1e
push eax
push str._InstallService
mov dword [ebp - 4], eax
mov esi, eax
call fcn.0046c550
add esp, 0xc
test eax, eax
jne 0x4040e0
movzx esi, word [esi + 0x1e]
mov eax, esi
call fcn.00426fde
test al, al
jne 0x4040be
cmp si, bx
jne 0x4040e0
push 0x1e
push 0x480e48
push dword [ebp - 4]
call fcn.0046c720
mov ecx, dword [ebp - 4]
add esp, 0xc
add ecx, 0x1e
call fcn.00402fd9
mov dword [ebp - 4], eax
jmp 0x4040f7
push 8
lea eax, [ebp - 4]
push eax
push 0x480e3c
call fcn.0042df66
add esp, 0xc
test al, al
je 0x40413a
cmp di, 0x22
jne 0x404130
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 4]
lea ecx, [edx + eax*2 - 2]
cmp ecx, edx
jbe 0x404130
mov ax, word [ecx]
call fcn.00426fde
test al, al
je 0x404123
dec ecx
dec ecx
cmp ecx, edx
ja 0x404111
cmp ecx, edx
jbe 0x404130
cmp word [ecx], 0x22
jne 0x404130
mov word [ecx], bx
push dword [ebp - 4]
call fcn.00409ce0
jmp 0x40415a
push 0xe
lea eax, [ebp - 4]
push eax
push 0x480e2c
call fcn.0042df66
add esp, 0xc
test al, al
pop esi
je 0x404162
push dword [ebp - 4]
call fcn.00404bda
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0xc]
call fcn.0042704a
pop edi
xor eax, eax
pop ebx
leave
ret

Function at 0x404170
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, eax
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x496b94], 0
call ebx
and dword [esi], 0
test edi, edi
je 0x4041af
mov eax, dword [edi]
test eax, eax
je 0x4041af
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
push dword [edi]
call ebx
and dword [edi], 0
cmp byte [esp + 0x10], 0
je 0x4041c7
push 1
push 0
push str.shutdown__a
call fcn.0040319f
add esp, 0xc
push dword [0x496bdc]
call fcn.0040311e
cmp byte [esp + 0x10], 0
pop ecx
je 0x4041f3
push 3
pop esi
push 0
call dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
dec esi
jne 0x4041dd
pop esi
pop ebx
ret