joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4637b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4637e3
push esi
call fcn.00471b70
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4637dc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x463869
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x463852
mov eax, dword [esi + 8]
test eax, eax
je 0x463807
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46384e
cmp eax, 2
je 0x463852
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4637fa
cmp eax, 3
je 0x46382d
cmp eax, 1
jne 0x4637fa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4637fa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4637fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00463890
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x463878
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00463890
add esp, 4
pop esi
ret

Function at 0x464110
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x464131
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x464131
mov eax, dword [eax + 0x44]
test eax, eax
je 0x464131
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x48ff00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
xor esi, esi
push eax
push 0x400
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 0x420]
lea edi, [esp + 0x18]
push ecx
or ecx, 0xffffffff
xor eax, eax
push 0x182b57c
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0x20]
push edx
call fcn.004b1510
mov ebp, dword [esp + 0x428]
mov al, byte [esp + 0x1f]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
mov byte [ebp], al
xor eax, eax
add esp, 0xc
mov dword [ebp + 4], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp + 8], esi
mov ebx, ecx
mov dword [ebp + 0xc], esi
cmp ebx, 0xfffffffd
jbe 0x48ff8e
call fcn.004bf490
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x48ffc0
mov al, byte [ecx - 1]
test al, al
je 0x48ffc0
cmp al, 0xff
je 0x48ffc0
cmp ebx, esi
jne 0x48fff1
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebp
call fcn.004919d0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x408
ret 8
cmp ebx, esi
jne 0x48ffdc
push 1
mov ecx, ebp
call fcn.004919d0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x408
ret 8
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x48ffe8
cmp eax, ebx
jae 0x48fff9
push 1
mov ecx, ebp
call fcn.004919d0
push ebx
mov ecx, ebp
call fcn.00490c20
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
pop edi
pop esi
mov byte [eax + ebx], 0
mov eax, ebp
pop ebp
pop ebx
add esp, 0x408
ret 8
Function at 0x4903c0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d0f88
push eax
mov dword fs:[0], esp
sub esp, 0x10
xor al, al
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esi + 0xc]
test cl, cl
je 0x4904e4
mov ecx, dword [esi + 4]
xor ebp, ebp
sub ecx, ebp
je 0x4904f6
dec ecx
je 0x49043c
dec ecx
jne 0x4904e4
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x49050b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x49050b
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x490435
mov eax, dword [0x17ccacc]
lea ecx, [esi + 0x10]
push eax
push ebp
call fcn.00490900
mov bl, 1
jmp 0x4904d7
mov edx, dword [0x17ccacc]
mov cl, byte [esi + 0x10]
push edi
lea edi, [esi + 0x10]
push edx
mov byte [esp + 0x14], cl
push ebp
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.00490700
mov eax, dword [esi + 8]
mov dword [esp + 0x28], ebp
cmp eax, ebp
je 0x4904c5
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x4904c5
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x490494
mov eax, dword [0x17ccacc]
mov ecx, edi
push eax
push ebp
call fcn.00490900
mov eax, dword [esp + 0x14]
mov bl, 1
cmp eax, ebp
jne 0x4904a3
mov eax, 0x17ccac8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x14]
pop edi
cmp ecx, ebp
je 0x4904d3
mov al, byte [ecx - 1]
test al, al
je 0x4904c9
cmp al, 0xff
je 0x4904c9
dec al
mov byte [ecx - 1], al
jmp 0x4904d3
xor bl, bl
jmp 0x4904aa
dec ecx
push ecx
call fcn.004c2b62
add esp, 4
test bl, bl
je 0x4904e2
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
mov al, bl
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov eax, dword [esi]
cmp eax, ebp
je 0x49050b
push eax
call fcn.00491480
add esp, 4
mov dword [esi], ebp
mov bl, 1
jmp 0x4904d7
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x490db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push ebp
push esi
push edi
xor edi, edi
push 0x182b59c
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x490dff
call fcn.004cc370
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x490de4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push 0x182b59c
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x490dff
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x490e15
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x490e29
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x490e42
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x18]
push edi
push ebx
push ebp
call fcn.00491580
add esp, 0xc
test al, al
jne 0x490ee1
mov eax, dword [edi + 8]
cmp eax, ebx
jb 0x490ee9
mov esi, dword [0x17ccad4]
jae 0x490e71
call fcn.004bf6af
mov ecx, edi
call fcn.00491110
mov eax, dword [edi + 8]
mov ecx, eax
sub ecx, ebx
cmp ecx, esi
jae 0x490e85
mov esi, ecx
test esi, esi
jbe 0x490ec3
mov ecx, dword [edi + 4]
sub eax, esi
sub eax, ebx
push eax
lea eax, [ecx + esi]
add eax, ebx
add ecx, ebx
push eax
push ecx
call fcn.004af7b0
mov ebp, dword [edi + 8]
add esp, 0xc
sub ebp, esi
mov ecx, edi
push 0
push ebp
call fcn.00490ff0
test al, al
je 0x490ebf
mov ecx, dword [edi + 4]
mov dword [edi + 8], ebp
mov byte [ecx + ebp], 0
mov ebp, dword [esp + 0x10]
mov edi, dword [edi + 4]
test edi, edi
jne 0x490ecf
mov edi, 0x17ccad0
mov ecx, ebx
mov esi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
mov edx, ebx
push 0
sub edx, eax
mov ecx, edi
push edx
call fcn.00490f00
jmp 0x490ec3
Function at 0x49a5e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x1859f70]
xor edx, edx
cmp eax, edx
jne 0x49a606
xor eax, eax
mov byte [eax + 0x1859e70], al
inc eax
cmp eax, 0x100
jl 0x49a5ee
mov dword [0x1859f70], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x1859e70
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x49a697
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x49a66a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x49a638
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x49a6a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x49a6f3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x49a6da
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a1070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d119e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004a1990
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x17d0354
call fcn.004c2b39
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4a1103
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004c2b39
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4a10fc
push 0
mov ecx, eax
call fcn.00498210
mov dword [esi + 0xc], eax
jmp 0x4a1105
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4a1105
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4b14ca
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b14ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b096a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4b150d
test byte [esp + 8], 2
je 0x4b150d
call fcn.004b09dd
mov dword [eax], 0xd
call fcn.004b09e6
mov dword [eax], 5
jmp 0x4b14e6
xor eax, eax
ret

Function at 0x4c51c9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c5201
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c3253
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c322b
jmp 0x4c520d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c68bb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c68fd
call fcn.004cc370
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c68fd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c68f4
xor eax, eax
jmp 0x4c6905
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c690b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4cc8a0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4cc8ce
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4cc8ec
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004cc806
jmp 0x4cc8ec
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4cc8ec
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004cc806
test edi, edi
mov eax, edi
jne 0x4cc8d6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4014e2
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1080
call fcn.00401ef0
mov eax, dword [0x402004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x1080]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x1080], esi
lea edi, [ebp - 0x103c]
mov esi, 0x800
stosd dword es:[edi], eax
push esi
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1020]
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x820]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x24
mov dword [ebp - 0x1028], esi
lea eax, [ebp - 0x1028]
mov dword [ebp - 0x1024], ebx
push eax
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x1024]
push eax
push pe_overlay
push 0x401108
push 0x401118
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4015fa
cmp dword [ebp - 0x1024], 1
je 0x401598
cmp dword [ebp - 0x1024], 2
jne 0x4015fa
lea eax, [ebp - 0x102c]
push eax
lea eax, [ebp - 0x1020]
push eax
push 0x400
push 0x40119c
push 0x4011a8
lea eax, [ebp - 0x820]
push eax
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x4015fa
push 6
pop ecx
mov esi, 0x4011bc
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x103c]
push eax
lea eax, [ebp - 0x1080]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
movsw word es:[edi], word [esi]
push eax
lea eax, [ebp - 0x1020]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401970
leave
ret 0x10
Function at 0x4016d0
Capabilities:
Terminate process

Disassembly:
call fcn.00401c3b
jmp 0x4016e0
push 0x58
push 0x401f28
call fcn.00401d00
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x402374
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x401732
cmp eax, esi
jne 0x401725
xor esi, esi
inc esi
mov edi, esi
jmp 0x401735
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401709
xor esi, esi
inc esi
cmp dword [0x402378], esi
jne 0x401747
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x401781
cmp dword [0x402378], ebx
jne 0x40177b
mov dword [0x402378], esi
push 0x4010dc
push 0x4010d0
call fcn.004018c5
pop ecx
pop ecx
test eax, eax
je 0x401781
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4018af
mov dword [0x402024], esi
cmp dword [0x402378], esi
jne 0x4017a4
push 0x4010cc
push 0x4010c4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x402378], 2
test edi, edi
jne 0x4017b1
xor eax, eax
mov ecx, 0x402374
xchg dword [ecx], eax
cmp dword [0x40237c], 0
je 0x4017dd
push 0x40237c
call fcn.00401b30
pop ecx
test eax, eax
je 0x4017dd
push ebx
push 2
push ebx
mov esi, dword [0x40237c]
mov ecx, esi
call dword [0x40308c]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x40183b
test cl, cl
je 0x40180a
test edi, edi
jne 0x40183b
test cl, cl
je 0x40180a
cmp cl, 0x20
ja 0x40180a
inc esi
mov dword [ebp - 0x1c], esi
mov cl, byte [esi]
jmp 0x4017f9
test byte [ebp - 0x3c], 1
je 0x401816
movzx eax, word [ebp - 0x38]
jmp 0x401819
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x402020], eax
cmp dword [0x402038], 0
jne 0x401894
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x40184c
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x40185f
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x4017ea
cmp dword [0x402024], 0
jne 0x4018a8
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x402020]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401a00
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x401f48
call fcn.00401d00
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401a60
cmp eax, 0xffffffff
je 0x401a60
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401a59
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401a59
cmp edx, 0x10000000
jae 0x401a59
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x401a56
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401ae0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x401b1e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x401b16
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x401b20
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x401b06
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401c00
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x401c31
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401c31
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x401c31
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x725011
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov bx, word [esp]
lea esp, [esp + 2]
sub esp, 0xa8
jmp 0x72505d
pop dx
jmp 0x725040
mov ebx, esi
mov cx, sp
rdtsc
lea ecx, reloc.MSVCRT.dll_strncpy
lea eax, reloc.MSVCRT.dll_strncpy
mov ah, byte [esp]
jmp 0x725080
mov ebp, esp
xchg ch, dh
sub esp, 0xa
jb 0x725021
pop dx
jmp 0x725040
xchg dx, cx
call fcn.0072508f
add eax, 0x88fe4a29
jmp 0x728503
xchg cx, dx
dec eax
jo 0x72506a
xchg dx, cx
jmp 0x7250a5
xor esi, 0x186b0037
jmp 0x725109
mov dx, word [esp]
call fcn.007250da
setno bh
jmp 0x728508
lea ebx, [edi + ebp]
jmp 0x7284ed
mov esp, ebp
mov ebx, ecx
pushal
mov ebx, esi
jmp 0x728bc9
push eax
ret

Function at 0x72508f
Capabilities:
Execute anti-debugging instructions

Disassembly:
neg ch
bswap ecx
stc
mov eax, ebp
xchg dword [esp], ebp
jmp 0x72534d
mov cx, 0x2102
shl cx, cl
neg ecx
setge dh
push dword [esp]
ret 4
shl al, 1
rdtsc
rdtsc
mov ax, sp
xchg dword [esp], ebp
mov eax, ebp
jmp 0x7251ac
sub esp, 0
mov ch, 0xd1
mov ax, 0xa1c2
xchg ecx, edx
lea ebp, [ebp + 0x33]
mov edx, 0xa42aa16c
jmp 0x7252a7

Function at 0x7250da
Capabilities:
Execute anti-debugging instructions

Disassembly:
push word [esp + 2]
jg 0x7250c4
lea esp, [esp + 2]
jmp 0x7250eb
Function at 0x7251e9
Capabilities:
Execute anti-debugging instructions

Disassembly:
bsr edx, eax
pushfd
xchg dword [esp + 4], eax
rol al, cl
bswap eax
setg dl
jmp 0x7251ff
jmp 0x7251be
sbb al, dl
jg 0x725196
jle 0x725241
sbb byte [edi + 0x14996a0f], bl
jbe 0x7251e7
add ax, si
xor dword [ebp + 0x7c], ebp
dec edi
salc
rdtsc
not ecx
push dword [esp + 4]
ret 8

Function at 0x7254b2
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushfd
jmp 0x724e7e
lea esp, [esp + 2]
mov dword [esp + 8], edi
lea esp, [esp + 8]
jmp 0x72500b

Function at 0x726cc4
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf0716374
jmp 0x726c56
shr ah, cl
jae 0x726c5f
xchg edx, eax
jmp 0x726c61
sub esp, 0x10
jg 0x726c67
pushal
mov byte [esp + 0x24], ah
jmp 0x726c72
lea ecx, [eax*4]
jmp 0x726c32
xchg edx, eax
mov edi, dword [esp + 0x2c]
jmp 0x726c3a
pushal
mov byte [esp + 0x24], ah
jmp 0x726c72
lea esi, [esp + 0x30]
ror eax, 0x10
jp 0x726c9a
rdtsc
inc cl
mov ebx, ecx
jmp 0x726ca6
lea esp, [esp + 1]
mov dword [esp + 4], edi
lea esp, [esp + 4]
pushfd
jmp 0x724ed1
rdtsc
jmp 0x726ca2
inc cl
mov ebx, ecx
sub esp, 0x90
jmp 0x726cdc
mov edx, 0xae6304ad
call fcn.00726cef
adc dl, byte [edx + ecx - 0x7ea26393]
inc eax
add edi, dword [edx - reloc.MSVCRT.dll_strncpy]
jmp 0x726c88
mov bx, 0x1c0f
mov ecx, 0xd1650b8
jmp 0x726c88
mov ebp, esp
neg ax
jle 0x726cae
mov edx, 0xae6304ad
jmp 0x726d15