joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419c06
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x489140]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419c46
cmp byte [ebx], 0xa
jne 0x419c46
or byte [eax + edi + 0x28], 4
jmp 0x419c4b
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x419d49
mov al, byte [edx]
cmp al, 0x1a
je 0x419d2b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x419c7a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419c9f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x419ca9
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x419c5c
jmp 0x419d49
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419d26
cmp dword [ebp - 0xc], 0
je 0x419d26
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x489140]
test byte [eax + edi + 0x28], 0x48
je 0x419d00
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419ceb
mov byte [esi], dl
jmp 0x419cfc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x489140]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419d49
cmp byte [ebp - 1], 0xa
jne 0x419d0f
cmp esi, ebx
jne 0x419d0f
mov byte [esi], 0xa
jmp 0x419d48
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a786
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419d49
mov byte [esi], 0xd
jmp 0x419d48
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x489140]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419d45
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419d49
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419d52
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x489140]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419d95
cmp word [esi], dx
jne 0x419d95
or byte [edi + eax + 0x28], 4
jmp 0x419d9a
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x419eed
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x419ecd
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419ddc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419e12
cmp eax, edx
jae 0x419e1e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419db4
jmp 0x419eed
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419ec9
cmp dword [ebp - 0x14], 0
je 0x419ec9
mov eax, dword [ebx*4 + 0x489140]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419ea1
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x419e6a
mov word [esi], cx
jmp 0x419e9d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x489140]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x489140]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x489140]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419eed
pop ebx
cmp word [ebp - 4], bx
jne 0x419eb2
cmp esi, dword [ebp + 0xc]
jne 0x419eb2
mov word [esi], bx
jmp 0x419eea
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a786
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419eed
push 0xd
jmp 0x419ee6
mov ecx, dword [ebx*4 + 0x489140]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419ee4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419eed
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c09b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41c0e6
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041c23a
test al, al
jne 0x41c0e0
sub edx, 2
cmp edx, edi
jne 0x41c0c6
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41c108
lea eax, [edi + 2]
cmp edx, eax
je 0x41c108
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041bfe7
add esp, 0x10
jmp 0x41c202
push esi
lea ecx, [ebp - 0x255]
call fcn.0041c23a
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41c14b
push dword [ebp - 0x25c]
jmp 0x41c0f8
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41c188
cmp word [ebp - 0x226], 0
je 0x41c1a9
cmp word [ebp - 0x226], ax
jne 0x41c188
cmp word [ebp - 0x224], 0
je 0x41c1a9
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041bfe7
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41c1f5
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41c162
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41c1dd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41c202
push 0x41be17
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00421490
add esp, 0x10
jmp 0x41c1d2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408342
leave
ret

Function at 0x4233b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4233dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4233dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4042b0
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14cc
call fcn.0040b1b0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x481598]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x48159c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.004042a0
mov ecx, dword [0x4815a0]
mov edx, dword [0x4815a4]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x404320
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x488d1c]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x40434c
mov dword [0x488d18], 0xedeb2e40
jmp 0x404367
cmp eax, 0x3eb
jne 0x404367
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x4887a8], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x488d1c], 0x9e6
mov dword [0x488d14], 0xf4ea3dee
jne 0x4043a2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x488d1c], 0x213
jne 0x40444a
push 0
lea eax, [ebp - 0x4cc]
push eax
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0xccc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x14cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea ecx, [ebp - 0x8cc]
push ecx
push 0
push 0x403f08
push 0x403f4c
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub edi, dword [ebp - 4]
cmp dword [0x488d1c], 0xc
jne 0x40445e
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov edx, dword [ebp - 8]
mov eax, edi
shr eax, 5
lea ecx, [edx + edi]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, edi
shl edx, 4
add edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 4]
xor edx, ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x404320
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4044b0
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Get thread local storage value
Read pipe
Set environment variable
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.0040b1b0
mov eax, dword [0x488d1c]
mov ecx, dword [0x4887ac]
shr eax, 3
test eax, eax
jbe 0x4045cc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x488d1c], 0x959
jne 0x4045b2
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push 0
push 0
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0x1008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
lea eax, [ebp - 0x1808]
push eax
push 0
call esi
mov ecx, dword [ebp - 4]
push ecx
call fcn.004042b0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x4044f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407f60
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4807a8]
jne 0x407f6a
repz ret
jmp fcn.0040d0ee

Function at 0x40cd15
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.004091fb
and dword [ebp - 4], 0
cmp dword [0x486798], 0
mov ebx, eax
jne 0x40cdc6
push 0x401cb4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ce77
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401ca8
push edi
call esi
test eax, eax
je 0x40ce77
push eax
call fcn.00409189
mov dword [esp], 0x401c98
push edi
mov dword [0x486798], eax
call esi
push eax
call fcn.00409189
mov dword [esp], 0x401c84
push edi
mov dword [0x48679c], eax
call esi
push eax
call fcn.00409189
mov dword [esp], 0x401c68
push edi
mov dword [0x4867a0], eax
call esi
push eax
call fcn.00409189
pop ecx
mov dword [0x4867a8], eax
test eax, eax
je 0x40cdc6
push 0x401c50
push edi
call esi
push eax
call fcn.00409189
pop ecx
mov dword [0x4867a4], eax
mov eax, dword [0x4867a4]
cmp eax, ebx
je 0x40ce1e
cmp dword [0x4867a8], ebx
je 0x40ce1e
push eax
call fcn.00409204
push dword [0x4867a8]
mov esi, eax
call fcn.00409204
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ce1e
test edi, edi
je 0x40ce1e
call esi
test eax, eax
je 0x40ce15
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ce15
test byte [ebp - 0xc], 1
jne 0x40ce1e
or dword [ebp + 0x10], 0x200000
jmp 0x40ce57
mov eax, dword [0x48679c]
cmp eax, ebx
je 0x40ce57
push eax
call fcn.00409204
pop ecx
test eax, eax
je 0x40ce57
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ce57
mov eax, dword [0x4867a0]
cmp eax, ebx
je 0x40ce57
push eax
call fcn.00409204
pop ecx
test eax, eax
je 0x40ce57
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x486798]
call fcn.00409204
pop ecx
test eax, eax
je 0x40ce77
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ce79
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x427970
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004276e0
Function at 0x45ff60
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x45ff79
mov esi, edi
mov edi, eax
jmp 0x45ff7b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x45ff8b
mov eax, ebx
jmp 0x45ff95
push eax
push ebx
call fcn.004283f0
add esp, 8
test eax, eax
jne 0x45ff9d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x45ffb9
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x45ffa4
cmp eax, dword [esi + 4]
jge 0x45ffd0
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x45ffc0
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x45fff1
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x45ffee
dec eax
test eax, eax
jg 0x45ffe0
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4bcc80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4bcd8c
test eax, eax
je 0x4bcd8c
push esi
push edi
mov ecx, 0x10
mov esi, 0x4d7ff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x4bcd73
lea edi, [eax + 4]
jmp 0x4bccd7
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x4bccec
mov dword [ebp - 4], 2
jmp 0x4bcd0d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x4bcd03
mov dword [ebp - 4], 1
jmp 0x4bcd0d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x4bcd83
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x4bcd46
mov byte [ecx], 0x3d
jmp 0x4bcd52
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x4bcd5d
mov byte [ecx], 0x3d
jmp 0x4bcd63
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x4bccd4
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401830
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x407a35
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push esi
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call fcn.00401000
mov ecx, dword [esp + 0x220]
lea eax, [esp + 0xc]
push 0x200
push eax
push ecx
mov dword [esp + 0x220], 1
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 0xc]
lea ecx, [esp + 4]
push edx
mov byte [esp + eax + 0x10], 0
call fcn.00401340
mov esi, dword [esp + 0x21c]
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.00401020
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x214], 0
call fcn.004010a0
mov ecx, dword [esp + 0x20c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x214
ret
Function at 0x406709
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b478
cmp edx, dword [eax]
je 0x40672b
add eax, 8
inc ecx
cmp eax, 0x40b508
jl 0x40671c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b478]
jne 0x406859
mov eax, dword [0x40b924]
cmp eax, 1
je 0x406833
test eax, eax
jne 0x40675c
cmp dword [0x409074], 1
je 0x406833
cmp edx, 0xfc
je 0x406859
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406793
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004070e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405150
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4067d6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405150
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408510
push edi
call fcn.00403400
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004070e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004070f0
lea eax, [ebp - 0xa0]
push 0x4084f0
push eax
call fcn.004070f0
push dword [esi + 0x40b47c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004070f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004071d0
add esp, 0x2c
pop edi
jmp 0x406859
lea eax, [ebp + 8]
lea esi, [esi + 0x40b47c]
push 0
push eax
push dword [esi]
call fcn.00405150
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 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4011a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x10], 0x43
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x6f
mov byte [ebp - 0xd], 0x73
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], 0x48
mov byte [ebp - 0xa], 0x61
mov byte [ebp - 9], 0x6e
mov byte [ebp - 8], 0x64
mov byte [ebp - 7], 0x6c
mov byte [ebp - 6], 0x65
mov byte [ebp - 5], 0
cmp dword [0x415ea8], 0
jne 0x4011fe
lea eax, [ebp - 0x10]
push eax
call fcn.00401020
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x415ea8], eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x415ea8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402287
mov esp, ebp
pop ebp
ret 4

Function at 0x401280
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x18], 0x47
mov byte [ebp - 0x17], 0x65
mov byte [ebp - 0x16], 0x74
mov byte [ebp - 0x15], 0x46
mov byte [ebp - 0x14], 0x69
mov byte [ebp - 0x13], 0x6c
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x41
mov byte [ebp - 0x10], 0x74
mov byte [ebp - 0xf], 0x74
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 0xc], 0x62
mov byte [ebp - 0xb], 0x75
mov byte [ebp - 0xa], 0x74
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x73
mov byte [ebp - 7], 0x57
mov byte [ebp - 6], 0
cmp dword [0x415ea4], 0
jne 0x4012fa
lea eax, [ebp - 0x18]
push eax
call fcn.00401020
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x415ea4], eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x415ea4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402287
mov esp, ebp
pop ebp
ret 4

Function at 0x401320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x14], 0x43
mov byte [ebp - 0x13], 0x72
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x61
mov byte [ebp - 0x10], 0x74
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x50
mov byte [ebp - 0xd], 0x72
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 0xb], 0x63
mov byte [ebp - 0xa], 0x65
mov byte [ebp - 9], 0x73
mov byte [ebp - 8], 0x73
mov byte [ebp - 7], 0x57
mov byte [ebp - 6], 0
cmp dword [0x415ec4], 0
jne 0x40138a
lea eax, [ebp - 0x14]
push eax
call fcn.00401020
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x415ec4], eax
mov ecx, dword [ebp + 0x2c]
push ecx
mov edx, dword [ebp + 0x28]
push edx
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x415ec4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402287
mov esp, ebp
pop ebp
ret 0x28