joyce8/EMBER2024-capa huggingface dataset:
Function at 0x508340
Capabilities:
Parse credit card information

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x508514
movzx eax, byte [esp + 4]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x508369
mov byte [esp + 0xc], 0
ret
lea ecx, [eax - 0x61]
cmp cl, 0x19
jbe 0x508363
lea ecx, [eax - 0x30]
cmp cl, 9
jbe 0x508363
mov ecx, dword [esp + 8]
cmp ecx, 3
jne 0x508506
cmp al, 0x2c
ja 0x5084e3
lea edx, [eax - 0x21]
cmp dl, 1
ja 0x50839d
mov byte [esp + 0xc], 0
ret
cmp al, 0x24
je 0x508397
lea edx, [eax - 0x26]
cmp dl, 6
jbe 0x508397
cmp al, 0x2f
ja 0x5084a9
cmp al, 0x26
ja 0x508481
cmp al, 0x24
jne 0x508476
cmp ecx, 2
jg 0x50842c
cmp ecx, 1
je 0x508421
cmp ecx, 2
jne 0x508403
cmp al, 0x2f
jne 0x5083e3
mov eax, 1
mov byte [esp + 0xc], al
ret
cmp al, 0x3b
jne 0x5083ef
mov eax, 1
jmp 0x5083de
cmp al, 0x2c
jne 0x5083fb
mov eax, 1
jmp 0x5083de
cmp al, 0x3f
sete al
jmp 0x5083de
cmp ecx, 7
jne 0x50841b
cmp al, 0x21
jne 0x508413
mov byte [esp + 0xc], 0
ret
add eax, 0xffffffd8
cmp al, 2
jbe 0x50840d
mov byte [esp + 0xc], 1
ret
cmp al, 0x3f
sete al
mov byte [esp + 0xc], al
ret
cmp ecx, 5
jne 0x508460
cmp al, 0x40
jne 0x508440
mov eax, 1
mov byte [esp + 0xc], al
ret
cmp al, 0x2f
jne 0x50844c
mov eax, 1
jmp 0x50843b
cmp al, 0x3f
jne 0x508458
mov eax, 1
jmp 0x50843b
cmp al, 0x3a
sete al
jmp 0x50843b
cmp ecx, 6
je 0x508470
cmp ecx, 7
jne 0x508403
mov byte [esp + 0xc], 0
ret
mov byte [esp + 0xc], 1
ret
cmp al, 0x26
je 0x5083c5
jmp 0x508403
lea edx, [eax - 0x2b]
cmp dl, 1
jbe 0x5083c5
lea edx, [eax - 0x2d]
cmp dl, 1
ja 0x50849b
mov byte [esp + 0xc], 0
ret
cmp al, 0x2f
je 0x5083c5
jmp 0x508403
cmp al, 0x3d
ja 0x5084c8
lea edx, [eax - 0x3a]
cmp dl, 1
jbe 0x5083c5
cmp al, 0x3d
je 0x5083c5
jmp 0x508403
lea edx, [eax - 0x3f]
cmp dl, 1
jbe 0x5083c5
cmp al, 0x5f
je 0x508495
cmp al, 0x7e
je 0x508495
jmp 0x508403
lea edx, [eax - 0x3a]
cmp dl, 4
jbe 0x508397
cmp al, 0x5b
je 0x508397
cmp al, 0x5d
je 0x508397
jmp 0x5083aa
cmp ecx, 4
je 0x508386
jmp 0x5083aa
call fcn.0044a170
jmp fcn.00508340
Function at 0x401160
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x23c
mov eax, dword [0x41b004]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x20]
mov dword [esp + 0x10], edx
push eax
mov esi, ecx
mov dword [esp + 0x24], 8
mov dword [esp + 0x28], 0x42ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
push esi
push 0
push 0
push 0x18a
push 0x200
push 0
push 0x80000000
push 0x8c0000
push 0x41c6a0
push 0x41c5d8
push 9
mov dword [0x41c5d4], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x40137b
push 0
lea eax, [esp + 0x2c]
mov dword [0x41c5d0], ebx
push eax
push 0
xorps xmm0, xmm0
push 0x30
movups xmmword [esp + 0x38], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
push 0x80
push 0x18a
push 0x200
mov esi, eax
sub esi, dword [esp + 0x40]
push 1
call edi
mov ecx, 0xfffffe76
sub ecx, esi
add eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push 0
call edi
sub eax, 0x200
cdq
sub eax, edx
sar eax, 1
push eax
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x309
push dword [0x41c5d0]
push 0x417f08
push 0x40800000
call dword [sym.imp.COMCTL32.dll_CreateStatusWindowW]
push 0
push 0
mov ebp, eax
push 0x31
push ebp
call dword [sym.imp.USER32.dll_SendMessageW]
push ebp
mov dword [0x41c5cc], eax
call dword [sym.imp.USER32.dll_GetDC]
push dword [0x41c5cc]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
push ebx
call edi
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0x34
push str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea eax, [esp + 0x38]
push eax
push 0x104
push ebx
call dword [sym.imp.GDI32.dll_GetTextFaceW]
push esi
push ebx
call edi
push ebx
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [esp + 0x38]
push eax
push 0x22
push 5
push 0
push 0
push 1
push 0
mov esi, dword [sym.imp.GDI32.dll_CreateFontW]
push 0
push 0
push 0x190
push 0
push 0
push 0
push dword [esp + 0x50]
call esi
mov dword [0x41c5cc], eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x20]
push 0x22
push 5
push 0
push 0
push 1
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
add eax, eax
push eax
call esi
movd xmm0, dword [esp + 0x1c]
mov dword [0x41c5c8], eax
lea eax, [esp + 0x38]
push eax
push 0x22
push 5
push 0
push 0
push 1
cvtdq2pd xmm0, xmm0
push 0
push 0
push 0
push 0x190
push 0
push 0
mulsd xmm0, qword [str.333333]
push 0
cvttsd2si eax, xmm0
push eax
call esi
mov dword [0x41c5c4], eax
call fcn.00401530
push dword [esp + 0x10]
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004023d4
add esp, 0x23c
ret
Function at 0x401ec0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, ecx
xor edx, edx
movzx eax, word [edi]
test ax, ax
je 0x401ee7
push esi
mov esi, edi
xor eax, 7
lea edx, [edx + 1]
mov word [esi], ax
lea esi, [edi + edx*2]
movzx ecx, word [esi]
mov eax, ecx
test cx, cx
jne 0x401ed0
pop esi
pop edi
ret

Function at 0x402c04
Capabilities:
Parse pe header

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

Function at 0x4110b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4110dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4110dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0xee57a91
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
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
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x37243ee
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x407010
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 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
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 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x319e6eac
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x10ae28a5
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x405a60
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e568]
jne 0x405a6a
repz ret
jmp fcn.00407a4b

Function at 0x4064bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41e568]
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.00404824
and dword [ebp - 0x14], 0
cmp dword [0x420570], 0
mov dword [ebp - 0x18], eax
jne 0x40656e
push 0x401e18
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406616
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401e0c
push ebx
call edi
test eax, eax
je 0x406616
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x401dfc
push ebx
mov dword [0x420570], eax
call edi
push eax
call esi
push 0x401de8
push ebx
mov dword [0x420574], eax
call edi
push eax
call esi
push 0x401dcc
push ebx
mov dword [0x420578], eax
call edi
push eax
call esi
mov dword [0x420580], eax
test eax, eax
je 0x40656e
push 0x401db4
push ebx
call edi
push eax
call esi
mov dword [0x42057c], eax
mov eax, dword [0x42057c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4065c7
cmp dword [0x420580], ecx
je 0x4065c7
push eax
call esi
push dword [0x420580]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4065c7
test ebx, ebx
je 0x4065c7
call edi
test eax, eax
je 0x4065be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4065be
test byte [ebp - 8], 1
jne 0x4065c7
or dword [ebp + 0x10], 0x200000
jmp 0x4065fa
mov eax, dword [0x420574]
cmp eax, dword [ebp - 0x18]
je 0x4065fa
push eax
call esi
test eax, eax
je 0x4065fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4065fa
mov eax, dword [0x420578]
cmp eax, dword [ebp - 0x18]
je 0x4065fa
push eax
call esi
test eax, eax
je 0x4065fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x420570]
call esi
test eax, eax
je 0x406616
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406618
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405a60
leave
ret
Function at 0x41a680
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0x7a4614], 0x37
jne 0x41a739
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitA]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov eax, dword [esp]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x4029cc
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea ecx, [esp + 4]
push ecx
push 0x4029e0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0x402a14
push 0x402a20
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0
lea edx, [esp + 0x810]
push edx
push 0
push 0x402a78
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov eax, dword [0x7a5608]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x425664]
mov byte [eax + esi], dl
add esp, 0xc0c
ret
Function at 0x41a8c0
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7a4614]
sub esp, 0x1cc
push ebx
push ebp
push esi
mov esi, dword [0x425664]
shr eax, 3
push edi
test eax, eax
je 0x41aa5e
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jmp 0x41a8f4
mov esi, dword [esp + 0x18]
cmp dword [0x7a4614], 0x1c
jne 0x41a911
lea eax, [esp + 0x38]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov edx, dword [0x41eda0]
mov eax, dword [0x41eda4]
mov ecx, dword [0x41eda8]
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x24], edx
mov edx, dword [0x41edac]
mov ebp, 0xc6ef3720
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], 0x20
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x28]
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x34]
lea edx, [edi + ebp]
xor eax, ecx
xor eax, edx
sub ebx, eax
mov eax, ebx
shl eax, 4
mov dword [0x7a4584], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
cmp dword [0x7a4614], 0x1be
jne 0x41a99d
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, ebx
shr esi, 5
add esi, dword [esp + 0x2c]
cmp dword [0x7a4614], 0x979
mov dword [0x7a4588], 0xff6b3619
mov dword [0x7a458c], 0xffffffff
jne 0x41a9dd
mov edx, dword [esp + 0x30]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebx + ebp]
xor esi, eax
mov eax, dword [esp + 0x14]
xor eax, esi
sub edi, eax
add ebp, 0x61c88647
dec dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jne 0x41a94a
cmp dword [0x7a4614], 0x8d4
jne 0x41aa15
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x18]
mov dword [esi], edi
mov dword [esi + 4], ebx
cmp dword [0x7a4614], 0x17
jne 0x41aa4d
push 0
push 0
push 0
push 0x4029a0
push 0x4029c4
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea ecx, [esp + 0x98]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x41a8f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1cc
ret
Function at 0x401ae0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40406c], eax
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.mifedount
push str.Deltapo
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401b33
xor eax, eax
jmp 0x401b4e
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403a94
Capabilities:
Terminate process

Disassembly:
jmp 0x45565e
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45566f
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004062c6
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403c10
Capabilities:
Query environment variable

Disassembly:
jmp 0x493e45
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x493e59
xor edi, edi
jmp 0x493e90
push ebx
push esi
call fcn.00493d4f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00404633
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x493e80
push ebx
push esi
push edi
call fcn.00406050
add esp, 0xc
push 0
call fcn.00406dac
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x406127
Capabilities:
Parse pe header

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

Function at 0x406438
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0x41b650
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x533f48], eax
pop edi
pop esi
ret
Function at 0x40224a
Capabilities:
Encode data using xor

Disassembly:
pop esi
push esi
xor dword [esi], ebx
lodsd eax, dword [esi]
add ebx, eax
test eax, eax
jne 0x40224c
ret

Function at 0x40ae50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov al, byte [0x56530cec]
mov esi, dword [ebp + 0x10]
push edi
mov ecx, 0x1177003e
mov dword [esi], 0x3c00
pop edi
sbb dword [ecx - 0x40], ebx
stosd dword es:[edi], eax
mov esp, ebp
push ebx
mov esi, 0x5d8b000c
or byte [ebx - 0x3b09e75e], cl
add dh, byte [ebp + 0x13]
inc ebx
or al, 0x85
lds esi, [ebp + 0x5e]
pop esp
add ecx, dword [edi - 0xccafec]
call fcn.00404a60
mov ecx, eax
mov esp, esp
mov dword [eax + 4], edi
dec edx
js 0x40aea2
mov dword [eax + 0xc], edi
pop ebp
push edi
push edi
adc dword [eax + 0x10], edi
push edi
arpl word [ebx + 0xc], cx
call [ebp - 0x60]
rol byte [eax], 0x8b
adc byte [edi + 0x63], dl
dec ebx
or al, 0xff
pop ebp
mov al, byte [0x8b0040c0]
push ebx
or al, 0x39
inc edx
adc byte [ebx + 0x48adfe3b], cl
lodsd eax, dword [esi]
dec eax
adc byte [ebp - 0x74da5a37], al
xor eax, 0x40c05e
pushfd
test eax, eax
jne 0x40aeb6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x3a0c
Function at 0x406315
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40ba88
cmp edx, dword [eax]
je 0x406337
add eax, 8
inc ecx
cmp eax, 0x40bb18
jl 0x406328
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40ba88]
jne 0x406465
mov eax, dword [0x40bfd4]
cmp eax, 1
je 0x40643f
test eax, eax
jne 0x406368
cmp dword [0x40b734], 1
je 0x40643f
cmp edx, 0xfc
je 0x406465
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40639f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004037e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004038d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4063e2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004038d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x409584
push edi
call fcn.004077e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004037e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004037f0
lea eax, [ebp - 0xa0]
push 0x409564
push eax
call fcn.004037f0
push dword [esi + 0x40ba8c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004037f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407756
add esp, 0x2c
pop edi
jmp 0x406465
lea eax, [ebp + 8]
lea esi, [esi + 0x40ba8c]
push 0
push eax
push dword [esi]
call fcn.004038d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x408944
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push 0x4085d8
pop edx
or ebx, ebx
mov ebx, 0xea46590f
call fcn.0040896f
sub ebx, ebx
or esi, esi
xor dword [ecx], edx
add esi, 1
mov ebx, 0xa2bd79a2
inc ecx
cmp ecx, edi
jne fcn.00408944
ret
Function at 0x409b15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x438b90]
jne 0x409b1f
repz ret
jmp fcn.0040d5bc

Function at 0x40b5fb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x438b90]
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.004060dd
and dword [ebp - 0x14], 0
cmp dword [0x43aa0c], 0
mov dword [ebp - 0x18], eax
jne 0x40b6ae
push 0x402d44
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b756
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402d38
push ebx
call edi
test eax, eax
je 0x40b756
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402d28
push ebx
mov dword [0x43aa0c], eax
call edi
push eax
call esi
push 0x402d14
push ebx
mov dword [0x43aa10], eax
call edi
push eax
call esi
push 0x402cf8
push ebx
mov dword [0x43aa14], eax
call edi
push eax
call esi
mov dword [0x43aa1c], eax
test eax, eax
je 0x40b6ae
push 0x402ce0
push ebx
call edi
push eax
call esi
mov dword [0x43aa18], eax
mov eax, dword [0x43aa18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b707
cmp dword [0x43aa1c], ecx
je 0x40b707
push eax
call esi
push dword [0x43aa1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b707
test ebx, ebx
je 0x40b707
call edi
test eax, eax
je 0x40b6fe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b6fe
test byte [ebp - 8], 1
jne 0x40b707
or dword [ebp + 0x10], 0x200000
jmp 0x40b73a
mov eax, dword [0x43aa10]
cmp eax, dword [ebp - 0x18]
je 0x40b73a
push eax
call esi
test eax, eax
je 0x40b73a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b73a
mov eax, dword [0x43aa14]
cmp eax, dword [ebp - 0x18]
je 0x40b73a
push eax
call esi
test eax, eax
je 0x40b73a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43aa0c]
call esi
test eax, eax
je 0x40b756
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b758
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409b15
leave
ret