joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a2f5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42c6dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040f1aa
mov dword [ebp - 0x14], eax
cmp dword [0x42ef50], edi
jne 0x41a3e6
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41a373
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41a4c6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41a4c6
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41a4c6
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x42ef50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x42ef54], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x42ef58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42ef60], eax
test eax, eax
je 0x41a3e3
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42ef5c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41a40b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41a3fe
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41a420
push 4
pop eax
jmp 0x41a4c8
cmp dword [ebp - 0x14], edi
je 0x41a420
push dword [0x42ef50]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41a405
mov eax, dword [0x42ef5c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41a47e
cmp dword [0x42ef60], esi
je 0x41a47e
push eax
call ebx
push dword [0x42ef60]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41a47e
test eax, eax
je 0x41a47e
call ecx
test eax, eax
je 0x41a473
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41a473
test byte [ebp - 8], 1
jne 0x41a47e
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41a4ae
mov eax, dword [0x42ef54]
cmp eax, esi
je 0x41a4ab
push eax
call ebx
test eax, eax
je 0x41a4ab
call eax
mov edi, eax
test edi, edi
je 0x41a4ab
mov eax, dword [0x42ef58]
cmp eax, esi
je 0x41a4ab
push eax
call ebx
test eax, eax
je 0x41a4ab
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x42ef50]
call ebx
test eax, eax
je 0x41a4c6
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41a4c8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a3bf
leave
ret
Function at 0x41cfa7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041464e
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41cfdf
xor eax, eax
jmp 0x41d00b
cmp esi, dword [ebp - 4]
je 0x41d008
cmp dword [ebp + 0xc], 0
je 0x41d008
push dword [edi + 0x9c]
call fcn.0041cbb5
push dword [edi + 0x9c]
mov esi, eax
call fcn.0040f554
pop ecx
pop ecx
cmp esi, eax
je 0x41cfdb
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x417310
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.QCYiaatN
lea edi, [esi - 0xe000]
mov dword [edi + 0xe6f8], 0x58b40b67
push edi
or ebp, 0xffffffff
jmp 0x41733a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417341
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417330
mov eax, 1
add ebx, ebx
jne 0x417353
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417348
jne 0x417364
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417348
xor ecx, ecx
sub eax, 3
jb 0x417378
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4173ea
mov ebp, eax
add ebx, ebx
jne 0x417383
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417390
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4173b4
inc ecx
add ebx, ebx
jne 0x4173a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417395
jne 0x4173b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417395
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4173d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4173c5
jmp 0x417336
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4173d4
add edi, ecx
jmp 0x417336
pop esi
mov edi, esi
mov ecx, 0x446
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4173f2
cmp byte [edi], 5
jne 0x4173f2
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 al, bl
loop 0x4173f7
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x417466
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17704]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17784]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x417424
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1778c]
or eax, eax
je 0x417460
mov dword [ebx], eax
add ebx, 4
jmp 0x417441
call dword [esi + 0x17788]
mov ebp, dword [esi + 0x17790]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41749a
sub esp, 0xffffff80
jmp 0x40d86c
Function at 0x40324c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40325b
pop dword [ebp - 0x3c]
mov eax, 0xcd0744d3
sub eax, 0xccc71278
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x5dcc6d52
sub dword [ebp - 0x4c], 0xf7a2807
mov dword [ebp - 0x48], 0x9c7d4f89
add dword [ebp - 0x48], 0x95b5fcbc
mov dword [ebp - 0x44], 0xbbe0506d
add dword [ebp - 0x44], 0x906bf3c1
mov dword [ebp - 0x40], 0x3ebed862
add dword [ebp - 0x40], 0xc141279e
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x10472265
add eax, 0xeff95e13
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xf27ad4d7
add dword [ebp - 0x4c], 0x81f7947f
mov dword [ebp - 0x48], 0x3e704394
add dword [ebp - 0x48], 0x2fc1de1
mov dword [ebp - 0x44], 0xbcd7accb
sub dword [ebp - 0x44], 0x5968405f
mov dword [ebp - 0x40], 0x4e1798c4
add dword [ebp - 0x40], 0xb1e8673c
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xbc56670d
add eax, 0x43ea196f
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a8e0
push 0
call eax
mov ecx, 0x6444ebc1
sub ecx, 0x644495a9
xor esi, esi
add esi, eax
mov edx, 0x459200
add edx, dword [ebp - 0x3c]
mov edi, 0x324ae3ea
sub dword [ebp - 0x34], 0x4a93d48f
mov ebx, dword [edx]
mov dword [ebp - 0x24], 0x66e27237
xor ebx, edi
add dword [ebp - 0x14], 0x3387fe4f
mov dword [esi], ebx
sub dword [ebp - 0x30], ecx
add esi, 0xcf9134d1
add esi, 0x306ecb33
add edx, 0xae2bfd23
sub edx, 0xae2bfd1f
loop 0x403373
add eax, 0x5e29d7cd
add eax, 0xa1d77366
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x756bc259
sub ecx, 0x752bc259
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x40605d
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.kernel32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x430908], 0x55004e
mov dword [0x43090c], 0x4c
mov edi, 0x400
mov ebp, 0x430908
je 0x4060b3
push 1
push 0
push esi
call fcn.00405f07
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4061d2
cmp eax, edi
jg 0x4061d2
mov esi, 0x431108
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4061d2
cmp eax, edi
jg 0x4061d2
push esi
push ebp
push str._ls_ls_r_n
push 0x430508
call dword [sym.imp.user32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434f14]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040324c
push 4
push 0xc0000000
push esi
call fcn.00405f07
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4061d2
push 0
push ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4061cb
push edi
push esi
push ebp
call fcn.0040324c
test eax, eax
je 0x4061cb
push str._Rename__r_n
push esi
call fcn.0040324c
test eax, eax
jne 0x406169
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40619e
add eax, 0xa
push 0x40a580
push eax
call fcn.0040324c
mov ebp, eax
test ebp, ebp
je 0x40619a
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40618b
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406185
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4061a0
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x430508
push eax
call fcn.00405ec2
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.kernel32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.0040324c
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4061d7
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
jne 0x4061fa
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040605d
pop ecx
pop ecx
inc dword [0x434fb0]
ret 8

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

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x40692a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406904
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x4068ff
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40695b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x40693d
pop edi
not eax
pop esi
ret 0xc
Function at 0x40406f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40407e
pop dword [ebp - 0x3c]
mov eax, 0x34ef7dd7
add eax, 0xcb50c2a7
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3c37a
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x444b8ee6
add ecx, 0xbbb4c7fc
mov esi, eax
mov edx, 0x41aa00
add edx, dword [ebp - 0x3c]
mov edi, 0x986fcebb
xor dword [ebp - 0x28], 0x498c3f7e
mov ebx, dword [edx]
sub dword [ebp - 0x30], esi
sub ebx, edi
mov dword [ebp - 0x1c], 0xee8e7ac6
mov dword [esi], ebx
sub dword [ebp - 0x2c], 0x388eb964
add esi, 4
add edx, 0x8cdc788b
add edx, 0x73238779
loop 0x4040cc
add eax, 0x14e5b
mov ebx, eax
add eax, 5
mov ecx, 0x69296660
sub ecx, 0x68e96660
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop edi
cmp edi, ebx
jne 0x40b525
sub eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
test eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x804400
Capabilities:
Accept command line arguments
Delete directory
Get common file path
Write file on windows

Disassembly:
mov eax, 0x1820
call fcn.0040c510
cmp dword [0x266225c], 0x37
jne 0x8044bf
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x403298
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
lea eax, [esp + 0x824]
push eax
push 0x4032d0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea ecx, [esp + 0x24]
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 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea edx, [esp + 0x1020]
push edx
push 0
push 0x403364
push 0x403394
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0x4033b4
push 0x4033bc
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov eax, dword [0x2662260]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x8253ec]
mov byte [eax + esi], dl
add esp, 0x1820
ret

Function at 0x8044f0
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x64
mov edx, dword [0x81cf40]
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
push ebx
mov ebx, dword [0x81cf48]
push ebp
mov ebp, dword [0x81cf4c]
push esi
mov esi, dword [ecx + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [0x81cf44]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0xc6ef3720
mov dword [esp + 0x28], 0x9e3779b9
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 0x20
jmp 0x804544
mov eax, dword [esp + 0x18]
mov edx, eax
mov edi, eax
shr edx, 5
shl edi, 4
add edi, ebx
add edx, ebp
xor edx, edi
mov edi, dword [esp + 0x10]
add edi, eax
xor edx, edi
sub esi, edx
mov eax, esi
shl eax, 4
mov dword [0x265820c], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
add dword [esp + 0x14], eax
mov edi, dword [esp + 0x10]
add edi, esi
cmp dword [0x266225c], 0x1be
jne 0x8045a0
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [esp + 0x78]
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x24]
mov dword [0x2658210], 0xff6b3619
xor edx, edi
xor dword [esp + 0x14], edx
mov dword [0x2658214], 0xffffffff
mov eax, dword [esp + 0x14]
sub dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
sub dword [esp + 0x10], eax
dec dword [esp + 0x1c]
jne 0x804540
cmp dword [0x266225c], 0x8d4
jne 0x80460b
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x18]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x64
ret 4
mov edx, dword [esp + 0x18]
pop edi
mov dword [ecx + 4], esi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
add esp, 0x64
ret 4
Function at 0x401e20
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401e6b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401e64
test esi, esi
je 0x401e64
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e40
mov dword [esp], 0x407044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402050
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4020a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402178
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4020de
cmp eax, 4
jne 0x402100
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4020ee
cmp edx, 4
je 0x4020ee
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402050
Function at 0x12439ed
Capabilities:
Execute anti-debugging instructions

Disassembly:
inc eax
ror eax, 3
clc
stc
jmp 0x1285a4b
push esi
bswap esi
push ebx
not bh
movsx ebx, bx
push edi
push edx
push ebp
setg dl
push ecx
movsx ebp, cx
push eax
setae dh
rdtsc
mov edx, edx
pushfd
sar edi, 0xfd
mov edx, 0
rol ebp, 0xea
push edx
jmp 0x147257f
not eax
jmp 0x1421d5c
neg eax
test esp, 0x5fbc1f9f
add eax, 0x3808416a
rol eax, 2
cmp esi, esp
xor ebx, eax
cmc
add edi, eax
jmp 0x13d872d
jmp edi
ror eax, 1
xor eax, 0x6a444fd9
not eax
jmp 0x13d53d9
mov ebp, dword [esp + 0x28]
bt ebx, 0x3d
xor ebp, 0x20838f0
movzx bx, cl
bswap ebx
movsx edi, dx
dec ebp
cbw
bts esi, ecx
add edi, 0x57383a74
neg ebp
ror bx, cl
dec si
sub ebp, 0x3a1a4196
cmovp edi, ecx
add ebp, edx
shrd ax, sp, 0x6b
mov esi, esp
btc bx, 0x50
adc dh, cl
test esp, edi
lea esp, [esp - 0xc0]
rcr ebx, 0x18
rdtsc
cdq
mov ebx, ebp
bsf eax, ebp
and ax, di
mov edx, 0
and edi, ebx
inc di
rcl al, cl
sub ebx, edx
sbb ax, 0x208c
lea edi, [0x14725ec]
mov eax, ebx
cmovae ax, bx
test sp, di
mov eax, dword [ebp]
lea ebp, [ebp + 4]
cmc
cmp al, 0x19
xor eax, ebx
jmp 0x123e90c
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00409c90
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00409c90
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00409c90
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00409c90
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00409c90
mov dword [0x41203c], eax
call fcn.00409c90
test eax, eax
jge 0x402550
push 8
call fcn.00409c90
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00409c90
pop ecx
push 1
call fcn.00409c90
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00409c90
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00409c90
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00409c90
jmp 0x402495

Function at 0x409c90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x409c9f
pop dword [ebp - 8]
mov eax, 0x409c9f
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3a4ca
push 0
mov eax, 0x597f4180
sub eax, 0x593e60a8
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x4c67
xor ebx, ebx
add ebx, eax
mov esi, 0x413bc4
add esi, dword [ebp - 8]
mov edi, 0x808a4ed2
add edi, 0x8a6b7468
sub dword [ebp - 4], 0xfc74ad02
mov edx, dword [esi]
mov dword [ebp - 4], 0x9bc09329
add edx, edi
xor dword [ebp - 4], edi
mov dword [ebx], edx
sub dword [ebp - 4], 0x503beb59
add ebx, 0x581abc36
add ebx, 0xa7e543ce
add esi, 0xa5469886
add esi, 0x5ab9677e
loop 0x409cef
add eax, 0x3afc5d75
sub eax, 0x3afb3906
mov ebx, eax
add eax, 0xa1be0a52
add eax, 0x5e41f5b3
mov ecx, 0x9c408d6a
sub ecx, 0x9c008d6a
add ecx, dword [ebp - 8]
call ebx
leave
ret